summaryrefslogtreecommitdiff
path: root/pylintrc
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2021-12-14 14:38:35 -0500
committerGitHub <noreply@github.com>2021-12-14 20:38:35 +0100
commitaf8cc2e75018d34fbbed08d4bfa3380e80f89b4d (patch)
tree822b0a2912a912a61a07ace0028d53e3bcd12ab2 /pylintrc
parent80e43a95da6fd3dc5882f7c77d3fb13b2666df4e (diff)
downloadpylint-git-af8cc2e75018d34fbbed08d4bfa3380e80f89b4d.tar.gz
Produce a score of 0 for fatal errors and add fatal to score evaluation (#5521)
Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com>
Diffstat (limited to 'pylintrc')
-rw-r--r--pylintrc10
1 files changed, 5 insertions, 5 deletions
diff --git a/pylintrc b/pylintrc
index 7e983510e..2682bfc1a 100644
--- a/pylintrc
+++ b/pylintrc
@@ -98,11 +98,11 @@ files-output=no
reports=no
# Python expression which should return a note less than 10 (10 is the highest
-# note). You have access to the variables errors warning, statement which
-# respectively contain the number of errors / warnings messages and the total
-# number of statements analyzed. This is used by the global evaluation report
-# (RP0004).
-evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
+# note). 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 evaluation report (RP0004).
+evaluation=0 if fatal else 10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
# Template used to display messages. This is a python new-style format string
# used to format the message information. See doc for all details