[Python-projects] Request For The Text Reporter To Support MS Visual Studio
Alexandre Fayolle
alexandre.fayolle at logilab.fr
Wed Jan 3 14:45:56 CET 2007
On Wed, Jan 03, 2007 at 07:25:00AM -0600, Meding, Olaf wrote:
> I would be great if support for MS Visual Studio could be added in terms
> of reporting line numbers. Double clicking on a line (reported by
> PyLint) would then cause the editor to display that line.
>
> Currently the output format of PyLint is:
> C:\somepath\somefile.py:12: [C0301] Line too long (116/80)
>
> What is needed is:
> C:\somepath\collect.py(12): [C0301] Line too long (116/80)
>
> I edited the below file for now.
> site-packages\pylint\reporters\text.py
> #self.writeln('%s:%s: [%s%s] %s' % (path, line, sigle, obj, msg))
> self.writeln('%s(%s): [%s%s] %s' % (path, line, sigle, obj, msg))
>
> All that is needed is changing ":n:" to "(n):", where n is the line
> number. Perhaps the option could be called ms-parseable. Many thanks
> for considering making this configurable.
Thanks for the patch. It has been submitted to the tracker at
http://www.logilab.org/3285
>
> Olaf
>
> P.S. I tried to attach a picture showing how to setup the MS Visual
> Studio .NET 2003 editor to call PyLint, however the 37K email was
> rejected by the moderator.
Yes. But the moderator also extracted the picture and added it to the
online documentation of pylint at http://www.logilab.org/3288 ;-)
Happy new year !
--
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
Reprise et maintenance de sites CPS: http://www.migration-cms.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 481 bytes
Desc: Digital signature
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20070103/65aea438/attachment.pgp
More information about the Python-Projects
mailing list