summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorsyutbai <syutbai@gmail.com>2019-11-21 03:07:25 -0500
committerClaudiu Popa <pcmanticore@gmail.com>2019-11-21 09:07:25 +0100
commit16017690196e77fcabdedf1cd8b8cbfb357a97d4 (patch)
tree846a0501e8a7f914324ffbdd70690d876631acad /doc
parent092038516bb8ed9b4026b93a5ae1fd1070c6cf48 (diff)
downloadpylint-git-16017690196e77fcabdedf1cd8b8cbfb357a97d4.tar.gz
Add support for --fail-under flag
Add a --fail-under <score> flag, also configurable in a `.pylintrc`file If the final score is more than the specified score, it's considered a success and pylint exits with exit code 0. Otherwise, it's considered a failure and pylint exits with its current exit code based on the messages issued. Close #2242
Diffstat (limited to 'doc')
-rw-r--r--doc/whatsnew/2.5.rst2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/whatsnew/2.5.rst b/doc/whatsnew/2.5.rst
index f73d3c2b6..a764799ce 100644
--- a/doc/whatsnew/2.5.rst
+++ b/doc/whatsnew/2.5.rst
@@ -51,3 +51,5 @@ separated list of regexes, that if a name matches will be exempt of naming-check
separated list of regexes, that if a name matches will be always marked as a blacklisted name.
* Mutable ``collections.*`` are now flagged as dangerous defaults.
+
+* Add new --fail-under flag for setting the threshold for the score to fail overall tests. If the score is over the fail-under threshold, pylint will complete SystemExit with value 0 to indicate no errors.