From 339dbaadf0d0c191fc22838c31598a0f87efbfde Mon Sep 17 00:00:00 2001 From: "David B. Tucker" Date: Mon, 17 Jun 2019 14:37:46 -0400 Subject: [PATCH] Remove ignored packages for staticcheck. The staticcheck tool no longer supports the -ignore flag. Running `make staticcheck' passes without the flag. --- Makefile | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/Makefile b/Makefile index 36ee037d..9256d7ef 100644 --- a/Makefile +++ b/Makefile @@ -28,15 +28,6 @@ ifdef DEBUG bindata_flags = -debug endif -STATICCHECK_IGNORE = \ - github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:SA1019 \ - github.com/prometheus/prometheus/discovery/kubernetes/node.go:SA1019 \ - github.com/prometheus/prometheus/documentation/examples/remote_storage/remote_storage_adapter/main.go:SA1019 \ - github.com/prometheus/prometheus/pkg/textparse/lex.l.go:SA4006 \ - github.com/prometheus/prometheus/pkg/pool/pool.go:SA6002 \ - github.com/prometheus/prometheus/promql/engine.go:SA6002 \ - github.com/prometheus/prometheus/web/web.go:SA1019 - all: format staticcheck build test style: @@ -70,7 +61,7 @@ vet: staticcheck: $(STATICCHECK) @echo ">> running staticcheck" - @$(STATICCHECK) -ignore "$(STATICCHECK_IGNORE)" $(pkgs) + @$(STATICCHECK) $(pkgs) build: promu @echo ">> building binaries"