Skip to content

[lint-monster] Small non-workflow largefunc cleanup (2026-07-01) #42619

Description

@github-actions

Summary

Daily custom lint scan found 3 non-shared largefunc findings outside the consolidated pkg/workflow + pkg/cli backlog. These are small, targeted refactors suitable for one cleanup slice.

Findings

  • pkg/console/console.go:190: RenderTable is 67 lines long (limit: 60)
  • pkg/github/label_objective_mapping.go:36: ComputeObjectiveValue is 67 lines long (limit: 60)
  • pkg/parser/schema_suggestions.go:649: findFieldLocationsInSchema is 72 lines long (limit: 60)

Expected outcome

Refactor the listed functions below the 60-line threshold without changing behavior or widening scope.

Remediation checklist

  • Keep remediation scoped to these three findings only
  • Prefer minimal helper extraction or small focused files
  • Avoid unrelated cleanup in surrounding packages
  • Run make golint-custom after the edits
  • Keep the implementation behaviorally equivalent

Fused guidance for Copilot

  • Prefer many small focused files/functions over large monolithic ones
  • Use minimal, targeted code edits
  • Validate the finished slice with make golint-custom
  • Do not broaden the change beyond this lint group

Generated by 🧌 LintMonster · 38 AIC · ⌖ 15.1 AIC · ⊞ 4.4K ·

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

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