You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[lint-monster] Handle ignored errors and discarded results #71533
The scan reported 763 ignored-error or discarded-result findings across 148 files. This includes unchecked output errors, discarded Close() and WalkDir errors, scanner loops without a final Err() check, discarded type-assertion results, and assignments that discard all returned values.
Affected paths with the most findings:pkg/workflow/drive_memory.go (74), pkg/workflow/cache_memory.go (60), pkg/workflow/jobs.go (27), pkg/cli/generate_action_metadata_command.go (22), pkg/workflow/checkout_step_generator.go (22), pkg/cli/gateway_logs_timeline_render.go (17), pkg/workflow/mcp_config_custom.go (17), cmd/gh-aw/main.go (16), pkg/cli/add_workflow_pr.go (15), and pkg/workflow/compiler_yaml_step_conversion.go (15), plus 138 other files.
Representative diagnostics:pkg/console/spinner.go:208 discards both results; pkg/parser/include_expander.go:174 does not check Scanner.Err(); pkg/cli/shellcheck.go:260 discards a Close() error; pkg/console/banner.go:34 does not check the error from fmt.Fprintln.
Remediation checklist
Run make golint-custom and address only ignored errors and discarded results in this category.
Propagate or handle errors in a way that fits existing caller and cleanup semantics; check scanner errors after loops and retain any result that affects behavior.
Keep edits minimal, preserve behavior, and do not silence diagnostics or refactor unrelated code. Add focused tests where error handling changes observable behavior.
Run make golint-custom again and confirm this category is clean; report any finding that cannot be safely fixed with a short reason.
Activity