add bodyclose linter to help prevent file handle leaks (#1048)

This commit is contained in:
Dustin Decker 2023-01-31 09:04:37 -08:00 committed by GitHub
parent 26afa76e7c
commit 1d3206ed36
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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