Skip to content

Commit

Permalink
Exclude rules golangci revive lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vkmc committed Oct 14, 2024
1 parent 5efd895 commit 4b9b698
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,14 @@ issues:
- staticcheck
# https://staticcheck.io/docs/checks#SA4008 (The variable in the loop condition never changes, are you incrementing the wrong variable?)
text: "SA4008:"
# Don't warn on unused parameters.
# Parameter names are useful; replacing them with '_' is undesirable.
- linters: [revive]
text: 'unused-parameter: parameter \S+ seems to be unused, consider removing or renaming it as _'
- linters: [revive]
text: 'redefines-builtin-id: redefinition of the built-in function new'
- linters: [revive]
text: 'redefines-builtin-id: redefinition of the built-in function len'
exclude-dirs:
- plugins/transport/dummy-alertmanager
- plugins/transport/dummy-events
Expand Down

0 comments on commit 4b9b698

Please sign in to comment.