@neralabs/rerail-pack-python 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +7 -0
  3. package/README.md +36 -0
  4. package/licenses/bandit/LICENSE +175 -0
  5. package/licenses/bandit/UPSTREAM.md +100 -0
  6. package/licenses/ruff/LICENSE +430 -0
  7. package/licenses/ruff/UPSTREAM.md +338 -0
  8. package/pack.json +912 -0
  9. package/package.json +30 -0
  10. package/rules/bandit-b101-assert-used.json +38 -0
  11. package/rules/bandit-b102-exec-used.json +125 -0
  12. package/rules/bandit-b110-try-except-pass.json +109 -0
  13. package/rules/bandit-b112-try-except-continue.json +109 -0
  14. package/rules/bandit-b113-request-without-timeout.json +138 -0
  15. package/rules/bandit-b301-pickle.json +58 -0
  16. package/rules/bandit-b302-marshal.json +48 -0
  17. package/rules/bandit-b303-md5.json +79 -0
  18. package/rules/bandit-b305-cipher-modes.json +47 -0
  19. package/rules/bandit-b306-mktemp-q.json +54 -0
  20. package/rules/bandit-b307-eval.json +125 -0
  21. package/rules/bandit-b308-mark-safe.json +47 -0
  22. package/rules/bandit-b310-urllib-urlopen.json +54 -0
  23. package/rules/bandit-b311-random.json +57 -0
  24. package/rules/bandit-b312-telnetlib.json +47 -0
  25. package/rules/bandit-b313-xml-bad-celementtree.json +50 -0
  26. package/rules/bandit-b314-xml-bad-elementtree.json +50 -0
  27. package/rules/bandit-b315-xml-bad-expatreader.json +47 -0
  28. package/rules/bandit-b316-xml-bad-expatbuilder.json +48 -0
  29. package/rules/bandit-b317-xml-bad-sax.json +58 -0
  30. package/rules/bandit-b318-xml-bad-minidom.json +48 -0
  31. package/rules/bandit-b319-xml-bad-pulldom.json +48 -0
  32. package/rules/bandit-b321-ftplib.json +47 -0
  33. package/rules/bandit-b323-unverified-context.json +47 -0
  34. package/rules/bandit-b401-import-telnetlib.json +48 -0
  35. package/rules/bandit-b402-import-ftplib.json +48 -0
  36. package/rules/bandit-b405-import-xml-etree.json +69 -0
  37. package/rules/bandit-b406-import-xml-sax.json +73 -0
  38. package/rules/bandit-b407-import-xml-expat.json +54 -0
  39. package/rules/bandit-b408-import-xml-minidom.json +54 -0
  40. package/rules/bandit-b409-import-xml-pulldom.json +54 -0
  41. package/rules/bandit-b411-import-xmlrpclib.json +48 -0
  42. package/rules/bandit-b413-import-pycrypto.json +159 -0
  43. package/rules/bandit-b415-import-pyghmi.json +48 -0
  44. package/rules/bandit-b502-ssl-with-bad-version.json +90 -0
  45. package/rules/bandit-b505-weak-cryptographic-key.json +166 -0
  46. package/rules/bandit-b507-ssh-no-host-key-verification.json +210 -0
  47. package/rules/bandit-b606-start-process-with-no-shell.json +63 -0
  48. package/rules/bandit-b610-django-extra-used.json +268 -0
  49. package/rules/bandit-b615-huggingface-unsafe-download.json +1152 -0
  50. package/rules/ruff-async100-cancel-scope-no-checkpoint.json +357 -0
  51. package/rules/ruff-async105-trio-sync-call.json +199 -0
  52. package/rules/ruff-async115-async-zero-sleep.json +264 -0
  53. package/rules/ruff-async116-long-sleep-not-forever.json +267 -0
  54. package/rules/ruff-async210-blocking-http-call-in-async-function.json +161 -0
  55. package/rules/ruff-async221-run-process-in-async-function.json +342 -0
  56. package/rules/ruff-async222-wait-for-process-in-async-function.json +144 -0
  57. package/rules/ruff-async230-blocking-open-call-in-async-function.json +339 -0
  58. package/rules/ruff-async250-blocking-input-in-async-function.json +143 -0
  59. package/rules/ruff-async251-blocking-sleep-in-async-function.json +140 -0
  60. package/rules/ruff-b002-unary-prefix-increment-decrement.json +54 -0
  61. package/rules/ruff-b003-assignment-to-os-environ.json +54 -0
  62. package/rules/ruff-b004-unreliable-callable-check.json +171 -0
  63. package/rules/ruff-b005-strip-with-multi-characters.json +131 -0
  64. package/rules/ruff-b007-unused-loop-control-variable.json +368 -0
  65. package/rules/ruff-b009-get-attr-with-constant.json +190 -0
  66. package/rules/ruff-b010-set-attr-with-constant.json +219 -0
  67. package/rules/ruff-b011-assert-false.json +62 -0
  68. package/rules/ruff-b013-redundant-tuple-in-exception-handler.json +94 -0
  69. package/rules/ruff-b014-duplicate-handler-exception.json +126 -0
  70. package/rules/ruff-b016-raise-literal.json +47 -0
  71. package/rules/ruff-b020-loop-variable-overrides-iterator.json +341 -0
  72. package/rules/ruff-b021-f-string-docstring.json +48 -0
  73. package/rules/ruff-b022-useless-contextlib-suppress.json +95 -0
  74. package/rules/ruff-b023-function-uses-loop-variable.json +560 -0
  75. package/rules/ruff-b025-duplicate-try-block-exception.json +182 -0
  76. package/rules/ruff-b026-star-arg-unpacking-after-keyword-arg.json +57 -0
  77. package/rules/ruff-b028-no-explicit-stacklevel.json +177 -0
  78. package/rules/ruff-b029-except-with-empty-tuple.json +102 -0
  79. package/rules/ruff-b032-unintentional-type-annotation.json +157 -0
  80. package/rules/ruff-b033-duplicate-value.json +129 -0
  81. package/rules/ruff-b034-re-sub-positional-args.json +159 -0
  82. package/rules/ruff-b039-mutable-contextvar-default.json +281 -0
  83. package/rules/ruff-b904-raise-without-from-inside-except.json +194 -0
  84. package/rules/ruff-b905-zip-without-explicit-strict.json +429 -0
  85. package/rules/ruff-e711-none-comparison.json +199 -0
  86. package/rules/ruff-e721-type-comparison.json +293 -0
  87. package/rules/ruff-e722-bare-except.json +57 -0
  88. package/rules/ruff-e742-ambiguous-class-name.json +47 -0
  89. package/rules/ruff-e743-ambiguous-function-name.json +47 -0
  90. package/rules/ruff-f403-undefined-local-with-import-star.json +73 -0
  91. package/rules/ruff-f405-undefined-local-with-import-star-usage.json +87 -0
  92. package/rules/ruff-f406-undefined-local-with-nested-import-star-usage.json +39 -0
  93. package/rules/ruff-f407-future-feature-not-defined.json +56 -0
  94. package/rules/ruff-f501-percent-format-invalid-format.json +88 -0
  95. package/rules/ruff-f502-percent-format-expected-mapping.json +127 -0
  96. package/rules/ruff-f503-percent-format-expected-sequence.json +127 -0
  97. package/rules/ruff-f504-percent-format-extra-named-arguments.json +46 -0
  98. package/rules/ruff-f505-percent-format-missing-argument.json +49 -0
  99. package/rules/ruff-f506-percent-format-mixed-positional-and-named.json +114 -0
  100. package/rules/ruff-f507-percent-format-positional-count-mismatch.json +78 -0
  101. package/rules/ruff-f508-percent-format-star-requires-sequence.json +112 -0
  102. package/rules/ruff-f509-percent-format-unsupported-format-character.json +86 -0
  103. package/rules/ruff-f521-string-dot-format-invalid-format.json +83 -0
  104. package/rules/ruff-f522-string-dot-format-extra-named-arguments.json +46 -0
  105. package/rules/ruff-f523-string-dot-format-extra-positional-arguments.json +48 -0
  106. package/rules/ruff-f524-string-dot-format-missing-arguments.json +46 -0
  107. package/rules/ruff-f525-string-dot-format-mixing-automatic.json +99 -0
  108. package/rules/ruff-f541-f-string-missing-placeholders.json +52 -0
  109. package/rules/ruff-f601-multi-value-repeated-key-literal.json +215 -0
  110. package/rules/ruff-f602-multi-value-repeated-key-variable.json +123 -0
  111. package/rules/ruff-f622-multiple-starred-expressions.json +57 -0
  112. package/rules/ruff-f632-is-literal.json +232 -0
  113. package/rules/ruff-f633-invalid-print-syntax.json +299 -0
  114. package/rules/ruff-f701-break-outside-loop.json +64 -0
  115. package/rules/ruff-f702-continue-outside-loop.json +64 -0
  116. package/rules/ruff-f706-return-outside-function.json +61 -0
  117. package/rules/ruff-f707-default-except-not-last.json +50 -0
  118. package/rules/ruff-f722-forward-annotation-syntax-error.json +654 -0
  119. package/rules/ruff-f822-undefined-export.json +55 -0
  120. package/rules/ruff-f823-undefined-local.json +42 -0
  121. package/rules/ruff-f842-unused-annotation.json +51 -0
  122. package/rules/ruff-f901-raise-not-implemented.json +97 -0
  123. package/rules/ruff-pie794-duplicate-class-field-definition.json +157 -0
  124. package/rules/ruff-pie796-non-unique-enums.json +460 -0
  125. package/rules/ruff-pie800-unnecessary-spread.json +62 -0
  126. package/rules/ruff-pie804-unnecessary-dict-kwargs.json +179 -0
  127. package/rules/ruff-pie807-reimplemented-container-builtin.json +100 -0
  128. package/rules/ruff-pie810-multiple-starts-ends-with.json +585 -0
  129. package/rules/ruff-ret501-unnecessary-return-none.json +256 -0
  130. package/rules/ruff-ret502-implicit-return-value.json +163 -0
  131. package/rules/ruff-ret505-superfluous-else-return.json +211 -0
  132. package/rules/ruff-ret506-superfluous-else-raise.json +211 -0
  133. package/rules/ruff-ret507-superfluous-else-continue.json +211 -0
  134. package/rules/ruff-ret508-superfluous-else-break.json +211 -0
  135. package/rules/ruff-sim101-duplicate-isinstance-call.json +384 -0
  136. package/rules/ruff-sim107-return-in-try-except-finally.json +82 -0
  137. package/rules/ruff-sim109-compare-with-tuple.json +205 -0
  138. package/rules/ruff-sim112-uncapitalized-environment-variables.json +168 -0
  139. package/rules/ruff-sim113-enumerate-for-loop.json +562 -0
  140. package/rules/ruff-sim208-double-negation.json +58 -0
  141. package/rules/ruff-sim210-if-expr-with-true-false.json +90 -0
  142. package/rules/ruff-sim211-if-expr-with-false-true.json +90 -0
  143. package/rules/ruff-sim212-if-expr-with-twisted-arms.json +95 -0
  144. package/rules/ruff-sim300-yoda-conditions.json +487 -0
  145. package/rules/ruff-sim905-split-static-string.json +579 -0
  146. package/rules/ruff-sim910-dict-get-with-none-default.json +518 -0
  147. package/rules/ruff-t100-debugger.json +197 -0
