From afa1871e0ddc74e817623ccd0ce7231fcc5bc8a2 Mon Sep 17 00:00:00 2001 From: Peter Klijn Date: Fri, 13 Aug 2021 16:20:42 +0200 Subject: [PATCH] Exclude check for use of deprecated constants Signed-off-by: Peter Klijn --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 2062d7dfcc..1bb737d8fe 100644 --- a/Makefile +++ b/Makefile @@ -146,8 +146,9 @@ staticcheck: $(SOURCES) # G104 ignoring errors are in few cases fine # G304 reading kubernetes secret filepaths are not a file inclusions # G402 See https://github.com/securego/gosec/issues/551 and https://github.com/securego/gosec/issues/528 +# SA1019 use of a deprecated function, variable, constant or field gosec: $(SOURCES) - GO111MODULE=$(GO111) .bin/gosec -quiet -exclude="G101,G104,G304,G402" ./... + GO111MODULE=$(GO111) .bin/gosec -quiet -exclude="G101,G104,G304,G402,SA1019" ./... fmt: $(SOURCES) @gofmt -w -s $(SOURCES)