[code-quality] How to detect unused PyLint declarations

Kay Hayen kay.hayen at gmail.com
Wed Oct 29 15:00:15 CET 2014


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/code-quality/attachments/20141029/97f03cbd/attachment.html>


More information about the code-quality mailing list