Skip to content

Commit

Permalink
fix(pylint): remove space from example
Browse files Browse the repository at this point in the history
  • Loading branch information
vincevannoort committed Sep 22, 2024
1 parent faaf682 commit e596c10
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
c = int(input())
d = int(input())
e = int(input())
if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
pass

# ------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ boolean_chained_comparison.py:73:4: PLR1716 [*] Contains chained boolean compari
|
71 | d = int(input())
72 | e = int(input())
73 | if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
73 | if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
| ^^^^^^^^^^^^^^^ PLR1716
74 | pass
|
Expand All @@ -215,8 +215,8 @@ boolean_chained_comparison.py:73:4: PLR1716 [*] Contains chained boolean compari
70 70 | c = int(input())
71 71 | d = int(input())
72 72 | e = int(input())
73 |-if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
73 |+if a < b < c and c < d and d < e: # [boolean-chained-comparison]
73 |-if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
73 |+if a < b < c and c < d and d < e: # [boolean-chained-comparison]
74 74 | pass
75 75 |
76 76 | # ------------
Expand All @@ -225,7 +225,7 @@ boolean_chained_comparison.py:73:14: PLR1716 [*] Contains chained boolean compar
|
71 | d = int(input())
72 | e = int(input())
73 | if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
73 | if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
| ^^^^^^^^^^^^^^^ PLR1716
74 | pass
|
Expand All @@ -235,8 +235,8 @@ boolean_chained_comparison.py:73:14: PLR1716 [*] Contains chained boolean compar
70 70 | c = int(input())
71 71 | d = int(input())
72 72 | e = int(input())
73 |-if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
73 |+if a < b and b < c < d and d < e: # [boolean-chained-comparison]
73 |-if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
73 |+if a < b and b < c < d and d < e: # [boolean-chained-comparison]
74 74 | pass
75 75 |
76 76 | # ------------
Expand All @@ -245,8 +245,8 @@ boolean_chained_comparison.py:73:24: PLR1716 [*] Contains chained boolean compar
|
71 | d = int(input())
72 | e = int(input())
73 | if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
| ^^^^^^^^^^^^^^^^ PLR1716
73 | if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
| ^^^^^^^^^^^^^^^ PLR1716
74 | pass
|
= help: Simplify chained boolean comparisons
Expand All @@ -255,7 +255,7 @@ boolean_chained_comparison.py:73:24: PLR1716 [*] Contains chained boolean compar
70 70 | c = int(input())
71 71 | d = int(input())
72 72 | e = int(input())
73 |-if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
73 |-if a < b and b < c and c < d and d < e: # [boolean-chained-comparison]
73 |+if a < b and b < c and c < d < e: # [boolean-chained-comparison]
74 74 | pass
75 75 |
Expand Down

0 comments on commit e596c10

Please sign in to comment.