Skip to content

Commit

Permalink
Update golangci-lint config for latest version
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Turner <[email protected]>
  • Loading branch information
Ryan Turner committed Apr 1, 2024
1 parent 750310a commit d367be0
Showing 1 changed file with 14 additions and 11 deletions.
25 changes: 14 additions & 11 deletions v2/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,9 @@ run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
deadline: 10m

# include examples
skip-dirs-use-default: false

skip-dirs:
- testdata$
- test/mock

skip-files:
- ".*\\.pb\\.go"

linters:
enable:
- bodyclose
- depguard
- goimports
- revive
- gosec
Expand All @@ -28,6 +17,16 @@ linters:
- gocritic

issues:
# include examples
exclude-dirs-use-default: false

exclude-dirs:
- testdata$
- test/mock

exclude-files:
- ".*\\.pb\\.go"

exclude-rules:
# exclude some lints from examples test files
- path: examples_test.go
Expand All @@ -40,3 +39,7 @@ linters-settings:
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0.0
revive:
rules:
- name: unused-parameter
disabled: true # It's useful to name parameters in library code for better readability

0 comments on commit d367be0

Please sign in to comment.