mirror of
https://github.com/trufflesecurity/trufflehog.git
synced 2024-11-10 07:04:24 +00:00
add bodyclose linter to help prevent file handle leaks (#1048)
This commit is contained in:
parent
26afa76e7c
commit
1d3206ed36
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -22,7 +22,7 @@ check:
|
|||
go vet $(shell go list ./... | grep -v /vendor/)
|
||||
|
||||
lint:
|
||||
golangci-lint run --out-format=colored-line-number --timeout 10m
|
||||
golangci-lint run --enable bodyclose --out-format=colored-line-number --timeout 10m
|
||||
|
||||
test-failing:
|
||||
CGO_ENABLED=0 go test -timeout=5m $(shell go list ./... | grep -v /vendor/) | grep FAIL
|
||||
|
|
Loading…
Reference in a new issue