python - CEWR Literals 的 Pylint 含义
问题描述
我已经搜索了一段时间,但没有给出详细的答案,使用 pylint 时会收到如下消息:
C:201, 0: Line too long (113/100) (line-too-long)
E: 3, 0: No name QImage in module QtCore
R: 27, 4: Too many statements (62/50) (too-many-statements)
除了我没有找到所有消息的好资源(因为搜索结果只讨论 linter 而不是已发布的文档)这一事实之外,我无法完全猜测文字C
, E
,R
的W
确切含义。
解决方案
直接来自手册页:
OUTPUT
Using the default text output, the message format is :
MESSAGE_TYPE: LINE_NUM:[OBJECT:] MESSAGE
There are 5 kind of message types :
* (C) convention, for programming standard violation
* (R) refactor, for bad code smell
* (W) warning, for python specific problems
* (E) error, for probable bugs in the code
* (F) fatal, if an error occurred which prevented pylint from doing
further processing.
推荐阅读
- c++ - 具有可选依赖项的类的 C++ 条件编译
- arrays - 无法减少 MongoDB 上的深度嵌套数组
- python - Pandas:如何使用 groupby 函数连接或合并组并填充单个表或数据框?
- swift - 测试旧操作系统版本的代码路径
- r - R“summary(model)”命令在使用 carot 包的 train() 之后永远不会完成(k 折交叉验证)
- rapidclipse - Rapidclipse - 在运行时改变主题
- python - 从(“正确”)conda环境中向集群提交snakemake作业
- javascript - 在禁用 CORS 安全性的情况下修改 chrome 中的 iframe
- python - 我可以将来自 for 循环的数据存储为每次迭代的不同变量吗?
- git - 将 git bisect 保持在祖先路径上