From ca7cfb75d001e7f86ceef7720a6b11855e10439b Mon Sep 17 00:00:00 2001 From: Hanna Lee Date: Wed, 10 Nov 2021 21:17:25 -0500 Subject: [PATCH] Copy in options from now-deleted hack/verify-staticcheck.sh script --- .golangci.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index 9a119d1ef00..831312a45c8 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -17,6 +17,15 @@ linters: linters-settings: # please keep this alphabetized staticcheck: go: "1.17" - checks: [ "all" ] + checks: [ + "all", + "-S1*", # Omit code simplifications for now. + "-ST1*", # Mostly stylistic, redundant w/ golint + "-SA5011" # Possible nil pointer dereference + ] + ignore_pattern: [ + "vendor/k8s.io/kubectl/pkg/cmd/edit/testdata", # golang/go#24854, dominikh/go-tools#565 + "cluster/addons/fluentd-elasticsearch/es-image" # cannot traverse go modules + ] unused: go: "1.17"