Skip to content

Commit

Permalink
Update .golangci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-cross committed Nov 17, 2023
1 parent 6bc6381 commit d80b034
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ linters-settings:
min-complexity: 20
goconst:
ignore-tests: true
goheader:
template-path: '.golangci.goheader.template'
values:
regexp:
copyright-year: 20[2-9]\d

issues:
exclude-rules:
# Exclude some linters from running on tests files.
- path: _test\.go
linters:
- gosec

linters:
# please, do not use `enable-all`: it's deprecated and will be removed soon.
Expand Down Expand Up @@ -40,7 +52,7 @@ linters:
# - gofumpt
- goheader
- goimports
# - revive # lots of unused parameters in the template, would be helpful for the user to keep them
- revive
# - gomnd
- gomoddirectives
- gomodguard
Expand All @@ -62,10 +74,10 @@ linters:
- nolintlint
# - paralleltest
- predeclared
# - rowserrcheck
- rowserrcheck
- staticcheck
- stylecheck
# - sqlclosecheck
- sqlclosecheck
# - tagliatelle
# - tenv
# - thelper
Expand All @@ -74,7 +86,20 @@ linters:
- unconvert
# - unparam
- unused
# - wastedassign
- wastedassign
- whitespace
# - wrapcheck
# - wsl
# - wrapcheck
# - wsl

# don't enable:
# - asciicheck
# - dupl
# - gochecknoglobals
# - gocognit
# - godox
# - goerr113
# - maligned
# - nestif
# - prealloc
# - testpackage
# - wsl

0 comments on commit d80b034

Please sign in to comment.