Skip to content

Commit

Permalink
chore: enable go-critic deferInLoop lint (#2825)
Browse files Browse the repository at this point in the history
The goal here is to be more careful about leaking file handles and other
resources.

Signed-off-by: Will Murphy <will.murphy@anchore.com>
  • Loading branch information
willmurphyscode committed May 1, 2024
1 parent 93a7d2e commit ed40833
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .golangci.yaml
Expand Up @@ -49,6 +49,9 @@ linters-settings:
# If lower than 0, disable the check.
# Default: 40
statements: 50
gocritic:
enabled-checks:
- deferInLoop
output:
uniq-by-line: false
run:
Expand Down

0 comments on commit ed40833

Please sign in to comment.