Skip to content

[lint-monster] [Code Quality] Reduce largefunc findings in cmd/gh-aw and pkg/linters slice #46331

Description

@github-actions

Lint slice: cmd/gh-aw main wiring and pkg/linters helper function-length refactoring

make golint-custom still reports a smaller but distinct non-shared backlog outside pkg/workflow and pkg/cli, concentrated in cmd/gh-aw/main.go and several custom linter implementation files under pkg/linters.

Scope

Focus only on cmd/gh-aw/main.go and pkg/linters/* findings needed to reduce this non-shared backlog.

Representative diagnostics

  • cmd/gh-aw/main.go: init is 440 lines
  • cmd/gh-aw/main.go: additional long func literals in command wiring
  • pkg/linters/bytesbufferstring/bytesbufferstring.go: run is 90 lines
  • pkg/linters/bytescomparestring/bytescomparestring.go: run is 86 lines

Expected outcome

Break up command wiring and linter implementation helpers into smaller focused functions while preserving behavior.

Remediation checklist

  • Keep changes scoped to this lint slice only
  • Prefer minimal helper extraction and cohesive file splits
  • Preserve analyzer behavior, diagnostics, and CLI wiring semantics
  • Validate with make golint-custom

Fused skill guidance

  • Validate fixes by running make golint-custom
  • Keep remediation scoped to findings in the assigned lint group
  • Prefer minimal, targeted code edits

Generated by 🧌 LintMonster · 43.7 AIC · ⌖ 8.58 AIC · ⊞ 4.4K ·

  • expires on Jul 24, 2026, 7:45 PM UTC-08:00

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions