Skip to content

Run golangci-lint v2 in CI to match local lint - #27

Merged
aaronbrethorst merged 1 commit into
mainfrom
golangci-lint-v2
Oct 18, 2026
Merged

aaronbrethorst merged 1 commit into
mainfrom
golangci-lint-v2

Conversation

@aaronbrethorst

Copy link
Copy Markdown
Member

Summary

  • CI's lint job used golangci/golangci-lint-action@v6 with version: latest. Action v6 only supports golangci-lint v1, so CI installed v1.64.8. Local make lint runs v2, which turns on more staticcheck checks by default (e.g. QF1012). As a result, CI passed code that failed make lint locally.
  • Moves CI to action v9 and pins golangci-lint v2.12.2, so CI matches local and doesn't silently change when a new release comes out. Adds a minimal .golangci.yml (version: "2") to declare the config format. Default linters are unchanged.

Test plan

golangci-lint-action@v6 only installs golangci-lint v1, so 'latest'
resolved to v1.64.8 while local 'make lint' runs v2, which enables more
staticcheck checks by default. CI passed code that failed locally.
Move to action v9, pin v2.12.2, and declare the v2 config format.
@coderabbitai

coderabbitai Bot commented Oct 18, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 17 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Configuration used: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: db051d6e-9101-4d70-b212-04b24fc1c7b4
📥 Commits

Reviewing files that changed from the base of the PR and between 3440bcc and 41e3a66.

📒 Files selected for processing: 2
  • .github/workflows/ci.yml
  • .golangci.yml
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@aaronbrethorst
aaronbrethorst merged commit 4719061 into main Oct 18, 2026
5 checks passed
@aaronbrethorst
aaronbrethorst deleted the golangci-lint-v2 branch October 18, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant