Skip to content

[lint-monster] parser function-length cleanup for remote_list_files #44176

Description

@github-actions

Summary
Custom lint scan found 1 non-shared function-length finding in pkg/parser/remote_list_files.go.

Root cause
getOrCreateListRepoClone in the parser package exceeds the custom largefunc limit and should be split into smaller helpers.

Affected diagnostic

  • pkg/parser/remote_list_files.go:36: getOrCreateListRepoClone is 69 lines long (limit: 60)

Expected outcome
Refactor only this parser function into smaller, focused helpers while preserving behavior.

Remediation checklist

  • Keep remediation scoped only to pkg/parser/remote_list_files.go.
  • Prefer minimal helper extraction over broader parser redesign.
  • Preserve behavior and update tests only if needed.
  • Validate with make golint-custom.

Fused guidance for the assignee

  • Keep the fix narrowly scoped to this lint group.
  • Prefer minimal, targeted code edits.
  • Validate with make golint-custom before handoff.

Generated by 🧌 LintMonster · 35 AIC · ⌖ 6.82 AIC · ⊞ 4.4K ·

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

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions