mirror of
https://github.com/anchore/syft
synced 2024-11-10 06:14:16 +00: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
1 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue