Recent versions of pylint allow for suppressing messages with human readable message ids. For example, instead of
最新版本的pylint允许使用人类可读消息ID来抑制消息。例如,而不是
class MyTest(unittest.TestCase): # pylint: disable=R0904
...
you can specify:
你可以指定:
class MyTest(unittest.TestCase): # pylint: disable=too-many-public-methods
...
This page lists the numeric message ids. However, I'm looking for a complete list of the human readable versions of the message ids. Where can I find that list?
此页面列出了数字消息ID。但是,我正在寻找消息ID的人类可读版本的完整列表。我在哪里可以找到该列表?
2 个解决方案
#1
45
I don't think there exists (yet) such list on the web, though pylint --list-msgs
automatically produces one.
虽然pylint --list-msgs会自动生成一个,但我认为网上还没有这样的列表。
#2
20
I've stumbled upon your question, searching for such a list myself. So I decided to process pylint --list-msgs
through regex. Then I created such a list. You can access it here.
我偶然发现了你的问题,自己寻找这样的清单。所以我决定通过正则表达式处理pylint --list-msgs。然后我创建了这样一个列表。你可以在这里访问它。
#1
45
I don't think there exists (yet) such list on the web, though pylint --list-msgs
automatically produces one.
虽然pylint --list-msgs会自动生成一个,但我认为网上还没有这样的列表。
#2
20
I've stumbled upon your question, searching for such a list myself. So I decided to process pylint --list-msgs
through regex. Then I created such a list. You can access it here.
我偶然发现了你的问题,自己寻找这样的清单。所以我决定通过正则表达式处理pylint --list-msgs。然后我创建了这样一个列表。你可以在这里访问它。