Fix golangci-lint errcheck violations - v2.6.14#41
Conversation
Resolved 6 errcheck violations by adding explicit error ignoring for csvLogger.WriteHeader() and csvLogger.WriteRow() calls. Changes: - cmd/smtptool/teststarttls.go: Fixed 7 unchecked calls (lines 27, 41, 60, 75, 88, 115, 172) - cmd/jmaptool/testconnect.go: Fixed 3 unchecked calls (lines 22, 34, 63) - cmd/jmaptool/getmailboxes.go: Fixed 4 unchecked calls (lines 21, 33, 49, 71) - cmd/jmaptool/testauth.go: Fixed 3 unchecked calls (lines 21, 39, 85) - Added ChangeLog/2.6.14.md Total: 17 lines changed across 4 Go source files This uses the explicit error ignoring pattern (_ =) which aligns with the established pattern in 9 existing files (POP3/IMAP tools). Future work: Consider standardizing all 14 csvLogger files to use proper error handling with logging (like cmd/smtptool/testconnect.go). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Pull Request Review: Fix golangci-lint errcheck violations - v2.6.14OverviewThis PR addresses golangci-lint ✅ Positive Aspects
|
Summary
This PR fixes all golangci-lint
errcheckviolations to ensure clean CI/CD builds.Changes
Code Quality Fixes
Resolved 6
errcheckviolations by adding explicit error ignoring for csvLogger calls:Total: 17 lines changed across 4 Go source files
Documentation
ChangeLog/2.6.14.mddocumenting all changesApproach
Used explicit error ignoring pattern (
_ = csvLogger.Write...()) which:Impact
Testing
After merge, GitHub Actions will:
Future Work
Consider creating a follow-up task to standardize all 14 csvLogger files to use proper error handling with logging (like
cmd/smtptool/testconnect.go), rather than explicit error ignoring.🤖 Generated with Claude Code