{"$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":"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"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":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"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":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"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":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"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":"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":"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":"AppDelegate.sofaPreLaunchLogic (cyclomatic 49): AppDelegate.sofaPreLaunchLogic has cyclomatic complexity 49 (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":"Nudge/UI/Main.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d71e20f14d3a54ca9a46b2ab8fc37efea3ebdf47e1ede7a083084d7e1bc9cae"}},{"ruleId":"D1","level":"warning","message":{"text":"NetworkFileManager.getSOFAAssets (cyclomatic 26): NetworkFileManager.getSOFAAssets has cyclomatic complexity 26 (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":"Nudge/Utilities/Utils.swift"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0df610d5a5c5d179b1ee275309d7b1189df2935c7fa50eee091be57313a693"}},{"ruleId":"D1","level":"warning","message":{"text":"AppStateManager.calculateNewRequiredInstallationDateIfNeeded (cyclomatic 17): AppStateManager.calculateNewRequiredInstallationDateIfNeeded has cyclomatic complexity 17 (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":"Nudge/Utilities/Utils.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"38166c41595352fb427b619a02db12c66b1e0553cd2dcf90d8e6e12a70954331"}},{"ruleId":"D1","level":"warning","message":{"text":"UILogic.swift.shouldBailOutEarly (cyclomatic 17): UILogic.swift.shouldBailOutEarly has cyclomatic complexity 17 (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":"Nudge/Utilities/UILogic.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea16b4bf1ee3ffc61dbc4bef6b12337f936ac03b9a97914b77ea848745428e5"}},{"ruleId":"D1","level":"warning","message":{"text":"AppStateManager.gracePeriodLogic (cyclomatic 16): AppStateManager.gracePeriodLogic has cyclomatic complexity 16 (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":"Nudge/Utilities/Utils.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"13787a25044bafd675d386dd5ae484bff2e498cbeb1a7d59b3cef98379066968"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.sofaPreLaunchLogic (cognitive 187): AppDelegate.sofaPreLaunchLogic has cognitive complexity 187 (threshold 15). Drivers by points: if/else 40 (142 pts), loops 7 (36 pts), boolean chains 5, match/switch 1 (4 pts) (nesting depth added 134). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/UI/Main.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c439c56075bbbf5978e4badb5519d3fc2754568c5fb3e813be210b99bc9c2c8"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkFileManager.getSOFAAssets (cognitive 78): NetworkFileManager.getSOFAAssets has cognitive complexity 78 (threshold 15). Drivers by points: if/else 24 (51 pts), error handling 7 (25 pts), boolean chains 2 (nesting depth added 45). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Utilities/Utils.swift"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b72935b31677c93585400ee7e4d860e9b5498c42d328d093c1c7fc82143f17b"}},{"ruleId":"D2","level":"warning","message":{"text":"Preferences.swift.getDesiredLanguage (cognitive 42): Preferences.swift.getDesiredLanguage has cognitive complexity 42 (threshold 15). Drivers by points: if/else 9 (28 pts), loops 2 (9 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 28). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Utilities/Preferences.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe7f64b92e9988b8da684dbb0e61c6e5d20d56a9d5d337fc5190c20a989bedd"}},{"ruleId":"D2","level":"warning","message":{"text":"SOFA.URLSync (cognitive 24): SOFA.URLSync has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (20 pts), error handling 1 (2 pts), boolean chains 1, loops 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":"Nudge/3rd Party Assets/sofa.swift"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f3397eb4f70cdb642fcb2b92445d15b55367d440265fcc6cc082a65c934bf5"}},{"ruleId":"D2","level":"warning","message":{"text":"SoftwareUpdate.download (cognitive 24): SoftwareUpdate.download has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 5 (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":"Nudge/Utilities/SoftwareUpdate.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c83daab4a858d56cbac75588af310c7c7f197a8df55936f7565f9796407f2d9"}},{"ruleId":"D2","level":"warning","message":{"text":"AppStateManager.gracePeriodLogic (cognitive 23): AppStateManager.gracePeriodLogic has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1 (nesting depth added 8). 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":"Nudge/Utilities/Utils.swift"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f448f5507eb68c9b794cf19a449055b36ec463ea0ed418c9d9ebbaabe4a3d81"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigurationManager.getConfigurationAsProfile (cognitive 23): ConfigurationManager.getConfigurationAsProfile has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 8). 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":"Nudge/Utilities/Utils.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8505be5bb9379be0b921925b6d690f662d93459af2a5720a5823bac97e69fa"}},{"ruleId":"D2","level":"warning","message":{"text":"AppStateManager.calculateNewRequiredInstallationDateIfNeeded (cognitive 22): AppStateManager.calculateNewRequiredInstallationDateIfNeeded has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 9, 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, 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":"Nudge/Utilities/Utils.swift"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceda84f0d18a02c30a88894f834114c7e7e3bcf104d5c81f6a97312b4e28ba1a"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.createNotificationContent (cognitive 21): AppDelegate.createNotificationContent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 2 (6 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":"Nudge/UI/Main.swift"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"342d8d13b710cf4847c1dd6e3f379c7d4050760b14b0c67cce45f5af7aeb50e0"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkFileManager.redownloadAndReprocessSOFA (cognitive 21): NetworkFileManager.redownloadAndReprocessSOFA has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Utilities/Utils.swift"},"region":{"startLine":1614}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cabb0ccba54568384a5020d67882a140d42158276e15fb5c5a88b759f2cb99f"}},{"ruleId":"D2","level":"warning","message":{"text":"AppStateManager.activateNudge (cognitive 18): AppStateManager.activateNudge has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4 (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, 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":"Nudge/Utilities/Utils.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fac5298c4b40d71042550f2d6fa1fb4b88aaa16d8ce8f6827b72c9f82a9bc59"}},{"ruleId":"D2","level":"warning","message":{"text":"UILogic.swift.shouldBailOutEarly (cognitive 17): UILogic.swift.shouldBailOutEarly has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 6 (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":"Nudge/Utilities/UILogic.swift"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"914cd3d82e4edae783230fecba349a836126b8a493775ba0a4467f6f843aecf3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Utilities/Utils.swift: FileTooLong \u2014 1260 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 760 over it, 2.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":"Nudge/Utilities/Utils.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fe04b2562a4d47beed055687d8f6c8ce2a685770a32688cc5b6011091c482e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDelegate.sofaPreLaunchLogic: MethodTooLong \u2014 sofaPreLaunchLogic runs 174 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 74 over it, 1.74\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":"Nudge/UI/Main.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"695092b003c554f148ed188a997fa5d4ee323da8dfb050e4f99a13f939edf5da"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AppDelegate: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\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":"Nudge/UI/Main.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4e3a8d479daaa30f5d6a47e6225704cdd107c3c5c38e5ddbe09ea27d22b697"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppDelegate: ClassTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded), 45 methods. The bar is 400 significant lines; this is 158 over it, 1.40\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":"Nudge/UI/Main.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88ca802dd8670cf60b74b387ac229f9b5aae94f05d76a755ff3df68b8a606aa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/Main.swift: FileTooLong \u2014 673 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: AppDelegate (144-1003). The bar is 500 significant lines; this is 173 over it, 1.35\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":"Nudge/UI/Main.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df63cfbfd13b3d5202626dadb58289f5368516f01d850509a778a11003de677"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): Nudge/Preferences/PreferencesStructure.swift:83-88 | Nudge/Preferences/PreferencesStructure.swift:238-243 | Nudge/Preferences/PreferencesStructure.swift:306-311 | Nudge/Preferences/PreferencesStructure.swift:346-351 | Nudge/Preferences/PreferencesStructure.swift:393-398 | Nudge/Preferences/PreferencesStructure.swift:476-481 | Nudge/Preferences/PreferencesStructure.swift:554-559 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Preferences/PreferencesStructure.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aaa9bfecc62b5f43fc2282385e5b98e796de8b9c1942dc369eea2f43bdfe727"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Nudge/Utilities/Preferences.swift:62-87 | Nudge/Utilities/Preferences.swift:130-156 | Nudge/Utilities/Preferences.swift:221-246 | Nudge/Utilities/Preferences.swift:269-294 | Nudge/Utilities/Preferences.swift:305-338 \u2014 These 5 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 5 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 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Utilities/Preferences.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1097bb31f7f255ee284641781289d1589b0f99be4655a39761c2042dc62008e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 45\u002B corresponding lines): Nudge/Preferences/PreferencesStructure.swift:95-145 | Nudge/Preferences/PreferencesStructure.swift:405-457 | Nudge/Preferences/PreferencesStructure.swift:488-532 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 45 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":"Nudge/Preferences/PreferencesStructure.swift"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"101869dd814e780abbbb316be3d44fa6eeb3df67c7e2a6e5cd45aa799223ccfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 24\u002B corresponding lines): Nudge/UI/Common/CompanyLogo.swift:32-55 | Nudge/UI/StandardMode/RightSide.swift:137-161 | Nudge/UI/StandardMode/ScreenShotZoom.swift:55-78 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 24 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":"Nudge/UI/Common/CompanyLogo.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c889ae70ae8a784e1a997d35684b9ca01d8e0675f5af62f83c2c7857688653"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Nudge/Utilities/Utils.swift:1851-1886 | Nudge/Utilities/Utils.swift:1898-1926 \u2014 These two members are one piece of code written twice and then edited apart: 29 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":"Nudge/Utilities/Utils.swift"},"region":{"startLine":1851}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ff3bad8bb6c9661d517daadcfb5a8c17efa8822656914ff957726c601cedae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Nudge/Utilities/Utils.swift:1275-1291 | Nudge/Utilities/Utils.swift:1293-1311 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"Nudge/Utilities/Utils.swift"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dee005fcb4f3c7c31018b885c22b180f79593d031580b6c4c6d4121b0572ac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Nudge/Preferences/PreferencesStructure.swift:19-38 | Nudge/Preferences/PreferencesStructure.swift:217-236 \u2014 These two members are one piece of code written twice and then edited apart: 20 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":"Nudge/Preferences/PreferencesStructure.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"533d8968aff95efb3e9d1542ce514b0ee0c5b89d0cc238adf699ae2748ec8243"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Nudge/Utilities/Preferences.swift:101-120 | Nudge/Utilities/Preferences.swift:188-207 \u2014 These two members are one piece of code written twice and then edited apart: 20 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":"Nudge/Utilities/Preferences.swift"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"949c88a9cbeb1ad6e87ae004c8e2327fe6db55b9d43540db3a447010bd331d27"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Nudge/UI/Main.swift:503-518 | Nudge/Utilities/UILogic.swift:62-73 \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":"Nudge/UI/Main.swift"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c4475442ec47095e5512195c7864c436c5721e349203910bc1e5b647f315d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 11\u002B corresponding lines): Nudge/UI/Common/DeferView.swift:107-117 | Nudge/UI/Common/DeviceInfo.swift:54-64 | Nudge/UI/Common/InformationButton.swift:66-76 | Nudge/UI/Common/QuitButtons.swift:146-156 | Nudge/UI/StandardMode/LeftSide.swift:106-116 | Nudge/UI/StandardMode/RightSide.swift:169-179 | Nudge/UI/StandardMode/ScreenShotZoom.swift:82-92 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 11 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 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/UI/Common/DeferView.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"75aab55e7af8f8b94c3bd0f1bfaa036c95a41fa42ac3c3e2b85e538b354103b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): Nudge/UI/Common/DeferView.swift:32-44 | Nudge/UI/Common/DeviceInfo.swift:31-42 | Nudge/UI/StandardMode/ScreenShotZoom.swift:30-41 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 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":"Nudge/UI/Common/DeferView.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"891fcc54c1881d171a77797684a47c020920bee6dac5339f9960904de02ac763"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Nudge/Utilities/Preferences.swift:372-380 | Nudge/Utilities/Preferences.swift:382-390 \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":"Nudge/Utilities/Preferences.swift"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f4f841992a548153e4f10cf4a01ca186ed510c8dec8d552d8275a11c1cd40b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Nudge/Utilities/Utils.swift:901-905 | Nudge/Utilities/Utils.swift:907-911 \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":"Nudge/Utilities/Utils.swift"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"25235d0dbfce864705e4637bbdd0017d2e8b8704af16088081ede51ce09f4945"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Nudge/UI/Common/CompanyLogo.swift:87-89 | Nudge/UI/StandardMode/RightSide.swift:163-165 \u2014 These two members are one piece of code written twice and then edited apart: 3 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":"Nudge/UI/Common/CompanyLogo.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5924c29001d103aa014e37fc08381773053a8fde1602e6bd9109226e087274b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Nudge/UI/SimpleMode/SimpleMode.swift:119-128 | Nudge/UI/StandardMode/StandardMode.swift:33-44 \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":"Nudge/UI/SimpleMode/SimpleMode.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"8529d1f29b11511bb8c15abeba89c72cacd945b975762427b063ece8cff43fd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Nudge/3rd Party Assets/gdmf.swift:56-60 | Nudge/3rd Party Assets/sofa.swift:188-192 \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":"Nudge/3rd Party Assets/gdmf.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"6502e58db84876601937e368dbfa14fc27fcb3b7ba2d477427a39254f3621764"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): Nudge/Utilities/Preferences.swift:63-87 | Nudge/Utilities/Preferences.swift:222-246 | Nudge/Utilities/Preferences.swift:270-294 \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. 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":"Nudge/Utilities/Preferences.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8954a50fc73b356f389d09b6687cc0d89c1c320f679b038969151f038731752"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): Nudge/Utilities/Preferences.swift:63-77 | Nudge/Utilities/Preferences.swift:222-236 | Nudge/Utilities/Preferences.swift:270-284 | Nudge/Utilities/Preferences.swift:306-320 \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 \u0060Nudge/Utilities/Preferences.swift:63\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":"Nudge/Utilities/Preferences.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8f6164afc52e7544ba0f79b541549d1ae0040a14eab11d17d7162e05a7f535e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Nudge/Utilities/Utils.swift:1866-1880 | Nudge/Utilities/Utils.swift:1903-1917 \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 \u0060Nudge/Utilities/Utils.swift:1866\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":"Nudge/Utilities/Utils.swift"},"region":{"startLine":1866}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec8724b7ea10eb5a18abbc787c4fe6ed24ea7175b5780467c5beae587bd903e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): Nudge/Utilities/Preferences.swift:63-76 | Nudge/Utilities/Preferences.swift:131-144 | Nudge/Utilities/Preferences.swift:222-235 | Nudge/Utilities/Preferences.swift:270-283 | Nudge/Utilities/Preferences.swift:306-319 \u2014 all 5 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 \u0060Nudge/Utilities/Preferences.swift:63\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":"Nudge/Utilities/Preferences.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ecc95596a5dec4e3f97e578ffc56b2edc3b3b9006c5eb9a1ced3a7e12b7f4c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Nudge/Utilities/Utils.swift:1509-1520 | Nudge/Utilities/Utils.swift:1623-1634 \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 \u0060Nudge/Utilities/Utils.swift:1509\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":"Nudge/Utilities/Utils.swift"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7dc61479da48015d6025dd7d0a949ad726676f76796322048195bb742974805"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Nudge/UI/Main.swift:509-518 | Nudge/Utilities/UILogic.swift:63-73 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Nudge/UI/Main.swift:509\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":"Nudge/UI/Main.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a9e34ad8b61e6369751d84676bcc12ce20205975d6de188cdca24198afc72f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): Nudge/3rd Party Assets/gdmf.swift:62-67 | Nudge/3rd Party Assets/sofa.swift:194-199 | Nudge/Preferences/PreferencesStructure.swift:40-45 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/3rd Party Assets/gdmf.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8ff426252b0c82a745afd0fbb93e8eb248ecbac1c9e79e34f483d32380a47b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): Nudge/Preferences/PreferencesStructure.swift:83-88 | Nudge/Preferences/PreferencesStructure.swift:238-243 | Nudge/Preferences/PreferencesStructure.swift:306-311 | Nudge/Preferences/PreferencesStructure.swift:346-351 | Nudge/Preferences/PreferencesStructure.swift:393-398 | Nudge/Preferences/PreferencesStructure.swift:476-481 | Nudge/Preferences/PreferencesStructure.swift:554-559 \u2014 all 7 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Preferences/PreferencesStructure.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d230f4bd9d51c975bf404ea81c2a2d679351af07637bed5bebd7e9bd345a54"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //            // TODO: This will break Nudge unless you have NSFocusStatusUsageDescription in the Info.plist \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Utilities/Utils.swift"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"616c8123be466e1ca13bc63271fa4c7c1fa8ab74275fe53816a442700c48c57e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Perhaps move some of the ContentView logic into this - Ex: centering UI, full screen \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/UI/Main.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18e9dd52d4b59b694a8d67478a6def95a855b0afc5c8f47f81503a77fb1115e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This function can be used to force nudge right back in front if a user moves to another app \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/UI/Main.swift"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b57d009561066317c125757c218d9b22feb469bd57bf299407db780efd895b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Perhaps move some of the ContentView logic into this - Ex: updateUI() \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/UI/Main.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0003899635a701ce5f5b36eb5755374785df85606706af692ce367dfcf91b64"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This function can be used to stop nudge from resigning its activation state \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/UI/Main.swift"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c359e8cd48050101b18b4c7135c9a1b910f97500b91cd88597b441f22feab7d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: I\u0027m saving the Etag and sending it, but due to forcing this into a syncronous call, it is always returning a 200 code. When using this in an asycronous method, it eventually returns the 304 response. I\u0027m not sure how to fix this bug. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/3rd Party Assets/sofa.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"76835d15cd3b642ea04af223acb015a669653eac734e6eaef06200544ae76ab4"}},{"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 \u0060Nudge.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2bc83628bc2f2914a5250ac50f0054e849afa0cc8c7747a12425ef0ed60347a"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060getJSONUrl\u0060 spells \u0060Url\u0060 where 34 names in the project spell it \u0060URL\u0060: 34 of 35 names in project repository spell the token \u0060URL\u0060 (34 of 35; unit: names in project repository containing \u0060URL\u0060). Peers: GDMFAssetInfo.init(fromURL) (Nudge/3rd Party Assets/gdmf.swift:69); MacIPSW.macosIpswURL (Nudge/3rd Party Assets/sofa.swift:176); MacOSDataFeed.init(fromURL) (Nudge/3rd Party Assets/sofa.swift:201); OptionalFeatureVariables.customSOFAFeedURL (Nudge/Preferences/DefaultPreferencesNudge.swift:153); OSVersionRequirementVariables.aboutUpdateURL (Nudge/Preferences/DefaultPreferencesNudge.swift:218). Rename to \u0060getJSONURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Utilities/Utils.swift"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9937766399c4b519d637eb0e9e81fe3cfa13b8efdcacea4cccea8d6217d48c"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"69a93648585e66ca14db6727057463b8b5ff40d8af4292e432938ae5fbca0860"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c2c00ac6e9ab6eb86afab87afaee9dabfa977a1535fb0a57c61b2dae9c3cdfc7"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"605ab1882fc5bbe04ff5ecc9020ef3944b474fafc3c1eae19ecad51ff0cf984d"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ee35399f9244a270ef60303738cd24569728e08bc337592f24296d32a3e81db9"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5e6b462b2864f7f3c202ddede845f4a54004492ce0a44a7eb954c59a36fa29a7"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e29f2d325adc70694a15d442789fb80b7ee8b041faadc1e2bcb74d7d5befa0fe"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"18080e1d6faa62be61dcb261e9a6be0aaf3b2871020d65ede461b197f90a7fd0"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe274ba5adebde25ca0b3db842e44cbb1aaeb7cfecfbb7215cd452596ba1f4c2"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"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) as a CI step. What was searched, so you can tell an absence from a miss: the 5 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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/build_nudge_pr.yml"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!OptionalFeatureVariables.enforceMinorUpdates \u0026\u0026 !AppStateManager().requireMajorUpgrade()\u0060 appears character-identically in 2 files \u2014 Nudge/UI/Main.swift, Nudge/Utilities/UILogic.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/UI/Main.swift"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b788edd1c85fac51ea63f2b747d420def0f153313a57d838eb55da1ac9d5af"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060CommandLineUtilities().demoModeEnabled() || CommandLineUtilities().unitTestingEnabled()\u0060 appears character-identically in 2 files \u2014 Nudge/Utilities/Preferences.swift, Nudge/Utilities/Utils.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Utilities/Preferences.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"543af591bd92188982b7023114d642d6fda718ea061ff9a6a649eda91b23f9de"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060appState.allowButtons || CommandLineUtilities().demoModeEnabled()\u0060 appears character-identically in 2 files \u2014 Nudge/UI/SimpleMode/SimpleMode.swift, Nudge/UI/StandardMode/StandardMode.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/UI/SimpleMode/SimpleMode.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a12cb59223498b6bf03ba99dec5d178a8c35b937cc6ee4d6fea5afe0497ad29"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060screenShotPath.starts(with: \u0022https://\u0022) || screenShotPath.starts(with: \u0022http://\u0022)\u0060 appears character-identically in 2 files \u2014 Nudge/UI/StandardMode/RightSide.swift, Nudge/UI/StandardMode/ScreenShotZoom.swift. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/UI/StandardMode/RightSide.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd0a0e36d58f856771895ed54a9b2ac9c47b491373143915f0752a8a4f06380a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Utilities/Utils.swift"},"region":{"startLine":1210}}}],"partialFingerprints":{"codehealthFindingId/v1":"0797025cc8fe69fc1d42cfa3488c69361ab1419ac1d8fc840a3208be9aa743bf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Utilities/Utils.swift"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f23f77c548e6e8d3d108bc14bcabb6ff564284f00228db9f1ee5409138a1a58"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Preferences/PreferencesStructure.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"773d4a1a5bf002e398c1fc17c61231a9ec144f234c462d1b2bba3d9bbacb4fc6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Preferences/PreferencesStructure.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66bfd47ef996cb28bd8f185740d3313c83d9febf45f866431f63d309f8b048f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Preferences/PreferencesStructure.swift"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"950c0380975b6a4c2630b57d30b3f74c478af9b0f8622953c5d11089e2d50154"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Nudge/Preferences/PreferencesStructure.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ea33b607c0ba8af2c4a7f4d892cca3cbff06b7e92c13bd14b04cf7c6927718e"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"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-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.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-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.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":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"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/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"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":11,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}