Skip to content

Commit

Permalink
golangci-lint: enable more linters
Browse files Browse the repository at this point in the history
Signed-off-by: Sebastiaan van Stijn <[email protected]>
  • Loading branch information
thaJeztah committed Nov 4, 2022
1 parent 5f61ee3 commit 66bac3b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ linters:
- bodyclose
- depguard
- dogsled
- durationcheck
- exportloopref # Checks for pointers to enclosing loop variables
- gocyclo
- gofmt
- goimports
- gosec
- gosimple
Expand All @@ -13,12 +16,24 @@ linters:
- megacheck
- misspell
- nakedret
- nolintlint
# - paralleltest
# - predeclared
- prealloc
- reassign
- revive
- staticcheck
- stylecheck # Replacement for golint
- tenv # Detects using os.Setenv instead of t.Setenv since Go 1.17
# - thelper
- tparallel
- typecheck
- unconvert
- unparam
- unused
- usestdlibvars
- vet
- wastedassign

disable:
- errcheck
Expand Down Expand Up @@ -122,6 +137,9 @@ issues:
linters:
- errcheck
- gosec
- text: "ST1000: at least one file in a package should have a package comment"
linters:
- stylecheck

# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
Expand Down

0 comments on commit 66bac3b

Please sign in to comment.