首页 > 其他 > 详细

jenkins 中 violation使用pylint

时间:2017-01-20 19:36:37      阅读:546      评论:0      收藏:0      [点我收藏+]

 

在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

  

      

 

jenkins 中 violation使用pylint

原文:http://www.cnblogs.com/doscho/p/6323573.html

(0)
(1)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!