Skip to content

Commit bebc814

Browse files
authored
Merge pull request #24 from codacy/disable-colored-output
Fix tests after pylint update
2 parents e57b3cf + 4d16187 commit bebc814

File tree

6 files changed

+11
-10
lines changed

6 files changed

+11
-10
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:

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ class Child(Parent):
1010

1111
##Err: W0221
1212
def method(self, arg, arg1):
13-
return arg, arg1, arg2
13+
return arg, arg1
1414

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
class Parent(object):
44

5-
def method(self, arg, arg=1):
5+
def method(self, arg, arg1 = 1):
66
return arg
77

88

99
class Child(Parent):
1010

1111
##Err: W0222
1212
def method(self, arg, arg1):
13-
return arg, arg1, arg2
13+
return arg, arg1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
class Object(object):
44

55
##Info: W0613
6-
def method(self, arg, unused_arg):
6+
def method(self, arg, arg2):
77
return arg * 2

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ class SixthGood(object):
3434
class SeventhGood(object):
3535
__slots__ = {"a": "b", "c": "d"}
3636

37+
##Err: E0238
3738
class Bad(object):
3839
__slots__ = list
3940

0 commit comments

Comments
 (0)