【发布时间】:2014-01-13 18:11:43
【问题描述】:
我们最近从 pylint-0.28 升级到 pylint-1.1,我无法再将消息 ID 写入使用 --output-format=html 生成的 html 文件中。
pylint 1.X 的变化去掉了 --include-ids 选项,以及这些问题:
How do I get Pylint message IDs to show up after pylint-1.0.0?
PyLint 1.0.0 with PyDev + Eclipse: "include-ids" option no longer allowed, breaks Eclipse integration
建议使用 --message-template 选项来恢复它,但这似乎只适用于屏幕输出。因此,目前 html 文件中的“类型”列仅包含五种消息类型之一。我怎样才能将消息名称或消息 ID 获取到 html 文件中?
另外,FWIW 此处的 pylint 文档
https://pypi.python.org/pypi/pylint
http://docs.pylint.org/features.html#options
仍然提到 --include-ids 选项,但没有提到 --message-template。
马克·E·汉密尔顿
【问题讨论】:
标签: pylint