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
Copy file name to clipboardExpand all lines: tests/functional/u/use/use_implicit_booleaness_not_comparison.txt
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -30,25 +30,25 @@ use-implicit-booleaness-not-comparison:191:3:191:13::"""data != {}"" can be simp
30
30
use-implicit-booleaness-not-comparison:199:3:199:26::"""long_test == {}"" can be simplified to ""not long_test"", if it is strictly a sequence, as an empty dict is falsey":HIGH
31
31
use-implicit-booleaness-not-comparison:237:11:237:41:test_func:"""my_class.parent_function == {}"" can be simplified to ""not my_class.parent_function"", if it is strictly a sequence, as an empty dict is falsey":HIGH
32
32
use-implicit-booleaness-not-comparison:238:11:238:37:test_func:"""my_class.my_property == {}"" can be simplified to ""not my_class.my_property"", if it is strictly a sequence, as an empty dict is falsey":HIGH
33
-
use-implicit-booleaness-not-comparison:255:7:255:23:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
34
-
use-implicit-booleaness-not-comparison:257:10:257:26:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
35
-
use-implicit-booleaness-not-comparison:259:11:259:27:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
36
-
use-implicit-booleaness-not-comparison:262:13:262:29:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
37
-
use-implicit-booleaness-not-comparison:265:12:265:28:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
33
+
use-implicit-booleaness-not-comparison:254:7:254:23:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
34
+
use-implicit-booleaness-not-comparison:256:10:256:26:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
35
+
use-implicit-booleaness-not-comparison:258:11:258:27:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
36
+
use-implicit-booleaness-not-comparison:261:13:261:29:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
37
+
use-implicit-booleaness-not-comparison:264:12:264:28:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
38
+
use-implicit-booleaness-not-comparison:268:22:268:38:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
38
39
use-implicit-booleaness-not-comparison:269:22:269:38:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
39
40
use-implicit-booleaness-not-comparison:270:22:270:38:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
40
-
use-implicit-booleaness-not-comparison:271:22:271:38:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
41
+
use-implicit-booleaness-not-comparison:273:8:273:24:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
41
42
use-implicit-booleaness-not-comparison:274:8:274:24:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
42
-
use-implicit-booleaness-not-comparison:275:8:275:24:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
43
-
use-implicit-booleaness-not-comparison:278:19:278:35:test_in_boolean_context.<lambda>:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
44
-
use-implicit-booleaness-not-comparison:281:9:281:25:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
45
-
use-implicit-booleaness-not-comparison:284:7:284:23:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
46
-
use-implicit-booleaness-not-comparison:286:21:286:37:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
47
-
use-implicit-booleaness-not-comparison:288:8:288:24:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
43
+
use-implicit-booleaness-not-comparison:277:19:277:35:test_in_boolean_context.<lambda>:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
44
+
use-implicit-booleaness-not-comparison:280:9:280:25:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
45
+
use-implicit-booleaness-not-comparison:283:7:283:23:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
46
+
use-implicit-booleaness-not-comparison:285:21:285:37:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
47
+
use-implicit-booleaness-not-comparison:287:8:287:24:test_in_boolean_context:"""empty_list != []"" can be simplified to ""empty_list"", if it is strictly a sequence, as an empty list is falsey":HIGH
48
+
use-implicit-booleaness-not-comparison:297:8:297:24:test_not_in_boolean_context:"""empty_list != []"" can be simplified to ""bool(empty_list)"", if it is strictly a sequence, as an empty list is falsey":HIGH
48
49
use-implicit-booleaness-not-comparison:299:8:299:24:test_not_in_boolean_context:"""empty_list != []"" can be simplified to ""bool(empty_list)"", if it is strictly a sequence, as an empty list is falsey":HIGH
49
-
use-implicit-booleaness-not-comparison:301:8:301:24:test_not_in_boolean_context:"""empty_list != []"" can be simplified to ""bool(empty_list)"", if it is strictly a sequence, as an empty list is falsey":HIGH
50
-
use-implicit-booleaness-not-comparison:303:10:303:26:test_not_in_boolean_context:"""empty_list != []"" can be simplified to ""bool(empty_list)"", if it is strictly a sequence, as an empty list is falsey":HIGH
51
-
use-implicit-booleaness-not-comparison:305:5:305:21:test_not_in_boolean_context:"""empty_list != []"" can be simplified to ""bool(empty_list)"", if it is strictly a sequence, as an empty list is falsey":HIGH
52
-
use-implicit-booleaness-not-comparison:307:12:307:28:test_not_in_boolean_context.<lambda>:"""empty_list != []"" can be simplified to ""bool(empty_list)"", if it is strictly a sequence, as an empty list is falsey":HIGH
53
-
use-implicit-booleaness-not-comparison:309:25:309:41:test_not_in_boolean_context:"""empty_list != []"" can be simplified to ""bool(empty_list)"", if it is strictly a sequence, as an empty list is falsey":HIGH
54
-
use-implicit-booleaness-not-comparison:311:11:311:27:test_not_in_boolean_context:"""empty_list != []"" can be simplified to ""bool(empty_list)"", if it is strictly a sequence, as an empty list is falsey":HIGH
50
+
use-implicit-booleaness-not-comparison:301:10:301:26:test_not_in_boolean_context:"""empty_list != []"" can be simplified to ""bool(empty_list)"", if it is strictly a sequence, as an empty list is falsey":HIGH
51
+
use-implicit-booleaness-not-comparison:303:5:303:21:test_not_in_boolean_context:"""empty_list != []"" can be simplified to ""bool(empty_list)"", if it is strictly a sequence, as an empty list is falsey":HIGH
52
+
use-implicit-booleaness-not-comparison:305:12:305:28:test_not_in_boolean_context.<lambda>:"""empty_list != []"" can be simplified to ""bool(empty_list)"", if it is strictly a sequence, as an empty list is falsey":HIGH
53
+
use-implicit-booleaness-not-comparison:307:25:307:41:test_not_in_boolean_context:"""empty_list != []"" can be simplified to ""bool(empty_list)"", if it is strictly a sequence, as an empty list is falsey":HIGH
54
+
use-implicit-booleaness-not-comparison:309:11:309:27:test_not_in_boolean_context:"""empty_list != []"" can be simplified to ""bool(empty_list)"", if it is strictly a sequence, as an empty list is falsey":HIGH
Copy file name to clipboardExpand all lines: tests/functional/u/use/use_implicit_booleaness_not_comparison_to_string.txt
+18-18Lines changed: 18 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -4,25 +4,25 @@ use-implicit-booleaness-not-comparison-to-string:12:3:12:10::"""X == ''"" can be
4
4
use-implicit-booleaness-not-comparison-to-string:15:3:15:10::"""Y != ''"" can be simplified to ""Y"", if it is strictly a string, as an empty string is falsey":HIGH
5
5
use-implicit-booleaness-not-comparison-to-string:18:3:18:10::"""'' == Y"" can be simplified to ""not Y"", if it is strictly a string, as an empty string is falsey":HIGH
6
6
use-implicit-booleaness-not-comparison-to-string:21:3:21:10::"""'' != X"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
7
-
use-implicit-booleaness-not-comparison-to-string:43:7:43:14:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
8
-
use-implicit-booleaness-not-comparison-to-string:45:10:45:17:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
9
-
use-implicit-booleaness-not-comparison-to-string:47:11:47:18:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
10
-
use-implicit-booleaness-not-comparison-to-string:50:13:50:20:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
11
-
use-implicit-booleaness-not-comparison-to-string:53:12:53:19:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
7
+
use-implicit-booleaness-not-comparison-to-string:42:7:42:14:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
8
+
use-implicit-booleaness-not-comparison-to-string:44:10:44:17:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
9
+
use-implicit-booleaness-not-comparison-to-string:46:11:46:18:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
10
+
use-implicit-booleaness-not-comparison-to-string:49:13:49:20:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
11
+
use-implicit-booleaness-not-comparison-to-string:52:12:52:19:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
12
+
use-implicit-booleaness-not-comparison-to-string:56:22:56:29:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
12
13
use-implicit-booleaness-not-comparison-to-string:57:22:57:29:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
13
14
use-implicit-booleaness-not-comparison-to-string:58:22:58:29:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
14
-
use-implicit-booleaness-not-comparison-to-string:59:22:59:29:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
15
+
use-implicit-booleaness-not-comparison-to-string:61:8:61:15:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
15
16
use-implicit-booleaness-not-comparison-to-string:62:8:62:15:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
16
-
use-implicit-booleaness-not-comparison-to-string:63:8:63:15:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
17
-
use-implicit-booleaness-not-comparison-to-string:66:19:66:26:test_in_boolean_context.<lambda>:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
18
-
use-implicit-booleaness-not-comparison-to-string:69:9:69:16:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
19
-
use-implicit-booleaness-not-comparison-to-string:72:7:72:14:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
20
-
use-implicit-booleaness-not-comparison-to-string:74:21:74:28:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
21
-
use-implicit-booleaness-not-comparison-to-string:76:8:76:15:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
17
+
use-implicit-booleaness-not-comparison-to-string:65:19:65:26:test_in_boolean_context.<lambda>:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
18
+
use-implicit-booleaness-not-comparison-to-string:68:9:68:16:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
19
+
use-implicit-booleaness-not-comparison-to-string:71:7:71:14:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
20
+
use-implicit-booleaness-not-comparison-to-string:73:21:73:28:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
21
+
use-implicit-booleaness-not-comparison-to-string:75:8:75:15:test_in_boolean_context:"""X != ''"" can be simplified to ""X"", if it is strictly a string, as an empty string is falsey":HIGH
22
+
use-implicit-booleaness-not-comparison-to-string:86:8:86:15:test_not_in_boolean_context:"""X != ''"" can be simplified to ""bool(X)"", if it is strictly a string, as an empty string is falsey":HIGH
22
23
use-implicit-booleaness-not-comparison-to-string:88:8:88:15:test_not_in_boolean_context:"""X != ''"" can be simplified to ""bool(X)"", if it is strictly a string, as an empty string is falsey":HIGH
23
-
use-implicit-booleaness-not-comparison-to-string:90:8:90:15:test_not_in_boolean_context:"""X != ''"" can be simplified to ""bool(X)"", if it is strictly a string, as an empty string is falsey":HIGH
24
-
use-implicit-booleaness-not-comparison-to-string:92:10:92:17:test_not_in_boolean_context:"""X != ''"" can be simplified to ""bool(X)"", if it is strictly a string, as an empty string is falsey":HIGH
25
-
use-implicit-booleaness-not-comparison-to-string:94:5:94:12:test_not_in_boolean_context:"""X != ''"" can be simplified to ""bool(X)"", if it is strictly a string, as an empty string is falsey":HIGH
26
-
use-implicit-booleaness-not-comparison-to-string:96:12:96:19:test_not_in_boolean_context.<lambda>:"""X != ''"" can be simplified to ""bool(X)"", if it is strictly a string, as an empty string is falsey":HIGH
27
-
use-implicit-booleaness-not-comparison-to-string:98:25:98:32:test_not_in_boolean_context:"""X != ''"" can be simplified to ""bool(X)"", if it is strictly a string, as an empty string is falsey":HIGH
28
-
use-implicit-booleaness-not-comparison-to-string:100:11:100:18:test_not_in_boolean_context:"""X != ''"" can be simplified to ""bool(X)"", if it is strictly a string, as an empty string is falsey":HIGH
24
+
use-implicit-booleaness-not-comparison-to-string:90:10:90:17:test_not_in_boolean_context:"""X != ''"" can be simplified to ""bool(X)"", if it is strictly a string, as an empty string is falsey":HIGH
25
+
use-implicit-booleaness-not-comparison-to-string:92:5:92:12:test_not_in_boolean_context:"""X != ''"" can be simplified to ""bool(X)"", if it is strictly a string, as an empty string is falsey":HIGH
26
+
use-implicit-booleaness-not-comparison-to-string:94:12:94:19:test_not_in_boolean_context.<lambda>:"""X != ''"" can be simplified to ""bool(X)"", if it is strictly a string, as an empty string is falsey":HIGH
27
+
use-implicit-booleaness-not-comparison-to-string:96:25:96:32:test_not_in_boolean_context:"""X != ''"" can be simplified to ""bool(X)"", if it is strictly a string, as an empty string is falsey":HIGH
28
+
use-implicit-booleaness-not-comparison-to-string:98:11:98:18:test_not_in_boolean_context:"""X != ''"" can be simplified to ""bool(X)"", if it is strictly a string, as an empty string is falsey":HIGH
0 commit comments