From 4f95e4d1db7bebe62aca1b757a54370b2546a33f Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Sun, 19 Dec 2021 11:00:23 -0500 Subject: Update default evaluation formula to match that in default pylintrc (#5553) --- pylint/lint/pylinter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pylint/lint/pylinter.py b/pylint/lint/pylinter.py index 5c4cb8f60..ba310483c 100644 --- a/pylint/lint/pylinter.py +++ b/pylint/lint/pylinter.py @@ -294,11 +294,11 @@ class PyLinter( "metavar": "", "group": "Reports", "level": 1, - "default": "10.0 - ((float(5 * error + warning + refactor + " + "default": "0 if fatal else 10.0 - ((float(5 * error + warning + refactor + " "convention) / statement) * 10)", "help": "Python expression which should return a score less " - "than or equal to 10. You have access to the variables " - "'error', 'warning', 'refactor', and 'convention' which " + "than or equal to 10. You have access to the variables 'fatal', " + "'error', 'warning', 'refactor', 'convention', and 'info' which " "contain the number of messages in each category, as well as " "'statement' which is the total number of statements " "analyzed. This score is used by the global " -- cgit v1.2.1