Skip to content

Feature request: allow //nolint only on certain linters #889

Closed
@benjaminjkraft

Description

@benjaminjkraft

We'd like to be able to say, in our configuration: you may //nolint these linters, but not those. Currently, there's no way to do this, as far as I know.

A few examples of why this could be useful:

Ideally, one could enable this behavior for arbitrary files, regexp-matches, etc., just like excludes, but simply opting in/out on a per-linter basis is probably good enough for us.

Metadata

Metadata

Assignees

Labels

area: nolintRelated to nolint directive and nolintlintenhancementNew feature or improvement

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions