Skip to content

Commit

Permalink
golangci-lint: enable gosec
Browse files Browse the repository at this point in the history
Also exclude G115 until the following issue is resolved.

securego/gosec#1212
  • Loading branch information
dnaeon authored and nickytd committed Nov 4, 2024
1 parent 32b0df3 commit 7b7afd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .golangci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,16 @@ linters-settings:
- (github.com/go-kit/kit/log.Logger).Log
- (*github.com/weaveworks/common/logging.Level).Set
- (*github.com/cortexproject/cortex/pkg/util/flagext.URLValue).Set
gosec:
excludes:
- G115

linters:
disable:
- unused
enable:
- revive
- gosec


issues:
Expand Down Expand Up @@ -44,4 +48,4 @@ issues:
- ".*\\.pb\\.go$"
- ".*/out_vali\\.go$"
- ".*/.*_test\\.go$"
- "tests/.*"
- "tests/.*"

0 comments on commit 7b7afd8

Please sign in to comment.