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 Apr 9, 2023
1 parent 6303d40 commit 6f03c68
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ linters:
- bodyclose
- depguard
- dogsled
- durationcheck
- exportloopref # Checks for pointers to enclosing loop variables
- gocyclo
- gofumpt
- goimports
Expand All @@ -14,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 @@ -123,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 6f03c68

Please sign in to comment.