🚨 Add some tooling/ linting
This commit is contained in:
parent
86842326fb
commit
dc577bcb9c
5 changed files with 120 additions and 7 deletions
48
.golangci.yaml
Normal file
48
.golangci.yaml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
version: "2"
|
||||
|
||||
linters:
|
||||
enable:
|
||||
- errcheck
|
||||
- govet
|
||||
- ineffassign
|
||||
- staticcheck
|
||||
- unused
|
||||
- copyloopvar
|
||||
- dupl
|
||||
- err113
|
||||
- errname
|
||||
- exptostd
|
||||
- fatcontext
|
||||
- funlen
|
||||
- gocognit
|
||||
- goconst
|
||||
- gocritic
|
||||
- gocyclo
|
||||
- godot
|
||||
- godox
|
||||
- gosec
|
||||
- perfsprint
|
||||
- testifylint
|
||||
exclusions:
|
||||
rules:
|
||||
- path: '(.+)_test\.go'
|
||||
linters:
|
||||
- errcheck
|
||||
- err113
|
||||
- gosec
|
||||
- gocognit
|
||||
- gocyclo
|
||||
settings:
|
||||
testifylint:
|
||||
enable-all: true
|
||||
disable:
|
||||
- require-error
|
||||
gocognit:
|
||||
min-complexity: 10
|
||||
gocyclo:
|
||||
min-complexity: 10
|
||||
gocritic:
|
||||
enable-all: true
|
||||
settings:
|
||||
hugeParam:
|
||||
sizeThreshold: 255
|
||||
Loading…
Add table
Add a link
Reference in a new issue