Yes, I0021 is useless-suppression. 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.
// Torsten 2014-11-21 18:32 GMT+01:00 Anne Mulhern <amulh...@redhat.com>: > > > > > ----- Original Message ----- > > From: "Kay Hayen" <kay.ha...@gmail.com> > > To: code-quality@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@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 > _______________________________________________ > code-quality mailing list > code-quality@python.org > https://mail.python.org/mailman/listinfo/code-quality >
_______________________________________________ code-quality mailing list code-quality@python.org https://mail.python.org/mailman/listinfo/code-quality