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 927f8820537819c7eb1f4bfef6df9926e09e9612
parent e3805c001b3e293c231e60b908b093cbe33e34ee
Author: triesap <tyson@radroots.org>
Date:   Fri,  2 Oct 2026 23:48:49 +0000

test: reveal the actual identity row at accessibility sizes

- Scroll bounded native Settings rows before reading identity
- Preserve exact public key and restart assertions
- Decrease existing lint debt and retain identifier inventory
- Verify complete standalone and matching native artifacts

Diffstat:
MTera.xcodeproj/project.pbxproj | 4++++
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 | 27+++------------------------
ATeraUITests/TeraSettingsIdentityUI.swift | 45+++++++++++++++++++++++++++++++++++++++++++++
Mproject.yml | 1+
Mrelease/provenance.json | 6+++---
Mtest-fixtures/legacy-identifiers.v1.json | 6+++---
Mtest-fixtures/maintainability-baseline.v1.json | 2+-
Mtest-fixtures/swiftlint-maintainability-baseline.v1.json | 4++--
13 files changed, 83 insertions(+), 54 deletions(-)

diff --git a/Tera.xcodeproj/project.pbxproj b/Tera.xcodeproj/project.pbxproj @@ -42,6 +42,7 @@ 39EC97809DDF74F40641AAE8 /* TeraAccessibilityAudit.swift in Sources */ = {isa = PBXBuildFile; fileRef = CC5289B0C8C497EB52BF6DE1 /* TeraAccessibilityAudit.swift */; }; 3D219E759CFB685936EB7068 /* TeraCalendarEditingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 27C48B4B5442B1A404C1A328 /* TeraCalendarEditingTests.swift */; }; 3DED3C2547AC6F8D00913FE8 /* TeraStoppedUploadTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 91D82A4781624F36870A6316 /* TeraStoppedUploadTests.swift */; }; + 3E373FF6F0BDE19F302097A6 /* TeraSettingsIdentityUI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 719F870DBDC5105D134E678E /* TeraSettingsIdentityUI.swift */; }; 41BD76CAA07F6071411F7AC1 /* TeraIdentityCancellationTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = F666094C5E385A2820F0FE82 /* TeraIdentityCancellationTests.swift */; }; 41ED082A17594FE682A381DD /* TeraSubmissionQualificationSupport.swift in Sources */ = {isa = PBXBuildFile; fileRef = 019FAA997BEDE9CC84785DAE /* TeraSubmissionQualificationSupport.swift */; }; 45328FDB3E5F4715743FE7CD /* TeraRecoverySettlementTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 47E7B696B1BDDBF3B7FE838F /* TeraRecoverySettlementTests.swift */; }; @@ -239,6 +240,7 @@ 70A358431863E54EDDAA24F4 /* TeraLocalBackupTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TeraLocalBackupTests.swift; sourceTree = "<group>"; }; 70BECEA794AE8680BBCA54D0 /* legacy_upgrade_v1 */ = {isa = PBXFileReference; lastKnownFileType = folder; name = legacy_upgrade_v1; path = "test-fixtures/legacy_upgrade_v1"; sourceTree = SOURCE_ROOT; }; 714B4DD70B881D29A89812C9 /* TeraTodayReconciliationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TeraTodayReconciliationTests.swift; sourceTree = "<group>"; }; + 719F870DBDC5105D134E678E /* TeraSettingsIdentityUI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TeraSettingsIdentityUI.swift; sourceTree = "<group>"; }; 7283D1C8F6E90A236BC84AF6 /* TeraTodayRenderingTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TeraTodayRenderingTests.swift; sourceTree = "<group>"; }; 73EBD10E201ECA26DCED523F /* TeraRuntimeInvalidationTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TeraRuntimeInvalidationTests.swift; sourceTree = "<group>"; }; 74FCF1C4A8A7137623BBE223 /* TeraOpenedMediaCloseFixture.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TeraOpenedMediaCloseFixture.swift; sourceTree = "<group>"; }; @@ -366,6 +368,7 @@ A5928D5CAC9F8EF904547DF8 /* TeraRecoveryUITests.swift */, 32CBDAE974FB8D7408108E69 /* TeraRemoteQualificationUITests.swift */, 5238B5F236C392C82CEF9838 /* TeraRootShellUITests.swift */, + 719F870DBDC5105D134E678E /* TeraSettingsIdentityUI.swift */, 019FAA997BEDE9CC84785DAE /* TeraSubmissionQualificationSupport.swift */, ); path = TeraUITests; @@ -883,6 +886,7 @@ F8A87EA68BEF06EA7F0838D0 /* TeraRecoveryUITests.swift in Sources */, C3177E827FE62639579C3EF5 /* TeraRemoteQualificationUITests.swift in Sources */, DF97F408D7D32F72C5AF5939 /* TeraRootShellUITests.swift in Sources */, + 3E373FF6F0BDE19F302097A6 /* TeraSettingsIdentityUI.swift in Sources */, 41ED082A17594FE682A381DD /* TeraSubmissionQualificationSupport.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; diff --git a/TeraFFI/provenance.json b/TeraFFI/provenance.json @@ -94,17 +94,17 @@ { "bytes": 142758, "path": "source/aarch64-apple-darwin.json", - "sha256": "25336b30b0607cf91bd9827e9a4e86bcd4f83d8fa246bd0074013f74cbdb1029" + "sha256": "be9a93016ca96304f26018a10b863f9be976fc7229254d2f5194fa26d800e680" }, { "bytes": 142602, "path": "source/aarch64-apple-ios-sim.json", - "sha256": "9f9a53f218825bf16a366940aefb080334ff8fceefd5ea0fb0e79f8a891af764" + "sha256": "37fbe08857dc690fced458e81bac0ed014cf29fc588b507c6fc708406d5586b4" }, { "bytes": 142598, "path": "source/aarch64-apple-ios.json", - "sha256": "8bddb15af64f3159c966a47e7108a204f5a44346ab86dd7159286b1f5a8fc36c" + "sha256": "7b822bf8afea5bbaf5afc7dc099f5d5fc9140f8dacaf93696720d348a82143c3" } ], "language": "swift", @@ -112,7 +112,7 @@ "schema": "radroots.artifact-manifest.v2", "source": { "repository": "https://github.com/radrootslabs/tera", - "tree": "54d4ba5bdf90a7ec899df79bc1bb31dafe7b2d6d" + "tree": "3f78cda10ef2c45f49b887f38619ce75dcc0eec0" }, "source_records": { "aarch64-apple-darwin": "source/aarch64-apple-darwin.json", @@ -176,17 +176,17 @@ { "bytes": 142758, "path": "TeraFFI/source/aarch64-apple-darwin.json", - "sha256": "25336b30b0607cf91bd9827e9a4e86bcd4f83d8fa246bd0074013f74cbdb1029" + "sha256": "be9a93016ca96304f26018a10b863f9be976fc7229254d2f5194fa26d800e680" }, { "bytes": 142602, "path": "TeraFFI/source/aarch64-apple-ios-sim.json", - "sha256": "9f9a53f218825bf16a366940aefb080334ff8fceefd5ea0fb0e79f8a891af764" + "sha256": "37fbe08857dc690fced458e81bac0ed014cf29fc588b507c6fc708406d5586b4" }, { "bytes": 142598, "path": "TeraFFI/source/aarch64-apple-ios.json", - "sha256": "8bddb15af64f3159c966a47e7108a204f5a44346ab86dd7159286b1f5a8fc36c" + "sha256": "7b822bf8afea5bbaf5afc7dc099f5d5fc9140f8dacaf93696720d348a82143c3" } ], "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 = "54d4ba5bdf90a7ec899df79bc1bb31dafe7b2d6d" -manifest_sha256 = "507994df791418f0164c3b21873c9082e18a1d27cea93f2d8fff9414afad7691" +source_tree = "3f78cda10ef2c45f49b887f38619ce75dcc0eec0" +manifest_sha256 = "84fbc1e9a9f87da799629d1194660d4f8bdd7245b8b390c3fbebe4989577de05" source_date_epoch = 1787871027 [foundation] diff --git a/TeraFFI/source/aarch64-apple-darwin.json b/TeraFFI/source/aarch64-apple-darwin.json @@ -3034,13 +3034,13 @@ "sha256": "4e174e14512c1b12994dea63f58bf39d234d96c3bf245eb5d7eaa0fcf2b4fd24" }, "test-fixtures/legacy-identifiers.v1.json": { - "bytes": 196305, - "git_blob": "aa7969f2917ba4e752b16930b7b31e3ac29521a5", + "bytes": 196289, + "git_blob": "0f80332089fbaee482a27f22bf10855a28fcab6a", "mode": "100644", - "sha256": "1d38428ad8618e117c538eb3f02ac7974d10ecb086c5eee4bccafa337b7281da" + "sha256": "8e982dcdb131bff632015d9107fd84aef78caa21c89f048495f338eb069ebf9a" } }, "policy": "staged_inputs", - "tree": "54d4ba5bdf90a7ec899df79bc1bb31dafe7b2d6d" + "tree": "3f78cda10ef2c45f49b887f38619ce75dcc0eec0" } } diff --git a/TeraFFI/source/aarch64-apple-ios-sim.json b/TeraFFI/source/aarch64-apple-ios-sim.json @@ -3030,13 +3030,13 @@ "sha256": "4e174e14512c1b12994dea63f58bf39d234d96c3bf245eb5d7eaa0fcf2b4fd24" }, "test-fixtures/legacy-identifiers.v1.json": { - "bytes": 196305, - "git_blob": "aa7969f2917ba4e752b16930b7b31e3ac29521a5", + "bytes": 196289, + "git_blob": "0f80332089fbaee482a27f22bf10855a28fcab6a", "mode": "100644", - "sha256": "1d38428ad8618e117c538eb3f02ac7974d10ecb086c5eee4bccafa337b7281da" + "sha256": "8e982dcdb131bff632015d9107fd84aef78caa21c89f048495f338eb069ebf9a" } }, "policy": "staged_inputs", - "tree": "54d4ba5bdf90a7ec899df79bc1bb31dafe7b2d6d" + "tree": "3f78cda10ef2c45f49b887f38619ce75dcc0eec0" } } diff --git a/TeraFFI/source/aarch64-apple-ios.json b/TeraFFI/source/aarch64-apple-ios.json @@ -3030,13 +3030,13 @@ "sha256": "4e174e14512c1b12994dea63f58bf39d234d96c3bf245eb5d7eaa0fcf2b4fd24" }, "test-fixtures/legacy-identifiers.v1.json": { - "bytes": 196305, - "git_blob": "aa7969f2917ba4e752b16930b7b31e3ac29521a5", + "bytes": 196289, + "git_blob": "0f80332089fbaee482a27f22bf10855a28fcab6a", "mode": "100644", - "sha256": "1d38428ad8618e117c538eb3f02ac7974d10ecb086c5eee4bccafa337b7281da" + "sha256": "8e982dcdb131bff632015d9107fd84aef78caa21c89f048495f338eb069ebf9a" } }, "policy": "staged_inputs", - "tree": "54d4ba5bdf90a7ec899df79bc1bb31dafe7b2d6d" + "tree": "3f78cda10ef2c45f49b887f38619ce75dcc0eec0" } } diff --git a/TeraUITests/TeraRemoteQualificationUITests.swift b/TeraUITests/TeraRemoteQualificationUITests.swift @@ -616,7 +616,9 @@ final class TeraRemoteQualificationUITests: XCTestCase { XCTFail("Settings was unavailable through the visible Me sheet") throw QualificationError.missingProductSurface } - guard publicKey.waitForExistence(timeout: 10) else { + guard revealSettingsPublicKey(app, publicKey: publicKey), + publicKey.waitForExistence(timeout: 10) + else { XCTFail("Settings did not present the native identity public key") throw QualificationError.missingProductSurface } @@ -1205,29 +1207,6 @@ final class TeraRemoteQualificationUITests: XCTestCase { } @MainActor - private func openSettingsFromMe( - _ app: XCUIApplication, - meSheet: XCUIElement - ) -> Bool { - let meList = meSheet.descendants(matching: .collectionView).firstMatch - guard meList.waitForExistence(timeout: 10) else { return false } - let settings = app.descendants(matching: .any)["radroots.support.settings"] - for _ in 0 ..< 8 { - if settings.exists, - settings.isHittable, - settings.frame.minY >= meSheet.frame.minY, - settings.frame.maxY <= meSheet.frame.maxY - { - settings.tap() - return app.descendants(matching: .any)["radroots.support.settings.view"] - .waitForExistence(timeout: 20) - } - meList.swipeUp() - } - return false - } - - @MainActor private func focusForTextInput(_ element: XCUIElement, timeout: TimeInterval) -> Bool { let focused = NSPredicate(format: "hasKeyboardFocus == true") for _ in 0 ..< 3 { diff --git a/TeraUITests/TeraSettingsIdentityUI.swift b/TeraUITests/TeraSettingsIdentityUI.swift @@ -0,0 +1,45 @@ +import XCTest + +extension TeraRemoteQualificationUITests { + @MainActor + func openSettingsFromMe( + _ app: XCUIApplication, + meSheet: XCUIElement + ) -> Bool { + let meList = meSheet.descendants(matching: .collectionView).firstMatch + guard meList.waitForExistence(timeout: 10) else { return false } + let settings = app.descendants(matching: .any)["radroots.support.settings"] + for _ in 0 ..< 8 { + if settings.exists, + settings.isHittable, + settings.frame.minY >= meSheet.frame.minY, + settings.frame.maxY <= meSheet.frame.maxY + { + settings.tap() + return app.descendants(matching: .any)["radroots.support.settings.view"] + .waitForExistence(timeout: 20) + } + meList.swipeUp() + } + return false + } + + @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 } + let navigation = app.navigationBars["Settings"] + // Settings uses lazy rows. Read the real identity only after revealing it + // through the same visible scroll surface available to the user at AX5. + for _ in 0 ..< 8 { + if publicKey.exists, publicKey.isHittable, + publicKey.frame.minY >= max(settings.frame.minY, navigation.frame.maxY), + publicKey.frame.maxY <= settings.frame.maxY + { + return true + } + settings.swipeUp() + } + return false + } +} diff --git a/project.yml b/project.yml @@ -200,6 +200,7 @@ targets: - path: TeraUITests/TeraRecoveryUITests.swift - path: TeraUITests/TeraPhotoQualificationInput.swift - path: TeraUITests/TeraRemoteQualificationUITests.swift + - path: TeraUITests/TeraSettingsIdentityUI.swift - path: TeraUITests/TeraSubmissionQualificationSupport.swift - path: test-fixtures/local-social-personas.v1.json buildPhase: resources diff --git a/release/provenance.json b/release/provenance.json @@ -2,11 +2,11 @@ "artifacts": { "app_api_sha256": "020924097c0d7efc33128cb8fd3d3b2026d95f57c44da71880e585aff80f070b", "ffi_api_sha256": "5d74060f97e52dad69ab7567c16d6b6b34acfab846f468450d89e2394a8a69d5", - "ffi_provenance_sha256": "507994df791418f0164c3b21873c9082e18a1d27cea93f2d8fff9414afad7691", + "ffi_provenance_sha256": "84fbc1e9a9f87da799629d1194660d4f8bdd7245b8b390c3fbebe4989577de05", "info_plist_sha256": "b55010dd73b34bf5ad910a888be0ea1ae45f2a5c14329fa6a57059a317bdbd42", "privacy_manifest_sha256": "0f2103257ba596fbcaeb1d6a4dffe3ae021e84c010178852c6bf500a8cfb0f19", "sbom_sha256": "f0a15c2c9ad7799539fbc52fd1fdbcf17f4046b6f86cfe0a9b8980adc0079e10", - "xcode_project_sha256": "21a4160b2df410f26e2c239ef411770588350d28b081d3ec0e7fea68ef1f7a6a" + "xcode_project_sha256": "49c796d1ac0693a7bb276ec927e5dcf8566719eb59feea7792fa4d31adde84a8" }, "disposition": "unsigned", "platforms": [ @@ -22,7 +22,7 @@ "lib_revision": "189c49b74b4bafc142b00b76b296477931139e72", "source_date_epoch": 1787871027, "swift_package_lock_sha256": "8aec408132602a249111a65903c985cca5898ec316a45916d88ba756f08ea40d", - "tera_ffi_source_tree": "54d4ba5bdf90a7ec899df79bc1bb31dafe7b2d6d", + "tera_ffi_source_tree": "3f78cda10ef2c45f49b887f38619ce75dcc0eec0", "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 @@ -5029,7 +5029,7 @@ "count": 1 }, { - "path": "TeraUITests/TeraRemoteQualificationUITests.swift", + "path": "TeraUITests/TeraSettingsIdentityUI.swift", "count": 1 } ] @@ -5043,8 +5043,8 @@ "count": 1 }, { - "path": "TeraUITests/TeraRemoteQualificationUITests.swift", - "count": 1 + "path": "TeraUITests/TeraSettingsIdentityUI.swift", + "count": 2 } ] }, 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": 1992 + "maximum_lines": 1971 } ], "python_file_exception": [ diff --git a/test-fixtures/swiftlint-maintainability-baseline.v1.json b/test-fixtures/swiftlint-maintainability-baseline.v1.json @@ -1 +1 @@ -[{"violation":{"severity":"warning","ruleIdentifier":"function_body_length","reason":"Initializer body should span 50 lines or less excluding comments and whitespace: currently spans 52 lines","location":{"character":3,"file":"Tera\/App\/TeraAppModel.swift","line":21},"ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" init("},{"violation":{"severity":"error","ruleIdentifier":"type_body_length","reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 373 lines","location":{"character":7,"file":"Tera\/Runtime\/TeraGeneratedRuntimeBackend.swift","line":31},"ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraGeneratedRuntimeBackend: TeraRuntimeBackend, @unchecked Sendable {"},{"violation":{"severity":"error","ruleIdentifier":"file_length","reason":"File should contain 1000 lines or less: currently contains 1089","location":{"character":1,"file":"Tera\/Runtime\/TeraGeneratedRuntimeBackend.swift","line":1089},"ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"error","ruleIdentifier":"type_body_length","reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 675 lines","location":{"character":1,"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":3},"ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"actor TeraRuntimeClient {"},{"violation":{"severity":"warning","ruleIdentifier":"function_body_length","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 70 lines","location":{"character":3,"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":353},"ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func changes(bufferCapacity: Int = 16) async throws -> AsyncStream<TeraRuntimeChange> {"},{"violation":{"severity":"warning","ruleIdentifier":"file_length","reason":"File should contain 400 lines or less: currently contains 749","location":{"character":1,"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":749},"ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"error","ruleIdentifier":"file_length","reason":"File should contain 1000 lines or less: currently contains 1029","location":{"character":1,"file":"Tera\/Runtime\/TeraRuntimeModels.swift","line":1029},"ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"error","ruleIdentifier":"type_body_length","reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 481 lines","location":{"character":7,"file":"Tera\/State\/TeraAddStore.swift","line":4},"ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraAddStore: ObservableObject {"},{"violation":{"severity":"warning","ruleIdentifier":"file_length","reason":"File should contain 400 lines or less: currently contains 702","location":{"character":1,"file":"Tera\/State\/TeraAddStore.swift","line":702},"ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"error","ruleIdentifier":"type_body_length","reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 468 lines","location":{"character":1,"file":"Tera\/State\/TeraConfigurationStore.swift","line":78},"ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"actor TeraConfigurationStore {"},{"violation":{"severity":"error","ruleIdentifier":"function_body_length","reason":"Function body should span 100 lines or less excluding comments and whitespace: currently spans 109 lines","location":{"character":5,"file":"Tera\/State\/TeraConfigurationStore.swift","line":148},"ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func load() throws -> TeraAppConfiguration {"},{"violation":{"severity":"warning","ruleIdentifier":"file_length","reason":"File should contain 400 lines or less: currently contains 759","location":{"character":1,"file":"Tera\/State\/TeraConfigurationStore.swift","line":759},"ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"warning","ruleIdentifier":"cyclomatic_complexity","reason":"Function should have complexity 10 or less; currently complexity is 13","location":{"character":11,"file":"Tera\/State\/TeraSessionStore.swift","line":96},"ruleDescription":"Complexity of function bodies should be limited.","ruleName":"Cyclomatic Complexity"},"text":" private func start(acceptingReconfiguration: Bool) async -> TeraSessionPhase {"},{"violation":{"severity":"error","ruleIdentifier":"type_body_length","reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 607 lines","location":{"character":7,"file":"TeraTests\/TeraAddStoreTests.swift","line":6},"ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraAddStoreTests: XCTestCase {"},{"violation":{"severity":"error","ruleIdentifier":"type_body_length","reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 394 lines","location":{"character":1,"file":"TeraTests\/TeraAddStoreTests.swift","line":682},"ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"actor AddBackend: TeraRuntimeBackend {"},{"violation":{"severity":"warning","ruleIdentifier":"function_parameter_count","reason":"Function should have 5 parameters or less: it currently has 8","location":{"character":3,"file":"TeraTests\/TeraAddStoreTests.swift","line":1020},"ruleDescription":"Number of function parameters should be low.","ruleName":"Function Parameter Count"},"text":" func makeStatus("},{"violation":{"severity":"error","ruleIdentifier":"file_length","reason":"File should contain 1000 lines or less: currently contains 1232","location":{"character":1,"file":"TeraTests\/TeraAddStoreTests.swift","line":1232},"ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"warning","ruleIdentifier":"type_body_length","reason":"Class body should span 250 lines or less excluding comments and whitespace: currently spans 307 lines","location":{"character":7,"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":7},"ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraRemoteQualificationTests: XCTestCase {"},{"violation":{"severity":"warning","ruleIdentifier":"function_body_length","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 94 lines","location":{"character":3,"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":45},"ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func testQualificationRejectsAmbiguousOrUnsafeHarnessValues() {"},{"violation":{"severity":"warning","ruleIdentifier":"function_body_length","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 53 lines","location":{"character":3,"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":212},"ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func testAuthorizationEvidenceIsRedactedEphemeralAndRelaunchCleaned() throws {"},{"violation":{"severity":"warning","ruleIdentifier":"type_body_length","reason":"Class body should span 250 lines or less excluding comments and whitespace: currently spans 298 lines","location":{"character":7,"file":"TeraTests\/TeraRuntimeClientTests.swift","line":4},"ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraRuntimeClientTests: XCTestCase {"},{"violation":{"severity":"error","ruleIdentifier":"type_body_length","reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 580 lines","location":{"character":7,"file":"TeraTests\/TeraStateMigrationTests.swift","line":6},"ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraStateMigrationTests: XCTestCase {"},{"violation":{"severity":"warning","ruleIdentifier":"function_body_length","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 61 lines","location":{"character":5,"file":"TeraTests\/TeraStateMigrationTests.swift","line":7},"ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func testRelayValidationMatchesRuntimeProfiles() throws {"},{"violation":{"severity":"warning","ruleIdentifier":"file_length","reason":"File should contain 400 lines or less: currently contains 622","location":{"character":1,"file":"TeraTests\/TeraStateMigrationTests.swift","line":622},"ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"},{"violation":{"severity":"error","ruleIdentifier":"type_body_length","reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 1285 lines","location":{"character":7,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":4},"ruleDescription":"Type bodies should not span too many lines","ruleName":"Type Body Length"},"text":"final class TeraRemoteQualificationUITests: XCTestCase {"},{"violation":{"severity":"warning","ruleIdentifier":"function_body_length","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 65 lines","location":{"character":3,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":62},"ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func testLocalSocialFiveFlowScenario() throws {"},{"violation":{"severity":"warning","ruleIdentifier":"function_body_length","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 66 lines","location":{"character":3,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":166},"ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func testLocalSocialDeterministicPersonas() throws {"},{"violation":{"severity":"warning","ruleIdentifier":"function_body_length","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 54 lines","location":{"character":3,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":239},"ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" func testRemoteBlossomUploadAndRecovery() throws {"},{"violation":{"severity":"warning","ruleIdentifier":"cyclomatic_complexity","reason":"Function should have complexity 10 or less; currently complexity is 18","location":{"character":11,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":494},"ruleDescription":"Complexity of function bodies should be limited.","ruleName":"Cyclomatic Complexity"},"text":" private func expectedAddFieldLabel(_ identifier: String, type: String) -> String {"},{"violation":{"severity":"warning","ruleIdentifier":"function_body_length","reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 67 lines","location":{"character":10,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":1516},"ruleDescription":"Function bodies should not span too many lines","ruleName":"Function Body Length"},"text":" static func environment("},{"violation":{"severity":"error","ruleIdentifier":"file_length","reason":"File should contain 1000 lines or less: currently contains 1992","location":{"character":1,"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":1992},"ruleDescription":"Files should not span too many lines.","ruleName":"File Length"},"text":"}"}] -\ No newline at end of file +[{"text":" init(","violation":{"severity":"warning","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","location":{"file":"Tera\/App\/TeraAppModel.swift","line":21,"character":3},"reason":"Initializer body should span 50 lines or less excluding comments and whitespace: currently spans 52 lines"}},{"text":"final class TeraGeneratedRuntimeBackend: TeraRuntimeBackend, @unchecked Sendable {","violation":{"severity":"error","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","location":{"file":"Tera\/Runtime\/TeraGeneratedRuntimeBackend.swift","line":31,"character":7},"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 373 lines"}},{"text":"}","violation":{"severity":"error","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","ruleName":"File Length","location":{"file":"Tera\/Runtime\/TeraGeneratedRuntimeBackend.swift","line":1089,"character":1},"reason":"File should contain 1000 lines or less: currently contains 1089"}},{"text":"actor TeraRuntimeClient {","violation":{"severity":"error","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","location":{"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":3,"character":1},"reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 675 lines"}},{"text":" func changes(bufferCapacity: Int = 16) async throws -> AsyncStream<TeraRuntimeChange> {","violation":{"severity":"warning","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","location":{"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":353,"character":3},"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 70 lines"}},{"text":"}","violation":{"severity":"warning","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","ruleName":"File Length","location":{"file":"Tera\/Runtime\/TeraRuntimeClient.swift","line":749,"character":1},"reason":"File should contain 400 lines or less: currently contains 749"}},{"text":"}","violation":{"severity":"error","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","ruleName":"File Length","location":{"file":"Tera\/Runtime\/TeraRuntimeModels.swift","line":1029,"character":1},"reason":"File should contain 1000 lines or less: currently contains 1029"}},{"text":"final class TeraAddStore: ObservableObject {","violation":{"severity":"error","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","location":{"file":"Tera\/State\/TeraAddStore.swift","line":4,"character":7},"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 481 lines"}},{"text":"}","violation":{"severity":"warning","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","ruleName":"File Length","location":{"file":"Tera\/State\/TeraAddStore.swift","line":702,"character":1},"reason":"File should contain 400 lines or less: currently contains 702"}},{"text":"actor TeraConfigurationStore {","violation":{"severity":"error","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","location":{"file":"Tera\/State\/TeraConfigurationStore.swift","line":78,"character":1},"reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 468 lines"}},{"text":" func load() throws -> TeraAppConfiguration {","violation":{"severity":"error","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","location":{"file":"Tera\/State\/TeraConfigurationStore.swift","line":148,"character":5},"reason":"Function body should span 100 lines or less excluding comments and whitespace: currently spans 109 lines"}},{"text":"}","violation":{"severity":"warning","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","ruleName":"File Length","location":{"file":"Tera\/State\/TeraConfigurationStore.swift","line":759,"character":1},"reason":"File should contain 400 lines or less: currently contains 759"}},{"text":" private func start(acceptingReconfiguration: Bool) async -> TeraSessionPhase {","violation":{"severity":"warning","ruleDescription":"Complexity of function bodies should be limited.","ruleIdentifier":"cyclomatic_complexity","ruleName":"Cyclomatic Complexity","location":{"file":"Tera\/State\/TeraSessionStore.swift","line":96,"character":11},"reason":"Function should have complexity 10 or less; currently complexity is 13"}},{"text":"final class TeraAddStoreTests: XCTestCase {","violation":{"severity":"error","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":6,"character":7},"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 607 lines"}},{"text":"actor AddBackend: TeraRuntimeBackend {","violation":{"severity":"error","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":682,"character":1},"reason":"Actor body should span 350 lines or less excluding comments and whitespace: currently spans 394 lines"}},{"text":" func makeStatus(","violation":{"severity":"warning","ruleDescription":"Number of function parameters should be low.","ruleIdentifier":"function_parameter_count","ruleName":"Function Parameter Count","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":1020,"character":3},"reason":"Function should have 5 parameters or less: it currently has 8"}},{"text":"}","violation":{"severity":"error","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","ruleName":"File Length","location":{"file":"TeraTests\/TeraAddStoreTests.swift","line":1232,"character":1},"reason":"File should contain 1000 lines or less: currently contains 1232"}},{"text":"final class TeraRemoteQualificationTests: XCTestCase {","violation":{"severity":"warning","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","location":{"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":7,"character":7},"reason":"Class body should span 250 lines or less excluding comments and whitespace: currently spans 307 lines"}},{"text":" func testQualificationRejectsAmbiguousOrUnsafeHarnessValues() {","violation":{"severity":"warning","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","location":{"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":45,"character":3},"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 94 lines"}},{"text":" func testAuthorizationEvidenceIsRedactedEphemeralAndRelaunchCleaned() throws {","violation":{"severity":"warning","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","location":{"file":"TeraTests\/TeraRemoteQualificationTests.swift","line":212,"character":3},"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 53 lines"}},{"text":"final class TeraRuntimeClientTests: XCTestCase {","violation":{"severity":"warning","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","location":{"file":"TeraTests\/TeraRuntimeClientTests.swift","line":4,"character":7},"reason":"Class body should span 250 lines or less excluding comments and whitespace: currently spans 298 lines"}},{"text":"final class TeraStateMigrationTests: XCTestCase {","violation":{"severity":"error","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","location":{"file":"TeraTests\/TeraStateMigrationTests.swift","line":6,"character":7},"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 580 lines"}},{"text":" func testRelayValidationMatchesRuntimeProfiles() throws {","violation":{"severity":"warning","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","location":{"file":"TeraTests\/TeraStateMigrationTests.swift","line":7,"character":5},"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 61 lines"}},{"text":"}","violation":{"severity":"warning","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","ruleName":"File Length","location":{"file":"TeraTests\/TeraStateMigrationTests.swift","line":622,"character":1},"reason":"File should contain 400 lines or less: currently contains 622"}},{"text":"final class TeraRemoteQualificationUITests: XCTestCase {","violation":{"severity":"error","ruleDescription":"Type bodies should not span too many lines","ruleIdentifier":"type_body_length","ruleName":"Type Body Length","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":4,"character":7},"reason":"Class body should span 350 lines or less excluding comments and whitespace: currently spans 1265 lines"}},{"text":" func testLocalSocialFiveFlowScenario() throws {","violation":{"severity":"warning","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":62,"character":3},"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 65 lines"}},{"text":" func testLocalSocialDeterministicPersonas() throws {","violation":{"severity":"warning","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":166,"character":3},"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 66 lines"}},{"text":" func testRemoteBlossomUploadAndRecovery() throws {","violation":{"severity":"warning","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":239,"character":3},"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 54 lines"}},{"text":" private func expectedAddFieldLabel(_ identifier: String, type: String) -> String {","violation":{"severity":"warning","ruleDescription":"Complexity of function bodies should be limited.","ruleIdentifier":"cyclomatic_complexity","ruleName":"Cyclomatic Complexity","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":494,"character":11},"reason":"Function should have complexity 10 or less; currently complexity is 18"}},{"text":" static func environment(","violation":{"severity":"warning","ruleDescription":"Function bodies should not span too many lines","ruleIdentifier":"function_body_length","ruleName":"Function Body Length","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":1495,"character":10},"reason":"Function body should span 50 lines or less excluding comments and whitespace: currently spans 67 lines"}},{"text":"}","violation":{"severity":"error","ruleDescription":"Files should not span too many lines.","ruleIdentifier":"file_length","ruleName":"File Length","location":{"file":"TeraUITests\/TeraRemoteQualificationUITests.swift","line":1971,"character":1},"reason":"File should contain 1000 lines or less: currently contains 1971"}}] +\ No newline at end of file