From af8cc2e75018d34fbbed08d4bfa3380e80f89b4d Mon Sep 17 00:00:00 2001 From: Jacob Walls Date: Tue, 14 Dec 2021 14:38:35 -0500 Subject: Produce a score of 0 for fatal errors and add fatal to score evaluation (#5521) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Daniƫl van Noord <13665637+DanielNoord@users.noreply.github.com> --- pylintrc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'pylintrc') 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 -- cgit v1.2.1