Make golangci-lint more strict (#150)

* Reformat some YAML files

* Make `golangci-lint` more strict
This commit is contained in:
Joshua Spence
2023-06-23 09:00:12 +10:00
committed by GitHub
parent 5f0ca38414
commit 206f4be940
13 changed files with 105 additions and 76 deletions

View File

@@ -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'