Skip to content

[linter-miner] Add blank-assigned cleanup error linter #75458

Done

Description

@github-actions

Tip

Your pull request is ready to create! 🎉 ✅

Everything is OK—the changes have been pushed to a branch. Please review the protected files, then create the pull request when you are ready.

Create the pull request

The original pull request description is below.


Summary

  • Adds blankassignedcleanuperror, registered through the shared linters.All() registry.
  • Reports discarded errors from os.RemoveAll, os.Remove, os.WriteFile, and os.MkdirAll when assigned to _.
  • Skips deferred cleanup closures, generated files, and Close calls already covered by closeerrorunchecked.
  • Adds analysistest fixtures, metadata checks, documentation, and registry synchronization.

Evidence

The code-pattern scan found recurring discarded filesystem errors in pkg/cli/logs_download_artifacts.go at lines 161, 173, and 249. The 14-day discussion and issue miner returned no candidates because discussion bodies were unavailable. Steering issue #75457 had no comments containing steer.

Validation

  • go test ./pkg/linters/blank-assigned-cleanup-error/... ./pkg/linters/... passed.
  • go vet ./pkg/linters/blank-assigned-cleanup-error ./pkg/linters passed.
  • go build ./cmd/linters passed.
  • go run ./cmd/linters ./pkg/linters/blank-assigned-cleanup-error passed.
Validation notes

make agent-report-progress passed impacted tests, schema freshness, and custom linters; its Go lint phase was blocked because golangci-lint is not installed and the prescribed download was rejected by the runner TLS guard. make fmt formatted Go successfully; its JavaScript formatting phase failed in the existing tool setup.

References:


Note

Protected files

This patch modifies protected files, which may affect project dependencies, CI/CD pipelines, or agent behaviour.

Protected files
  • README.md

To route changes like this to a review issue instead of blocking, configure protected-files: fallback-to-issue in your workflow configuration.

Allow intentional protected-file changes

If this workflow is intended to modify these files, add specific filenames or folder prefixes to safe-outputs.create-pull-request.protected-files.exclude in the workflow Markdown frontmatter. For example, to allow .changeset/*, exclude the folder using .changeset/:

safe-outputs:
  create-pull-request:
    protected-files:
      policy: fallback-to-issue
      exclude:
        - .changeset/

Keep your existing policy and exclusions. Folder exclusions use path prefixes, not glob patterns, and allow all files beneath that folder, including subfolders. Other protected files still follow the configured policy. If allowed-files is configured, these paths must also match it. Run gh aw compile after updating the workflow.

  • expires on Nov 13, 2026, 9:45 AM UTC-08:00

Generated by Linter Miner · copilot · routed: gpt56 max · ~48 AIC · ⌖ ~2 AIC · ⊞ 3.7K · ◷

Activity

  1. github-actions commented on Nov 8, 2026

    @github-actions
    ContributorAuthor

    🍪 Issue Monster selected this for Copilot

    I've identified this issue as a good candidate for automated resolution and requested assignment to the Copilot coding agent.

    If assignment succeeds, Copilot will analyze the issue and create a pull request with the fix.

    Om nom nom! 🍪

    🍪 Om nom nom by Issue Monster · pi · gpt50 · ~1 AIC · ⌖ ~1 AIC · ⊞ 12.3K · ◷

  2. linked a pull request that will close this issueAdd blank-assigned cleanup error linter #75922on Nov 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions