Skip to content

Commit

Permalink
fix golangci-lint (#169)
Browse files Browse the repository at this point in the history
For go 1.23.
  • Loading branch information
philandstuff authored Jan 6, 2025
1 parent 54ddc18 commit 45e85dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .golangci.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[linters]
# This is a list of linters we enable beyond the default set.
enable = [
"exportloopref",
"copyloopvar",
"gocritic",
"goimports",
"revive",
Expand Down
4 changes: 2 additions & 2 deletions script/lint
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ cd "$(dirname "$0")"
cd ..

if [ "$GITHUB_ACTIONS" = "true" ]; then
set -- "$@" --out-format=github-actions
set -- "$@" --out-format=colored-line-number
fi

go generate ./...
Expand All @@ -17,4 +17,4 @@ if ! git diff --exit-code >/dev/null; then
exit 1
fi

exec go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.2 run "$@"
exec go run github.com/golangci/golangci-lint/cmd/golangci-lint@v1.63.4 run "$@"

0 comments on commit 45e85dc

Please sign in to comment.