Skip to content

Commit

Permalink
fix: deprecated golangci.yaml configurations
Browse files Browse the repository at this point in the history
  • Loading branch information
lvlcn-t committed Apr 20, 2024
1 parent 786b4fe commit 60eca38
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,14 +52,15 @@ linters-settings:
- strings.SplitN

govet:
check-shadowing: true
settings:
printf:
funcs:
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
- (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
shadow:
strict: true
lll:
line-length: 140
misspell:
Expand Down Expand Up @@ -128,11 +129,16 @@ linters:

issues:
# Excluding configuration per-path, per-linter, per-text and per-source
exclude-dirs:
- test/testdata_etc # test files
- internal/cache # extracted from Go code
- internal/renameio # extracted from Go code
- internal/robustio # extracted from Go code
exclude-rules:
- path: _test\.go
linters:
- gomnd
- revive
- gomnd # test files can have magic numbers
- revive # test files can have unused parameters

- path: pkg/golinters/errcheck.go
text: "SA1019: errCfg.Exclude is deprecated: use ExcludeFunctions instead"
Expand All @@ -154,8 +160,3 @@ issues:

run:
timeout: 5m
skip-dirs:
- test/testdata_etc # test files
- internal/cache # extracted from Go code
- internal/renameio # extracted from Go code
- internal/robustio # extracted from Go code

0 comments on commit 60eca38

Please sign in to comment.