summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2021-12-19 11:00:23 -0500
committerGitHub <noreply@github.com>2021-12-19 17:00:23 +0100
commit4f95e4d1db7bebe62aca1b757a54370b2546a33f (patch)
treeffcc1ed23fd883f0677c1c057b406044962b411c
parentbfeca4ccb520a1057dc74bac84c5fc874b06380d (diff)
downloadpylint-git-4f95e4d1db7bebe62aca1b757a54370b2546a33f.tar.gz
Update default evaluation formula to match that in default pylintrc (#5553)
-rw-r--r--pylint/lint/pylinter.py6
1 files 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": "<python_expression>",
"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 "