mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +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:
parent
93a7d2ee27
commit
ed40833b30
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user