Skip to content

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

Done

Description

@github-actions

Summary

The 2026-10-20 make golint-custom pre-check in §39360123187 reported 865 unchecked or ignored error/result findings across 156 Go files. Findings include unchecked writer results, deferred close errors, scanner errors, discarded results, and ignored type-assertion status.

Largest affected paths

  • pkg/workflow/drive_memory.go (74)
  • pkg/workflow/cache_memory.go (60)
  • pkg/workflow/compiler_yaml_step_lifecycle.go (38)
  • 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)
  • 144 other affected paths are represented in this run.

Representative diagnostics:

  • pkg/workflow/drive_memory.go:29:3: fmt.Fprintf error return is not checked.
  • pkg/parser/frontmatter_content.go:260:2: scanner loop does not check Err() after completion.
  • pkg/cli/edit_command.go:154:7: Close() error is explicitly discarded.

Remediation checklist

  • Address only unchecked errors and discarded results in this category; keep edits minimal and preserve existing behavior.
  • Handle errors according to each function contract. Check scanner errors after loops, report cleanup errors without hiding a primary error, and inspect type-assertion status where failure is possible.
  • Run make fmt after Go edits and make golint-custom; confirm this category has no remaining findings in the new output.

References

Generated by 🧌 LintMonster · codex · gpt60 · 3.23 AIC · ⌖ 0.326 AIC · ⊞ 16.4K · ◷

Generated by 🧌 LintMonster · codex · gpt60 · 2.37 AIC · ⌖ 0.331 AIC · ⊞ 16.5K · ◷

Activity

  1. added
    cookie
    on Oct 17, 2026
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

    automationcookielint

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions