Skip to content

Commit

Permalink
Exclude check for use of deprecated constants
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Klijn <[email protected]>
  • Loading branch information
peterklijn committed Aug 13, 2021
1 parent 9cc68a1 commit afa1871
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit afa1871

Please sign in to comment.