invert golangci rules
This commit is contained in:
@@ -1,20 +1,52 @@
|
|||||||
run:
|
run:
|
||||||
skip-files:
|
skip-dirs:
|
||||||
- server/assets/assets_gen.go
|
- server/assets
|
||||||
|
skip-dirs-use-default: true
|
||||||
|
|
||||||
linters:
|
linters:
|
||||||
enable-all: true
|
disable-all: true
|
||||||
disable:
|
enable:
|
||||||
- gochecknoglobals
|
- bodyclose
|
||||||
- gochecknoinits
|
- deadcode
|
||||||
- gomnd
|
- depguard
|
||||||
- godox
|
- dogsled
|
||||||
- funlen
|
- errcheck
|
||||||
- wsl
|
- goconst
|
||||||
|
- gocritic
|
||||||
|
- gocyclo
|
||||||
|
- goerr113
|
||||||
|
- golint
|
||||||
|
- goprintffuncname
|
||||||
|
- gosec
|
||||||
|
- gosimple
|
||||||
|
- govet
|
||||||
|
- ineffassign
|
||||||
|
- interfacer
|
||||||
|
- lll
|
||||||
|
- misspell
|
||||||
|
- nakedret
|
||||||
|
- rowserrcheck
|
||||||
|
- scopelint
|
||||||
|
- staticcheck
|
||||||
|
- structcheck
|
||||||
|
- stylecheck
|
||||||
|
- typecheck
|
||||||
|
- unconvert
|
||||||
|
- varcheck
|
||||||
|
|
||||||
issues:
|
issues:
|
||||||
exclude-rules:
|
exclude-rules:
|
||||||
- path: _test\.go
|
- path: _test\.go
|
||||||
linters:
|
linters:
|
||||||
- errcheck
|
- errcheck
|
||||||
- text: "weak cryptographic primitive"
|
- text: "weak cryptographic primitive"
|
||||||
linters:
|
linters:
|
||||||
- gosec
|
- gosec
|
||||||
|
|
||||||
|
# TODO: fix these
|
||||||
|
- text: "should have comment"
|
||||||
|
linters:
|
||||||
|
- golint
|
||||||
|
- text: "at least one file in a package should have a package comment"
|
||||||
|
linters:
|
||||||
|
- stylecheck
|
||||||
|
|||||||
Reference in New Issue
Block a user