[Python-projects] pylint: Locally disabling R0801
Alexandre Fayolle
alexandre.fayolle at logilab.fr
Tue Jan 6 13:36:55 CET 2009
Le Tuesday 30 December 2008 16:22:09 Rasener, Dustin M, vous avez écrit :
> I would like to disable this message
> in the same way that I locally disable other messages in pylint. For
> example, if I want to not include a docstring for just one function in a
> file, I would use:
>
> # pylint: disable-msg=C0111
> def function_with_no_docstring(self):
> ...
>
> My main problem is that the "similar lines" checker (R0801 above)
> catches similar import statements in different files. I would like to
> get these messages where they are useful (where there is a possibility
> to refactor copy-and-pasted code), so I don't want to disable it
> completely. However, I cannot seem to accomplish with R0801 what I have
> with other messages. (locally disabling the message for particular lines
> of code.)
I've added this issue to our tracker
(https://www.logilab.net/elo/ticket/6905).
--
Alexandre Fayolle LOGILAB, Paris (France)
Formations Python, Zope, Plone, Debian: http://www.logilab.fr/formations
Développement logiciel sur mesure: http://www.logilab.fr/services
Informatique scientifique: http://www.logilab.fr/science
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: This is a digitally signed message part.
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20090106/a7a4bef0/attachment.pgp
More information about the Python-Projects
mailing list