summaryrefslogtreecommitdiff
path: root/doc/user_guide
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2022-11-06 17:10:22 +0100
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2022-11-07 21:30:49 +0100
commit472064a9ee85973f0f1d7b87c720199e1c147599 (patch)
treefe1f0c755134ea2210856a4c03d2b2349c2ccc05 /doc/user_guide
parenta04f641c9d9d95c232db81aa4649a00e7e7e87e1 (diff)
downloadpylint-git-472064a9ee85973f0f1d7b87c720199e1c147599.tar.gz
[compare-to-zero] More actionnable and understandable message
Originally done in order to normalize the use-implicit-booleaness check. This make the message more understandable and permit to make #6870 more reviewable.
Diffstat (limited to 'doc/user_guide')
-rw-r--r--doc/user_guide/checkers/extensions.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/user_guide/checkers/extensions.rst b/doc/user_guide/checkers/extensions.rst
index 0e28d1d57..ec973dac0 100644
--- a/doc/user_guide/checkers/extensions.rst
+++ b/doc/user_guide/checkers/extensions.rst
@@ -110,7 +110,7 @@ Verbatim name of the checker is ``compare-to-zero``.
Compare-To-Zero checker Messages
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
-:compare-to-zero (C2001): *Avoid comparisons to zero*
+:compare-to-zero (C2001): *"%s" can be simplified to "%s" as 0 is falsey*
Used when Pylint detects comparison to a 0 constant.