Skip to content

Find, verify, and analyze leaked credentials

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

Dustin Decker1d3206ed36b2
diff --git a/Makefile b/Makefile
index 07a2e6d7b..3fa648e55 100644
--- a/Makefile
+++ b/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