Skip to content

Commit

Permalink
exclude tests from var-naming lint rule
Browse files Browse the repository at this point in the history
Signed-off-by: Charles Treatman <[email protected]>
  • Loading branch information
ctreatma authored Feb 4, 2025
1 parent 9b23943 commit db37451
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 @@ -15,3 +15,11 @@ linters:
issues:
max-issues-per-linter: 0
max-same-issues: 0
exclude-rules:
# Allow underscores in names in test files because the
# HashiCorp-recommended/documented convention uses
# underscores in function names
- path: _test\.go
linters:
- revive
text: "^var-naming"

0 comments on commit db37451

Please sign in to comment.