Skip to content

[lint-monster] Handle ignored errors and discarded results #71008

Done

Description

@github-actions

Daily custom lint findings

The 2026-10-23 pre-check for make golint-custom reported 762 ignored-result findings across 147 files. This group covers unchecked or discarded errors and discarded return or type-assertion results. Scan run: §39890985293.

Representative diagnostics

  • pkg/workflow/cache_memory.go:44: unchecked error return from fmt.Fprintf.
  • pkg/parser/frontmatter_content.go:260: scanner loop does not check Err() after completion.
  • pkg/cli/edit_command.go:154: explicitly discarded Close() error.
  • pkg/parser/import_schema_validation.go:60: type assertion ok value is discarded.

Top affected paths

  • pkg/workflow/drive_memory.go (74)
  • pkg/workflow/cache_memory.go (60)
  • pkg/workflow/jobs.go (27)
  • pkg/workflow/checkout_step_generator.go (23)
  • pkg/cli/generate_action_metadata_command.go (22)
  • pkg/workflow/mcp_config_custom.go (17)
  • pkg/cli/gateway_logs_timeline_render.go (17)
  • cmd/gh-aw/main.go (16)
  • pkg/workflow/compiler_yaml_step_conversion.go (15)
  • pkg/cli/add_workflow_pr.go (15)
  • pkg/workflow/compiler_yaml_checkout.go (14)
  • pkg/workflow/mcp_renderer.go (12)

Remediation checklist

  • Handle returned errors according to the enclosing function contract and established error-reporting patterns.
  • Check Scanner.Err() after scan loops and handle close failures without masking an earlier error.
  • Inspect discarded results and type assertions; remove or simplify them only when semantics remain correct.
  • Keep edits scoped to this finding group. Run make fmt after Go edits, then validate with make golint-custom.

Recurrence: The tracker for the 2026-10-13 scan, #68290, is closed. The 2026-10-22 scan reported 767 findings; this scan reports 762.

Generated by 🧌 LintMonster · scan run §39890985293

Generated by 🧌 LintMonster · codex · gpt60 · ~3 AIC · ⌖ ~1 AIC · ⊞ 16.6K · ◷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    automationcookielintlint-monster

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions