Skip to content

[lint-monster] Targeted custom-lint cleanup (2026-07-07) #43923

Description

@github-actions

Summary

Custom lint scan found 9 focused non-function-length findings suited for a small cleanup pass.

This group intentionally excludes the shared function-length backlog and the process-environment coupling backlog.

Included root causes

  • unnecessary []byte(...) conversion in append calls
  • context propagation (context.Background() instead of the provided context.Context)
  • error wrapping (%v vs %w)
  • parameter-count cleanup (9 params → options struct or equivalent)

Affected paths

  • pkg/workflow/action_cache.go
  • pkg/cli/logs_rate_limit.go
  • pkg/workflow/compiler_orchestrator_frontmatter.go
  • pkg/parser/remote_fetch.go

Representative diagnostics

  • pkg/workflow/action_cache.go:275: unnecessary []byte conversion in append
  • pkg/cli/logs_rate_limit.go:81: use the passed context.Context instead of context.Background()
  • pkg/workflow/compiler_orchestrator_frontmatter.go:88: use %w to preserve the error chain
  • pkg/parser/remote_fetch.go:826: resolveRemoteSymlinkComponent has 9 parameters

Expected outcome

Clear these low-risk findings with targeted edits and no behavior change.

Remediation checklist

  • Keep changes scoped only to this lint group.
  • Prefer minimal, targeted edits.
  • For the parameter-count finding, prefer a small options/config struct rather than wider redesign.
  • Preserve behavior and tests.
  • Validate with make golint-custom.

Fused guidance: keep remediation scoped to the assigned lint group, prefer minimal targeted edits, and validate with make golint-custom.

Generated by 🧌 LintMonster · 39.2 AIC · ⌖ 6.94 AIC · ⊞ 4.4K ·

  • expires on Jul 13, 2026, 7:51 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

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions