From df4784102453015f5e08bea37d92d27fd7957665 Mon Sep 17 00:00:00 2001 From: AnkushinDaniil Date: Tue, 17 Sep 2024 17:40:01 +0300 Subject: [PATCH] chore: Update golangci-lint to v1.61.0 and exclude G115 from gosec linter --- .golangci.yaml | 5 ++++- Makefile | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 09476225..461e0ca0 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -57,6 +57,9 @@ linters-settings: allow-unused: false # report any unused nolint directives require-explanation: false # don't require an explanation for nolint directives require-specific: false # don't require nolint directives to be specific about which linter is being skipped + gosec: + excludes: + - G115 #TODO: remove after fixing https://github.com/securego/gosec/issues/1212 linters: disable-all: true @@ -66,7 +69,7 @@ linters: - dogsled - dupl - errcheck - - exportloopref + - copyloopvar - gochecknoinits - goconst - gocritic diff --git a/Makefile b/Makefile index 5dc47b9f..d982ddff 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ e2e: .PHONY: install-golangci-lint install-golangci-lint: - go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.1 + go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.61.0 .PHONY: lint lint: