Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PyLintevaluation配置设置 ( error, warning, refactor, convention, statement) 中的各种变量代表什么?计算中是否还有其他可用变量?
evaluation
error
warning
refactor
convention
statement
正如 pylint --help 所说:
--evaluation= Python 表达式,它应该返回一个小于 10 的音符(10 是最高音符)。您可以访问变量错误警告、语句,它们分别包含错误/警告消息的数量和分析的语句总数。这被全球评估报告 (RP0004) 使用。[当前:10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)]