<div dir="ltr">Yes, I0021 is useless-suppression.<div><br></div><div>There's also suppressed-message, to show what kinds of messages have been suppressed. Looking at that every once in a while is interesting as well. Especially for badly understood messages, there is a tendency in developers to just paper over the warnings instead of fixing the underlying issue.</div><div><br></div><div>// Torsten</div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-11-21 18:32 GMT+01:00 Anne Mulhern <span dir="ltr"><<a href="mailto:amulhern@redhat.com" target="_blank">amulhern@redhat.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
----- Original Message -----<br>
> From: "Kay Hayen" <<a href="mailto:kay.hayen@gmail.com">kay.hayen@gmail.com</a>><br>
> To: <a href="mailto:code-quality@python.org">code-quality@python.org</a><br>
> Sent: Wednesday, October 29, 2014 10:00:15 AM<br>
> Subject: [code-quality] How to detect unused PyLint declarations<br>
><br>
><br>
> Hello,<br>
><br>
> I have coding rules that require me to annotate exceptions to rules<br>
> for PyLint, but occasionally it happens that I find PyLint rules disabled<br>
> that would no longer be necessary.<br>
><br>
> Is there a way or script, or anything to detect these automatically? I<br>
> was thinking of writing something that removes PyLint disablers one<br>
> by one, and checks if that doesn't generate PyLint warnings, and<br>
> warn about those. Didn't do it so far, but I feel tempted to do this<br>
> now.<br>
><br>
> However, to PyLint, this might be way more easier to implement, and<br>
> maybe it was done. I cannot find anything in the manpage though.<br>
><br>
> Yours,<br>
> Kay<br>
><br>
</div></div><span class="">> _______________________________________________<br>
> code-quality mailing list<br>
> <a href="mailto:code-quality@python.org">code-quality@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/code-quality" target="_blank">https://mail.python.org/mailman/listinfo/code-quality</a><br>
><br>
<br>
</span>This is something I am interested in as well.<br>
<br>
It looks like the I0021: Useless suppression of %s warning<br>
should report those cases.<br>
<span class="HOEnZb"><font color="#888888"><br>
- mulhern<br>
</font></span><div class="HOEnZb"><div class="h5">_______________________________________________<br>
code-quality mailing list<br>
<a href="mailto:code-quality@python.org">code-quality@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/code-quality" target="_blank">https://mail.python.org/mailman/listinfo/code-quality</a><br>
</div></div></blockquote></div><br></div>