mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +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.
|
# If lower than 0, disable the check.
|
||||||
# Default: 40
|
# Default: 40
|
||||||
statements: 50
|
statements: 50
|
||||||
|
gocritic:
|
||||||
|
enabled-checks:
|
||||||
|
- deferInLoop
|
||||||
output:
|
output:
|
||||||
uniq-by-line: false
|
uniq-by-line: false
|
||||||
run:
|
run:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user