Skip to content

Commit

Permalink
fix: nest shadow check config correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
lvlcn-t committed Apr 21, 2024
1 parent 60eca38 commit e9e59e9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .golangci.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# yaml-language-server: $schema=https://golangci-lint.run/jsonschema/golangci.jsonschema.json
linters-settings:
depguard:
# new configuration
Expand Down Expand Up @@ -52,15 +53,15 @@ linters-settings:
- strings.SplitN

govet:
shadow: true # This is an allowed field of govet, so ignore the error here
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

0 comments on commit e9e59e9

Please sign in to comment.