{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"InspectorView.body (cyclomatic 25): InspectorView.body has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/InspectorView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ccc2b5b1c9a5a52432acbdbe5fd8ac148109a4c1bd7292e7663f0019697e83c"}},{"ruleId":"D1","level":"warning","message":{"text":"ProgressQueueView.body (cyclomatic 23): ProgressQueueView.body has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ProgressQueueView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e66af021771b184cea3a1c9ba9aff3f7715afb77fae82adbb9a6c9795fe46c3"}},{"ruleId":"D1","level":"warning","message":{"text":"TaskRowView.body (cyclomatic 22): TaskRowView.body has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ProgressQueueView.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f18eea54f40510732cc0befa3edba2f8cc1b3e5cdd0c538cac90ed71314d59"}},{"ruleId":"D1","level":"warning","message":{"text":"NanoBananaService.parseResponse (cyclomatic 21): NanoBananaService.parseResponse has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1971}}}],"partialFingerprints":{"codehealthFindingId/v1":"76feee7297871d8c98c197a9554d6dec77f0a3fd2eefbcabd05462d151920a33"}},{"ruleId":"D1","level":"warning","message":{"text":"NanoBananaService.pollBatchJob (cyclomatic 20): NanoBananaService.pollBatchJob has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32ee42c126dd417bb5e973e6e9bf853f2a20af1997525495d042cdb7e02fcba"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchOrchestrator.processQueue (cyclomatic 18): BatchOrchestrator.processQueue has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"e939ad0a7986df42397e8c89facae563fd22aa474fbf305eab29978ad5de30ba"}},{"ruleId":"D2","level":"warning","message":{"text":"ProgressQueueView.body (cognitive 44): ProgressQueueView.body has cognitive complexity 44 (threshold 15). Drivers by points: if/else 21 (39 pts), ternaries 3 (5 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ProgressQueueView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1136c827965d56fa000ad6e8022d3dfa487b8d4e8f1f9d41dab550e290ad99"}},{"ruleId":"D2","level":"warning","message":{"text":"NanoBananaService.pollBatchJob (cognitive 43): NanoBananaService.pollBatchJob has cognitive complexity 43 (threshold 15). Drivers by points: if/else 10 (31 pts), boolean chains 5, match/switch 1 (4 pts), error handling 1 (2 pts), loops 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1410}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61057ff4761a3ea2dd2a50ab2e95f29e0bff5efdeabc5873abc48a896a223b3"}},{"ruleId":"D2","level":"warning","message":{"text":"InspectorView.body (cognitive 34): InspectorView.body has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 5 (9 pts), boolean chains 6 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/InspectorView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"45983796d6319947c069229c1d23136446fdd7282db823d034107e4e3ec8f7a6"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskRowView.body (cognitive 33): TaskRowView.body has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (18 pts), ternaries 5 (12 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ProgressQueueView.swift"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd7989056591a9cf4468fbe5ecfb40daf8ae1cbb39ed20579b3a99a1e7bc23a"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryManager.repairSourceBookmarksFromFolder (cognitive 27): HistoryManager.repairSourceBookmarksFromFolder has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 3 (7 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/HistoryManager.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0fa0220291d361983f9c8804aa1cc05abe09ac70dca98ff999879de36e155e"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchOrchestrator.performSubmission (cognitive 26): BatchOrchestrator.performSubmission has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (20 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"721eaad73ff5d18861c23c884e5dd98ca1f0b652e71ec483a45d7c75c8a273d9"}},{"ruleId":"D2","level":"warning","message":{"text":"NanoBananaService.parseResponse (cognitive 26): NanoBananaService.parseResponse has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 11, loops 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1971}}}],"partialFingerprints":{"codehealthFindingId/v1":"e423465f501ec5a0461b8d129de17603f8053b41d6fa04a8a24bb9da031fa4a5"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchOrchestrator.submitOpenAIBatch (cognitive 24): BatchOrchestrator.submitOpenAIBatch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 3 (6 pts), ternaries 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45218af6946b1dad22415364ccf6c2c153ab42766019d387cffd5689e82ee3c"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchOrchestrator.refreshInputBookmarksIfNeeded (cognitive 24): BatchOrchestrator.refreshInputBookmarksIfNeeded has cognitive complexity 24 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 4 (9 pts), boolean chains 3 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":2136}}}],"partialFingerprints":{"codehealthFindingId/v1":"646c0e7cd736d1f3f0993011ab5927f5795311283719c7fc239e88ee030b7397"}},{"ruleId":"D2","level":"warning","message":{"text":"NanoBananaService.pollOpenAIBatch (cognitive 24): NanoBananaService.pollOpenAIBatch has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 5, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":986}}}],"partialFingerprints":{"codehealthFindingId/v1":"395cec3ca4390c05790e74248d264a22c72ad3e6a1ee97ce7f52f16df9d20a1e"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryManager.refreshBookmarksIfNeeded (cognitive 22): HistoryManager.refreshBookmarksIfNeeded has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/HistoryManager.swift"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"394e14a74273b052ae6bf39c2fae9e3230e57203c589f24cf92dbafaaf1ba7ca"}},{"ruleId":"D2","level":"warning","message":{"text":"NanoBananaService.extractResultFromDest (cognitive 22): NanoBananaService.extractResultFromDest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"8964471655cad0a637e54788d77852c35db8893d1fc295f4c02274f32d98c379"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchOrchestrator.handleSuccess (cognitive 21): BatchOrchestrator.handleSuccess has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 4 (7 pts), loops 1 (3 pts), boolean chains 1, error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b26f65cf7cf53b5bd736c702c995e4a49927f520e4f4af2a66c9b7c28004626"}},{"ruleId":"D2","level":"warning","message":{"text":"NanoBananaService.startOpenAIBatch (cognitive 21): NanoBananaService.startOpenAIBatch has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"235cb9e5b7792a5108903b51879fb4e92ec58c0de71d33390d2498451ab0f023"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchOrchestrator.processQueue (cognitive 20): BatchOrchestrator.processQueue has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"813c8b71d8fb2c71a55b65b083024b3fa7bd92bbcb2ef7d19361524078b74133"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchOrchestrator.buildSubmissionDataList (cognitive 18): BatchOrchestrator.buildSubmissionDataList has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"4deed2816fec8db2e8aa00246335ee7830220392150536618a4feba8f5485acf"}},{"ruleId":"D2","level":"warning","message":{"text":"CostEstimatorView.body (cognitive 18): CostEstimatorView.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 3 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/SharedComponents.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a96be0be124cea8e37b3ee53006ead141a1963bcec35db57049b3e06fa7883"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchOrchestrator.loadActiveBatches (cognitive 17): BatchOrchestrator.loadActiveBatches has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":2008}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc3954291df82e16a20e2ac0233977d231e9520dd1ed4b41f9ca451a014bf91d"}},{"ruleId":"D2","level":"warning","message":{"text":"NanoBananaService.parseOpenAIResponse (cognitive 17): NanoBananaService.parseOpenAIResponse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, ternaries 1 (2 pts), loops 1, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"373aa124d60ec62ac63cdb103af27d1e32c2bb03e4814ad918149b6af5de3e5c"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRowView.body (cognitive 17): HistoryRowView.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/HistoryView.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"496c5d56e3ad632bcab053f1b5de74faf32fdc735cc215f7263d3ec201cbefce"}},{"ruleId":"D2","level":"warning","message":{"text":"HistoryRowView.outputThumbnail (cognitive 17): HistoryRowView.outputThumbnail has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/HistoryView.swift"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2b5236c4ac715d2af5dee9c6a59a83f73f15e5180fa53e6b74f34ed7d9adb6"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchOrchestrator.recomputeControlStateAfterWork (cognitive 16): BatchOrchestrator.recomputeControlStateAfterWork has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd83f1ab824819acdfe0821471a78aff4d8e859abe695f43bd433926d0254eec"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BatchOrchestrator: ClassTooLong \u2014 1667 significant lines (blank, comment-only and punctuation-only lines excluded), 77 methods. The bar is 400 significant lines; this is 1267 over it, 4.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a8752293222dcd49a9281ccb12f50c7c83a5e0a0f06b7e379a625939fb7d808"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/BatchOrchestrator.swift: FileTooLong \u2014 1727 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: BatchOrchestrator (83-2375). The bar is 500 significant lines; this is 1227 over it, 3.45\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc54ef7176788dfdec5646bd1f17a91e2120b413c48be8dd6c26c31da515d36a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NanoBananaService: TooManyMethods \u2014 97 methods. The bar is 30 methods; this is 67 over it, 3.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1064ab8086e211c0422af9101f463ec21c9fc9875658d17b87ecbc37a561b96"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Services/NanoBananaService.swift: FileTooLong \u2014 1599 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1099 over it, 3.20\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"951163a4f0db4f7abdcbee1497dabb590d31a8c15a7a6e1e571de524df9b1ec1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InspectorView.body: MethodTooLong \u2014 body runs 264 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 164 over it, 2.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/InspectorView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a60dbe3337c51dc55854dce77e9c7d6c0f84c065503fdff29aa326349e05720"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BatchOrchestrator: TooManyMethods \u2014 77 methods. The bar is 30 methods; this is 47 over it, 2.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c07aa2c1bbb5246802f312d8f003db4b665a53bee71b9663063e0b3ac4eb23"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ProgressQueueView.body: MethodTooLong \u2014 body runs 178 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 78 over it, 1.78\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ProgressQueueView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"5987aafbdc923c00eddd9be399686021790d4b34c31d4642351ce1594fc26201"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Models/Models.swift: FileTooLong \u2014 828 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 328 over it, 1.66\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Models/Models.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8095892334751249e9cb91dc9f66a2d2bc17ed503a3e1e035a1202d065623a0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/ResultsView.swift: FileTooLong \u2014 758 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 258 over it, 1.52\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ResultsView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac1291bc67a5554beb86e5754fb7e8dedd52c121ff2b8155f43201a93eed69e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HistoryRowView.body: MethodTooLong \u2014 body runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/HistoryView.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31d54327088bde8f9a3a0d57c00fc4b67b3d02b05a2da352062b9d18a5c062e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BatchOrchestrator.performSubmission: MethodTooLong \u2014 performSubmission runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bf770aedfb0b2bae9f3e034d476b9ef6390cc231e61c2cf69ea292f5ab2395"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SidebarView.body: MethodTooLong \u2014 body runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/SidebarView.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"867cb52b5db00ac969f597ee8a8da0dba89a89d2539a7ad57bc677e2a8325cd7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/ProgressQueueView.swift: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 33 over it, 1.07\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ProgressQueueView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"666ce365b61ec1b8fb161f6413150a263113e23f8a6af5528b25fa4bfd2082cb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HistoryView.body: MethodTooLong \u2014 body runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/HistoryView.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa852e911515b0989e87886cfa177a88d0ad1ebe353dd962b13efae31563875"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/HistoryView.swift: FileTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded), about 67% of them inside a single declaration: HistoryRowView (236-694). The bar is 500 significant lines; this is 8 over it, 1.02\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/HistoryView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7d0d8c876a4303a5519e3eb67104fbfcb00b18d0a353dfef6967c7d282a589"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Nano Banana Helper/Services/BatchOrchestrator.swift:560-572 | Nano Banana Helper/Services/BatchOrchestrator.swift:574-586 | Nano Banana Helper/Services/BatchOrchestrator.swift:588-600 | Nano Banana Helper/Services/BatchOrchestrator.swift:602-614 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8a47b75b96182556f06e50485497ac5a23183e2d87602472c81e86022a8e9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Nano Banana Helper/Services/NanoBananaService.swift:1070-1092 | Nano Banana Helper/Services/NanoBananaService.swift:1105-1153 | Nano Banana Helper/Services/NanoBananaService.swift:1155-1185 | Nano Banana Helper/Services/NanoBananaService.swift:1621-1650 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"922b88492bf708087a3dd9408da094eb1d646bae8f15d3955305e6c028766747"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Nano Banana Helper/Views/HistoryView.swift:605-629 | Nano Banana Helper/Views/ProjectGalleryView.swift:219-243 | Nano Banana Helper/Views/ResultsView.swift:446-464 | Nano Banana Helper/Views/ResultsView.swift:466-484 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/HistoryView.swift"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad69d122155f4710fb67776963c16df342451d4ad2d01ad87b2e5a3102ae744e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (130 corresponding lines): Nano Banana Helper/Views/PromptEditSheet.swift:14-150 | Nano Banana Helper/Views/PromptsManagementView.swift:272-401 \u2014 These two members are one piece of code written twice and then edited apart: 130 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/PromptEditSheet.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"3692d4ce09a3f92cacc8f0688e35967f841b2f2d10c591ecf89efaa2f0c72b05"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Nano Banana Helper/Models/Models.swift:622-646 | Nano Banana Helper/Models/Models.swift:838-865 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Models/Models.swift"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba860c08a61828c5c6f7a668b544d9e6cf0def8f86b8543b75accab9a786edb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): Nano Banana Helper/Services/BatchOrchestrator.swift:2189-2232 | Nano Banana Helper/Services/BatchOrchestrator.swift:2234-2289 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":2189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eaa0dbd46cce5b3240d3fa052dc9d2297e150345c1349abc08a2e5b3897337c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Nano Banana Helper/Models/Models.swift:647-671 | Nano Banana Helper/Models/Models.swift:867-894 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Models/Models.swift"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded405d4c5482a1debc2992a6b0625083f2b33787f238a4be05956040c155915"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): Nano Banana Helper/Services/BatchOrchestrator.swift:1402-1435 | Nano Banana Helper/Services/BatchOrchestrator.swift:1437-1467 | Nano Banana Helper/Services/BatchOrchestrator.swift:1469-1500 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec547233ead7b26fcaab549fe651288be183b226d471c86e8684a912d8adc3a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Nano Banana Helper/Models/Models.swift:896-926 | Nano Banana Helper/Models/Models.swift:928-958 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Models/Models.swift"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca22cd1f92e10bb0897a11f5b0f3d465307cac03d0a4aab636aa623dee58f481"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): Nano Banana Helper/Services/BatchOrchestrator.swift:486-517 | Nano Banana Helper/Services/BatchOrchestrator.swift:519-550 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cac9ff13f89c37e30a25b92fcc65fc299006289865032ae155a3ec77b2f340"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Nano Banana Helper/Services/NanoBananaService.swift:1604-1617 | Nano Banana Helper/Services/NanoBananaService.swift:2145-2156 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e06145b62d8db4e98c5d2146acb4c9059941b8af08aa91f8acaaf9f801369ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): Nano Banana Helper/Models/BillingModels.swift:36-45 | Nano Banana Helper/Models/PromptLibrary.swift:28-36 | Nano Banana Helper/Services/NanoBananaService.swift:223-232 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Models/BillingModels.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e4310ced3a8312679f1d48519897b44df25f42a9d574c059fa1c5af09e0c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Nano Banana Helper/Services/NanoBananaService.swift:1296-1317 | Nano Banana Helper/Services/NanoBananaService.swift:1390-1408 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bdfa6fc9852547a593fe26dd1e0538fb6a7520b2e46b2b2b89b9633691d7b47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Nano Banana Helper/Views/ResultsView.swift:941-960 | Nano Banana Helper/Views/StagingView.swift:311-328 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ResultsView.swift"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abd13932c999933552cb844d3228cd18521c68efbee96ebaf60dcd5d2d064de"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Nano Banana Helper/Models/BillingModels.swift:47-56 | Nano Banana Helper/Models/Models.swift:482-492 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Models/BillingModels.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acf51d9548943b424f332c65d610bb0860706002f2244343fb7801d15463fad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Nano Banana Helper/Models/AppPaths.swift:289-303 | Nano Banana Helper/Models/AppPaths.swift:305-323 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Models/AppPaths.swift"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacb8c6be1d2ba9eac2bef34fb1e2f1be1df86ba7527e1963287bf37e57b362d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Nano Banana Helper/Services/BatchOrchestrator.swift:990-1002 | Nano Banana Helper/Services/BatchOrchestrator.swift:1263-1274 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b265bfaaab30de2b731501045898a6a530e07dc8ba039670baf67057996287"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Nano Banana Helper/Services/BatchOrchestrator.swift:1724-1733 | Nano Banana Helper/Services/BatchOrchestrator.swift:1735-1744 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":1724}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f9db0ce07c7348b1eb2b19435da96985ba9acde568b990b90ed0c55e7eb1b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Nano Banana Helper/Views/HistoryView.swift:651-663 | Nano Banana Helper/Views/ResultsView.swift:514-527 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/HistoryView.swift"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc858be958825038fcb580c97fcfeba9841fdfd0b043867315136ea80e54930b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Nano Banana Helper/Views/HistoryView.swift:535-543 | Nano Banana Helper/Views/ResultsView.swift:650-658 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/HistoryView.swift"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"2778b511ad7b4d69bbac82b95dd3a34d0a55ac082ea980097a133e063bef3a99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Nano Banana Helper/Services/NanoBananaService.swift:2344-2356 | Nano Banana Helper/Services/NanoBananaService.swift:2358-2369 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":2344}}}],"partialFingerprints":{"codehealthFindingId/v1":"299e4494c948a39213001a369279d9716729cd176279ce207f498d4288a6b8ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Nano Banana Helper/Models/AppPaths.swift:221-230 | Nano Banana Helper/Models/AppPaths.swift:235-245 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Models/AppPaths.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"71625d1a6e22f334b9817a1cb5e78b0cbd2b546a57562b17438f22cb4d0035b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Nano Banana Helper/Services/BatchOrchestrator.swift:1941-1945 | Nano Banana Helper/Services/ProjectManager.swift:164-169 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":1941}}}],"partialFingerprints":{"codehealthFindingId/v1":"451c546227c2fe02fc61bb4d8aaa9e7eef5b8a15cc1bd50a619d57045c5d6bde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): Nano Banana Helper/Views/PromptEditSheet.swift:59-103 | Nano Banana Helper/Views/PromptsManagementView.swift:328-372 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00608\u0060 in one and \u00604\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Nano Banana Helper/Views/PromptEditSheet.swift:55\u0060 calls \u0060padding\u0060 and \u0060Nano Banana Helper/Views/PromptsManagementView.swift:325\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/PromptEditSheet.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8995a17ecf11d0b48886802eff7f05ef42c3fc3ec4602b4ccc01bb0dda8631"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): Nano Banana Helper/Views/ProjectListView.swift:42-73 | Nano Banana Helper/Views/SidebarView.swift:50-81 \u2014 before extracting anything, compare \u0060Nano Banana Helper/Views/ProjectListView.swift\u0060 and \u0060Nano Banana Helper/Views/SidebarView.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Views/ProjectListView.swift:42\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Nano Banana Helper/Views/ProjectListView.swift:40\u0060 calls \u0060ProjectRowView\u0060, \u0060tag\u0060 and \u0060Nano Banana Helper/Views/SidebarView.swift:49\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ProjectListView.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6576b7f5a135568b6666466e35ca6a9a85575678ffcc0f27c0d7cde9b99f5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): Nano Banana Helper/Views/PromptEditSheet.swift:29-54 | Nano Banana Helper/Views/PromptsManagementView.swift:301-325 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00608\u0060 in one and \u00604\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Nano Banana Helper/Views/PromptEditSheet.swift:55\u0060 calls \u0060padding\u0060 and \u0060Nano Banana Helper/Views/PromptsManagementView.swift:328\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/PromptEditSheet.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"26d55d6df4ee7d129640be027da86f8cb31e68cb58c1d3f77758abef3750524e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Nano Banana Helper/Views/HistoryView.swift:605-629 | Nano Banana Helper/Views/ProjectGalleryView.swift:219-243 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/HistoryView.swift"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d0548bc0f1e641b501ed6cbc3791f3e33a0511ae5c7c2620909cd8011fdb8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): Nano Banana Helper/Views/ProjectListView.swift:98-120 | Nano Banana Helper/Views/SidebarView.swift:160-180 \u2014 before extracting anything, compare \u0060Nano Banana Helper/Views/ProjectListView.swift\u0060 and \u0060Nano Banana Helper/Views/SidebarView.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Views/ProjectListView.swift:98\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ProjectListView.swift"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b95dba688ecba790b741ec4eae3c3fbb935320f999a90a7564b28736fc7b09e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Nano Banana Helper/Services/BatchOrchestrator.swift:1414-1435 | Nano Banana Helper/Services/BatchOrchestrator.swift:1446-1467 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Services/BatchOrchestrator.swift:1414\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Nano Banana Helper/Services/BatchOrchestrator.swift:1410\u0060 calls \u0060batch\u0060, \u0060normalizeBatchStatus\u0060 and \u0060Nano Banana Helper/Services/BatchOrchestrator.swift:1444\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ad11573a25478ade8386b307365e0afa8d4a388da4cd81e9ae49a72d472656"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): Nano Banana Helper/Views/ProgressQueueView.swift:374-392 | Nano Banana Helper/Views/ProjectListView.swift:48-66 | Nano Banana Helper/Views/SidebarView.swift:56-74 \u2014 before extracting anything, compare \u0060Nano Banana Helper/Views/ProjectListView.swift\u0060 and \u0060Nano Banana Helper/Views/SidebarView.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ProgressQueueView.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8e5006f1ea3548f5b8ff82071a90b5f036edb92d47c90da9992798d8ab23a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Nano Banana Helper/Models/Models.swift:909-926 | Nano Banana Helper/Models/Models.swift:941-958 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Models/Models.swift:909\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Models/Models.swift"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d228ac721cc4426860df546edd34402040ae34011d3793d73b8ee90cec0493"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): Nano Banana Helper/Services/NanoBananaService.swift:754-767 | Nano Banana Helper/Services/NanoBananaService.swift:1266-1283 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Services/NanoBananaService.swift:754\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Nano Banana Helper/Services/NanoBananaService.swift:1286\u0060 calls \u0060log\u0060, \u0060httpErrorLogSummary\u0060 and \u0060Nano Banana Helper/Services/NanoBananaService.swift:770\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"27902a5aa278519a36ccbc8571c260e851b492a098d6dd016ba4ef1016615707"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Nano Banana Helper/Views/ResultsView.swift:448-464 | Nano Banana Helper/Views/ResultsView.swift:468-484 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Views/ResultsView.swift:448\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ResultsView.swift"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b792e761702456d400630697559372b20a1704e3086632d386ebd22e57ee246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 3): Nano Banana Helper/Services/NanoBananaService.swift:758-769 | Nano Banana Helper/Services/NanoBananaService.swift:1270-1285 | Nano Banana Helper/Services/NanoBananaService.swift:1362-1377 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Services/NanoBananaService.swift:758\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Nano Banana Helper/Services/NanoBananaService.swift:1286\u0060 calls \u0060log\u0060, \u0060httpErrorLogSummary\u0060 and \u0060Nano Banana Helper/Services/NanoBananaService.swift:770\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"44035b21297adf647d98805adbe1c16b96a3cb347564a1bc614aa392ee61729e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): Nano Banana Helper/Views/HistoryView.swift:608-622 | Nano Banana Helper/Views/ProjectGalleryView.swift:222-236 | Nano Banana Helper/Views/ResultsView.swift:467-481 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Views/HistoryView.swift:608\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/HistoryView.swift"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93ccc29274c191908e7bea80de34174e8b7bc14351562eeffd42729c5290c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Nano Banana Helper/Services/BatchOrchestrator.swift:2194-2207 | Nano Banana Helper/Services/BatchOrchestrator.swift:2247-2261 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Services/BatchOrchestrator.swift:2194\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":2194}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5cfbfef43134e7aa388171f43d777bde6f571b79fefab51f0ae688a0eae1f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Nano Banana Helper/Services/NanoBananaService.swift:1254-1268 | Nano Banana Helper/Services/NanoBananaService.swift:1346-1360 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d5519130a53c4b3fef70f255defcb9c7515375f2ad654c12afa87122e52dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201314 lines \u00D7 4): Nano Banana Helper/Services/NanoBananaService.swift:1081-1088 | Nano Banana Helper/Services/NanoBananaService.swift:1135-1144 | Nano Banana Helper/Services/NanoBananaService.swift:1169-1176 | Nano Banana Helper/Services/NanoBananaService.swift:1632-1645 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Services/NanoBananaService.swift:1135\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ae9d5a9a21ae65206f66637ecc02ad3b72daa223fc11f8ecca5e237afda625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Nano Banana Helper/Services/NanoBananaService.swift:788-801 | Nano Banana Helper/Services/NanoBananaService.swift:803-816 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca30ade8c5f41e1dc1983337a67a8a250b11d564ad654658426bcb677dbffc8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Nano Banana Helper/Views/ProjectListView.swift:123-136 | Nano Banana Helper/Views/SidebarView.swift:182-195 \u2014 before extracting anything, compare \u0060Nano Banana Helper/Views/ProjectListView.swift\u0060 and \u0060Nano Banana Helper/Views/SidebarView.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ProjectListView.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdff4223c2b06ae00ec9a6dc4d25fbef4ca382b6c338a3116e08adbe5d9705f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Nano Banana Helper/Services/BatchOrchestrator.swift:893-905 | Nano Banana Helper/Services/BatchOrchestrator.swift:1111-1123 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bb61f9d1ac761c87c4c0998d0c0dd8c9967fb874a142f597d6a41b91fa450b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 4): Nano Banana Helper/Services/BatchOrchestrator.swift:879-890 | Nano Banana Helper/Services/BatchOrchestrator.swift:897-908 | Nano Banana Helper/Services/BatchOrchestrator.swift:1098-1108 | Nano Banana Helper/Services/BatchOrchestrator.swift:1115-1126 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Services/BatchOrchestrator.swift:879\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab068645b6d03f3fbfd3996dafe6e60b50f9b974a85dec72b1e836790d7116c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Nano Banana Helper/Models/AppPaths.swift:262-273 | Nano Banana Helper/Models/AppPaths.swift:276-287 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Models/AppPaths.swift:262\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Models/AppPaths.swift"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f909bdd83c7f1e7ca1e27b9de864051fe9e05e0a29a2710509b5e5475a4c2c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Nano Banana Helper/Services/BatchOrchestrator.swift:698-709 | Nano Banana Helper/Services/BatchOrchestrator.swift:739-750 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Services/BatchOrchestrator.swift:698\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"13dbe9901a2499d6a42937432032dde9d99b571e6f46101b863b4bf13c94001a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Nano Banana Helper/Services/NanoBananaService.swift:2011-2023 | Nano Banana Helper/Services/NanoBananaService.swift:2025-2037 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":2011}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f76689a25346ed77ca78963fc4daf261c8a2454e4d5b34d24bc6bd0a0f7cb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Nano Banana Helper/Views/InspectorView.swift:254-264 | Nano Banana Helper/Views/InspectorView.swift:278-288 | Nano Banana Helper/Views/InspectorView.swift:326-336 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Views/InspectorView.swift:254\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/InspectorView.swift"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"07865f310bf15918ecc58381bf1e2e6fb3f07c9c6824e6bf2c5322a4706dcbf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Nano Banana Helper/Services/BatchOrchestrator.swift:494-504 | Nano Banana Helper/Services/BatchOrchestrator.swift:523-533 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Services/BatchOrchestrator.swift:494\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa55081d69f58cb71f9020d54d7fee2011a308d0a94656e07da26634bf04ed1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Nano Banana Helper/Services/BatchOrchestrator.swift:1157-1166 | Nano Banana Helper/Services/BatchOrchestrator.swift:1646-1654 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a92b1fda604e78eddd0706573274154fc47b0f54e386118da46a3e3828dcb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Nano Banana Helper/Services/NanoBananaService.swift:1189-1198 | Nano Banana Helper/Services/NanoBananaService.swift:1220-1229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1189}}}],"partialFingerprints":{"codehealthFindingId/v1":"4839a84bfdc8a2a6973b5c83f18a9ec0c9a3063fb85447b0afa39aa26d149163"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): Nano Banana Helper/Services/BatchOrchestrator.swift:562-572 | Nano Banana Helper/Services/BatchOrchestrator.swift:576-586 | Nano Banana Helper/Services/BatchOrchestrator.swift:590-600 | Nano Banana Helper/Services/BatchOrchestrator.swift:604-614 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Services/BatchOrchestrator.swift:562\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d0c556be2add14142763e14a9ef29b0083cd451ed3bfd476b7b7c47501ce6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): Nano Banana Helper/Views/PromptBarView.swift:97-105 | Nano Banana Helper/Views/PromptsManagementView.swift:124-130 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Views/PromptBarView.swift:97\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/PromptBarView.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afeb8308d057324e9d6a10319cdf98f5068dfa320198cbcd205131c43cd5d0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Nano Banana Helper/Services/NanoBananaService.swift:556-563 | Nano Banana Helper/Services/NanoBananaService.swift:588-595 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Services/NanoBananaService.swift:556\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf69618389df46c5a91a766b84570910d055a251ae7fd35975676ed968b4b01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Nano Banana Helper/Services/NanoBananaService.swift:1297-1304 | Nano Banana Helper/Services/NanoBananaService.swift:1392-1399 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Services/NanoBananaService.swift:1297\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Nano Banana Helper/Services/NanoBananaService.swift:1306\u0060 calls \u0060log\u0060 and \u0060Nano Banana Helper/Services/NanoBananaService.swift:1400\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"beccfbc4541a3bbcf992b153a779900ce9131eddd5ce78dc017661d0ca8a449a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Nano Banana Helper/Views/CostReportView.swift:61-73 | Nano Banana Helper/Views/UsageDashboardView.swift:70-82 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/CostReportView.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"839c5480ae7af6f11c74718b1bc1369ea872e5215478119ab9579177aba9711d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Nano Banana Helper/Models/Models.swift:396-402 | Nano Banana Helper/Models/Models.swift:665-671 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Models/Models.swift:396\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Models/Models.swift"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"61dc3b3730efb57a5922441eed707578e084f4a0e5cc7ed4dcf8cc898b921ea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Nano Banana Helper/Services/NanoBananaService.swift:746-752 | Nano Banana Helper/Services/NanoBananaService.swift:1127-1133 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Services/NanoBananaService.swift:746\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d980090ec2511bdde8d74999927daa644af42aeb5c02223a7d0b76d7c6d9594"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Nano Banana Helper/Views/InspectorView.swift:136-142 | Nano Banana Helper/Views/InspectorView.swift:179-185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Views/InspectorView.swift:136\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00608\u0060 in one and \u006016\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/InspectorView.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"60d76b76e703aee37e29edcd85826f01cdefae1c8dc74a869d3e5011c22a8c08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Nano Banana Helper/Views/InspectorView.swift:180-185 | Nano Banana Helper/Views/InspectorView.swift:197-202 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Views/InspectorView.swift:180\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/InspectorView.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"245fa5294c53432c4e116b32c2bb875098521ea4d799b3612681c1c74597f75c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Nano Banana Helper/Views/CostReportView.swift:23-29 | Nano Banana Helper/Views/UsageDashboardView.swift:13-19 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/CostReportView.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab95a53380df2f13d5ec3f4e185e13a3cb8068b4c01e8f9a8bbaa42fe80471b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Nano Banana Helper/Views/CostReportView.swift:176-183 | Nano Banana Helper/Views/UsageDashboardView.swift:181-188 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/CostReportView.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c761713ccf4fba034930d5a4b588ed6487381db537b2ecba6f25de929b9f66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Nano Banana Helper/Views/DropZoneView.swift:95-103 | Nano Banana Helper/Views/StagingView.swift:59-67 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Nano Banana Helper/Views/DropZoneView.swift:92\u0060 calls \u0060addFiles\u0060, \u0060makeBookmarks\u0060 and \u0060Nano Banana Helper/Views/StagingView.swift:56\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/DropZoneView.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba31ee5f312c787d39ab77ae454a7750e92de8b6a67fb41cb94da0d20a36ec2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Nano Banana Helper/Views/HistoryView.swift:640-649 | Nano Banana Helper/Views/ResultsView.swift:494-503 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/HistoryView.swift"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"a789b9e92f53a66378f943fc40aa7318cacf4f60cd36c998525cf4c5d45ada5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Nano Banana Helper/Views/HistoryView.swift:674-682 | Nano Banana Helper/Views/ProjectGalleryView.swift:298-306 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/HistoryView.swift"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a1a19f7cf0292caa8800804aa13aff930c9d4ae02fbab1c6e9d8b9cfd61f41a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): Nano Banana Helper/Views/ProjectGalleryView.swift:291-296 | Nano Banana Helper/Views/ProjectListView.swift:138-143 | Nano Banana Helper/Views/ProjectListView.swift:177-182 | Nano Banana Helper/Views/SidebarView.swift:197-202 \u2014 before extracting anything, compare \u0060Nano Banana Helper/Views/ProjectListView.swift\u0060 and \u0060Nano Banana Helper/Views/SidebarView.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ProjectGalleryView.swift"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"623e7592d5d4508c1fab77f532d93ec7600b134ef7e7963f9e8b5e89dc87bb64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Nano Banana Helper/Models/Models.swift:361-367 | Nano Banana Helper/Models/Models.swift:640-646 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nano Banana Helper/Models/Models.swift:361\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Models/Models.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"db8b206dcee202e7d2d727773535a2cbf69bae468372655a1f4c11593481b8f6"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: example: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c8b3e924a53386fe13b2c2c6beb84d414cc3ffcc2b9e0d922ff870c021ad5f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: resolveTerminalBatchResolutionTreatsDoneCancelledPayloadAsCancelled: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"5704e4ad314a95b8b8d39d824826967559d7dd57a86be5d37b4da6aa1505e6d1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: resolveTerminalBatchResolutionKeepsSucceededPayloadWithoutImageAsNoImageError: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1371b2ae51192d6a08e359b3f754dac3a381361baecde3a972936dd31284c6b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: loadImageDataReturnsDeniedWhenBothFail: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d25de110b47e244eefd0c9a770feb5194f110f0100d282497c40b4c6abd46d"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: openFileReturnsDeniedWhenBothFail: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"774bdef80f44471bd4a0074f3453d9e3fbaa0738e44e37a59e6a88cda5de88c3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: cancelHandlesSubmittingPhaseTasks: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":2613}}}],"partialFingerprints":{"codehealthFindingId/v1":"9530a36345b8761df673380348b8e4d7426f32a336a58848cd42ad013251267b"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: cancelPendingTaskMarksCancelledInsteadOfFailed: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":2641}}}],"partialFingerprints":{"codehealthFindingId/v1":"896130ec800e79deab39e009c4812d9a64b829b7fc4f6383777959d0f722ac38"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: pauseStatePersistsAcrossReload: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":2844}}}],"partialFingerprints":{"codehealthFindingId/v1":"b834e579b09c6d0235e257915787c52847c5c160eefbafed468f574a48979de3"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: pausedQueueDoesNotAutoResumeOnLaunchRecovery: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":2882}}}],"partialFingerprints":{"codehealthFindingId/v1":"6239216de2891d7596d233c40ace176801dbcd36667d7184f1434ec13d6abb05"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: launchRecoveryAutoStartsInterruptedPendingWorkOnce: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":2912}}}],"partialFingerprints":{"codehealthFindingId/v1":"709bb2292e3562a2a520f7da1da44e642cd11393713b82a298451dad68dfc6df"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: launchRecoveryResumesCancellingQueueWithoutNewLocalSubmissions: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":2939}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7266112c0e9ffc2ef781a8cfc7ae26ae40fb7d41923d90ee5cc14a8d5b1d1f"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: launchRecoveryFinalizesStaleCancellationRequests: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":2973}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2eabc6c8a04a201a645a1e7f8051d8650aa98afa5e4f2575c1844e7180aba1"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: launchRecoveryAutoResumesRemotePollingStates: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":3020}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac135b4cb85317f73d25a5a54809ab2b2e7f89c4da95a321169eda6eea9921a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: launchRecoveryMarksOrphanedSubmittingTasksAsIssues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":3047}}}],"partialFingerprints":{"codehealthFindingId/v1":"41393f69705ad235f793f9a6762014d29b8d09a8a21b44915e055c760308a22e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: launchRecoveryIgnoresTerminalOnlySavedQueues: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":3082}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02114a73cd4e0e7bdb26a1f781629124ee47e65e9a6e34da3d8283d3ac372b9"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: startAllStartsEligibleBatchesConcurrently: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":3111}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0c8d69403e7a02e47641745a65a51e6f7a866be65cfe0bc7d7f6d263ff9cbd"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: openAIOutputSizeRejectsExtremeAspectRatios: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperTests/Nano_Banana_HelperTests.swift"},"region":{"startLine":3726}}}],"partialFingerprints":{"codehealthFindingId/v1":"f485ea11b278f70b7871e32b7b08bf7240bc75d98b7c2a95efa8c3287dc14c63"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperUITests/Nano_Banana_HelperUITests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef9cd326d0b766f6c2d7b07ef863501eccea53c4c7f2261f92d696466b6954a"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunchPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperUITests/Nano_Banana_HelperUITests.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd7531eed380851dfd1deac274ee3484b5efcf525b29f20a38afb15aefcd438"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunch: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperUITests/Nano_Banana_HelperUITestsLaunchTests.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"009adc44e399a501f0ff3e2801b2c33b0d446894be1baccccecbfdf2b692b26a"}},{"ruleId":"D10","level":"error","message":{"text":"Test project verifies nothing: Nano Banana HelperUITests: No conventional assertion call was detected in 3 of 3 tests in \u0060Nano Banana HelperUITests\u0060 \u2014 the project as a whole, not one method. 1 of them has its assertions commented out, so this suite did verify conventionally and was switched off \u2014 it is not an approval/verifier harness."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana HelperUITests/Nano_Banana_HelperUITests.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"01aaf4666de354f464bbd565d64b5b916adc36269923f942050e33b628446b6f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Nano Banana Helper/Services/BatchOrchestrator.swift: Nano Banana Helper/Services/BatchOrchestrator.swift changed 22 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in BatchOrchestrator.processQueue at line 641. 3 of those changes were fix/bug commits, and the other 19 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-02-17..2026-05-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-02-17 13:39:42 -05:00\u0027 --until=\u00272026-05-18 13:39:42 -05:00\u0027 --full-history --no-merges -- Nano Banana Helper/Services/BatchOrchestrator.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/BatchOrchestrator.swift"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d9a2c2fad19ee7055154e16ee77e4d216e8e70d2e1b97de5725ef53d9e1d65"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Nano Banana Helper/Views/InspectorView.swift: Nano Banana Helper/Views/InspectorView.swift changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in InspectorView.body at line 16. 3 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-02-17..2026-05-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-02-17 13:39:42 -05:00\u0027 --until=\u00272026-05-18 13:39:42 -05:00\u0027 --full-history --no-merges -- Nano Banana Helper/Views/InspectorView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/InspectorView.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d4b6f2927e3e04761dc90bf60a1e5c60979d0e5d60a2cf812fd7f2403a662a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Nano Banana Helper/Services/NanoBananaService.swift: Nano Banana Helper/Services/NanoBananaService.swift changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in NanoBananaService.parseResponse at line 1971. 4 of those changes were fix/bug commits, and the other 12 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-02-17..2026-05-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-02-17 13:39:42 -05:00\u0027 --until=\u00272026-05-18 13:39:42 -05:00\u0027 --full-history --no-merges -- Nano Banana Helper/Services/NanoBananaService.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Services/NanoBananaService.swift"},"region":{"startLine":1971}}}],"partialFingerprints":{"codehealthFindingId/v1":"540c6cf9f35f98c20c5cc63c7ef91542a1a67481c2cad9a4744237f29bc05fa3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Nano Banana Helper/Views/ProgressQueueView.swift: Nano Banana Helper/Views/ProgressQueueView.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ProgressQueueView.body at line 56. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-02-17..2026-05-18, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-02-17 13:39:42 -05:00\u0027 --until=\u00272026-05-18 13:39:42 -05:00\u0027 --full-history --no-merges -- Nano Banana Helper/Views/ProgressQueueView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper/Views/ProgressQueueView.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6995e9cc06b06f12d982717cb663dbe57a6bff3c6d55556fc45194bee361a5"}},{"ruleId":"D16","level":"warning","message":{"text":"bus factor 1 \u2014 one contributor carries this repository: 2 contributor(s) have commits in this repository (automation and bot accounts excluded), but the commits of a single one of them cover most of its history \u2014 80% of the 66 commit(s) sampled \u2014 so the number of people who actually carry it is 1. This is not the ambient state of a solo project: there ARE other contributors, and if the one who carries the repository becomes unavailable, the knowledge behind most of its history goes with them. Spread the next changes deliberately \u2014 have a second contributor review or pair on them \u2014 and write down the parts only one person can currently change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a99f114ab4dfee37ae0bf0665b44c7468d85b809d361949e2b6258101fa1e5a2"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060Nano Banana Helper.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nano Banana Helper.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff57e9e8311138e8cb07338575f9d1a82e257020e9a60543ef3b8e727a1d9863"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":0,"secretScannerRunsExcluded":0}}}]}