mirror of
https://github.com/anchore/syft.git
synced 2026-10-30 22:12:28 +01:00
chore: enable go-critic deferInLoop lint (#2825)
The goal here is to be more careful about leaking file handles and other resources. Signed-off-by: Will Murphy <will.murphy@anchore.com>
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user