From ed2fb0fbc7b2fbf7e1447bea82055a176aa3a320 Mon Sep 17 00:00:00 2001 From: Maximilian Hafer Date: Wed, 27 Mar 2024 15:30:15 +0100 Subject: [PATCH] update golangci-lint to 1.57.1 --- .golangci.yml | 19 +++++++++---------- Dockerfile | 2 +- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 30ac3b6..c4809f5 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -1,4 +1,4 @@ -# tested with golangci/golangci-lint:v1.55.2 +# tested with golangci/golangci-lint:v1.57.1 linters: enable-all: true @@ -75,8 +75,8 @@ linters: linters-settings: # Vet examines Go source code and reports suspicious constructs, such as Printf calls whose govet: - # report about shadowed variables - check-shadowing: true + enable: + - shadow # revive differs from gofmt. Gofmt reformats Go source code, whereas revive prints out style mistakes revive: # minimal confidence for issues @@ -128,12 +128,17 @@ issues: # show more issues of the same type max-same-issues: 100 # Excluding configuration per-path, per-linter, per-text and per-source + exclude-dirs: + - tests/ + - pkg/pb/ + exclude-files: + - .*/generated\.go + - .*_test\.go exclude-rules: # Exclude lll issues for long lines with go:generate - linters: - lll source: "^//go:generate " - - linters: - staticcheck # activate it when github.com/golang/protobuf/proto is migrated to google.golang.org/protobuf/proto @@ -142,11 +147,5 @@ issues: run: build-tags: - codeanalysis - skip-dirs: - - tests/ - - pkg/pb/ - skip-files: - - .*/generated\.go - - .*_test\.go timeout: 10m diff --git a/Dockerfile b/Dockerfile index 7272a24..c1cf1d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golangci/golangci-lint:v1.56.2 +FROM golangci/golangci-lint:v1.57.1 ENV LINT_NAME="mittwald-golangci" \ LINT_ID="1000" \