field_ios

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

commit 8dba1a4ce547d533481d022335c19edfccfe516e
parent 415a20399a7e210a88bf5daa1e8c6fa30176b659
Author: triesap <tyson@radroots.org>
Date:   Sun,  4 Oct 2026 02:52:30 +0000

test: recover bounded Settings identity navigation

- Recover the native identity row after overscroll
- Use overlapping directional drags within eight checks
- Assert exact identity before and after restart
- Verify tooling and the complete affected standalone lane

Diffstat:
MTeraFFI/provenance.json | 14+++++++-------
MTeraFFI/source.lock | 4++--
MTeraFFI/source/aarch64-apple-darwin.json | 8++++----
MTeraFFI/source/aarch64-apple-ios-sim.json | 8++++----
MTeraFFI/source/aarch64-apple-ios.json | 8++++----
MTeraUITests/TeraRemoteQualificationUITests.swift | 25++-----------------------
MTeraUITests/TeraSettingsIdentityUI.swift | 94++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
Mrelease/provenance.json | 4++--
Mtest-fixtures/legacy-identifiers.v1.json | 60++++++++++++++++++++++++++++++++++++++++++++++++++++++------
Mtest-fixtures/maintainability-baseline.v1.json | 2+-
Mtest-fixtures/swiftlint-maintainability-baseline.v1.json | 4++--
11 files changed, 175 insertions(+), 56 deletions(-)

