jenkins 中 violation使用pylint
时间:2017-01-20 19:36:37
收藏:0
阅读:549
在jenkins中无法打开源码问题:
1. 在 Report Violations的 Source encoding 设置为 项目文件的编码, 如: utf-8. 缺省是 default。

2. 在 jenkins的shell中支持 pylint时,添加 --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" 参数
pylint $(find . -name "*.py" -print) --msg-template="{path}:{line}: [{msg_id}({symbol}), {obj}] {msg}" > pylint.log
原文:http://www.cnblogs.com/doscho/p/6323573.html
评论(0)