-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.swiftlint-baseline.json
More file actions
2012 lines (2012 loc) · 76 KB
/
Copy path.swiftlint-baseline.json
File metadata and controls
2012 lines (2012 loc) · 76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
[
{
"text": "public actor SimulatorPool {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/AppleBuildAdapters/SimulatorPool.swift",
"line": 150,
"character": 8
},
"reason": "Actor body should span 300 lines or less excluding comments and whitespace: currently spans 341 lines",
"ruleName": "Type Body Length",
"ruleIdentifier": "type_body_length",
"ruleDescription": "Type bodies should not span too many lines"
}
},
{
"text": " public func runBatch(",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/AppleBuildAdapters/XcodeBuildAdapter.swift",
"line": 1628,
"character": 12
},
"reason": "Function body should span 80 lines or less excluding comments and whitespace: currently spans 87 lines",
"ruleName": "Function Body Length",
"ruleIdentifier": "function_body_length",
"ruleDescription": "Function bodies should not span too many lines"
}
},
{
"text": "}",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/AppleBuildAdapters/XcodeBuildAdapter.swift",
"line": 2090,
"character": 1
},
"reason": "File should contain 1000 lines or less: currently contains 2090",
"ruleName": "File Length",
"ruleIdentifier": "file_length",
"ruleDescription": "Files should not span too many lines."
}
},
{
"text": " private static func notApplicableMarker(corpusName: String, metric: Metric, dimension: StratumTestResult.Dimension, parent: String?) -> StratumTestResult {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/BudgetV2Eval/Screen.swift",
"line": 174,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 159 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " private static func decide(",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/BudgetV2Eval/Screen.swift",
"line": 188,
"character": 20
},
"reason": "Function should have 6 parameters or less: it currently has 7",
"ruleName": "Function Parameter Count",
"ruleIdentifier": "function_parameter_count",
"ruleDescription": "Number of function parameters should be low."
}
},
{
"text": " let sorted = pooled.enumerated().sorted { $0.element.value < $1.element.value }",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/BudgetV2Eval/Statistics.swift",
"line": 34,
"character": 29
},
"reason": "When the index is not used, `.enumerated()` can be removed",
"ruleName": "Unused Enumerated",
"ruleIdentifier": "unused_enumerated",
"ruleDescription": "When the index or the item is not used, `.enumerated()` can be removed."
}
},
{
"text": "enum SchemataRunOrchestration {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/CLI/Commands/SchemataRunOrchestration.swift",
"line": 27,
"character": 1
},
"reason": "Enum body should span 300 lines or less excluding comments and whitespace: currently spans 342 lines",
"ruleName": "Type Body Length",
"ruleIdentifier": "type_body_length",
"ruleDescription": "Type bodies should not span too many lines"
}
},
{
"text": " private static func merge(",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/CLI/Commands/SchemataRunOrchestration.swift",
"line": 451,
"character": 20
},
"reason": "Function should have 6 parameters or less: it currently has 7",
"ruleName": "Function Parameter Count",
"ruleIdentifier": "function_parameter_count",
"ruleDescription": "Number of function parameters should be low."
}
},
{
"text": " func confirmTimeout(",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/MutationConfirmationCoordinator.swift",
"line": 305,
"character": 5
},
"reason": "Function body should span 80 lines or less excluding comments and whitespace: currently spans 95 lines",
"ruleName": "Function Body Length",
"ruleIdentifier": "function_body_length",
"ruleDescription": "Function bodies should not span too many lines"
}
},
{
"text": "public struct MutationRunner: Sendable {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/MutationRunner.swift",
"line": 38,
"character": 8
},
"reason": "Struct body should span 300 lines or less excluding comments and whitespace: currently spans 1381 lines",
"ruleName": "Type Body Length",
"ruleIdentifier": "type_body_length",
"ruleDescription": "Type bodies should not span too many lines"
}
},
{
"text": " ) async -> (results: [MutationResult], readyToTest: [PreparedMutant], sandbox: URL?) {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/MutationRunner.swift",
"line": 568,
"character": 16
},
"reason": "Tuples should have at most 2 members",
"ruleName": "Large Tuple",
"ruleIdentifier": "large_tuple",
"ruleDescription": "Tuples shouldn't have too many members. Create a custom type instead."
}
},
{
"text": " ) async -> (results: [MutationResult], batchCount: Int, batchDurations: [Double]) {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/MutationRunner.swift",
"line": 1051,
"character": 16
},
"reason": "Tuples should have at most 2 members",
"ruleName": "Large Tuple",
"ruleIdentifier": "large_tuple",
"ruleDescription": "Tuples shouldn't have too many members. Create a custom type instead."
}
},
{
"text": " ) async -> (",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/MutationRunner.swift",
"line": 1227,
"character": 16
},
"reason": "Tuples should have at most 2 members",
"ruleName": "Large Tuple",
"ruleIdentifier": "large_tuple",
"ruleDescription": "Tuples shouldn't have too many members. Create a custom type instead."
}
},
{
"text": " private func testWaveChunk(",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/MutationRunner.swift",
"line": 1355,
"character": 13
},
"reason": "Function body should span 80 lines or less excluding comments and whitespace: currently spans 95 lines",
"ruleName": "Function Body Length",
"ruleIdentifier": "function_body_length",
"ruleDescription": "Function bodies should not span too many lines"
}
},
{
"text": " ) async -> (results: [MutationResult], nextSurvivors: [WaveSurvivor], duration: Double?) {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/MutationRunner.swift",
"line": 1358,
"character": 16
},
"reason": "Tuples should have at most 2 members",
"ruleName": "Large Tuple",
"ruleIdentifier": "large_tuple",
"ruleDescription": "Tuples shouldn't have too many members. Create a custom type instead."
}
},
{
"text": " ) async -> (results: [MutationResult], configurations: Int, duration: Double?) {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/MutationRunner.swift",
"line": 1645,
"character": 16
},
"reason": "Tuples should have at most 2 members",
"ruleName": "Large Tuple",
"ruleIdentifier": "large_tuple",
"ruleDescription": "Tuples shouldn't have too many members. Create a custom type instead."
}
},
{
"text": " private func establishBaseline(in sandbox: URL, startedAt: Date) async -> BaselineAttempt {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/MutationRunner.swift",
"line": 1799,
"character": 13
},
"reason": "Function body should span 80 lines or less excluding comments and whitespace: currently spans 91 lines",
"ruleName": "Function Body Length",
"ruleIdentifier": "function_body_length",
"ruleDescription": "Function bodies should not span too many lines"
}
},
{
"text": " timeouts: TimeoutController(settings: configuration.timeouts).recordingBaseline(durationSeconds: shared.testDurationSeconds),",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/MutationRunner.swift",
"line": 1963,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 141 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " private func prepare(",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/MutationRunner.swift",
"line": 2140,
"character": 13
},
"reason": "Function body should span 80 lines or less excluding comments and whitespace: currently spans 115 lines",
"ruleName": "Function Body Length",
"ruleIdentifier": "function_body_length",
"ruleDescription": "Function bodies should not span too many lines"
}
},
{
"text": " build: BuildObservation(outcome: .succeeded(buildProductHash: prepared.artifact.productHash, command: prepared.artifact.command)),",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/MutationRunner.swift",
"line": 2603,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 142 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": "}",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/MutationRunner.swift",
"line": 2802,
"character": 1
},
"reason": "File should contain 1000 lines or less: currently contains 2802",
"ruleName": "File Length",
"ruleIdentifier": "file_length",
"ruleDescription": "Files should not span too many lines."
}
},
{
"text": " public func runMutant(",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/PrioritizingTestAdapter.swift",
"line": 89,
"character": 12
},
"reason": "Function body should span 80 lines or less excluding comments and whitespace: currently spans 89 lines",
"ruleName": "Function Body Length",
"ruleIdentifier": "function_body_length",
"ruleDescription": "Function bodies should not span too many lines"
}
},
{
"text": "public struct SchemataMutationRunner: Sendable {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/SchemataMutationRunner.swift",
"line": 32,
"character": 8
},
"reason": "Struct body should span 300 lines or less excluding comments and whitespace: currently spans 985 lines",
"ruleName": "Type Body Length",
"ruleIdentifier": "type_body_length",
"ruleDescription": "Type bodies should not span too many lines"
}
},
{
"text": " private func runChunk(",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/SchemataMutationRunner.swift",
"line": 877,
"character": 13
},
"reason": "Function should have 6 parameters or less: it currently has 8",
"ruleName": "Function Parameter Count",
"ruleIdentifier": "function_parameter_count",
"ruleDescription": "Number of function parameters should be low."
}
},
{
"text": " private func runEntries(",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/SchemataMutationRunner.swift",
"line": 1184,
"character": 13
},
"reason": "Function should have 6 parameters or less: it currently has 8",
"ruleName": "Function Parameter Count",
"ruleIdentifier": "function_parameter_count",
"ruleDescription": "Number of function parameters should be low."
}
},
{
"text": " switch prepareDispatch(entry, state: state, timeoutController: timeoutController, perTestCoverage: perTestCoverage, coverage: coverage) {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/SchemataMutationRunner.swift",
"line": 1556,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 145 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " let (kind, runID, unitID, tok): (String, RunID, CompilationUnitID, SchemataSelectorToken) = switch record {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/SchemataMutationRunner.swift",
"line": 1644,
"character": 49
},
"reason": "Tuples should have at most 2 members",
"ruleName": "Large Tuple",
"ruleIdentifier": "large_tuple",
"ruleDescription": "Tuples shouldn't have too many members. Create a custom type instead."
}
},
{
"text": " SchemataEvidenceCollector.tokenEnvironmentVariable: SchemataEvidenceCollector.tokenEnvironmentValue(for: dispatch.token),",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/SchemataMutationRunner.swift",
"line": 1829,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 145 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " SchemataEvidenceCollector.runIDEnvironmentVariable: SchemataEvidenceCollector.runIDEnvironmentValue(for: dispatch.runID)",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/SchemataMutationRunner.swift",
"line": 1831,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 144 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " func runSchemataToken(",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/SchemataMutationRunner.swift",
"line": 2043,
"character": 5
},
"reason": "Function should have 6 parameters or less: it currently has 7",
"ruleName": "Function Parameter Count",
"ruleIdentifier": "function_parameter_count",
"ruleDescription": "Number of function parameters should be low."
}
},
{
"text": "}",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/SchemataMutationRunner.swift",
"line": 2160,
"character": 1
},
"reason": "File should contain 1000 lines or less: currently contains 2160",
"ruleName": "File Length",
"ruleIdentifier": "file_length",
"ruleDescription": "Files should not span too many lines."
}
},
{
"text": " public static func establish(",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/SharedBaselineEstablisher.swift",
"line": 28,
"character": 19
},
"reason": "Function body should span 80 lines or less excluding comments and whitespace: currently spans 87 lines",
"ruleName": "Function Body Length",
"ruleIdentifier": "function_body_length",
"ruleDescription": "Function bodies should not span too many lines"
}
},
{
"text": " public static func establish(",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationExecution/SharedBaselineEstablisher.swift",
"line": 28,
"character": 19
},
"reason": "Function should have 6 parameters or less: it currently has 7",
"ruleName": "Function Parameter Count",
"ruleIdentifier": "function_parameter_count",
"ruleDescription": "Number of function parameters should be low."
}
},
{
"text": " public static func validate(_ configuration: Configuration, projectRoot: URL? = nil) -> [ConfigurationIssue] {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationModel/ConfigurationValidation.swift",
"line": 52,
"character": 12
},
"reason": "Function should have complexity 12 or less; currently complexity is 13",
"ruleName": "Cyclomatic Complexity",
"ruleIdentifier": "cyclomatic_complexity",
"ruleDescription": "Complexity of function bodies should be limited."
}
},
{
"text": " public static func validate(_ configuration: Configuration, projectRoot: URL? = nil) -> [ConfigurationIssue] {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationModel/ConfigurationValidation.swift",
"line": 52,
"character": 19
},
"reason": "Function body should span 80 lines or less excluding comments and whitespace: currently spans 102 lines",
"ruleName": "Function Body Length",
"ruleIdentifier": "function_body_length",
"ruleDescription": "Function bodies should not span too many lines"
}
},
{
"text": " public func record(_ name: String, chunkID: String? = nil, mutationID: String? = nil, start: ContinuousClock.Instant, end: ContinuousClock.Instant? = nil) {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationModel/GateTimingRecorder.swift",
"line": 59,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 160 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": "public enum MutationVerdictVerifier {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationModel/MutationVerdictVerifier.swift",
"line": 36,
"character": 8
},
"reason": "Enum body should span 300 lines or less excluding comments and whitespace: currently spans 708 lines",
"ruleName": "Type Body Length",
"ruleIdentifier": "type_body_length",
"ruleDescription": "Type bodies should not span too many lines"
}
},
{
"text": "}",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationModel/MutationVerdictVerifier.swift",
"line": 1038,
"character": 1
},
"reason": "File should contain 1000 lines or less: currently contains 1038",
"ruleName": "File Length",
"ruleIdentifier": "file_length",
"ruleDescription": "Files should not span too many lines."
}
},
{
"text": "/// Moved here from `MutationExecution` (ADR-0006 Stage 1): `MutationVerdictVerifier`",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationModel/TestObservation.swift",
"line": 3,
"character": 1
},
"reason": "A doc comment should be attached to a declaration",
"ruleName": "Orphaned Doc Comment",
"ruleIdentifier": "orphaned_doc_comment",
"ruleDescription": "A doc comment should be attached to a declaration"
}
},
{
"text": " public init(mutationRef: PlannedMutationRef, outcome: MutationOutcome, evidence: MutationEvidence, testSummary: TestOutcomeSummary?, diagnosis: String) {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationModel/VerdictProof.swift",
"line": 29,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 157 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " ) throws -> ([MutationPoint], [SkippedMutation], [InclusionReason]) {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationPlanner/MutationPlanner.swift",
"line": 301,
"character": 17
},
"reason": "Tuples should have at most 2 members",
"ruleName": "Large Tuple",
"ruleIdentifier": "large_tuple",
"ruleDescription": "Tuples shouldn't have too many members. Create a custom type instead."
}
},
{
"text": " ) throws -> ([MutationPoint], [SkippedMutation], [InclusionReason]) {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/MutationPlanner/MutationPlanner.swift",
"line": 380,
"character": 17
},
"reason": "Tuples should have at most 2 members",
"ruleName": "Large Tuple",
"ruleIdentifier": "large_tuple",
"ruleDescription": "Tuples shouldn't have too many members. Create a custom type instead."
}
},
{
"text": " func run() throws {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/PlanSubsetDerivation/main.swift",
"line": 59,
"character": 5
},
"reason": "Function body should span 80 lines or less excluding comments and whitespace: currently spans 101 lines",
"ruleName": "Function Body Length",
"ruleIdentifier": "function_body_length",
"ruleDescription": "Function bodies should not span too many lines"
}
},
{
"text": "public struct HTMLReporter: Reporter {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/Reporting/HTMLReporter.swift",
"line": 11,
"character": 8
},
"reason": "Struct body should span 300 lines or less excluding comments and whitespace: currently spans 306 lines",
"ruleName": "Type Body Length",
"ruleIdentifier": "type_body_length",
"ruleDescription": "Type bodies should not span too many lines"
}
},
{
"text": " private static func component(for node: Syntax) -> String? {",
"violation": {
"severity": "warning",
"location": {
"file": "Sources/SwiftFrontend/DeclarationIdentityResolver.swift",
"line": 32,
"character": 13
},
"reason": "Function should have complexity 12 or less; currently complexity is 15",
"ruleName": "Cyclomatic Complexity",
"ruleIdentifier": "cyclomatic_complexity",
"ruleDescription": "Complexity of function bodies should be limited."
}
},
{
"text": " @Test(\"The same MutationID, outcome, scorability, and failing tests come from both backends, for &&/|| over identifiers and self. member access\")",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Acceptance/LogicalConnectorSchemataIsolatedDifferentialAcceptanceTests.swift",
"line": 204,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 149 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " private static func matchingStartup(in transcript: RuntimeTranscript, token: SchemataSelectorToken, runID: RunID) -> RuntimeStartupEvent? {",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Acceptance/SchemataSwiftPMLinkerInjectionAcceptanceTests.swift",
"line": 131,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 143 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " private static func matchingHit(in transcript: RuntimeTranscript, startup: RuntimeStartupEvent, token: SchemataSelectorToken) -> RuntimeHitEvent? {",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Acceptance/SchemataSwiftPMLinkerInjectionAcceptanceTests.swift",
"line": 138,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 151 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " guard case let .hit(event) = record, event.token == token, event.runID == startup.runID, event.processID == startup.processID else {",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Acceptance/SchemataSwiftPMLinkerInjectionAcceptanceTests.swift",
"line": 140,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 144 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " private static func matchingStartup(in transcript: RuntimeTranscript, token: SchemataSelectorToken, runID: RunID) -> RuntimeStartupEvent? {",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Acceptance/SchemataSwiftPMRuntimeAcceptanceTests.swift",
"line": 170,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 143 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " private static func matchingHit(in transcript: RuntimeTranscript, startup: RuntimeStartupEvent, token: SchemataSelectorToken) -> RuntimeHitEvent? {",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Acceptance/SchemataSwiftPMRuntimeAcceptanceTests.swift",
"line": 177,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 151 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " guard case let .hit(event) = record, event.token == token, event.runID == startup.runID, event.processID == startup.processID else {",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Acceptance/SchemataSwiftPMRuntimeAcceptanceTests.swift",
"line": 179,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 144 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " guard case let .hit(event) = record, event.token == staged.token, event.runID == startup.runID, event.processID == startup.processID",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Acceptance/SchemataXcodeRuntimeAcceptanceTests.swift",
"line": 331,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 144 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " let image = try! BuiltImageReceipt(",
"violation": {
"severity": "error",
"location": {
"file": "Tests/MutantKitTests/Support/Builders.swift",
"line": 128,
"character": 17
},
"reason": "Force tries should be avoided",
"ruleName": "Force Try",
"ruleIdentifier": "force_try",
"ruleDescription": "Force tries should be avoided"
}
},
{
"text": " slices: [BuiltImageSlice(architecture: BuiltArchitectureIdentity(cpuType: 0x0100_000C, cpuSubtype: 0), imageUUID: schemataFixtureImageUUID)]",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Support/Builders.swift",
"line": 130,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 148 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " return try! SchemataBuildReceipt(",
"violation": {
"severity": "error",
"location": {
"file": "Tests/MutantKitTests/Support/Builders.swift",
"line": 132,
"character": 12
},
"reason": "Force tries should be avoided",
"ruleName": "Force Try",
"ruleIdentifier": "force_try",
"ruleDescription": "Force tries should be avoided"
}
},
{
"text": " runID: schemataFixtureRunID, sourceEmbeddingID: schemataFixtureSourceEmbeddingID, compilationUnitID: schemataFixtureCompilationUnitID,",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Support/Builders.swift",
"line": 140,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 142 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " runID: schemataFixtureRunID, sourceEmbeddingID: schemataFixtureSourceEmbeddingID, compilationUnitID: schemataFixtureCompilationUnitID,",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Support/Builders.swift",
"line": 147,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 142 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": "struct BatchXCTestRunBuilderTests {",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Unit/BatchXCTestRunBuilderTests.swift",
"line": 9,
"character": 1
},
"reason": "Struct body should span 300 lines or less excluding comments and whitespace: currently spans 313 lines",
"ruleName": "Type Body Length",
"ruleIdentifier": "type_body_length",
"ruleDescription": "Type bodies should not span too many lines"
}
},
{
"text": " #expect(targetA?[\"EnvironmentVariables\"] as? [String: String] == [\"MUTANTKIT_SCHEMATA_TOKEN\": \"1:1\", \"MUTANTKIT_SCHEMATA_RUN_ID\": \"runA\"])",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Unit/BatchXCTestRunBuilderTests.swift",
"line": 347,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 146 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " #expect(targetB?[\"EnvironmentVariables\"] as? [String: String] == [\"MUTANTKIT_SCHEMATA_TOKEN\": \"1:2\", \"MUTANTKIT_SCHEMATA_RUN_ID\": \"runB\"])",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Unit/BatchXCTestRunBuilderTests.swift",
"line": 348,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 146 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " #expect(targetA?[\"OnlyTestIdentifiers\"] as? [String] == [\"SomeClass/testA\"], \"each configuration keeps its own independent test selection too\")",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Unit/BatchXCTestRunBuilderTests.swift",
"line": 349,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 151 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": "struct BoolLiteralSchemataLowererTests {",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Unit/BoolLiteralSchemataLowererTests.swift",
"line": 16,
"character": 1
},
"reason": "Struct body should span 300 lines or less excluding comments and whitespace: currently spans 577 lines",
"ruleName": "Type Body Length",
"ruleIdentifier": "type_body_length",
"ruleDescription": "Type bodies should not span too many lines"
}
},
{
"text": " @Test(\"Test E: pattern exclusion is ancestor-structural, not only direct-parent \u2014 an enum-associated-value pattern nests the literal several levels below its ExpressionPatternSyntax ancestor\")",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Unit/BoolLiteralSchemataLowererTests.swift",
"line": 197,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 196 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " #expect(reason == .patternPosition, \"the literal's direct parent is a function-call/labeled-expr chain, not ExpressionPatternSyntax itself \u2014 only an ancestor walk finds it\")",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Unit/BoolLiteralSchemataLowererTests.swift",
"line": 215,
"character": 1
},
"reason": "Line should be 140 characters or less; currently it has 181 characters",
"ruleName": "Line Length",
"ruleIdentifier": "line_length",
"ruleDescription": "Lines should not span too many characters."
}
},
{
"text": " let strata: [(operatorID: String, originalText: String, replacementText: String)] = [",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Unit/BudgetSelectorTests.swift",
"line": 288,
"character": 22
},
"reason": "Tuples should have at most 2 members",
"ruleName": "Large Tuple",
"ruleIdentifier": "large_tuple",
"ruleDescription": "Tuples shouldn't have too many members. Create a custom type instead."
}
},
{
"text": " #expect(resolved.device?.udid == iphone.udid, \"a numerically-newer tvOS runtime must never be selected as \\\"latest\\\" for an iOS request\")",
"violation": {
"severity": "warning",
"location": {
"file": "Tests/MutantKitTests/Unit/DestinationResolverTests.swift",
"line": 215,
"character": 1
},