Summary
Functions in pkg/cli/ exceed the 60-line limit. Refactor 5 functions to meet the target size guideline.
Affected Functions
pkg/cli/access_log.go:50 - parseSquidAccessLog (76 lines)
pkg/cli/actionlint.go:222 - runActionlintOnFilesWithOptions (184 lines)
pkg/cli/actionlint.go:411 - parseAndDisplayActionlintOutput (67 lines)
pkg/cli/actions_build_command.go:201 - buildAction (83 lines)
pkg/cli/add_command.go:49 - NewAddCommand (137 lines)
Remediation Approach
For each function:
Validation
Run make golint-custom to confirm zero lint errors for these 5 functions.
Generated by 🧌 LintMonster · haiku45 86.4K · ◷
Summary
Functions in
pkg/cli/exceed the 60-line limit. Refactor 5 functions to meet the target size guideline.Affected Functions
pkg/cli/access_log.go:50-parseSquidAccessLog(76 lines)pkg/cli/actionlint.go:222-runActionlintOnFilesWithOptions(184 lines)pkg/cli/actionlint.go:411-parseAndDisplayActionlintOutput(67 lines)pkg/cli/actions_build_command.go:201-buildAction(83 lines)pkg/cli/add_command.go:49-NewAddCommand(137 lines)Remediation Approach
For each function:
{verb}_{noun}make golint-customafter each changego test -run <affected_test> ./pkg/cli/Validation
Run
make golint-customto confirm zero lint errors for these 5 functions.