Skip to content

Find, verify, and analyze leaked credentials

fix linting step (#1235)

Dustin Decker20d568319957
diff --git a/Makefile b/Makefile
index d4cb6e5b6..c77ab97c6 100644
--- a/Makefile
+++ b/Makefile
@@ -22,7 +22,7 @@ check:
go vet $(shell go list ./... | grep -v /vendor/)
lint:
- golangci-lint run --enable bodyclose --out-format=colored-line-number --timeout 10m
+ golangci-lint run --enable bodyclose --enable exportloopref --out-format=colored-line-number --timeout 10m
test-failing:
CGO_ENABLED=0 go test -timeout=5m $(shell go list ./... | grep -v /vendor/) | grep FAIL
diff --git a/pkg/detectors/alibaba/alibaba.go b/pkg/detectors/alibaba/alibaba.go
index 90e60e9d0..ef69f847f 100644
--- a/pkg/detectors/alibaba/alibaba.go
+++ b/pkg/detectors/alibaba/alibaba.go
@@ -40,7 +40,7 @@ func (s Scanner) Keywords() []string {
func randString(n int) string {
const alphanum = "0123456789abcdefghijklmnopqrstuvwxyz"
var bytes = make([]byte, n)
- rand.Read(bytes)
+ _, _ = rand.Read(bytes)
for i, b := range bytes {
bytes[i] = alphanum[b%byte(len(alphanum))]
}