Skip to content

[lint-monster] LintMonster: parameter-count options-struct follow-ups (2 findings) #52815

Description

@github-actions

Summary

Daily make golint-custom found 2 custom-linter findings for functions with too many parameters. Grouped by shared root cause: signatures exceeding the configured parameter limit and needing an options-struct refactor.

Findings

  • pkg/workflow/safe_update_enforcement.go: EnforceSafeUpdate has 9 parameters (limit: 8)
  • pkg/cli/add_package_manifest.go: resolveRepositoryPackageExtensionFiles has 9 parameters (limit: 8)

Expected outcome

Refactor these call paths so each flagged function no longer exceeds the parameter-count limit while preserving behavior and keeping edits minimal.

Remediation checklist

  • Keep remediation scoped to the two findings above only
  • Prefer minimal, targeted code edits; introduce an options struct only where it simplifies the signature cleanly
  • Update call sites and related tests as needed without widening scope
  • Validate the final result with make golint-custom

Copilot execution guidance

Use skill-fused constraints for this lint group:

  1. Work only on the parameter-count findings in the files listed above.
  2. Prefer a small options struct or equivalent targeted reshaping over broader API redesign.
  3. Preserve existing behavior and keep public surface changes to the minimum necessary.
  4. Run make golint-custom before finishing and ensure this group's findings are resolved.

Generated by 🧌 LintMonster · gpt54 · 21.5 AIC · ⌖ 4.28 AIC · ⊞ 5.7K ·

  • expires on Aug 21, 2026, 6:50 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