Skip to content

Resolve overlap between RUF100 and RUF102 #23456

@amyreese

Description

@amyreese

When both rules are selected, any #noqa with unknown/invalid rule codes will be flagged by both RUF100 and RUF102. The RUF100 diagnostic will treat the code as "unknown", while RUF102 will call it "invalid".

We could either:

  • drop the "unknown" codes section from RUF100 entirely and leave that for RUF102
  • hide the "unknown" codes section of RUF100 iff the RUF102 rule is enabled

I'm in favor of the first, as it simplifies the code and is easier to "explain" IMO.

Metadata

Metadata

Assignees

Labels

suppressionRelated to supression of violations e.g. noqa

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions