How do I get Pylint message IDs to show up after pylint-1.0.0?

本小妞迷上赌 提交于 2019-11-27 14:29:59

问题


Starting with pylint-1.0.0 the --include-ids argument is no longer allowed.

How do I get:

************* Module foo.bar
E:199,11: Module 'yaml' has no 'scanner' member (no-member)
************* Module foo.baz
W:153,27: Unused variable '_filenames' (unused-variable)

to show the IDs (e.g. W0142), for each warning?


回答1:


The new way to specify this is the command line parameter '--msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}'.



来源:https://stackoverflow.com/questions/18133264/how-do-i-get-pylint-message-ids-to-show-up-after-pylint-1-0-0

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!