问题描述
我正在将Hudson CI与Python项目结合使用.我已经安装了Violations插件,并将其配置为针对pylint运行代码.这可行,但是我只看到违规列表,而没有链接到源代码.是否可以设置违规"和"pylint"以加载并突出显示违规的源文件(类似于Cobertura Coverage报告)?
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)?
更好的是,违规行为可以与pep8.py集成吗?
Better yet, can Violations integrate with pep8.py?
推荐答案
好吧,在进行了一些调试之后,我意识到pylint输出文件引用了相对于pylint运行位置的源代码文件,这是不一样的哈德森需要的道路.基本上,违反行为需要相对于Hudson工作区的路径.
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.
这篇关于是否可以在Hudson中看到带有违规和Pylint的违规文件的源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!