Skip to content
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/pr-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
- name: golangci-lint
uses: golangci/golangci-lint-action@v9
with:
version: latest
version: v2.12.2
only-new-issues: true

can-read-secret:
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ repos:
- id: commitizen
stages: [commit-msg]
- repo: https://github.com/golangci/golangci-lint
rev: v2.11.4
rev: v2.12.2
hooks:
- id: golangci-lint
args: ["--timeout", "10m"]
args: ["--timeout=10m"]
- id: golangci-lint-fmt
6 changes: 3 additions & 3 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ tasks:
desc: lint go code using golangci-lint
cmd: golangci-lint run ./...

cli:lint:new:
desc: lint go code changed since origin/main using golangci-lint
cmd: golangci-lint run --new-from-rev="$(git merge-base HEAD origin/main)" ./... # or use --new-from-rev=HEAD~1 for changes since last push or --new for changes since last commit
cli:lint:ci:
desc: lint as CI does (diff-filtered against origin/main); use --new-from-rev=HEAD~1 to scope to last push or omit for full lint
cmd: golangci-lint run --new-from-rev="$(git merge-base HEAD origin/main)" ./...

cli:lint:fix:
desc: fix lint issues using golangci-lint
Expand Down
Loading