Skip to content

Commit 4f95e4d

Browse files
Update default evaluation formula to match that in default pylintrc (#5553)
1 parent bfeca4c commit 4f95e4d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pylint/lint/pylinter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,11 +294,11 @@ def make_options():
294294
"metavar": "<python_expression>",
295295
"group": "Reports",
296296
"level": 1,
297-
"default": "10.0 - ((float(5 * error + warning + refactor + "
297+
"default": "0 if fatal else 10.0 - ((float(5 * error + warning + refactor + "
298298
"convention) / statement) * 10)",
299299
"help": "Python expression which should return a score less "
300-
"than or equal to 10. You have access to the variables "
301-
"'error', 'warning', 'refactor', and 'convention' which "
300+
"than or equal to 10. You have access to the variables 'fatal', "
301+
"'error', 'warning', 'refactor', 'convention', and 'info' which "
302302
"contain the number of messages in each category, as well as "
303303
"'statement' which is the total number of statements "
304304
"analyzed. This score is used by the global "

0 commit comments

Comments
 (0)