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 committed Oct 29, 2024
1 parent c232606 commit ceea065
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 ceea065

Please sign in to comment.