Skip to content

Conversation

@marquiz
Copy link
Contributor

@marquiz marquiz commented Aug 29, 2025

Disable:

QF1008: could remove embedded field "Generator" from selector

Disable:

  QF1008: could remove embedded field "Generator" from selector

Signed-off-by: Markus Lehtonen <markus.lehtonen@intel.com>
@marquiz
Copy link
Contributor Author

marquiz commented Aug 29, 2025

@klihub @thaJeztah @mikebrow

text: "package-comments:"
- linters:
- staticcheck
text: "QF1008:"
Copy link
Member

Choose a reason for hiding this comment

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

This can use the "settings" section instead of the string matching; see https://github.com/moby/sys/blob/9dc3a90b82699c54554635f76a6a49757e02c523/.golangci.yml#L14

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Guess what, I tried that. But it's not the same, all != default linters. You cannot state something like

  • "defaults"
  • "-QF1008"

So I chose the minimal approach, keep using the defaults (whatever they are) and exclude the one problematic

Copy link
Member

Choose a reason for hiding this comment

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

Ah! Sigh..

Copy link
Member

@thaJeztah thaJeztah left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@klihub klihub merged commit 7004bd9 into containerd:main Sep 1, 2025
16 checks passed
@marquiz marquiz deleted the devel/golangci-false-positives branch September 1, 2025 17:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants