我的构建步骤:
cd $WORKSPACE
export TERM="linux"
. venv/bin/activate
pylint --rcfile=pylint.cfg $(find handlers -maxdepth 1 -name "*.py" -print) > pylint.log || exit 0Pylint.log的结果:
************* Module handlers
C: 1, 0: Missing module docstring (missing-docstring)
C: 8, 0: Missing function docstring (missing-docstring)
************* Module handlers.foo
C: 1, 0: Black listed name "foo" (blacklisted-name)
C: 1, 0: Missing module docstring (missing-docstring)
C: 1, 0: Missing function docstring (missing-docstring)
E: 2,11: Undefined variable 'a' (undefined-variable)
E: 2,13: Undefined variable 'b' (undefined-variable)
Report
======
...(报告继续按类型、原始指标、外部依赖项进行统计)
pylint的xml文件名模式是:
**/pylint.log源路径模式为:
**/即使在这一切之后,而且pylint.log显示我有线头错误,这个图表也没有显示任何信息。
有什么想法吗?如何将pylint和违规插件很好地结合起来?
发布于 2015-06-11 20:53:05
正确的pylint命令如下:
pylint --rcfile=pylint.cfg $(find handlers -maxdepth 1 -name "*.py" -print) --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" > pylint.log || exit 0注意添加了--msg-模板param。
发布于 2015-08-03 07:48:17
我自己也有这个问题。我认为这是我安装违规插件的结果。在重新启动Jenkins之后,它起了作用:
$ sudo service jenkins restarthttps://stackoverflow.com/questions/30789309
复制相似问题