add bodyclose linter to help prevent file handle leaks (#1048)
This commit is contained in:
@@ -22,7 +22,7 @@ check:
|
|||||||
go vet $(shell go list ./... | grep -v /vendor/)
|
go vet $(shell go list ./... | grep -v /vendor/)
|
||||||
|
|
||||||
lint:
|
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:
|
test-failing:
|
||||||
CGO_ENABLED=0 go test -timeout=5m $(shell go list ./... | grep -v /vendor/) | grep FAIL
|
CGO_ENABLED=0 go test -timeout=5m $(shell go list ./... | grep -v /vendor/) | grep FAIL
|
||||||
|
|||||||
Reference in New Issue
Block a user