summaryrefslogtreecommitdiff
path: root/doc/data/messages/t/too-many-boolean-expressions/bad.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2023-01-30 15:59:23 +0100
committerGitHub <noreply@github.com>2023-01-30 14:59:23 +0000
commit4036863950f8ad04d66b507ee3d851cec1dc066b (patch)
tree282a8b4068dc7ad9c4ae198ad14a3caeeca57b37 /doc/data/messages/t/too-many-boolean-expressions/bad.py
parentdf85f7a1b8d441555483ed8cc7f6ea89fb4803eb (diff)
downloadpylint-git-4036863950f8ad04d66b507ee3d851cec1dc066b.tar.gz
[doc] Make sure that doc examples are of a reasonable length (#8135)
And upgrade existing unreasonable length. Reading ease is drastically reduced on read the doc after 103 chars (Because of horizontal scrolling)
Diffstat (limited to 'doc/data/messages/t/too-many-boolean-expressions/bad.py')
-rw-r--r--doc/data/messages/t/too-many-boolean-expressions/bad.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/doc/data/messages/t/too-many-boolean-expressions/bad.py b/doc/data/messages/t/too-many-boolean-expressions/bad.py
index 8bd65e40b..5f3ae4194 100644
--- a/doc/data/messages/t/too-many-boolean-expressions/bad.py
+++ b/doc/data/messages/t/too-many-boolean-expressions/bad.py
@@ -1,4 +1,5 @@
def can_be_divided_by_two_and_are_not_zero(x, y, z):
# Maximum number of boolean expressions in an if statement (by default 5)
- if (x and y and z) and (x % 2 == 0 and y % 2 == 0 and z % 2 == 0): # [too-many-boolean-expressions]
+ # +1: [too-many-boolean-expressions]
+ if (x and y and z) and (x % 2 == 0 and y % 2 == 0 and z % 2 == 0):
pass