Skip to content

Commit 1374b13

Browse files
committed
Update message
1 parent e94d54e commit 1374b13

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

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)