Skip to content

pkg: remove unused nolint annotations - #13391

Merged
samuelkarp merged 1 commit into
containerd:mainfrom
kolyshkin:nolint-varcheck
May 13, 2026
Merged

samuelkarp merged 1 commit into
containerd:mainfrom
kolyshkin:nolint-varcheck

Conversation

@kolyshkin

Copy link
Copy Markdown
Contributor

Commit f9c80be removed varcheck linter, but some nolint:varcheck annotations
are still there, resulting in golangci-lint warning:

WARN [runner/nolint_filter] Found unknown linters in //nolint directives: varcheck

Remove those.

Commit f9c80be removed varcheck linter, but some nolint:varcheck
annotations are still there, resulting in golangci-lint warning:

> WARN [runner/nolint_filter] Found unknown linters in //nolint directives: varcheck

Signed-off-by: Kir Kolyshkin <[email protected]>
Copilot AI review requested due to automatic review settings May 12, 2026 18:54
@github-project-automation github-project-automation Bot moved this to Needs Triage in Pull Request Review May 12, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR removes stale //nolint:...varcheck directives left behind after the varcheck linter was removed, eliminating golangci-lint’s “unknown linter” warnings from these files.

Changes:

  • Removed varcheck from //nolint directives in pkg/progress/escape.go.
  • Removed varcheck from //nolint directives in pkg/oci/utils_unix.go.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
pkg/progress/escape.go Drops obsolete varcheck from the red constant’s nolint directive to avoid unknown-linter warnings.
pkg/oci/utils_unix.go Drops obsolete varcheck from the wildcardDevice constant’s nolint directive to avoid unknown-linter warnings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@thaJeztah thaJeztah left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

not sure why I left them 🙈

@github-project-automation github-project-automation Bot moved this from Needs Triage to Review In Progress in Pull Request Review May 12, 2026
@samuelkarp
samuelkarp enabled auto-merge May 12, 2026 22:44
@samuelkarp
samuelkarp added this pull request to the merge queue May 12, 2026
Merged via the queue into containerd:main with commit ac8223e May 13, 2026
96 of 100 checks passed
@github-project-automation github-project-automation Bot moved this from Review In Progress to Done in Pull Request Review May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

6 participants