Skip to content

[lint-monster] [Lint] Fix pkg/cli function length violations (369 issues) #36051

@github-actions

Description

@github-actions

Summary

The custom linter has identified 369 function length violations in pkg/cli. All violations exceed the 60-line limit.

Affected Subsystems

  • CLI Commands: *_command.go files (compile, run, audit, logs, mcp, deploy commands)
  • Command Handlers: Long command execution logic within individual command packages
  • Configuration Processors: Config parsing and flag handling in command implementations

Remediation Strategy

  • Extract helper functions from command handlers
  • Decompose config parsing into smaller steps
  • Separate concerns: parsing, validation, execution
  • Preserve all public APIs - only refactor internal helpers
  • Run make golint-custom to verify fixes

Validation Checklist

  • Refactor *_command.go implementations
  • Extract CLI config processors
  • Break down command handlers into focused helpers
  • Run make golint-custom and verify 0 violations in pkg/cli
  • Run make test-unit to ensure no regressions
  • Verify help text and flag handling unchanged

Generated by 🧌 LintMonster · haiku45 69.5K ·

  • expires on Jun 7, 2026, 3:50 AM UTC

Metadata

Metadata

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions