summaryrefslogtreecommitdiff
path: root/pylintrc
diff options
context:
space:
mode:
authorJacob Walls <jacobtylerwalls@gmail.com>2021-12-28 10:30:41 -0500
committerGitHub <noreply@github.com>2021-12-28 16:30:41 +0100
commitf56db7d76429ddd86b3e333b60720c389fbd1025 (patch)
treedc783f813b57d96feb0a1833008c3efe8a07b921 /pylintrc
parentefe59ca44b9ed350c9790d79a39a7343af5e7ea7 (diff)
downloadpylint-git-f56db7d76429ddd86b3e333b60720c389fbd1025.tar.gz
Fix #2399: Avoid negative scores by default (#5595)
Diffstat (limited to 'pylintrc')
-rw-r--r--pylintrc2
1 files changed, 1 insertions, 1 deletions
diff --git a/pylintrc b/pylintrc
index 8dec45074..4e093a87c 100644
--- a/pylintrc
+++ b/pylintrc
@@ -120,7 +120,7 @@ reports=no
# 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)
+evaluation=max(0, 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