From ceea065999bc7f61c1ec360508d0c35d0c74611e Mon Sep 17 00:00:00 2001 From: Marin Atanasov Nikolov Date: Tue, 29 Oct 2024 16:47:48 +0200 Subject: [PATCH] golangci-lint: enable `gosec` Also exclude G115 until the following issue is resolved. https://github.com/securego/gosec/issues/1212 --- .golangci.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.golangci.yaml b/.golangci.yaml index 345a2d8b..da497695 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -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: @@ -44,4 +48,4 @@ issues: - ".*\\.pb\\.go$" - ".*/out_vali\\.go$" - ".*/.*_test\\.go$" - - "tests/.*" \ No newline at end of file + - "tests/.*"