Skip to content

Conversation

@wit765
Copy link
Contributor

@wit765 wit765 commented Nov 10, 2025

Fix invalid directive syntax for golangci-lint nolint

Invalid syntax:

// nolint
// nolint:xxx
//nolint :xxx
//nolint: xxx

Valid syntax:

//nolint:xxx

Copy link
Member

Choose a reason for hiding this comment

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

golangci-lint does say this syntax is invalid, https://golangci-lint.run/docs/linters/false-positives/#syntax

but i am curious why it's effective? This function is not used but linter doesn't report it.

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.

2 participants