Overview
Custom linter has identified ~776 function-length violations in pkg/cli production code. These functions exceed the 60-line limit and need to be decomposed into smaller, maintainable units.
Representative Violations
- logs_report_test.go / logs command: Multiple functions >100 lines
- audit_test.go / audit command: Several validation functions >80 lines
- fix_command_test.go / fix command: Long processing functions
- copilot_setup_test.go / setup command: Complex setup logic
Expected Approach
- Analyze function purpose: Identify what each function does and where it can be split
- Extract validation helpers: Move input validation into focused functions
- Extract processing logic: Move core logic into separate steps
- Maintain CLI interface: Keep command structure intact
- Validation: Run
make golint-custom to confirm all cli violations are resolved
Acceptance Criteria
Generated by 🧌 LintMonster · haiku45 65.2K · ◷
Overview
Custom linter has identified ~776 function-length violations in pkg/cli production code. These functions exceed the 60-line limit and need to be decomposed into smaller, maintainable units.
Representative Violations
Expected Approach
make golint-customto confirm all cli violations are resolvedAcceptance Criteria
make golint-customreports zero pkg/cli violationsmake test-unitpasses