Skip to content

[lint-monster] [LintMonster] Error, result, and state hygiene findings (1,149) #65997

Description

@github-actions

Findings

The daily custom-linter scan reports 1,149 error, discarded-result, and state/path hygiene findings across pkg/console, pkg/parser, pkg/cli, and pkg/workflow:

  • 923 unchecked or discarded errors, including formatter writes, Scanner.Err(), and Close() results.
  • 163 discarded assignment or type-assertion results.
  • 46 manual slash-based path concatenations.
  • 7 strings.Builder reuse findings where Reset() is missing.
  • 10 shared package-state mutation or set-allocation findings.

Remediation

  • Work only on diagnostics in this group and keep code changes minimal and targeted.
  • Handle write, scanner, and cleanup errors in the local context; preserve useful error information.
  • Remove assignments that discard every result, and use single-value type assertions only where their semantics are correct.
  • Reset builders between independent outputs, use filepath.Join or path.Join for path construction as appropriate, and avoid unsafe mutation of shared package-level maps or slices.
  • Address the set-allocation findings where the map is used only as a set.
  • Do not suppress diagnostics or refactor unrelated code. Run make golint-custom to validate the fixes.

Scan reference

Run §37405645603.

Generated by 🧌 LintMonster · codex · gpt60 · 167.6 AIC · ⌖ 29.1 AIC · ⊞ 15.5K · ◷

  • expires on Oct 12, 2026, 6:53 PM UTC-08:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions