summaryrefslogtreecommitdiff
path: root/examples
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 /examples
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 'examples')
-rw-r--r--examples/pylintrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/pylintrc b/examples/pylintrc
index 07e870b58..2662898dc 100644
--- a/examples/pylintrc
+++ b/examples/pylintrc
@@ -90,11 +90,11 @@ enable=c-extension-no-member
[REPORTS]
# Python expression which should return a score less than or equal to 10. You
-# have access to the variables 'error', 'warning', 'refactor', and 'convention'
+# 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=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10)
+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.