[code-quality] Adding new warnings?

Marius Gedminas marius at gedmin.as
Sun Jul 7 00:43:02 CEST 2013


On Fri, Jul 05, 2013 at 09:49:27PM -0500, Skip Montanaro wrote:
> Is there some magic to adding new messages to pylint?  I've defined my
> new warning in checkers/classes.py by adding a new key/value pair to
> the MSGS dict:
> 
> MSGS = {
>     ...
>     'W0234': ('instance attribute %r is not used within the class',
>               'defined-attribute-not-accessed',
>               'Used when an attribute defined by the class is not accessed \
>               by the class itself.'),
> 
>     }
> 
>  but when I try to disable my new warning (W0324) with something like
> "# pylint: disable=C0302,W0324", it complains:
> 
>   E:  1: Bad option value 'W0324'

So is it 2-3-4, or 3-2-4?

Marius Gedminas
-- 
A: No.
Q: Should I include quotations after my reply?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: Digital signature
URL: <http://mail.python.org/pipermail/code-quality/attachments/20130707/2ec9ea0e/attachment.pgp>


More information about the code-quality mailing list