On 30 août 15:04, Martin Pool wrote: > (I apologize in advance if this is a faq, but I have searched and > didn't find it.)
no worry, this is not, and wouldn't be a problem even if it was ;) > Some people on my work project have complained that pylint > suppressions are hard in code review, because they don't remember the > meaning of all of the numbers. > > It seems to me that it would be nice if it was possible to use short > symbolic names instead, similar to gcc warnings, like Wunused-imports > or Wunreachable. > > Obviously there would still be times when you want a comment or > discussion of _why_ the warning is suppressed or whether there is a > better alternative, but sometimes just knowing the meaning would be > enough. > > If I sent a patch that added names alongside the numbers, would that > be accepted? Specifically I propose either would be accepted in > suppression comments, and there would be an option to choose between > them in the output. The default could remain the same. This is imo a good idea and a patch allowing to swich to such output using a command line option would be welcome. Cheers, -- Sylvain Thénault, LOGILAB, Paris (01.45.32.03.12) - Toulouse (09.54.03.55.76) Formations Python, Debian, Méth. Agiles: http://www.logilab.fr/formations Développement logiciel sur mesure: http://www.logilab.fr/services CubicWeb, the semantic web framework: http://www.cubicweb.org _______________________________________________ Python-Projects mailing list Python-Projects@lists.logilab.org http://lists.logilab.org/mailman/listinfo/python-projects