blanket-noqa (PGH004)#
Derived from the pygrep-hooks linter.
What it does#
Check for noqa
annotations that suppress all diagnostics, as opposed to
targeting specific diagnostics.
Why is this bad?#
Suppressing all diagnostics can hide issues in the code.
Blanket noqa
annotations are also more difficult to interpret and
maintain, as the annotation does not clarify which diagnostics are intended
to be suppressed.
Example#
Use instead: