PyLint评估配置

2024-07-06 22:03:02 发布

您现在位置:Python中文网/ 问答频道 /正文

PyLintevaluation配置设置(errorwarningrefactorconventionstatement)中的各种变量代表什么?计算中还有其他变量吗?在


Tags: 代表errorconventionstatementwarningrefactorpylintevaluation
1条回答
网友
1楼 · 发布于 2024-07-06 22:03:02

正如派林特帮助所说:

评价= Python表达式,返回的注释应小于10(10是最高的注释)。您可以访问变量errors warning,语句分别包含errors/warnings消息的数量和所分析语句的总数。全球评估报告(RP0004)使用了这一点。[当前:10.0-((float(5*error+warning+refactor+convention)/语句)*10]

相关问题 更多 >