Make golangci-lint more strict (#150)
* Reformat some YAML files * Make `golangci-lint` more strict
This commit is contained in:
@@ -1,21 +1,44 @@
|
||||
---
|
||||
linters:
|
||||
disable-all: true
|
||||
enable:
|
||||
- "deadcode"
|
||||
- "errcheck"
|
||||
- "errorlint"
|
||||
- "gofmt"
|
||||
- "gosimple"
|
||||
- "govet"
|
||||
- "ineffassign"
|
||||
- "makezero"
|
||||
- "misspell"
|
||||
- "nakedret"
|
||||
- "nilerr"
|
||||
- "staticcheck"
|
||||
- "structcheck"
|
||||
- "unconvert"
|
||||
- "unparam"
|
||||
- "unused"
|
||||
- "varcheck"
|
||||
enable-all: true
|
||||
disable:
|
||||
- 'depguard'
|
||||
- 'tagliatelle'
|
||||
|
||||
# Temporary
|
||||
- 'cyclop'
|
||||
- 'dupl'
|
||||
- 'exhaustruct'
|
||||
- 'forbidigo'
|
||||
- 'funlen'
|
||||
- 'gochecknoglobals'
|
||||
- 'gocognit'
|
||||
- 'goconst'
|
||||
- 'gocritic'
|
||||
- 'gocyclo'
|
||||
- 'godox'
|
||||
- 'goerr113'
|
||||
- 'gomnd'
|
||||
- 'gosec'
|
||||
- 'lll'
|
||||
- 'maintidx'
|
||||
- 'nestif'
|
||||
- 'nlreturn'
|
||||
- 'paralleltest'
|
||||
- 'revive'
|
||||
- 'stylecheck'
|
||||
- 'varnamelen'
|
||||
- 'wrapcheck'
|
||||
- 'wsl'
|
||||
|
||||
# Deprecated
|
||||
- 'deadcode'
|
||||
- 'exhaustivestruct'
|
||||
- 'golint'
|
||||
- 'ifshort'
|
||||
- 'interfacer'
|
||||
- 'maligned'
|
||||
- 'nosnakecase'
|
||||
- 'scopelint'
|
||||
- 'structcheck'
|
||||
- 'varcheck'
|
||||
|
||||
Reference in New Issue
Block a user