From 103dc21e4dd197b601ecd6f886f445cbb19db80c Mon Sep 17 00:00:00 2001 From: AnkushinDaniil Date: Mon, 16 Sep 2024 21:14:57 +0300 Subject: [PATCH] chore: Exclude G115 from gosec linter Exclude G115 from the gosec linter to address the issue with https://github.com/securego/gosec/issues/1212. --- .golangci.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 8838350c20..bfd9f863bb 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -67,6 +67,10 @@ linters-settings: exhaustruct: include: [] + gosec: + excludes: + - G115 #TODO: remove after fixing https://github.com/securego/gosec/issues/1212 + linters: disable-all: true enable: @@ -75,7 +79,7 @@ linters: - dogsled - dupl - errcheck - - exportloopref + - copyloopvar - funlen - gochecknoinits - goconst @@ -108,14 +112,12 @@ linters: # don't enable: # - asciicheck - # - scopelint # - gochecknoglobals # - gocognit # - godot # - godox - # - goerr113 + # - err113 # - interfacer - # - maligned # - nestif # - prealloc # - testpackage