|
1 | 1 | comparison-of-constants:4:3:4:9::"Comparison between constants: '2 is 2' has a constant value":HIGH
|
2 |
| -literal-comparison:4:3:4:9::Comparison to literal:UNDEFINED |
| 2 | +literal-comparison:4:3:4:9::In '2 is 2', use '==' when comparing constant literals not 'is' ('2 == 2'):HIGH |
3 | 3 | comparison-of-constants:7:3:7:14::"Comparison between constants: 'a is b'a'' has a constant value":HIGH
|
4 |
| -literal-comparison:7:3:7:14::Comparison to literal:UNDEFINED |
| 4 | +literal-comparison:7:3:7:14::In ''a' is b'a'', use '==' when comparing constant literals not 'is' (''a' == b'a''):HIGH |
5 | 5 | comparison-of-constants:10:3:10:13::"Comparison between constants: '2.0 is 3.0' has a constant value":HIGH
|
6 |
| -literal-comparison:10:3:10:13::Comparison to literal:UNDEFINED |
7 |
| -literal-comparison:16:3:16:19::Comparison to literal:UNDEFINED |
8 |
| -literal-comparison:19:3:19:18::Comparison to literal:UNDEFINED |
9 |
| -literal-comparison:22:3:22:18::Comparison to literal:UNDEFINED |
10 |
| -literal-comparison:25:3:25:23::Comparison to literal:UNDEFINED |
11 |
| -literal-comparison:28:3:28:22::Comparison to literal:UNDEFINED |
12 |
| -literal-comparison:31:3:31:22::Comparison to literal:UNDEFINED |
13 |
| -literal-comparison:38:3:38:13::Comparison to literal:UNDEFINED |
14 |
| -literal-comparison:41:3:41:13::Comparison to literal:UNDEFINED |
15 |
| -literal-comparison:44:3:44:14::Comparison to literal:UNDEFINED |
| 6 | +literal-comparison:10:3:10:13::In '2.0 is 3.0', use '==' when comparing constant literals not 'is' ('2.0 == 3.0'):HIGH |
| 7 | +literal-comparison:16:3:16:19::"In '() is {1: 2, 2: 3}', use '==' when comparing constant literals not 'is' ('() == {1: 2, 2: 3}')":HIGH |
| 8 | +literal-comparison:19:3:19:18::In '[] is [4, 5, 6]', use '==' when comparing constant literals not 'is' ('[] == [4, 5, 6]'):HIGH |
| 9 | +literal-comparison:22:3:22:18::In '() is {1, 2, 3}', use '==' when comparing constant literals not 'is' ('() == {1, 2, 3}'):HIGH |
| 10 | +literal-comparison:25:3:25:23::"In '() is not {1: 2, 2: 3}', use '!=' when comparing constant literals not 'is not' ('() != {1: 2, 2: 3}')":HIGH |
| 11 | +literal-comparison:28:3:28:22::In '[] is not [4, 5, 6]', use '!=' when comparing constant literals not 'is not' ('[] != [4, 5, 6]'):HIGH |
| 12 | +literal-comparison:31:3:31:22::In '() is not {1, 2, 3}', use '!=' when comparing constant literals not 'is not' ('() != {1, 2, 3}'):HIGH |
| 13 | +literal-comparison:38:3:38:13::In 'CONST is 0', use '==' when comparing constant literals not 'is' ('CONST == 0'):HIGH |
| 14 | +literal-comparison:41:3:41:13::In 'CONST is 1', use '==' when comparing constant literals not 'is' ('CONST == 1'):HIGH |
| 15 | +literal-comparison:44:3:44:14::In 'CONST is 42', use '==' when comparing constant literals not 'is' ('CONST == 42'):HIGH |
0 commit comments