如何在 pylint-1.0.0 之后显示 Pylint 消息 ID? [英] How do I get Pylint message IDs to show up after pylint-1.0.0?

查看:50
本文介绍了如何在 pylint-1.0.0 之后显示 Pylint 消息 ID?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

pylint-1.0.0 开始,不再允许 --include-ids 参数.

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

我如何获得:

************* 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)

显示每个警告的 ID(例如 W0142)?

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

推荐答案

新的指定方式是命令行参数 '--msg-template={path}:{line}: [{msg_id}({symbol}), {obj}] {msg}'.

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

这篇关于如何在 pylint-1.0.0 之后显示 Pylint 消息 ID?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