Skip to content

RUF025 is remapped to C420 but now it's also a new rule #15255

Closed
2 of 2 issues completed
Closed
@oprypin

Description

#12533 remapped the rule RUF025 as C420.

#15104 added a different new rule under the code RUF025.

The immediate issue is that even though RUF025 has just appeared in documentation, if you enable it, the rule doesn't actually work, and you just get the following warning:

warning: `RUF025` has been remapped to `C420`.

So I suppose (luckily?) the new rule was not actually added yet because it's impossible to use it, it only appears in docs and in the codebase.

Rule codes that were remapped from are supposed to remain reserved forever, right?

Sub-issues

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions