Skip to content

Commit

Permalink
Update golangci version, avoid false positive SA1003
Browse files Browse the repository at this point in the history
  • Loading branch information
K1li4nL committed Sep 4, 2024
1 parent 442b5a8 commit 8146944
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
# Require: The version of golangci-lint to use.
# When `install-mode` is `binary` (default) the value can be v1.2 or v1.2.3 or `latest` to use the latest version.
# When `install-mode` is `goinstall` the value can be v1.2.3, `latest`, or the hash of a commit.
version: v1.60.1
version: v1.60.3

# Optional: working directory, useful for monorepos
# working-directory: somedir
Expand Down
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ linters-settings:
excludes:
- G107 # variables in URLs
- G404 # use of weak random generator
- G115 # Disable for now due to the *many* warnings

gocritic:
disabled-checks:
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ generate: tidy

# Coding style static check.
lint: tidy
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.1
@go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.60.3
@go mod tidy
golangci-lint run

Expand Down

0 comments on commit 8146944

Please sign in to comment.