Files
gonic/.golangci.yml
2021-05-11 21:45:01 +01:00

58 lines
910 B
YAML

run:
skip-dirs:
- server/assets
skip-dirs-use-default: true
linters:
disable-all: true
enable:
- bodyclose
- deadcode
- depguard
- dogsled
- errcheck
- exportloopref
- gochecknoglobals
- gochecknoinits
- goconst
- gocritic
- gocyclo
- goerr113
- golint
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
- lll
- misspell
- nakedret
- rowserrcheck
- staticcheck
- structcheck
- stylecheck
- typecheck
- unconvert
- varcheck
issues:
exclude-rules:
- path: _test\.go
linters:
- errcheck
- gochecknoglobals
- text: "weak cryptographic primitive"
linters:
- gosec
- text: "weak random number generator"
linters:
- 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