Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update golangci-lint to 1.57.1 #22

Merged
merged 1 commit into from
Mar 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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:
tdellmann marked this conversation as resolved.
Show resolved Hide resolved
# 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
Loading