diff options
author | Jacob Walls <jacobtylerwalls@gmail.com> | 2021-12-28 10:30:41 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-28 16:30:41 +0100 |
commit | f56db7d76429ddd86b3e333b60720c389fbd1025 (patch) | |
tree | dc783f813b57d96feb0a1833008c3efe8a07b921 /examples | |
parent | efe59ca44b9ed350c9790d79a39a7343af5e7ea7 (diff) | |
download | pylint-git-f56db7d76429ddd86b3e333b60720c389fbd1025.tar.gz |
Fix #2399: Avoid negative scores by default (#5595)
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pylintrc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/pylintrc b/examples/pylintrc index eb48b4a1f..8fb3c179a 100644 --- a/examples/pylintrc +++ b/examples/pylintrc @@ -94,7 +94,7 @@ enable=c-extension-no-member # 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. |