redirected-noqa (RUF101)#
Fix is always available.
This rule is unstable and in preview. The --preview
flag is required for use.
What it does#
Checks for noqa
directives that use redirected rule codes.
Why is this bad?#
When a rule code has been redirected, the implication is that the rule has been deprecated in favor of another rule or code. To keep the codebase consistent and up-to-date, prefer the canonical rule code over the deprecated code.
Example#
Use instead: