field_ios

In-the-field app for Radroots on iOS
git clone https://radroots.dev/git/field_ios.git
Log | Files | Refs | README | LICENSE

swiftlint-maintainability-baseline.v1.json (15826B)


      1 [
      2   {
      3     "violation": {
      4       "reason": "Initializer body should span 50 lines or less excluding comments and whitespace: currently spans 52 lines",
      5       "ruleIdentifier": "function_body_length",
      6       "ruleName": "Function Body Length",
      7       "severity": "warning",
      8       "ruleDescription": "Function bodies should not span too many lines",
      9       "location": {
     10         "file": "Tera/App/TeraAppModel.swift",
     11         "line": 21,
     12         "character": 3
     13       }
     14     },
     15     "text": "  init("
     16   },
     17   {
     18     "violation": {
     19       "reason": "Class body should span 350 lines or less excluding comments and whitespace: currently spans 373 lines",
     20       "ruleIdentifier": "type_body_length",
     21       "ruleName": "Type Body Length",
     22       "severity": "error",
     23       "ruleDescription": "Type bodies should not span too many lines",
     24       "location": {
     25         "file": "Tera/Runtime/TeraGeneratedRuntimeBackend.swift",
     26         "line": 31,
     27         "character": 7
     28       }
     29     },
     30     "text": "final class TeraGeneratedRuntimeBackend: TeraRuntimeBackend, @unchecked Sendable {"
     31   },
     32   {
     33     "violation": {
     34       "reason": "File should contain 1000 lines or less: currently contains 1089",
     35       "ruleIdentifier": "file_length",
     36       "ruleName": "File Length",
     37       "severity": "error",
     38       "ruleDescription": "Files should not span too many lines.",
     39       "location": {
     40         "file": "Tera/Runtime/TeraGeneratedRuntimeBackend.swift",
     41         "line": 1089,
     42         "character": 1
     43       }
     44     },
     45     "text": "}"
     46   },
     47   {
     48     "violation": {
     49       "reason": "Actor body should span 350 lines or less excluding comments and whitespace: currently spans 675 lines",
     50       "ruleIdentifier": "type_body_length",
     51       "ruleName": "Type Body Length",
     52       "severity": "error",
     53       "ruleDescription": "Type bodies should not span too many lines",
     54       "location": {
     55         "file": "Tera/Runtime/TeraRuntimeClient.swift",
     56         "line": 3,
     57         "character": 1
     58       }
     59     },
     60     "text": "actor TeraRuntimeClient {"
     61   },
     62   {
     63     "violation": {
     64       "reason": "Function body should span 50 lines or less excluding comments and whitespace: currently spans 70 lines",
     65       "ruleIdentifier": "function_body_length",
     66       "ruleName": "Function Body Length",
     67       "severity": "warning",
     68       "ruleDescription": "Function bodies should not span too many lines",
     69       "location": {
     70         "file": "Tera/Runtime/TeraRuntimeClient.swift",
     71         "line": 353,
     72         "character": 3
     73       }
     74     },
     75     "text": "  func changes(bufferCapacity: Int = 16) async throws -> AsyncStream<TeraRuntimeChange> {"
     76   },
     77   {
     78     "violation": {
     79       "reason": "File should contain 400 lines or less: currently contains 749",
     80       "ruleIdentifier": "file_length",
     81       "ruleName": "File Length",
     82       "severity": "warning",
     83       "ruleDescription": "Files should not span too many lines.",
     84       "location": {
     85         "file": "Tera/Runtime/TeraRuntimeClient.swift",
     86         "line": 749,
     87         "character": 1
     88       }
     89     },
     90     "text": "}"
     91   },
     92   {
     93     "violation": {
     94       "reason": "File should contain 400 lines or less: currently contains 953",
     95       "ruleIdentifier": "file_length",
     96       "ruleName": "File Length",
     97       "severity": "warning",
     98       "ruleDescription": "Files should not span too many lines.",
     99       "location": {
    100         "file": "Tera/Runtime/TeraRuntimeModels.swift",
    101         "line": 953,
    102         "character": 1
    103       }
    104     },
    105     "text": "}"
    106   },
    107   {
    108     "violation": {
    109       "reason": "Class body should span 350 lines or less excluding comments and whitespace: currently spans 481 lines",
    110       "ruleIdentifier": "type_body_length",
    111       "ruleName": "Type Body Length",
    112       "severity": "error",
    113       "ruleDescription": "Type bodies should not span too many lines",
    114       "location": {
    115         "file": "Tera/State/TeraAddStore.swift",
    116         "line": 4,
    117         "character": 7
    118       }
    119     },
    120     "text": "final class TeraAddStore: ObservableObject {"
    121   },
    122   {
    123     "violation": {
    124       "reason": "File should contain 400 lines or less: currently contains 702",
    125       "ruleIdentifier": "file_length",
    126       "ruleName": "File Length",
    127       "severity": "warning",
    128       "ruleDescription": "Files should not span too many lines.",
    129       "location": {
    130         "file": "Tera/State/TeraAddStore.swift",
    131         "line": 702,
    132         "character": 1
    133       }
    134     },
    135     "text": "}"
    136   },
    137   {
    138     "violation": {
    139       "reason": "Actor body should span 350 lines or less excluding comments and whitespace: currently spans 468 lines",
    140       "ruleIdentifier": "type_body_length",
    141       "ruleName": "Type Body Length",
    142       "severity": "error",
    143       "ruleDescription": "Type bodies should not span too many lines",
    144       "location": {
    145         "file": "Tera/State/TeraConfigurationStore.swift",
    146         "line": 78,
    147         "character": 1
    148       }
    149     },
    150     "text": "actor TeraConfigurationStore {"
    151   },
    152   {
    153     "violation": {
    154       "reason": "Function body should span 100 lines or less excluding comments and whitespace: currently spans 109 lines",
    155       "ruleIdentifier": "function_body_length",
    156       "ruleName": "Function Body Length",
    157       "severity": "error",
    158       "ruleDescription": "Function bodies should not span too many lines",
    159       "location": {
    160         "file": "Tera/State/TeraConfigurationStore.swift",
    161         "line": 148,
    162         "character": 5
    163       }
    164     },
    165     "text": "    func load() throws -> TeraAppConfiguration {"
    166   },
    167   {
    168     "violation": {
    169       "reason": "File should contain 400 lines or less: currently contains 759",
    170       "ruleIdentifier": "file_length",
    171       "ruleName": "File Length",
    172       "severity": "warning",
    173       "ruleDescription": "Files should not span too many lines.",
    174       "location": {
    175         "file": "Tera/State/TeraConfigurationStore.swift",
    176         "line": 759,
    177         "character": 1
    178       }
    179     },
    180     "text": "}"
    181   },
    182   {
    183     "violation": {
    184       "reason": "Function should have complexity 10 or less; currently complexity is 13",
    185       "ruleIdentifier": "cyclomatic_complexity",
    186       "ruleName": "Cyclomatic Complexity",
    187       "severity": "warning",
    188       "ruleDescription": "Complexity of function bodies should be limited.",
    189       "location": {
    190         "file": "Tera/State/TeraSessionStore.swift",
    191         "line": 96,
    192         "character": 11
    193       }
    194     },
    195     "text": "  private func start(acceptingReconfiguration: Bool) async -> TeraSessionPhase {"
    196   },
    197   {
    198     "violation": {
    199       "reason": "Class body should span 350 lines or less excluding comments and whitespace: currently spans 607 lines",
    200       "ruleIdentifier": "type_body_length",
    201       "ruleName": "Type Body Length",
    202       "severity": "error",
    203       "ruleDescription": "Type bodies should not span too many lines",
    204       "location": {
    205         "file": "TeraTests/TeraAddStoreTests.swift",
    206         "line": 6,
    207         "character": 7
    208       }
    209     },
    210     "text": "final class TeraAddStoreTests: XCTestCase {"
    211   },
    212   {
    213     "violation": {
    214       "reason": "Actor body should span 350 lines or less excluding comments and whitespace: currently spans 394 lines",
    215       "ruleIdentifier": "type_body_length",
    216       "ruleName": "Type Body Length",
    217       "severity": "error",
    218       "ruleDescription": "Type bodies should not span too many lines",
    219       "location": {
    220         "file": "TeraTests/TeraAddStoreTests.swift",
    221         "line": 682,
    222         "character": 1
    223       }
    224     },
    225     "text": "actor AddBackend: TeraRuntimeBackend {"
    226   },
    227   {
    228     "violation": {
    229       "reason": "Function should have 5 parameters or less: it currently has 8",
    230       "ruleIdentifier": "function_parameter_count",
    231       "ruleName": "Function Parameter Count",
    232       "severity": "warning",
    233       "ruleDescription": "Number of function parameters should be low.",
    234       "location": {
    235         "file": "TeraTests/TeraAddStoreTests.swift",
    236         "line": 1020,
    237         "character": 3
    238       }
    239     },
    240     "text": "  func makeStatus("
    241   },
    242   {
    243     "violation": {
    244       "reason": "File should contain 1000 lines or less: currently contains 1232",
    245       "ruleIdentifier": "file_length",
    246       "ruleName": "File Length",
    247       "severity": "error",
    248       "ruleDescription": "Files should not span too many lines.",
    249       "location": {
    250         "file": "TeraTests/TeraAddStoreTests.swift",
    251         "line": 1232,
    252         "character": 1
    253       }
    254     },
    255     "text": "}"
    256   },
    257   {
    258     "violation": {
    259       "reason": "Class body should span 250 lines or less excluding comments and whitespace: currently spans 307 lines",
    260       "ruleIdentifier": "type_body_length",
    261       "ruleName": "Type Body Length",
    262       "severity": "warning",
    263       "ruleDescription": "Type bodies should not span too many lines",
    264       "location": {
    265         "file": "TeraTests/TeraRemoteQualificationTests.swift",
    266         "line": 7,
    267         "character": 7
    268       }
    269     },
    270     "text": "final class TeraRemoteQualificationTests: XCTestCase {"
    271   },
    272   {
    273     "violation": {
    274       "reason": "Function body should span 50 lines or less excluding comments and whitespace: currently spans 94 lines",
    275       "ruleIdentifier": "function_body_length",
    276       "ruleName": "Function Body Length",
    277       "severity": "warning",
    278       "ruleDescription": "Function bodies should not span too many lines",
    279       "location": {
    280         "file": "TeraTests/TeraRemoteQualificationTests.swift",
    281         "line": 45,
    282         "character": 3
    283       }
    284     },
    285     "text": "  func testQualificationRejectsAmbiguousOrUnsafeHarnessValues() {"
    286   },
    287   {
    288     "violation": {
    289       "reason": "Function body should span 50 lines or less excluding comments and whitespace: currently spans 53 lines",
    290       "ruleIdentifier": "function_body_length",
    291       "ruleName": "Function Body Length",
    292       "severity": "warning",
    293       "ruleDescription": "Function bodies should not span too many lines",
    294       "location": {
    295         "file": "TeraTests/TeraRemoteQualificationTests.swift",
    296         "line": 212,
    297         "character": 3
    298       }
    299     },
    300     "text": "  func testAuthorizationEvidenceIsRedactedEphemeralAndRelaunchCleaned() throws {"
    301   },
    302   {
    303     "violation": {
    304       "reason": "Class body should span 250 lines or less excluding comments and whitespace: currently spans 298 lines",
    305       "ruleIdentifier": "type_body_length",
    306       "ruleName": "Type Body Length",
    307       "severity": "warning",
    308       "ruleDescription": "Type bodies should not span too many lines",
    309       "location": {
    310         "file": "TeraTests/TeraRuntimeClientTests.swift",
    311         "line": 4,
    312         "character": 7
    313       }
    314     },
    315     "text": "final class TeraRuntimeClientTests: XCTestCase {"
    316   },
    317   {
    318     "violation": {
    319       "reason": "Class body should span 350 lines or less excluding comments and whitespace: currently spans 580 lines",
    320       "ruleIdentifier": "type_body_length",
    321       "ruleName": "Type Body Length",
    322       "severity": "error",
    323       "ruleDescription": "Type bodies should not span too many lines",
    324       "location": {
    325         "file": "TeraTests/TeraStateMigrationTests.swift",
    326         "line": 6,
    327         "character": 7
    328       }
    329     },
    330     "text": "final class TeraStateMigrationTests: XCTestCase {"
    331   },
    332   {
    333     "violation": {
    334       "reason": "Function body should span 50 lines or less excluding comments and whitespace: currently spans 61 lines",
    335       "ruleIdentifier": "function_body_length",
    336       "ruleName": "Function Body Length",
    337       "severity": "warning",
    338       "ruleDescription": "Function bodies should not span too many lines",
    339       "location": {
    340         "file": "TeraTests/TeraStateMigrationTests.swift",
    341         "line": 7,
    342         "character": 5
    343       }
    344     },
    345     "text": "    func testRelayValidationMatchesRuntimeProfiles() throws {"
    346   },
    347   {
    348     "violation": {
    349       "reason": "File should contain 400 lines or less: currently contains 622",
    350       "ruleIdentifier": "file_length",
    351       "ruleName": "File Length",
    352       "severity": "warning",
    353       "ruleDescription": "Files should not span too many lines.",
    354       "location": {
    355         "file": "TeraTests/TeraStateMigrationTests.swift",
    356         "line": 622,
    357         "character": 1
    358       }
    359     },
    360     "text": "}"
    361   },
    362   {
    363     "violation": {
    364       "reason": "Class body should span 350 lines or less excluding comments and whitespace: currently spans 1220 lines",
    365       "ruleIdentifier": "type_body_length",
    366       "ruleName": "Type Body Length",
    367       "severity": "error",
    368       "ruleDescription": "Type bodies should not span too many lines",
    369       "location": {
    370         "file": "TeraUITests/TeraRemoteQualificationUITests.swift",
    371         "line": 4,
    372         "character": 7
    373       }
    374     },
    375     "text": "final class TeraRemoteQualificationUITests: XCTestCase {"
    376   },
    377   {
    378     "violation": {
    379       "reason": "Function body should span 50 lines or less excluding comments and whitespace: currently spans 65 lines",
    380       "ruleIdentifier": "function_body_length",
    381       "ruleName": "Function Body Length",
    382       "severity": "warning",
    383       "ruleDescription": "Function bodies should not span too many lines",
    384       "location": {
    385         "file": "TeraUITests/TeraRemoteQualificationUITests.swift",
    386         "line": 64,
    387         "character": 3
    388       }
    389     },
    390     "text": "  func testLocalSocialFiveFlowScenario() throws {"
    391   },
    392   {
    393     "violation": {
    394       "reason": "Function body should span 50 lines or less excluding comments and whitespace: currently spans 66 lines",
    395       "ruleIdentifier": "function_body_length",
    396       "ruleName": "Function Body Length",
    397       "severity": "warning",
    398       "ruleDescription": "Function bodies should not span too many lines",
    399       "location": {
    400         "file": "TeraUITests/TeraRemoteQualificationUITests.swift",
    401         "line": 168,
    402         "character": 3
    403       }
    404     },
    405     "text": "  func testLocalSocialDeterministicPersonas() throws {"
    406   },
    407   {
    408     "violation": {
    409       "reason": "Function body should span 50 lines or less excluding comments and whitespace: currently spans 54 lines",
    410       "ruleIdentifier": "function_body_length",
    411       "ruleName": "Function Body Length",
    412       "severity": "warning",
    413       "ruleDescription": "Function bodies should not span too many lines",
    414       "location": {
    415         "file": "TeraUITests/TeraRemoteQualificationUITests.swift",
    416         "line": 241,
    417         "character": 3
    418       }
    419     },
    420     "text": "  func testRemoteBlossomUploadAndRecovery() throws {"
    421   },
    422   {
    423     "violation": {
    424       "reason": "Function should have complexity 10 or less; currently complexity is 18",
    425       "ruleIdentifier": "cyclomatic_complexity",
    426       "ruleName": "Cyclomatic Complexity",
    427       "severity": "warning",
    428       "ruleDescription": "Complexity of function bodies should be limited.",
    429       "location": {
    430         "file": "TeraUITests/TeraRemoteQualificationUITests.swift",
    431         "line": 496,
    432         "character": 11
    433       }
    434     },
    435     "text": "  private func expectedAddFieldLabel(_ identifier: String, type: String) -> String {"
    436   },
    437   {
    438     "violation": {
    439       "reason": "Function body should span 50 lines or less excluding comments and whitespace: currently spans 67 lines",
    440       "ruleIdentifier": "function_body_length",
    441       "ruleName": "Function Body Length",
    442       "severity": "warning",
    443       "ruleDescription": "Function bodies should not span too many lines",
    444       "location": {
    445         "file": "TeraUITests/TeraRemoteQualificationUITests.swift",
    446         "line": 1448,
    447         "character": 10
    448       }
    449     },
    450     "text": "  static func environment("
    451   },
    452   {
    453     "violation": {
    454       "reason": "File should contain 1000 lines or less: currently contains 1924",
    455       "ruleIdentifier": "file_length",
    456       "ruleName": "File Length",
    457       "severity": "error",
    458       "ruleDescription": "Files should not span too many lines.",
    459       "location": {
    460         "file": "TeraUITests/TeraRemoteQualificationUITests.swift",
    461         "line": 1924,
    462         "character": 1
    463       }
    464     },
    465     "text": "}"
    466   }
    467 ]