Skip to content

Commit 9c78fd0

Browse files
authored
Remove ignored packages for staticcheck. (#132)
The staticcheck tool no longer supports the -ignore flag. Running `make staticcheck' passes without the flag.
1 parent a35d49e commit 9c78fd0

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

Makefile

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,6 @@ ifdef DEBUG
2828
bindata_flags = -debug
2929
endif
3030

31-
STATICCHECK_IGNORE = \
32-
github.com/prometheus/prometheus/discovery/kubernetes/kubernetes.go:SA1019 \
33-
github.com/prometheus/prometheus/discovery/kubernetes/node.go:SA1019 \
34-
github.com/prometheus/prometheus/documentation/examples/remote_storage/remote_storage_adapter/main.go:SA1019 \
35-
github.com/prometheus/prometheus/pkg/textparse/lex.l.go:SA4006 \
36-
github.com/prometheus/prometheus/pkg/pool/pool.go:SA6002 \
37-
github.com/prometheus/prometheus/promql/engine.go:SA6002 \
38-
github.com/prometheus/prometheus/web/web.go:SA1019
39-
4031
all: format staticcheck build test
4132

4233
style:
@@ -70,7 +61,7 @@ vet:
7061

7162
staticcheck: $(STATICCHECK)
7263
@echo ">> running staticcheck"
73-
@$(STATICCHECK) -ignore "$(STATICCHECK_IGNORE)" $(pkgs)
64+
@$(STATICCHECK) $(pkgs)
7465

7566
build: promu
7667
@echo ">> building binaries"

0 commit comments

Comments
 (0)