You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
comparison-of-constants:3:6:3:12::"Comparison between constants: '2 == 2' has a constant value":HIGH
2
-
comparison-of-constants:6:6:6:11::"Comparison between constants: '2 > 2' has a constant value":HIGH
3
-
comparison-of-constants:16:3:16:15::"Comparison between constants: 'True == True' has a constant value":HIGH
1
+
comparison-of-constants:3:6:3:12::"Comparison between constants: ""2 == 2"" has a constant value":HIGH
2
+
comparison-of-constants:6:6:6:11::"Comparison between constants: ""2 > 2"" has a constant value":HIGH
3
+
comparison-of-constants:16:3:16:15::"Comparison between constants: ""True == True"" has a constant value":HIGH
4
4
singleton-comparison:16:3:16:15::Comparison 'True == True' should be 'True is True' if checking for the singleton value True, or 'True' if testing for truthiness:UNDEFINED
Copy file name to clipboardExpand all lines: tests/functional/ext/magic_value_comparison/magic_value_comparison.txt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
magic-value-comparison:16:3:16:10::Consider using a named constant or an enum instead of '5'.:HIGH
2
2
magic-value-comparison:19:3:19:17::Consider using a named constant or an enum instead of '10'.:HIGH
3
3
magic-value-comparison:22:9:22:18::Consider using a named constant or an enum instead of '100'.:HIGH
4
-
comparison-of-constants:24:17:24:22::"Comparison between constants: '5 > 7' has a constant value":HIGH
4
+
comparison-of-constants:24:17:24:22::"Comparison between constants: ""5 > 7"" has a constant value":HIGH
5
5
singleton-comparison:29:17:29:28::Comparison 'var == True' should be 'var is True' if checking for the singleton value True, or 'bool(var)' if testing for truthiness:UNDEFINED
6
6
singleton-comparison:30:17:30:29::Comparison 'var == False' should be 'var is False' if checking for the singleton value False, or 'not var' if testing for falsiness:UNDEFINED
7
7
singleton-comparison:31:17:31:28::Comparison 'var == None' should be 'var is None':UNDEFINED
0 commit comments