diff --git a/TeraFFI/provenance.json b/TeraFFI/provenance.json @@ -94,17 +94,17 @@ { "bytes": 143532, "path": "source/aarch64-apple-darwin.json", - "sha256": "375b206a62885771055f19f4b4d758201c011510da9b60d8e285b4a5c5848895" + "sha256": "fe9af0ce2b11ed77d5f8f00379e26c2fa376871aaf3d3f683bdb2d8fe051008e" }, { "bytes": 143376, "path": "source/aarch64-apple-ios-sim.json", - "sha256": "fe2290895145c6b29ec9bba6b90a72610b60de7369e1a363d5e2d6dca47c643a" + "sha256": "d0f662ebb4f0dfb4bd4b42f32083dda85ca81b1a9635f7eb303e7542da3df0ab" }, { "bytes": 143372, "path": "source/aarch64-apple-ios.json", - "sha256": "e44044de5b14f331498229f3c64f24ec77e245280255a8066c6632217b64cade" + "sha256": "62b104e618b8b08241cef5f9292588fb4e04988793029a5158929bfb65a66152" } ], "language": "swift", @@ -112,7 +112,7 @@ "schema": "radroots.artifact-manifest.v2", "source": { "repository": "https://github.com/radrootslabs/tera", - "tree": "9c3f9ea1dea95b4ad49e82848008c0eb4762bb2e" + "tree": "16436eff2c5f2f69b6d2d767b1d0264bb9051992" }, "source_records": { "aarch64-apple-darwin": "source/aarch64-apple-darwin.json", @@ -176,17 +176,17 @@ { "bytes": 143532, "path": "TeraFFI/source/aarch64-apple-darwin.json", - "sha256": "375b206a62885771055f19f4b4d758201c011510da9b60d8e285b4a5c5848895" + "sha256": "fe9af0ce2b11ed77d5f8f00379e26c2fa376871aaf3d3f683bdb2d8fe051008e" }, { "bytes": 143376, "path": "TeraFFI/source/aarch64-apple-ios-sim.json", - "sha256": "fe2290895145c6b29ec9bba6b90a72610b60de7369e1a363d5e2d6dca47c643a" + "sha256": "d0f662ebb4f0dfb4bd4b42f32083dda85ca81b1a9635f7eb303e7542da3df0ab" }, { "bytes": 143372, "path": "TeraFFI/source/aarch64-apple-ios.json", - "sha256": "e44044de5b14f331498229f3c64f24ec77e245280255a8066c6632217b64cade" + "sha256": "62b104e618b8b08241cef5f9292588fb4e04988793029a5158929bfb65a66152" } ], "schema": "tera.installed-native-artifacts.v1" diff --git a/TeraFFI/source.lock b/TeraFFI/source.lock @@ -1,7 +1,7 @@ schema = "tera.installed-source.v1" repository = "https://github.com/radrootslabs/tera" -source_tree = "9c3f9ea1dea95b4ad49e82848008c0eb4762bb2e" -manifest_sha256 = "16c3fab480159b62889b417453e35fd4c0b393ef037c1a7de651c65acf09f23c" +source_tree = "16436eff2c5f2f69b6d2d767b1d0264bb9051992" +manifest_sha256 = "a24d7847393da41d7ae575e729e92a418d99401b937346df5e6c2afebebe2cb0" source_date_epoch = 1787871027 [foundation] diff --git a/TeraFFI/source/aarch64-apple-darwin.json b/TeraFFI/source/aarch64-apple-darwin.json @@ -3052,13 +3052,13 @@ "sha256": "4e174e14512c1b12994dea63f58bf39d234d96c3bf245eb5d7eaa0fcf2b4fd24" }, "test-fixtures/legacy-identifiers.v1.json": { - "bytes": 196289, - "git_blob": "0f80332089fbaee482a27f22bf10855a28fcab6a", + "bytes": 197529, + "git_blob": "747843ea60a8f729ea42c216af9425a38683dd19", "mode": "100644", - "sha256": "8e982dcdb131bff632015d9107fd84aef78caa21c89f048495f338eb069ebf9a" + "sha256": "e3349cf19d0dc2abf9ffbfc10b8c775c9cb692d175a5adfb3ca06de82d0b949e" } }, "policy": "staged_inputs", - "tree": "9c3f9ea1dea95b4ad49e82848008c0eb4762bb2e" + "tree": "16436eff2c5f2f69b6d2d767b1d0264bb9051992" } } diff --git a/TeraFFI/source/aarch64-apple-ios-sim.json b/TeraFFI/source/aarch64-apple-ios-sim.json @@ -3048,13 +3048,13 @@ "sha256": "4e174e14512c1b12994dea63f58bf39d234d96c3bf245eb5d7eaa0fcf2b4fd24" }, "test-fixtures/legacy-identifiers.v1.json": { - "bytes": 196289, - "git_blob": "0f80332089fbaee482a27f22bf10855a28fcab6a", + "bytes": 197529, + "git_blob": "747843ea60a8f729ea42c216af9425a38683dd19", "mode": "100644", - "sha256": "8e982dcdb131bff632015d9107fd84aef78caa21c89f048495f338eb069ebf9a" + "sha256": "e3349cf19d0dc2abf9ffbfc10b8c775c9cb692d175a5adfb3ca06de82d0b949e" } }, "policy": "staged_inputs", - "tree": "9c3f9ea1dea95b4ad49e82848008c0eb4762bb2e" + "tree": "16436eff2c5f2f69b6d2d767b1d0264bb9051992" } } diff --git a/TeraFFI/source/aarch64-apple-ios.json b/TeraFFI/source/aarch64-apple-ios.json @@ -3048,13 +3048,13 @@ "sha256": "4e174e14512c1b12994dea63f58bf39d234d96c3bf245eb5d7eaa0fcf2b4fd24" }, "test-fixtures/legacy-identifiers.v1.json": { - "bytes": 196289, - "git_blob": "0f80332089fbaee482a27f22bf10855a28fcab6a", + "bytes": 197529, + "git_blob": "747843ea60a8f729ea42c216af9425a38683dd19", "mode": "100644", - "sha256": "8e982dcdb131bff632015d9107fd84aef78caa21c89f048495f338eb069ebf9a" + "sha256": "e3349cf19d0dc2abf9ffbfc10b8c775c9cb692d175a5adfb3ca06de82d0b949e" } }, "policy": "staged_inputs", - "tree": "9c3f9ea1dea95b4ad49e82848008c0eb4762bb2e" + "tree": "16436eff2c5f2f69b6d2d767b1d0264bb9051992" } } diff --git a/TeraUITests/TeraRemoteQualificationUITests.swift b/TeraUITests/TeraRemoteQualificationUITests.swift @@ -9,6 +9,7 @@ final class TeraRemoteQualificationUITests: XCTestCase { let configuration = try QualificationConfiguration.environment() let app = launchToRoot(configuration) let publicKey = try readPublicKey(app) + try exerciseSettingsIdentityOverscroll(app, expectedPublicKey: publicKey) try writeBootstrapReceipt(configuration: configuration, publicKey: publicKey) XCUIDevice.shared.press(.home) @@ -19,6 +20,7 @@ final class TeraRemoteQualificationUITests: XCTestCase { app.launch() reachRoot(app) XCTAssertTrue(app.tabBars.firstMatch.waitForExistence(timeout: 20)) + XCTAssertEqual(try readPublicKey(app), publicKey) } @MainActor @@ -576,29 +578,6 @@ final class TeraRemoteQualificationUITests: XCTestCase { } @MainActor - private func reachRoot(_ app: XCUIApplication) { - for _ in 0 ..< 6 { - if app.tabBars.firstMatch.waitForExistence(timeout: 3) { - return - } - for identifier in [ - "radroots.identity.create", - "radroots.identity.unlock", - "radroots.configuration.reconfigure", - "radroots.identity.recover", - "radroots.runtime.retry", - ] { - let action = app.descendants(matching: .any)[identifier] - if action.exists, action.isHittable { - action.tap() - break - } - } - } - XCTFail("Tera did not reach the two-tab root without interactive authentication") - } - - @MainActor private func readPublicKey(_ app: XCUIApplication) throws -> String { app.tabBars.buttons["Today"].tap() let account = app.descendants(matching: .any)["radroots.support.account"] diff --git a/TeraUITests/TeraSettingsIdentityUI.swift b/TeraUITests/TeraSettingsIdentityUI.swift @@ -25,6 +25,54 @@ extension TeraRemoteQualificationUITests { } @MainActor + func exerciseSettingsIdentityOverscroll( + _ app: XCUIApplication, + expectedPublicKey: String + ) throws { + app.tabBars.buttons["Today"].tap() + let account = app.descendants(matching: .any)["radroots.support.account"] + XCTAssertTrue(account.waitForExistence(timeout: 10)) + account.tap() + let meSheet = app.descendants(matching: .any)["radroots.support.me.sheet"] + XCTAssertTrue(meSheet.waitForExistence(timeout: 10)) + XCTAssertTrue(openSettingsFromMe(app, meSheet: meSheet)) + + let settings = app.descendants(matching: .any)["radroots.support.settings.view"] + let profile = app.descendants(matching: .any)["radroots.settings.profile.name"] + let navigation = app.navigationBars["Settings"] + for _ in 0 ..< 12 { + if profile.exists, profile.isHittable, + profile.frame.minY >= max(settings.frame.minY, navigation.frame.maxY), + profile.frame.maxY <= settings.frame.maxY + { + break + } + settings.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.75)) + .press( + forDuration: 0.1, + thenDragTo: settings.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: 0.35)) + ) + } + _ = try XCTUnwrap( + profile.exists && profile.isHittable ? profile : nil, + "The native overscroll regression must reach the later Profile section" + ) + let publicKey = app.descendants(matching: .any)["radroots.settings.identity.public_key"] + let revealed = revealSettingsPublicKey(app, publicKey: publicKey) + XCTAssertTrue(revealed, "Settings identity navigation must recover after overscroll") + guard revealed else { return } + XCTAssertEqual(publicKey.value as? String, expectedPublicKey) + + let back = app.navigationBars.buttons["Me"].firstMatch + XCTAssertTrue(back.waitForExistence(timeout: 10)) + back.tap() + let done = app.navigationBars.buttons["Done"].firstMatch + XCTAssertTrue(done.waitForExistence(timeout: 10)) + done.tap() + XCTAssertTrue(meSheet.waitForNonExistence(timeout: 10)) + } + + @MainActor func revealSettingsPublicKey(_ app: XCUIApplication, publicKey: XCUIElement) -> Bool { let settings = app.descendants(matching: .any)["radroots.support.settings.view"] guard settings.waitForExistence(timeout: 10) else { return false } @@ -38,8 +86,52 @@ extension TeraRemoteQualificationUITests { { return true } - settings.swipeUp() + let aboveViewport = publicKey.exists && publicKey.frame.height > 0 + && publicKey.frame.minY < max(settings.frame.minY, navigation.frame.maxY) + let laterSectionVisible = [ + "radroots.settings.profile.name", + "radroots.settings.network.environment", + "radroots.settings.relays.add", + "radroots.settings.retry.network", + "radroots.settings.blossom.primary", + ].contains { identifier in + let row = app.descendants(matching: .any)[identifier] + return row.exists && row.isHittable + } + let movingBack = aboveViewport || laterSectionVisible + // Overlapping drags retain the same eight checks without skipping a + // large lazy row, and return when the real row has passed the viewport. + settings.coordinate(withNormalizedOffset: CGVector(dx: 0.5, dy: movingBack ? 0.35 : 0.75)) + .press( + forDuration: 0.1, + thenDragTo: settings.coordinate( + withNormalizedOffset: CGVector(dx: 0.5, dy: movingBack ? 0.75 : 0.35) + ) + ) } return false } + + @MainActor + func reachRoot(_ app: XCUIApplication) { + for _ in 0 ..< 6 { + if app.tabBars.firstMatch.waitForExistence(timeout: 3) { + return + } + for identifier in [ + "radroots.identity.create", + "radroots.identity.unlock", + "radroots.configuration.reconfigure", + "radroots.identity.recover", + "radroots.runtime.retry", + ] { + let action = app.descendants(matching: .any)[identifier] + if action.exists, action.isHittable { + action.tap() + break + } + } + } + XCTFail("Tera did not reach the two-tab root without interactive authentication") + } } diff --git a/release/provenance.json b/release/provenance.json @@ -2,7 +2,7 @@ "artifacts": { "app_api_sha256": "020924097c0d7efc33128cb8fd3d3b2026d95f57c44da71880e585aff80f070b", "ffi_api_sha256": "5d74060f97e52dad69ab7567c16d6b6b34acfab846f468450d89e2394a8a69d5", - "ffi_provenance_sha256": "16c3fab480159b62889b417453e35fd4c0b393ef037c1a7de651c65acf09f23c", + "ffi_provenance_sha256": "a24d7847393da41d7ae575e729e92a418d99401b937346df5e6c2afebebe2cb0", "info_plist_sha256": "b55010dd73b34bf5ad910a888be0ea1ae45f2a5c14329fa6a57059a317bdbd42", "privacy_manifest_sha256": "0f2103257ba596fbcaeb1d6a4dffe3ae021e84c010178852c6bf500a8cfb0f19", "sbom_sha256": "f0a15c2c9ad7799539fbc52fd1fdbcf17f4046b6f86cfe0a9b8980adc0079e10", @@ -22,7 +22,7 @@ "lib_revision": "189c49b74b4bafc142b00b76b296477931139e72", "source_date_epoch": 1787871027, "swift_package_lock_sha256": "8aec408132602a249111a65903c985cca5898ec316a45916d88ba756f08ea40d", - "tera_ffi_source_tree": "9c3f9ea1dea95b4ad49e82848008c0eb4762bb2e", + "tera_ffi_source_tree": "16436eff2c5f2f69b6d2d767b1d0264bb9051992", "xcode_package_lock_sha256": "3656728f8251f3ea644aa150d154819766470ca7bd4f85b7c51fdf301d361d16" }, "version": "0.1.0-alpha" diff --git a/test-fixtures/legacy-identifiers.v1.json b/test-fixtures/legacy-identifiers.v1.json @@ -3998,7 +3998,11 @@ }, { "path": "TeraUITests/TeraRemoteQualificationUITests.swift", - "count": 2 + "count": 1 + }, + { + "path": "TeraUITests/TeraSettingsIdentityUI.swift", + "count": 1 } ] }, @@ -4122,7 +4126,11 @@ }, { "path": "TeraUITests/TeraRemoteQualificationUITests.swift", - "count": 2 + "count": 1 + }, + { + "path": "TeraUITests/TeraSettingsIdentityUI.swift", + "count": 1 } ] }, @@ -4176,7 +4184,11 @@ }, { "path": "TeraUITests/TeraRemoteQualificationUITests.swift", - "count": 2 + "count": 1 + }, + { + "path": "TeraUITests/TeraSettingsIdentityUI.swift", + "count": 1 } ] }, @@ -4190,7 +4202,11 @@ }, { "path": "TeraUITests/TeraRemoteQualificationUITests.swift", - "count": 2 + "count": 1 + }, + { + "path": "TeraUITests/TeraSettingsIdentityUI.swift", + "count": 1 } ] }, @@ -4649,7 +4665,7 @@ "count": 1 }, { - "path": "TeraUITests/TeraRemoteQualificationUITests.swift", + "path": "TeraUITests/TeraSettingsIdentityUI.swift", "count": 1 } ] @@ -4759,6 +4775,10 @@ { "path": "Tera/Views/TeraSettingsView.swift", "count": 1 + }, + { + "path": "TeraUITests/TeraSettingsIdentityUI.swift", + "count": 1 } ] }, @@ -4827,6 +4847,10 @@ { "path": "TeraUITests/TeraRemoteQualificationUITests.swift", "count": 1 + }, + { + "path": "TeraUITests/TeraSettingsIdentityUI.swift", + "count": 1 } ] }, @@ -4837,6 +4861,10 @@ { "path": "Tera/Views/TeraSettingsView.swift", "count": 1 + }, + { + "path": "TeraUITests/TeraSettingsIdentityUI.swift", + "count": 1 } ] }, @@ -4867,6 +4895,10 @@ { "path": "Tera/Views/TeraSettingsView.swift", "count": 1 + }, + { + "path": "TeraUITests/TeraSettingsIdentityUI.swift", + "count": 2 } ] }, @@ -4897,6 +4929,10 @@ { "path": "Tera/Views/TeraSettingsView.swift", "count": 1 + }, + { + "path": "TeraUITests/TeraSettingsIdentityUI.swift", + "count": 1 } ] }, @@ -4917,6 +4953,10 @@ { "path": "Tera/Views/TeraSettingsView.swift", "count": 1 + }, + { + "path": "TeraUITests/TeraSettingsIdentityUI.swift", + "count": 1 } ] }, @@ -4945,6 +4985,10 @@ { "path": "TeraUITests/TeraRemoteQualificationUITests.swift", "count": 2 + }, + { + "path": "TeraUITests/TeraSettingsIdentityUI.swift", + "count": 1 } ] }, @@ -4979,6 +5023,10 @@ { "path": "TeraUITests/TeraRemoteQualificationUITests.swift", "count": 3 + }, + { + "path": "TeraUITests/TeraSettingsIdentityUI.swift", + "count": 1 } ] }, @@ -5044,7 +5092,7 @@ }, { "path": "TeraUITests/TeraSettingsIdentityUI.swift", - "count": 2 + "count": 3 } ] }, diff --git a/test-fixtures/maintainability-baseline.v1.json b/test-fixtures/maintainability-baseline.v1.json @@ -38,7 +38,7 @@ }, { "path": "TeraUITests/TeraRemoteQualificationUITests.swift", - "maximum_lines": 1945 + "maximum_lines": 1924 } ], "python_file_exception": [ diff --git a/test-fixtures/swiftlint-maintainability-baseline.v1.json b/test-fixtures/swiftlint-maintainability-baseline.v1.json @@ -1 +1 @@ -[{"text":" init(","violation":{"reason":"Initializer body should span 50 lines or less excluding comments and whitespace: currently spans 52 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"Tera\/App\/TeraAppModel.swift","line":21,"character":3},"ruleName":"Function Body Length"}},{"text":"final class TeraGeneratedRuntimeBackend: TeraRuntimeBackend, @unchecked Sendable {","violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 373 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"Tera\/Runtime\/TeraGeneratedRuntimeBackend.swift","line":31,"character":7},"ruleName":"Type Body Length"}},{"text":"}","violation":{"reason":"File should contain 1000 lines or less: currently contains 1089","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"error","location":{"file":"Tera\/Runtime\/TeraGeneratedRuntimeBackend.swift","line":1089,"character":1},"ruleName":"File Length"}},{"text":"actor TeraRuntimeClient {","violation":{"reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 675 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":3,"character":1},"ruleName":"Type Body Length"}},{"text":" func changes(bufferCapacity: Int = 16) async throws -> AsyncStream<TeraRuntimeChange> {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 70 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":353,"character":3},"ruleName":"Function Body Length"}},{"text":"}","violation":{"reason":"File should contain 400 lines or less: currently contains 749","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"warning","location":{"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":749,"character":1},"ruleName":"File Length"}},{"text":"}","violation":{"reason":"File should contain 1000 lines or less: currently contains 1029","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"error","location":{"file":"Tera\/Runtime\/TeraRuntimeModels.swift","line":1029,"character":1},"ruleName":"File Length"}},{"text":"final class TeraAddStore: ObservableObject {","violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 481 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"Tera\/State\/TeraAddStore.swift","line":4,"character":7},"ruleName":"Type Body Length"}},{"text":"}","violation":{"reason":"File should contain 400 lines or less: currently contains 702","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"warning","location":{"file":"Tera\/State\/TeraAddStore.swift","line":702,"character":1},"ruleName":"File Length"}},{"text":"actor TeraConfigurationStore {","violation":{"reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 468 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"Tera\/State\/TeraConfigurationStore.swift","line":78,"character":1},"ruleName":"Type Body Length"}},{"text":" func load() throws -> TeraAppConfiguration {","violation":{"reason":"Function body should span 100 lines or less excluding comments and whitespace: currently spans 109 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"error","location":{"file":"Tera\/State\/TeraConfigurationStore.swift","line":148,"character":5},"ruleName":"Function Body Length"}},{"text":"}","violation":{"reason":"File should contain 400 lines or less: currently contains 759","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"warning","location":{"file":"Tera\/State\/TeraConfigurationStore.swift","line":759,"character":1},"ruleName":"File Length"}},{"text":" private func start(acceptingReconfiguration: Bool) async -> TeraSessionPhase {","violation":{"reason":"Function should have complexity 10 or less; currently complexity is 13","ruleDescription":"Complexity of function bodies should be limited.","ruleIdentifier":"cyclomatic_complexity","severity":"warning","location":{"file":"Tera\/State\/TeraSessionStore.swift","line":96,"character":11},"ruleName":"Cyclomatic Complexity"}},{"text":"final class TeraAddStoreTests: XCTestCase {","violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 607 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":6,"character":7},"ruleName":"Type Body Length"}},{"text":"actor AddBackend: TeraRuntimeBackend {","violation":{"reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 394 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":682,"character":1},"ruleName":"Type Body Length"}},{"text":" func makeStatus(","violation":{"reason":"Function should have 5 parameters or less: it currently has 8","ruleDescription":"Number of function parameters should be low.","ruleIdentifier":"function_parameter_count","severity":"warning","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":1020,"character":3},"ruleName":"Function Parameter Count"}},{"text":"}","violation":{"reason":"File should contain 1000 lines or less: currently contains 1232","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"error","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":1232,"character":1},"ruleName":"File Length"}},{"text":"final class TeraRemoteQualificationTests: XCTestCase {","violation":{"reason":"Class body should span 250 lines or less excluding comments and whitespace: currently spans 307 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"warning","location":{"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":7,"character":7},"ruleName":"Type Body Length"}},{"text":" func testQualificationRejectsAmbiguousOrUnsafeHarnessValues() {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 94 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":45,"character":3},"ruleName":"Function Body Length"}},{"text":" func testAuthorizationEvidenceIsRedactedEphemeralAndRelaunchCleaned() throws {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 53 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":212,"character":3},"ruleName":"Function Body Length"}},{"text":"final class TeraRuntimeClientTests: XCTestCase {","violation":{"reason":"Class body should span 250 lines or less excluding comments and whitespace: currently spans 298 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"warning","location":{"file":"TeraTests\/TeraRuntimeClientTests.swift","line":4,"character":7},"ruleName":"Type Body Length"}},{"text":"final class TeraStateMigrationTests: XCTestCase {","violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 580 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"TeraTests\/TeraStateMigrationTests.swift","line":6,"character":7},"ruleName":"Type Body Length"}},{"text":" func testRelayValidationMatchesRuntimeProfiles() throws {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 61 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraTests\/TeraStateMigrationTests.swift","line":7,"character":5},"ruleName":"Function Body Length"}},{"text":"}","violation":{"reason":"File should contain 400 lines or less: currently contains 622","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"warning","location":{"file":"TeraTests\/TeraStateMigrationTests.swift","line":622,"character":1},"ruleName":"File Length"}},{"text":"final class TeraRemoteQualificationUITests: XCTestCase {","violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 1240 lines","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","severity":"error","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":4,"character":7},"ruleName":"Type Body Length"}},{"text":" func testLocalSocialFiveFlowScenario() throws {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 65 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":62,"character":3},"ruleName":"Function Body Length"}},{"text":" func testLocalSocialDeterministicPersonas() throws {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 66 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":166,"character":3},"ruleName":"Function Body Length"}},{"text":" func testRemoteBlossomUploadAndRecovery() throws {","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 54 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":239,"character":3},"ruleName":"Function Body Length"}},{"text":" private func expectedAddFieldLabel(_ identifier: String, type: String) -> String {","violation":{"reason":"Function should have complexity 10 or less; currently complexity is 18","ruleDescription":"Complexity of function bodies should be limited.","ruleIdentifier":"cyclomatic_complexity","severity":"warning","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":494,"character":11},"ruleName":"Cyclomatic Complexity"}},{"text":" static func environment(","violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 67 lines","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","severity":"warning","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":1469,"character":10},"ruleName":"Function Body Length"}},{"text":"}","violation":{"reason":"File should contain 1000 lines or less: currently contains 1945","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","severity":"error","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":1945,"character":1},"ruleName":"File Length"}}] -\ No newline at end of file +[{"violation":{"reason":"Initializer body should span 50 lines or less excluding comments and whitespace: currently spans 52 lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","severity":"warning","ruleDescription":"Function bodies should not span too many lines","location":{"file":"Tera\/App\/TeraAppModel.swift","line":21,"character":3}},"text":" init("},{"violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 373 lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","severity":"error","ruleDescription":"Type bodies should not span too many lines","location":{"file":"Tera\/Runtime\/TeraGeneratedRuntimeBackend.swift","line":31,"character":7}},"text":"final class TeraGeneratedRuntimeBackend: TeraRuntimeBackend, @unchecked Sendable {"},{"violation":{"reason":"File should contain 1000 lines or less: currently contains 1089","ruleIdentifier":"file_length","ruleName":"File Length","severity":"error","ruleDescription":"Files should not span too many lines.","location":{"file":"Tera\/Runtime\/TeraGeneratedRuntimeBackend.swift","line":1089,"character":1}},"text":"}"},{"violation":{"reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 675 lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","severity":"error","ruleDescription":"Type bodies should not span too many lines","location":{"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":3,"character":1}},"text":"actor TeraRuntimeClient {"},{"violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 70 lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","severity":"warning","ruleDescription":"Function bodies should not span too many lines","location":{"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":353,"character":3}},"text":" func changes(bufferCapacity: Int = 16) async throws -> AsyncStream<TeraRuntimeChange> {"},{"violation":{"reason":"File should contain 400 lines or less: currently contains 749","ruleIdentifier":"file_length","ruleName":"File Length","severity":"warning","ruleDescription":"Files should not span too many lines.","location":{"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":749,"character":1}},"text":"}"},{"violation":{"reason":"File should contain 1000 lines or less: currently contains 1029","ruleIdentifier":"file_length","ruleName":"File Length","severity":"error","ruleDescription":"Files should not span too many lines.","location":{"file":"Tera\/Runtime\/TeraRuntimeModels.swift","line":1029,"character":1}},"text":"}"},{"violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 481 lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","severity":"error","ruleDescription":"Type bodies should not span too many lines","location":{"file":"Tera\/State\/TeraAddStore.swift","line":4,"character":7}},"text":"final class TeraAddStore: ObservableObject {"},{"violation":{"reason":"File should contain 400 lines or less: currently contains 702","ruleIdentifier":"file_length","ruleName":"File Length","severity":"warning","ruleDescription":"Files should not span too many lines.","location":{"file":"Tera\/State\/TeraAddStore.swift","line":702,"character":1}},"text":"}"},{"violation":{"reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 468 lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","severity":"error","ruleDescription":"Type bodies should not span too many lines","location":{"file":"Tera\/State\/TeraConfigurationStore.swift","line":78,"character":1}},"text":"actor TeraConfigurationStore {"},{"violation":{"reason":"Function body should span 100 lines or less excluding comments and whitespace: currently spans 109 lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","severity":"error","ruleDescription":"Function bodies should not span too many lines","location":{"file":"Tera\/State\/TeraConfigurationStore.swift","line":148,"character":5}},"text":" func load() throws -> TeraAppConfiguration {"},{"violation":{"reason":"File should contain 400 lines or less: currently contains 759","ruleIdentifier":"file_length","ruleName":"File Length","severity":"warning","ruleDescription":"Files should not span too many lines.","location":{"file":"Tera\/State\/TeraConfigurationStore.swift","line":759,"character":1}},"text":"}"},{"violation":{"reason":"Function should have complexity 10 or less; currently complexity is 13","ruleIdentifier":"cyclomatic_complexity","ruleName":"Cyclomatic Complexity","severity":"warning","ruleDescription":"Complexity of function bodies should be limited.","location":{"file":"Tera\/State\/TeraSessionStore.swift","line":96,"character":11}},"text":" private func start(acceptingReconfiguration: Bool) async -> TeraSessionPhase {"},{"violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 607 lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","severity":"error","ruleDescription":"Type bodies should not span too many lines","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":6,"character":7}},"text":"final class TeraAddStoreTests: XCTestCase {"},{"violation":{"reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 394 lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","severity":"error","ruleDescription":"Type bodies should not span too many lines","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":682,"character":1}},"text":"actor AddBackend: TeraRuntimeBackend {"},{"violation":{"reason":"Function should have 5 parameters or less: it currently has 8","ruleIdentifier":"function_parameter_count","ruleName":"Function Parameter Count","severity":"warning","ruleDescription":"Number of function parameters should be low.","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":1020,"character":3}},"text":" func makeStatus("},{"violation":{"reason":"File should contain 1000 lines or less: currently contains 1232","ruleIdentifier":"file_length","ruleName":"File Length","severity":"error","ruleDescription":"Files should not span too many lines.","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":1232,"character":1}},"text":"}"},{"violation":{"reason":"Class body should span 250 lines or less excluding comments and whitespace: currently spans 307 lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","severity":"warning","ruleDescription":"Type bodies should not span too many lines","location":{"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":7,"character":7}},"text":"final class TeraRemoteQualificationTests: XCTestCase {"},{"violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 94 lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","severity":"warning","ruleDescription":"Function bodies should not span too many lines","location":{"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":45,"character":3}},"text":" func testQualificationRejectsAmbiguousOrUnsafeHarnessValues() {"},{"violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 53 lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","severity":"warning","ruleDescription":"Function bodies should not span too many lines","location":{"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":212,"character":3}},"text":" func testAuthorizationEvidenceIsRedactedEphemeralAndRelaunchCleaned() throws {"},{"violation":{"reason":"Class body should span 250 lines or less excluding comments and whitespace: currently spans 298 lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","severity":"warning","ruleDescription":"Type bodies should not span too many lines","location":{"file":"TeraTests\/TeraRuntimeClientTests.swift","line":4,"character":7}},"text":"final class TeraRuntimeClientTests: XCTestCase {"},{"violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 580 lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","severity":"error","ruleDescription":"Type bodies should not span too many lines","location":{"file":"TeraTests\/TeraStateMigrationTests.swift","line":6,"character":7}},"text":"final class TeraStateMigrationTests: XCTestCase {"},{"violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 61 lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","severity":"warning","ruleDescription":"Function bodies should not span too many lines","location":{"file":"TeraTests\/TeraStateMigrationTests.swift","line":7,"character":5}},"text":" func testRelayValidationMatchesRuntimeProfiles() throws {"},{"violation":{"reason":"File should contain 400 lines or less: currently contains 622","ruleIdentifier":"file_length","ruleName":"File Length","severity":"warning","ruleDescription":"Files should not span too many lines.","location":{"file":"TeraTests\/TeraStateMigrationTests.swift","line":622,"character":1}},"text":"}"},{"violation":{"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 1220 lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","severity":"error","ruleDescription":"Type bodies should not span too many lines","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":4,"character":7}},"text":"final class TeraRemoteQualificationUITests: XCTestCase {"},{"violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 65 lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","severity":"warning","ruleDescription":"Function bodies should not span too many lines","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":64,"character":3}},"text":" func testLocalSocialFiveFlowScenario() throws {"},{"violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 66 lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","severity":"warning","ruleDescription":"Function bodies should not span too many lines","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":168,"character":3}},"text":" func testLocalSocialDeterministicPersonas() throws {"},{"violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 54 lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","severity":"warning","ruleDescription":"Function bodies should not span too many lines","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":241,"character":3}},"text":" func testRemoteBlossomUploadAndRecovery() throws {"},{"violation":{"reason":"Function should have complexity 10 or less; currently complexity is 18","ruleIdentifier":"cyclomatic_complexity","ruleName":"Cyclomatic Complexity","severity":"warning","ruleDescription":"Complexity of function bodies should be limited.","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":496,"character":11}},"text":" private func expectedAddFieldLabel(_ identifier: String, type: String) -> String {"},{"violation":{"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 67 lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","severity":"warning","ruleDescription":"Function bodies should not span too many lines","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":1448,"character":10}},"text":" static func environment("},{"violation":{"reason":"File should contain 1000 lines or less: currently contains 1924","ruleIdentifier":"file_length","ruleName":"File Length","severity":"error","ruleDescription":"Files should not span too many lines.","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":1924,"character":1}},"text":"}"}] +\ No newline at end of file