Skip to content

Commit 4d16187

Browse files
author
Daniel Reigada
committed
Change pattern old pattern ID
1 parent ae05a3b commit 4d16187

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/main/resources/docs/patterns.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@
483483
"category": "ErrorProne"
484484
},
485485
{
486-
"patternId": "R0102",
486+
"patternId": "R1703",
487487
"level": "Info",
488488
"category": "CodeStyle"
489489
},

src/main/resources/docs/tests/R0102.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
##Patterns: R0102
1+
##Patterns: R1703
22

33
def test_simplifiable_1(arg):
4-
##Info: R0102
4+
##Info: R1703
55
if arg:
66
return True
77
else:
@@ -10,7 +10,7 @@ def test_simplifiable_1(arg):
1010

1111
def test_simplifiable_2(arg, arg2):
1212
# Can be reduced to bool(arg and not arg2)
13-
##Info: R0102
13+
##Info: R1703
1414
if arg and not arg2:
1515
return True
1616
else:
@@ -19,7 +19,7 @@ def test_simplifiable_2(arg, arg2):
1919

2020
def test_simplifiable_3(arg, arg2):
2121
# Can be reduced to bool(arg and not arg2)
22-
##Info: R0102
22+
##Info: R1703
2323
if arg and not arg2:
2424
var = True
2525
else:
@@ -31,7 +31,7 @@ def test_simplifiable_4(arg):
3131
if arg:
3232
var = True
3333
else:
34-
##Info: R0102
34+
##Info: R1703
3535
if arg == "arg1":
3636
return True
3737
else:

0 commit comments

Comments
 (0)