List of pylint human readable message ids?

大城市里の小女人 提交于 2019-12-17 16:25:06

问题


Recent versions of pylint allow for suppressing messages with human readable message ids. For example, instead of

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?


回答1:


I don't think there exists (yet) such list on the web, though pylint --list-msgs automatically produces one.




回答2:


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.




回答3:


Here is a dictionary of pylint errors to message for the most the most updated version of the pylint --list-msgs.

The format is PYLINT_ERROR_ID: ERROR_MESSAGE.



来源:https://stackoverflow.com/questions/13955361/list-of-pylint-human-readable-message-ids

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