-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Closed
Labels
area: nolintRelated to nolint directive and nolintlintRelated to nolint directive and nolintlintenhancementNew feature or improvementNew feature or improvement
Description
Sometimes the code needs a//nolint suppressor to disable check(s), but as the code evolves the //nolintmay become redundant.
For example such comment may become obsolete when the symbol is actually used:
// MyConst is something special.
// nolint:unused // To be used in subsequent PR.
const MyConst = "my-const"I would like to check that //nolint comment was relevant to at least one linting issue and emit lint error otherwise.
jirfag and AlekSi
Metadata
Metadata
Assignees
Labels
area: nolintRelated to nolint directive and nolintlintRelated to nolint directive and nolintlintenhancementNew feature or improvementNew feature or improvement