Skip to content

[lint-monster] lint-monster: trim toImportsResult in import_field_extractor #50981

Description

@github-actions

Summary

Daily make golint-custom found a targeted parser large-function finding in pkg/parser/import_field_extractor.go outside the shared pkg/workflow/pkg/cli function-length tracker.

Diagnostic

  • pkg/parser/import_field_extractor.go:899: toImportsResult is 61 lines long (limit: 60); consider breaking it up

Expected outcome

Refactor toImportsResult just enough to satisfy the custom linter while preserving parser behavior.

Remediation checklist

  • Keep remediation scoped to pkg/parser/import_field_extractor.go
  • Prefer minimal, targeted helper extraction instead of broad parser changes
  • Preserve parser behavior and existing tests
  • Validate with make golint-custom

Generated by 🧌 LintMonster · gpt54 · 20 AIC · ⌖ 6.27 AIC · ⊞ 5.5K ·

  • expires on Aug 13, 2026, 7:34 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