Files
gonic/.golangci.yml
2020-05-02 04:19:17 +01:00

53 lines
792 B
YAML

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