Skip to content

Comments

Fix CI failures: gofmt, gosec G204, and unparam warnings#1790

Merged
steveyegge merged 1 commit intosteveyegge:mainfrom
sjsyrek:fix/ci-lint-failures
Feb 16, 2026
Merged

Fix CI failures: gofmt, gosec G204, and unparam warnings#1790
steveyegge merged 1 commit intosteveyegge:mainfrom
sjsyrek:fix/ci-lint-failures

Conversation

@sjsyrek
Copy link
Contributor

@sjsyrek sjsyrek commented Feb 16, 2026

Summary

CI on main is failing with formatting violations, a gosec G204 warning, and an unparam warning. This PR fixes all three to unblock PRs.

Changes Made

  • Run gofmt on all files — fixes trailing whitespace, extra blank lines, and comment alignment across 24 files
  • Add cmd/bd/stubs.go to G204 exclusion in .golangci.yml — the exec.Command args come from internal logic, not user input, matching the existing pattern for 12+ other files
  • Remove unused error return from performContentMerge() — the function always returned nil since errors from extractJSONLFromCommit are intentionally swallowed (falls back to empty content). Updated 2 call sites and 2 test call sites.

Backward Compatibility

Maintained: No behavioral changes — formatting only + removing dead error path
Same behavior: performContentMerge already never returned an error

Size: Small ✓

Mechanical formatting + two targeted lint fixes.

🤖 Generated with Claude Code

Add cmd/bd/stubs.go to the G204 exclusion list since its exec.Command
args come from internal logic, not user input. Remove the unused error
return from performContentMerge — it always returns nil since errors
from extractJSONLFromCommit are intentionally swallowed (falls back to
empty content).

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@sjsyrek sjsyrek force-pushed the fix/ci-lint-failures branch from ab9edf3 to bb3fef9 Compare February 16, 2026 10:10
@steveyegge steveyegge merged commit f581cf9 into steveyegge:main Feb 16, 2026
7 of 8 checks passed
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.

2 participants