tags:

views:

50

answers:

3

I'm using Hudson CI with a Python project. I've installed the Violations plugin and configured it to run the code against pylint. This works, but I only see a list of violations without linking to the source code. Is it possible to setup Violations and pylint to load and highlight the violating source files (something similar to the Cobertura Coverage Reports)?

Better yet, can Violations integrate with pep8.py?

+2  A: 

Well, after some more debugging, I realized that the pylint output file referenced the source code files relative to where pylint was being run, which wasn't the same path that Hudson needed. Basically, Violations needed the paths relative to the Hudson workspace.

copelco
A: 

This is exactly what I'm trying to figure out right now and its driving me nuts... how did you end up getting the code to appear... what path is violations expecting exactly? Can you provide a little bit more explicit information?

nbw
A: 

Better yet, can Violations integrate with pep8.py?

This should probably be a separate question but I'll answer it anyway: I adapted the pylint parser into a pep8 parser for Hudson's Violations plugin. See this ticket for the patch:

http://issues.hudson-ci.org/browse/HUDSON-7728

It has been working fine for me.

hasseg