Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat:upgrade lint version to 1.57.x #687

Closed
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 27 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

linters-settings:
govet:
check-shadowing: false
check-shadowing: true
golint:
min-confidence: 0
gocyclo:
Expand Down Expand Up @@ -56,6 +56,25 @@ linters:
- staticcheck
- ineffassign
- misspell
- typecheck
- varcheck
- unused
- structcheck
- deadcode
- gosimple
- errcheck
- asciicheck
- bodyclose
- copyloopvar
- rowserrcheck
- makezero
- durationcheck
- prealloc
- predeclared
- revive
- lll
- intrange


run:
skip-dirs:
Expand All @@ -70,11 +89,17 @@ issues:
- linters:
- staticcheck
text: "SA1019:"
- path: _test\.go
linters:
- errcheck
- gosec
- rowserrcheck
- makezero

# golangci.com configuration
# https://github.com/golangci/golangci/wiki/Configuration
service:
golangci-lint-version: 1.49.x # use the fixed version to not introduce new linters unexpectedly
golangci-lint-version: 1.57.x # use the fixed version to not introduce new linters unexpectedly
prepare:
- echo "here I can run custom commands, but no preparation needed for this repo"

Loading