[code-quality] How to detect unused PyLint declarations
Anne Mulhern
amulhern at redhat.com
Fri Nov 21 18:32:02 CET 2014
----- Original Message -----
> From: "Kay Hayen" <kay.hayen at gmail.com>
> To: code-quality at python.org
> Sent: Wednesday, October 29, 2014 10:00:15 AM
> Subject: [code-quality] How to detect unused PyLint declarations
>
>
> Hello,
>
> I have coding rules that require me to annotate exceptions to rules
> for PyLint, but occasionally it happens that I find PyLint rules disabled
> that would no longer be necessary.
>
> Is there a way or script, or anything to detect these automatically? I
> was thinking of writing something that removes PyLint disablers one
> by one, and checks if that doesn't generate PyLint warnings, and
> warn about those. Didn't do it so far, but I feel tempted to do this
> now.
>
> However, to PyLint, this might be way more easier to implement, and
> maybe it was done. I cannot find anything in the manpage though.
>
> Yours,
> Kay
>
> _______________________________________________
> code-quality mailing list
> code-quality at python.org
> https://mail.python.org/mailman/listinfo/code-quality
>
This is something I am interested in as well.
It looks like the I0021: Useless suppression of %s warning
should report those cases.
- mulhern
More information about the code-quality
mailing list