Skip to content

Commit

Permalink
update golangci-lint to 1.57.1
Browse files Browse the repository at this point in the history
  • Loading branch information
maxihafer committed Mar 27, 2024
1 parent 9370aa7 commit ed2fb0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
19 changes: 9 additions & 10 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# tested with golangci/golangci-lint:v1.55.2
# tested with golangci/golangci-lint:v1.57.1

linters:
enable-all: true
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -142,11 +147,5 @@ issues:
run:
build-tags:
- codeanalysis
skip-dirs:
- tests/
- pkg/pb/
skip-files:
- .*/generated\.go
- .*_test\.go
timeout: 10m

2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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" \
Expand Down

0 comments on commit ed2fb0f

Please sign in to comment.