一、ubuntu安装:$ sudo apt-get install pylint
二、pylint使用方法:https://pylint.readthedocs.io/en/stable/
1、使用检测:$ pylint [path]
2、pylint 输出含义:
The message type can be:
- [I]nformational messages that Pylint emits (do not contribute to your analysis score)
- [R]efactor for a "good practice" metric violation
- [C]onvention for coding standard violation
- [W]arning for stylistic problems, or minor programming issues
- [E]rror for important programming issues (i.e. most probably bug)
- [F]atal for errors which prevented further processing
本文介绍了如何在Ubuntu上安装PyLint,并提供了PyLint的基本使用方法。解释了PyLint输出的不同类型消息,包括信息提示、重构建议、编码规范、警告、错误及致命错误等。
870

被折叠的 条评论
为什么被折叠?



