Edgewall Software
Modify

Opened 9 years ago

#850 new defect

[Patch] Pylint recipe command is unable to parse output

Reported by: chirila@… Owned by:
Priority: major Milestone:
Component: Recipe commands Version: dev
Keywords: Cc:
Operating System:

Description

It looks like the pylint recipe command is not able to correctly parse the default "parseable" output of pylint.

From the tests I can see it expects something like:

module/file1.py:42: [C] Missing docstring

But the format is actually:

(env)chirila@chirila-notebook:~/pywork/bitten$ pylint -f parseable bitten/build/pythontools.py | grep "Missing" | head
No config file found, using default configuration
bitten/build/pythontools.py:210: [C0111(missing-docstring), coverage.handle_file] Missing function docstring
bitten/build/pythontools.py:306: [C0111(missing-docstring), trace.handle_file] Missing function docstring
bitten/build/pythontools.py:456: [C0111(missing-docstring), _normalize_filenames] Missing function docstring

Other notes

  • Pylint version:
    (env)chirila@chirila-notebook:~/pywork/bitten$ pylint --version
    No config file found, using default configuration
    pylint 1.4.4, 
    astroid 1.3.8, common 1.1.0
    Python 2.7.9 (default, Apr  2 2015, 15:33:21) 
    [GCC 4.9.2]
    

Patch

  • Fix for issue available here
  • Updates tests patch available here
    (env)chirila@chirila-notebook:~/pywork/bitten$ env PYTHONPATH=. python bitten/build/tests/pythontools.py PyLintTestCase
    ...
    ----------------------------------------------------------------------
    Ran 3 tests in 0.009s
    
    OK
    

Attachments (0)

Change History (0)

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.