[Python-projects] Request For The Text Reporter To Support MS Visual Studio

Meding, Olaf Olaf.Meding at bruker-axs.com
Wed Jan 3 14:25:00 CET 2007


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.

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.


More information about the Python-Projects mailing list