Skip to content

Commit 0f72f23

Browse files
committed
Update message
1 parent e94d54e commit 0f72f23

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

doc/user_guide/checkers/extensions.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Code Style checker Messages
9292
Using math.inf or math.nan permits to benefit from typing and it is up to 4
9393
times faster than a float call (after the initial import of math). This check
9494
also catches typos in float calls as a side effect.
95-
:consider-rewriting-conditional (R6107): *Rewrite conditional expression to '%s'*
95+
:consider-rewriting-conditional (R6107): *Consider rewriting conditional expression to '%s'*
9696
Rewrite negated if expressions to improve readability. This style is simpler
9797
and also permits converting long if/elif chains to match case with more ease.
9898
Disabled by default!

pylint/extensions/code_style.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ class CodeStyleChecker(BaseChecker):
9191
"This check also catches typos in float calls as a side effect.",
9292
),
9393
"R6107": (
94-
"Rewrite conditional expression to '%s'",
94+
"Consider rewriting conditional expression to '%s'",
9595
"consider-rewriting-conditional",
9696
"Rewrite negated if expressions to improve readability. This style is simpler "
9797
"and also permits converting long if/elif chains to match case with more ease.\n"
Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
consider-rewriting-conditional:28:7:28:68:f1:Rewrite conditional expression to 'not (isinstance(expr, node_cls) and expr.attrname == '__init__')':HIGH
2-
consider-rewriting-conditional:30:9:30:28:f1:Rewrite conditional expression to 'not (x and y in z)':HIGH
3-
consider-rewriting-conditional:32:9:32:28:f1:Rewrite conditional expression to 'not (x and y is z)':HIGH
4-
consider-rewriting-conditional:34:9:34:29:f1:Rewrite conditional expression to 'x and y':HIGH
5-
consider-rewriting-conditional:36:16:36:30:f1:Rewrite conditional expression to 'not (y and z)':HIGH
6-
consider-rewriting-conditional:38:9:38:33:f1:Rewrite conditional expression to 'not (x and y >= 0 and z > 0)':HIGH
7-
consider-rewriting-conditional:40:9:40:33:f1:Rewrite conditional expression to 'not (x and y <= 0 and z < 0)':HIGH
1+
consider-rewriting-conditional:28:7:28:68:f1:Consider rewriting conditional expression to 'not (isinstance(expr, node_cls) and expr.attrname == '__init__')':HIGH
2+
consider-rewriting-conditional:30:9:30:28:f1:Consider rewriting conditional expression to 'not (x and y in z)':HIGH
3+
consider-rewriting-conditional:32:9:32:28:f1:Consider rewriting conditional expression to 'not (x and y is z)':HIGH
4+
consider-rewriting-conditional:34:9:34:29:f1:Consider rewriting conditional expression to 'x and y':HIGH
5+
consider-rewriting-conditional:36:16:36:30:f1:Consider rewriting conditional expression to 'not (y and z)':HIGH
6+
consider-rewriting-conditional:38:9:38:33:f1:Consider rewriting conditional expression to 'not (x and y >= 0 and z > 0)':HIGH
7+
consider-rewriting-conditional:40:9:40:33:f1:Consider rewriting conditional expression to 'not (x and y <= 0 and z < 0)':HIGH

0 commit comments

Comments
 (0)