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

Bump golangci-lint to v1.59.1 #87

Merged
merged 1 commit into from
Jul 2, 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
2 changes: 1 addition & 1 deletion .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,4 @@ jobs:
uses: golangci/golangci-lint-action@v5
with:
# NOTE: Keep this in sync with the version from .golangci.yml
version: v1.57.1
version: v1.59.1
9 changes: 3 additions & 6 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# v1.2.0. Created based on golangci-lint v1.57.1
# v1.2.0. Created based on golangci-lint v1.59.1

run:
timeout: 5m
Expand Down Expand Up @@ -238,11 +238,9 @@ linters-settings:
time-layout: false # TODO: Set to true
crypto-hash: true
default-rpc-path: true
os-dev-null: true
sql-isolation-level: true
tls-signature-scheme: true
constant-kind: true
syslog-priority: true

wrapcheck:
ignorePackageGlobs:
Expand All @@ -258,7 +256,7 @@ issues:
- internal # TODO: Do not ignore interal packages
exclude-rules:
- linters:
- goerr113
- err113
text: 'do not define dynamic errors, use wrapped static errors instead*'
- path: log/.*\.go
linters:
Expand Down Expand Up @@ -288,7 +286,6 @@ linters:
- errchkjson
- errname
- errorlint
- execinquery
- exhaustive
# - exhaustivestruct
# - exhaustruct
Expand All @@ -308,7 +305,7 @@ linters:
# - gocyclo
# - godot
# - godox
- goerr113
- err113
- gofmt
- gofumpt
# - goheader
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ format:
## lint: 🚨 Run lint checks
.PHONY: lint
lint:
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.1 run ./...
go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.59.1 run ./...

## test: 🚦 Execute all tests
.PHONY: test
Expand Down
Loading