File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
tests/functional/ext/code_style Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff 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!
Original file line number Diff line number Diff 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 "
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments