Skip to content

ci(lint): pin golangci-lint and fix issues from v2.15.0 - #91

Merged
adrianbrad merged 1 commit into
mainfrom
chore/pin-golangci-lint
Oct 23, 2026
Merged

adrianbrad merged 1 commit into
mainfrom
chore/pin-golangci-lint

Conversation

@adrianbrad

@adrianbrad adrianbrad commented Oct 23, 2026 •

Copy link
Copy Markdown
Owner

Lint has been red on main since late August because the workflow installs golangci-lint latest, and newer releases added checks the code didn't pass. Every open PR inherits that failure, including #90. This pins v2.15.0 and fixes what it flags. It disables revive's new marshal-receiver rule instead of following it, because every queue holds a sync mutex and a value receiver on MarshalJSON would copy the lock. It also removes redundant parentheses in priority.go that gofumpt now rejects, and replaces the deprecated gofumpt extra-rules setting. The trade-off of pinning is that golangci-lint upgrades become a manual version bump, since Dependabot doesn't update the action's version input.

Ran golangci-lint v2.15.0 locally (0 issues, no warnings) and make test-coverage (pass, 100%).

The workflow installed golangci-lint `latest`, so new releases started
failing main without any code change (since ~2026-08-31), and every
open PR inherited the red Lint check.

- Pin golangci-lint to v2.15.0.
- Disable revive's new marshal-receiver rule: every queue holds a sync
  mutex, so a value receiver on MarshalJSON would copy the lock.
- Remove redundant parentheses in priority.go flagged by newer gofumpt.
- Replace the deprecated gofumpt extra-rules setting with
  extra.group-params and extra.clothe-returns.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@codecov

codecov Bot commented Oct 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (9f04dbf) to head (374d97c).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main       #91   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            6         6           
  Lines          639       550   -89     
=========================================
- Hits           639       550   -89     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@adrianbrad
adrianbrad merged commit ab5bf8f into main Oct 23, 2026
10 checks passed
@adrianbrad
adrianbrad deleted the chore/pin-golangci-lint branch October 23, 2026 17:05
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