Skip to content

fix: resolve linting errors in test files#8672

Merged
mnkiefer merged 2 commits intoupdate-campaign-logicfrom
copilot/sub-pr-8670
Jan 2, 2026
Merged

fix: resolve linting errors in test files#8672
mnkiefer merged 2 commits intoupdate-campaign-logicfrom
copilot/sub-pr-8670

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 2, 2026

The codebase had linting errors from using assert.NoError instead of require.NoError for error assertions in test setup code, plus minor formatting inconsistencies.

Changes

  • Test assertions: Changed assert.NoError to require.NoError in pkg/cli/interfaces_test.go for shell completion generation tests. Using require is correct here since these are setup operations where continuation after failure is meaningless.

  • Formatting cleanup: Removed unused context imports, aligned struct field whitespace, removed extraneous blank lines.

// Before (fails testifylint rule)
err := provider.GenBashCompletion(&buf)
assert.NoError(t, err, "GenBashCompletion should not error")

// After
err := provider.GenBashCompletion(&buf)
require.NoError(t, err, "GenBashCompletion should not error")

✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

- Changed assert.NoError to require.NoError in interfaces_test.go
- Removed unused imports in test files
- Fixed whitespace alignment in multiple test files
- Removed extra blank line in status_command.go

Co-authored-by: mnkiefer <8320933+mnkiefer@users.noreply.github.com>
Copilot AI changed the title [WIP] Update campaign management with new validation and documentation fix: resolve linting errors in test files Jan 2, 2026
Copilot AI requested a review from mnkiefer January 2, 2026 20:14
@mnkiefer mnkiefer marked this pull request as ready for review January 2, 2026 20:15
@mnkiefer mnkiefer merged commit 94e97c5 into update-campaign-logic Jan 2, 2026
@mnkiefer mnkiefer deleted the copilot/sub-pr-8670 branch January 2, 2026 20:15
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