@@ -0,0 +1,579 @@
1
+ {
2
+ "format": "rerail.policy/v1",
3
+ "id": "ruff-sim905-split-static-string",
4
+ "revision": 1,
5
+ "mode": "steer",
6
+ "description": "Port of Ruff's SIM905 (split-static-string): `.split(...)` or `.rsplit(...)` called on a str literal (implicit concatenations included; not bytes, f- or t-strings), where `sep` (keyword, else first positional argument) is absent, `None` or a str literal, and `maxsplit` (keyword, else second positional argument) is absent or an integer literal, optionally negated, that fits in an i32 (`get_maxsplit_value`). Reported on the call.",
7
+ "scope": {
8
+ "include": [
9
+ "**/*"
10
+ ],
11
+ "exclude": []
12
+ },
13
+ "clauses": [
14
+ {
15
+ "id": "split-static-string",
16
+ "forbid": {
17
+ "ast": {
18
+ "language": "python",
19
+ "utils": {
20
+ "part-t": {
21
+ "has": {
22
+ "stopBy": "neighbor",
23
+ "kind": "string_start",
24
+ "regex": "^[A-Za-z]*[tT]"
25
+ }
26
+ },
27
+ "part-f": {
28
+ "has": {
29
+ "stopBy": "neighbor",
30
+ "kind": "string_start",
31
+ "regex": "^[A-Za-z]*[fF]"
32
+ }
33
+ },
34
+ "part-b": {
35
+ "has": {
36
+ "stopBy": "neighbor",
37
+ "kind": "string_start",
38
+ "regex": "^[A-Za-z]*[bB]"
39
+ }
40
+ },
41
+ "t-string": {
42
+ "any": [
43
+ {
44
+ "kind": "string",
45
+ "matches": "part-t"
46
+ },
47
+ {
48
+ "kind": "concatenated_string",
49
+ "has": {
50
+ "stopBy": "neighbor",
51
+ "kind": "string",
52
+ "matches": "part-t"
53
+ }
54
+ }
55
+ ]
56
+ },
57
+ "f-string": {
58
+ "not": {
59
+ "matches": "t-string"
60
+ },
61
+ "any": [
62
+ {
63
+ "kind": "string",
64
+ "matches": "part-f"
65
+ },
66
+ {
67
+ "kind": "concatenated_string",
68
+ "has": {
69
+ "stopBy": "neighbor",
70
+ "kind": "string",
71
+ "matches": "part-f"
72
+ }
73
+ }
74
+ ]
75
+ },
76
+ "plain-string": {
77
+ "any": [
78
+ {
79
+ "kind": "string"
80
+ },
81
+ {
82
+ "kind": "concatenated_string"
83
+ }
84
+ ],
85
+ "not": {
86
+ "any": [
87
+ {
88
+ "matches": "t-string"
89
+ },
90
+ {
91
+ "matches": "f-string"
92
+ }
93
+ ]
94
+ }
95
+ },
96
+ "bytes-string": {
97
+ "matches": "plain-string",
98
+ "any": [
99
+ {
100
+ "kind": "string",
101
+ "matches": "part-b"
102
+ },
103
+ {
104
+ "kind": "concatenated_string",
105
+ "has": {
106
+ "stopBy": "neighbor",
107
+ "kind": "string",
108
+ "matches": "part-b"
109
+ }
110
+ }
111
+ ]
112
+ },
113
+ "receiver": {
114
+ "any": [
115
+ {
116
+ "matches": "plain-string",
117
+ "not": {
118
+ "matches": "bytes-string"
119
+ }
120
+ },
121
+ {
122
+ "kind": "parenthesized_expression",
123
+ "has": {
124
+ "stopBy": "neighbor",
125
+ "matches": "receiver"
126
+ }
127
+ }
128
+ ]
129
+ },
130
+ "int32": {
131
+ "any": [
132
+ {
133
+ "kind": "integer",
134
+ "value": {
135
+ "type": "int",
136
+ "le": 2147483647
137
+ }
138
+ },
139
+ {
140
+ "kind": "parenthesized_expression",
141
+ "has": {
142
+ "stopBy": "neighbor",
143
+ "matches": "int32"
144
+ }
145
+ }
146
+ ]
147
+ },
148
+ "maxsplit": {
149
+ "any": [
150
+ {
151
+ "matches": "int32"
152
+ },
153
+ {
154
+ "matches": "neg-int32"
155
+ }
156
+ ]
157
+ },
158
+ "neg-int32": {
159
+ "any": [
160
+ {
161
+ "kind": "unary_operator",
162
+ "has": {
163
+ "stopBy": "neighbor",
164
+ "regex": "^-$"
165
+ },
166
+ "all": [
167
+ {
168
+ "has": {
169
+ "stopBy": "neighbor",
170
+ "matches": "int32"
171
+ }
172
+ }
173
+ ]
174
+ },
175
+ {
176
+ "kind": "parenthesized_expression",
177
+ "has": {
178
+ "stopBy": "neighbor",
179
+ "matches": "neg-int32"
180
+ }
181
+ }
182
+ ]
183
+ },
184
+ "sep": {
185
+ "any": [
186
+ {
187
+ "any": [
188
+ {
189
+ "kind": "none"
190
+ },
191
+ {
192
+ "matches": "plain-string",
193
+ "not": {
194
+ "matches": "bytes-string"
195
+ }
196
+ }
197
+ ]
198
+ },
199
+ {
200
+ "kind": "parenthesized_expression",
201
+ "has": {
202
+ "stopBy": "neighbor",
203
+ "matches": "sep"
204
+ }
205
+ }
206
+ ]
207
+ }
208
+ },
209
+ "rule": {
210
+ "kind": "call",
211
+ "has": {
212
+ "stopBy": "neighbor",
213
+ "kind": "attribute",
214
+ "all": [
215
+ {
216
+ "has": {
217
+ "stopBy": "neighbor",
218
+ "matches": "receiver",
219
+ "precedes": {
220
+ "stopBy": {
221
+ "not": {
222
+ "kind": "comment"
223
+ }
224
+ },
225
+ "regex": "^\\.$"
226
+ }
227
+ }
228
+ },
229
+ {
230
+ "has": {
231
+ "stopBy": "neighbor",
232
+ "kind": "identifier",
233
+ "regex": "^(split|rsplit)$",
234
+ "follows": {
235
+ "stopBy": "neighbor",
236
+ "regex": "^\\.$"
237
+ }
238
+ }
239
+ }
240
+ ]
241
+ },
242
+ "all": [
243
+ {
244
+ "has": {
245
+ "stopBy": "neighbor",
246
+ "kind": "argument_list",
247
+ "all": [
248
+ {
249
+ "any": [
250
+ {
251
+ "has": {
252
+ "stopBy": "neighbor",
253
+ "kind": "keyword_argument",
254
+ "has": {
255
+ "stopBy": "neighbor",
256
+ "kind": "identifier",
257
+ "regex": "^maxsplit$",
258
+ "precedes": {
259
+ "stopBy": "neighbor",
260
+ "regex": "^=$"
261
+ }
262
+ },
263
+ "all": [
264
+ {
265
+ "has": {
266
+ "stopBy": "neighbor",
267
+ "follows": {
268
+ "stopBy": "neighbor",
269
+ "regex": "^=$"
270
+ },
271
+ "matches": "maxsplit"
272
+ }
273
+ }
274
+ ]
275
+ }
276
+ },
277
+ {
278
+ "not": {
279
+ "has": {
280
+ "stopBy": "neighbor",
281
+ "kind": "keyword_argument",
282
+ "has": {
283
+ "stopBy": "neighbor",
284
+ "kind": "identifier",
285
+ "regex": "^maxsplit$",
286
+ "precedes": {
287
+ "stopBy": "neighbor",
288
+ "regex": "^=$"
289
+ }
290
+ }
291
+ }
292
+ },
293
+ "any": [
294
+ {
295
+ "has": {
296
+ "stopBy": "neighbor",
297
+ "not": {
298
+ "any": [
299
+ {
300
+ "regex": "^[\\[\\](){},]$"
301
+ },
302
+ {
303
+ "kind": "keyword_argument"
304
+ },
305
+ {
306
+ "kind": "list_splat"
307
+ },
308
+ {
309
+ "kind": "dictionary_splat"
310
+ },
311
+ {
312
+ "kind": "comment"
313
+ }
314
+ ]
315
+ },
316
+ "follows": {
317
+ "stopBy": {
318
+ "not": {
319
+ "kind": "comment"
320
+ }
321
+ },
322
+ "regex": "^,$",
323
+ "follows": {
324
+ "stopBy": {
325
+ "not": {
326
+ "kind": "comment"
327
+ }
328
+ },
329
+ "not": {
330
+ "any": [
331
+ {
332
+ "regex": "^[\\[\\](){},]$"
333
+ },
334
+ {
335
+ "kind": "keyword_argument"
336
+ },
337
+ {
338
+ "kind": "list_splat"
339
+ },
340
+ {
341
+ "kind": "dictionary_splat"
342
+ },
343
+ {
344
+ "kind": "comment"
345
+ }
346
+ ]
347
+ },
348
+ "follows": {
349
+ "stopBy": {
350
+ "not": {
351
+ "kind": "comment"
352
+ }
353
+ },
354
+ "regex": "^\\($"
355
+ }
356
+ }
357
+ },
358
+ "all": [
359
+ {
360
+ "matches": "maxsplit"
361
+ }
362
+ ]
363
+ }
364
+ },
365
+ {
366
+ "not": {
367
+ "has": {
368
+ "stopBy": "neighbor",
369
+ "not": {
370
+ "any": [
371
+ {
372
+ "regex": "^[\\[\\](){},]$"
373
+ },
374
+ {
375
+ "kind": "keyword_argument"
376
+ },
377
+ {
378
+ "kind": "list_splat"
379
+ },
380
+ {
381
+ "kind": "dictionary_splat"
382
+ },
383
+ {
384
+ "kind": "comment"
385
+ }
386
+ ]
387
+ },
388
+ "follows": {
389
+ "stopBy": {
390
+ "not": {
391
+ "kind": "comment"
392
+ }
393
+ },
394
+ "regex": "^,$",
395
+ "follows": {
396
+ "stopBy": {
397
+ "not": {
398
+ "kind": "comment"
399
+ }
400
+ },
401
+ "not": {
402
+ "any": [
403
+ {
404
+ "regex": "^[\\[\\](){},]$"
405
+ },
406
+ {
407
+ "kind": "keyword_argument"
408
+ },
409
+ {
410
+ "kind": "list_splat"
411
+ },
412
+ {
413
+ "kind": "dictionary_splat"
414
+ },
415
+ {
416
+ "kind": "comment"
417
+ }
418
+ ]
419
+ },
420
+ "follows": {
421
+ "stopBy": {
422
+ "not": {
423
+ "kind": "comment"
424
+ }
425
+ },
426
+ "regex": "^\\($"
427
+ }
428
+ }
429
+ }
430
+ }
431
+ }
432
+ }
433
+ ]
434
+ }
435
+ ]
436
+ },
437
+ {
438
+ "any": [
439
+ {
440
+ "has": {
441
+ "stopBy": "neighbor",
442
+ "kind": "keyword_argument",
443
+ "has": {
444
+ "stopBy": "neighbor",
445
+ "kind": "identifier",
446
+ "regex": "^sep$",
447
+ "precedes": {
448
+ "stopBy": "neighbor",
449
+ "regex": "^=$"
450
+ }
451
+ },
452
+ "all": [
453
+ {
454
+ "has": {
455
+ "stopBy": "neighbor",
456
+ "follows": {
457
+ "stopBy": "neighbor",
458
+ "regex": "^=$"
459
+ },
460
+ "matches": "sep"
461
+ }
462
+ }
463
+ ]
464
+ }
465
+ },
466
+ {
467
+ "not": {
468
+ "has": {
469
+ "stopBy": "neighbor",
470
+ "kind": "keyword_argument",
471
+ "has": {
472
+ "stopBy": "neighbor",
473
+ "kind": "identifier",
474
+ "regex": "^sep$",
475
+ "precedes": {
476
+ "stopBy": "neighbor",
477
+ "regex": "^=$"
478
+ }
479
+ }
480
+ }
481
+ },
482
+ "any": [
483
+ {
484
+ "has": {
485
+ "stopBy": "neighbor",
486
+ "not": {
487
+ "any": [
488
+ {
489
+ "regex": "^[\\[\\](){},]$"
490
+ },
491
+ {
492
+ "kind": "keyword_argument"
493
+ },
494
+ {
495
+ "kind": "list_splat"
496
+ },
497
+ {
498
+ "kind": "dictionary_splat"
499
+ },
500
+ {
501
+ "kind": "comment"
502
+ }
503
+ ]
504
+ },
505
+ "follows": {
506
+ "stopBy": {
507
+ "not": {
508
+ "kind": "comment"
509
+ }
510
+ },
511
+ "regex": "^\\($"
512
+ },
513
+ "all": [
514
+ {
515
+ "matches": "sep"
516
+ }
517
+ ]
518
+ }
519
+ },
520
+ {
521
+ "not": {
522
+ "has": {
523
+ "stopBy": "neighbor",
524
+ "not": {
525
+ "any": [
526
+ {
527
+ "regex": "^[\\[\\](){},]$"
528
+ },
529
+ {
530
+ "kind": "keyword_argument"
531
+ },
532
+ {
533
+ "kind": "list_splat"
534
+ },
535
+ {
536
+ "kind": "dictionary_splat"
537
+ },
538
+ {
539
+ "kind": "comment"
540
+ }
541
+ ]
542
+ },
543
+ "follows": {
544
+ "stopBy": {
545
+ "not": {
546
+ "kind": "comment"
547
+ }
548
+ },
549
+ "regex": "^\\($"
550
+ }
551
+ }
552
+ }
553
+ }
554
+ ]
555
+ }
556
+ ]
557
+ }
558
+ ]
559
+ }
560
+ }
561
+ ]
562
+ }
563
+ }
564
+ },
565
+ "violation": {
566
+ "anchor": "witness.span",
567
+ "code": "SIM905",
568
+ "message": "Consider using a list literal instead of `str.split`",
569
+ "suppress": {
570
+ "noqa": {
571
+ "codes": [
572
+ "SIM905"
573
+ ]
574
+ }
575
+ }
576
+ }
577
+ }
578
+ ]
579
+ }