ci(tests): migrate to golangci-lint v2#6380
Conversation
Signed-off-by: Dwi Siswanto <git@dw1.io>
Signed-off-by: Dwi Siswanto <git@dw1.io>
WalkthroughMinor code style updates: adjust error discard in Browser.Close to use blank identifier and remove explicit type on transport variable in Linear tracker to use inferred type. No changes to control flow, exported APIs, or functionality. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Assessment against linked issues
Poem
✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. CodeRabbit Commands (Invoked using PR/Issue comments)Type Other keywords and placeholders
CodeRabbit Configuration File (
|
There was a problem hiding this comment.
Actionable comments posted: 0
🧹 Nitpick comments (2)
pkg/reporting/trackers/linear/linear.go (1)
57-57: Prefer short variable declaration (idiomatic Go).No functional change, but
:=is more idiomatic for local vars and keeps the intent crisp.- var transport = http.DefaultTransport + transport := http.DefaultTransportpkg/protocols/headless/engine/engine.go (1)
150-150: Handle cleanup error explicitly (even if you decide to ignore).Assigning to the blank identifier obscures intent. Use an explicit short
ifto make the “best-effort cleanup” clear. This satisfies linters while keeping readability.- _ = os.RemoveAll(b.tempDir) + if err := os.RemoveAll(b.tempDir); err != nil { + // best-effort cleanup; safe to ignore + }Alternatively, if you truly want to keep it silent and your linter config requires, add a
//nolint:errcheckwith a short rationale.
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
.github/workflows/tests.yamlis excluded by!**/*.yaml
📒 Files selected for processing (2)
pkg/protocols/headless/engine/engine.go(1 hunks)pkg/reporting/trackers/linear/linear.go(1 hunks)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Lint
|
test fails |
unrelated. |
Proposed changes
Closes #6325
Checklist
Summary by CodeRabbit
Refactor
Style
Chores
No user-visible changes in this release.