Skip to content

Commit

Permalink
[superfluous-parens] Use the multiple files template
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Sassoulas committed Sep 13, 2023
1 parent 6eca2c1 commit 7173535
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
4 changes: 4 additions & 0 deletions doc/data/messages/s/superfluous-parens/bad/example_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
x = input()
y = input()
if x == y: # [superfluous-parens]
pass
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
x = input()
y = input()
if (x == y): # [superfluous-parens]
pass

i = 0
exclude = []
if (i - 0) in exclude: # [superfluous-parens]
Expand Down
4 changes: 4 additions & 0 deletions doc/data/messages/s/superfluous-parens/good/example_1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
x = input()
y = input()
if x == y:
pass
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
x = input()
y = input()
if x == y:
pass

i = 0
exclude = []
if i - 0 in exclude:
Expand Down

0 comments on commit 7173535

Please sign in to comment.