{"$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":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"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":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"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":"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":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","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-1395","CWE-937"],"owasp":"A03:2025"}},{"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":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"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":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"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":"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":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"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":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"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":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"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":"FamilyStore.ingest (cyclomatic 66): FamilyStore.ingest has cyclomatic complexity 66 (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":"macos/Sources/GooglePiggy/FamilyStore.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"6084b0181c5d300f9b4f2ea91895ac74141a684c9f8b5bfd1fba4f87ab09d221"}},{"ruleId":"D1","level":"warning","message":{"text":"PetController.swift.runManifestSelfTest (cyclomatic 50): PetController.swift.runManifestSelfTest has cyclomatic complexity 50 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":2237}}}],"partialFingerprints":{"codehealthFindingId/v1":"db464bf5de30b5c5fbadec3240052dec3a0ddca505fcfd76294f320f231eba99"}},{"ruleId":"D1","level":"warning","message":{"text":"FamilyStore.ingest (cyclomatic 45): FamilyStore.ingest has cyclomatic complexity 45 (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":"family_store.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c96ba4d7185f64171bcaa936f00767f0e37513ffb50473a5aa4a4dc8b87319"}},{"ruleId":"D1","level":"warning","message":{"text":"HookBridge.swift.runCodexHook (cyclomatic 43): HookBridge.swift.runCodexHook has cyclomatic complexity 43 (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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"102cc3f4e7888f7a58b1eef354052151cc14af58ae054efc6ad32447fad620d5"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowsPet.compose (cyclomatic 41): WindowsPet.compose has cyclomatic complexity 41 (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":"windows_pet.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7133e4b305adbebec9fc44f48104a0fc32edfd68a3b20ae685bb8612852d11"}},{"ruleId":"D1","level":"warning","message":{"text":"pig_pet.main (cyclomatic 34): pig_pet.main has cyclomatic complexity 34 (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":"pig_pet.py"},"region":{"startLine":3069}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0f56664533e087d4944db9312c7c8c9a08919c644cc65e62942fa18ddf962b1"}},{"ruleId":"D1","level":"warning","message":{"text":"main.swift.top-level code (cyclomatic 33): main.swift.top-level code has cyclomatic complexity 33 (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":"macos/Sources/GooglePiggy/main.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b17215248d3e18aa18e2417da5456e8a16d5306f545264f1a55d3d809646239"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowsPet._qa_control (cyclomatic 32): WindowsPet._qa_control has cyclomatic complexity 32 (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":"windows_pet.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22cdf294731fe51fa71f65040a9561f483fa4ac3191a82a9dc217ed32879cec"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexObserver.poll (cyclomatic 31): CodexObserver.poll has cyclomatic complexity 31 (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":"codex_observer.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"e318b98b22ad65fa83b5cd9c98aaecfb632c094b9de04b0bb1afa6df95e79003"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowsPet._poll_update (cyclomatic 28): WindowsPet._poll_update has cyclomatic complexity 28 (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":"windows_pet.py"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb18c111e68893a136275dd3661dcee5d816c6f4f70974568455e1ab5a62687d"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexObserver.refresh_metadata (cyclomatic 27): CodexObserver.refresh_metadata has cyclomatic complexity 27 (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":"codex_observer.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"602338723c2ff18f948bcd8eae0cf9372ea986ff9f5fe56556becdd9877ff2f1"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateNotice.draw (cyclomatic 27): UpdateNotice.draw has cyclomatic complexity 27 (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":"update_notice.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff380fc56f25e6a5e9b0bd324d0ee290d5f5cd92de1f6e5e9ba0379f680b0946"}},{"ruleId":"D1","level":"warning","message":{"text":"FamilyStore.reconcileObservations (cyclomatic 27): FamilyStore.reconcileObservations has cyclomatic complexity 27 (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":"macos/Sources/GooglePiggy/FamilyStore.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"0564e95863fbcf7e9d53449d6c7ad5f899203692ed6495bc8346f0f29fbd7eaf"}},{"ruleId":"D1","level":"warning","message":{"text":"PetController.applicationDidFinishLaunching (cyclomatic 27): PetController.applicationDidFinishLaunching has cyclomatic complexity 27 (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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77d28b6ad256dfbaccf4341c29586b0ae9bdc5da0355d9622faab44a9643087"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowsPet._sync_family_permission (cyclomatic 26): WindowsPet._sync_family_permission 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":"windows_pet.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"a236ec84024131cb8a03e0b4d73b2170b18d85f0cb616f5c6706df757a1214c8"}},{"ruleId":"D1","level":"warning","message":{"text":"PetController.applyBridgePayload (cyclomatic 26): PetController.applyBridgePayload has cyclomatic complexity 26 (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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7e82f808e923b6cad15d390062aae72527a3378a116b4072e76cdaf084087d"}},{"ruleId":"D1","level":"warning","message":{"text":"HookBridge.swift.permissionSummary (cyclomatic 26): HookBridge.swift.permissionSummary 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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"3049c450971be4e9c5b8f89b6e8f7c97df57a85226fc3e657ea8c973bd758def"}},{"ruleId":"D1","level":"warning","message":{"text":"PetController.advance (cyclomatic 25): PetController.advance has cyclomatic complexity 25 (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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea68f2b69d40dcd4ba54e510b295d4bf3d557d0d6e40d0d146f3fbaee22bf38"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateNotice.draw (cyclomatic 24): UpdateNotice.draw has cyclomatic complexity 24 (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":"macos/Sources/GooglePiggy/UpdateNotice.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7366dd259e3e61f2a224e59963d0024e141bb53680babfdcd7500a469e9b434"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexObserver.ingest (cyclomatic 23): CodexObserver.ingest has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"codex_observer.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4da9fa8dfd4535ed6503266b53a19394ceccd436784d8f2c5c0ac24145ef60"}},{"ruleId":"D1","level":"warning","message":{"text":"HookBridge.swift.sessionToolInput (cyclomatic 23): HookBridge.swift.sessionToolInput 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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae62f3ea4d0736ef98a5fc9dac2be782a9b439fbed90a4acfe27991fb4c3b078"}},{"ruleId":"D1","level":"warning","message":{"text":"ObserverReader._read (cyclomatic 22): ObserverReader._read 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":"codex_observer.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0a653ed12bef98fe49aa806379cb571fc18a3f98ceea0b91bd14614b75319c"}},{"ruleId":"D1","level":"warning","message":{"text":"PetController.drawFamilyChildren (cyclomatic 22): PetController.drawFamilyChildren 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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"6181e6d87b24e712818f8a93a635fb66a77d3440d1e4aa9b65be888a2d6b5a89"}},{"ruleId":"D1","level":"warning","message":{"text":"pig_pet.identify_sources (cyclomatic 21): pig_pet.identify_sources has cyclomatic complexity 21 (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":"pig_pet.py"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e393ec7f622621249f71cffe1c9d1de88ed86c066ff40f4d6b214f6d943b0c6"}},{"ruleId":"D1","level":"warning","message":{"text":"PetController.handleMouseUp (cyclomatic 21): PetController.handleMouseUp 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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"466c03212bcbc82970c8ca91f69b8a735cc2f303db7f2e24e6def756bd466e15"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexObserver._poll_background (cyclomatic 20): CodexObserver._poll_background 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":"codex_observer.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"750af4d7464c1a361fc645b28b20b8dcc8dfd1cd21891dd89f8d5da9a4b8d420"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowsPet._render_layered_window (cyclomatic 20): WindowsPet._render_layered_window 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":"windows_pet.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9194528017bf0492751769960a562b718a874777b86988bdc5ad0166b83be0"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowsPet._poll_bridge (cyclomatic 19): WindowsPet._poll_bridge has cyclomatic complexity 19 (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":"windows_pet.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6cd26e18fa5df0d68148605cedcca519af33dd2b6a6492df527a7b5e5041db5"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowsPet._write_heartbeat (cyclomatic 19): WindowsPet._write_heartbeat has cyclomatic complexity 19 (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":"windows_pet.py"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec1bf06224e5b19ec3041b32af209e415c56188d519283ec4115b4abef43d78"}},{"ruleId":"D1","level":"warning","message":{"text":"FamilyStore.swift.latestLifecycle (cyclomatic 19): FamilyStore.swift.latestLifecycle has cyclomatic complexity 19 (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":"macos/Sources/GooglePiggy/FamilyStore.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5d476af20194dee4640c283b6dbd31bb53fb59b7c3ddcc670df1761780feb3"}},{"ruleId":"D1","level":"warning","message":{"text":"PetController.currentKey (cyclomatic 18): PetController.currentKey has cyclomatic complexity 18 (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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"c99e4e7804975ed3db937c6a1768ca32a4cee39f5e92fb6ff48bfcda8ead5c8e"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowsPet._handle_left_button_down (cyclomatic 17): WindowsPet._handle_left_button_down has cyclomatic complexity 17 (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":"windows_pet.py"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6d9403013bf812ca48589e51a99fbe5e8d26756b22bfdb4d6ba71ba854a077"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowsPet._show_menu (cyclomatic 17): WindowsPet._show_menu 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":"windows_pet.py"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"af647ac24da907438d653b5ad116de44b856be747d4bbe4eba2117127bb13ef2"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowsPet._wndproc (cyclomatic 17): WindowsPet._wndproc has cyclomatic complexity 17 (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":"windows_pet.py"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5a3cc909b46f887b2be9abeb13c6218cfdfa6429ac02c43c8198c1fd6595ae"}},{"ruleId":"D1","level":"warning","message":{"text":"PetController.applyFamilyState (cyclomatic 17): PetController.applyFamilyState 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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"70807bb4322b4825de8abfffb222a192707a668c319df4b970ba08d2335f18d8"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateChecker.parse (cyclomatic 17): UpdateChecker.parse has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/GooglePiggy/UpdateNotice.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52a241a2debd5d1643ba2999a074218b778cd2af14003de0089fbf1a922aadf"}},{"ruleId":"D1","level":"warning","message":{"text":"HookBridge.swift.patchPermissionSummary (cyclomatic 17): HookBridge.swift.patchPermissionSummary has cyclomatic complexity 17 (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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"77c20bdfd2773f0faabb290c84cefd900b8bd26c1b49d35bee490966fecad9d8"}},{"ruleId":"D1","level":"warning","message":{"text":"WindowsPet._resolve_visual (cyclomatic 16): WindowsPet._resolve_visual 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":"windows_pet.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"252ea6c9da8442bf6e10d728d1d402a731e056fd7758fe152f080af84e4ac6ce"}},{"ruleId":"D1","level":"warning","message":{"text":"HookBridge.swift.runCompletionWatcher (cyclomatic 16): HookBridge.swift.runCompletionWatcher 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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d640188f34c5032cfddfca65cfe35f19da39688f7b166ff0419a4baba28aabe"}},{"ruleId":"D2","level":"warning","message":{"text":"FamilyStore.ingest (cognitive 72): FamilyStore.ingest has cognitive complexity 72 (threshold 15). Drivers by points: boolean chains 33, if/else 24 (27 pts), ternaries 8 (12 pts) (nesting depth added 7). 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":"macos/Sources/GooglePiggy/FamilyStore.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c886d141a80d31c093c6c53701b547b3be239672301d3abca73cef61bba992"}},{"ruleId":"D2","level":"warning","message":{"text":"HookBridge.swift.runCodexHook (cognitive 64): HookBridge.swift.runCodexHook has cognitive complexity 64 (threshold 15). Drivers by points: if/else 14 (33 pts), boolean chains 24, ternaries 2 (4 pts), loops 1 (2 pts), error handling 1 (nesting depth added 22). 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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5657d962bf285989c13cba4c59c98b879ce2f797e900e6df7371c8fcb4d5f08"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet.compose (cognitive 57): WindowsPet.compose has cognitive complexity 57 (threshold 15). Drivers by points: if/else 22 (33 pts), ternaries 7 (12 pts), boolean chains 10, loops 2 (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":"windows_pet.py"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f2f3fa0f74f0725e36b0756b0b20b22dabd367445e2e5118658c6950ace320"}},{"ruleId":"D2","level":"warning","message":{"text":"main.swift.top-level code (cognitive 55): main.swift.top-level code has cognitive complexity 55 (threshold 15). Drivers by points: if/else 18 (28 pts), error handling 6 (12 pts), boolean chains 5, loops 2 (5 pts), ternaries 2 (5 pts) (nesting depth added 22). 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":"macos/Sources/GooglePiggy/main.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e383b026aa59ead054b4b5efb311a0e9956f1b7e8949f5c8e29cbe88d32b56e"}},{"ruleId":"D2","level":"warning","message":{"text":"PetController.swift.runManifestSelfTest (cognitive 53): PetController.swift.runManifestSelfTest has cognitive complexity 53 (threshold 15). Drivers by points: boolean chains 30, if/else 10 (14 pts), loops 4 (5 pts), match/switch 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 7). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":2237}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c68e650672424fda536a225fe8ab579f643724de6dd52b3cf1308d861c8f29f"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexObserver.poll (cognitive 51): CodexObserver.poll has cognitive complexity 51 (threshold 15). Drivers by points: if/else 10 (23 pts), boolean chains 11, loops 5 (9 pts), error handling 3 (7 pts), ternaries 1 (nesting depth added 21). 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":"codex_observer.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"755a9cf6e3128433d99bda8a5f3bd67edb90516289f9bd5ab2cf38ce5089e0e0"}},{"ruleId":"D2","level":"warning","message":{"text":"FamilyStore.ingest (cognitive 47): FamilyStore.ingest has cognitive complexity 47 (threshold 15). Drivers by points: if/else 24 (27 pts), boolean chains 19, ternaries 1 (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":"family_store.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa4342a5e7dc72e78f640cd124167e18b9a5139a5fbb94bb57cb64c461dd981"}},{"ruleId":"D2","level":"warning","message":{"text":"pig_pet.main (cognitive 47): pig_pet.main has cognitive complexity 47 (threshold 15). Drivers by points: if/else 19 (27 pts), boolean chains 7, error handling 3 (7 pts), ternaries 4 (6 pts) (nesting depth added 14). 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":"pig_pet.py"},"region":{"startLine":3069}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4094a6ba95687f3ec7cac54a2909f566c5b8205cefaa14409eff2812c4d02e1"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateNotice.draw (cognitive 47): UpdateNotice.draw has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 15 (31 pts), if/else 7 (10 pts), boolean chains 3, loops 2 (3 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":"update_notice.py"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b5893fb385d1819b57a800bb5d3a1b6f6814e6b76ce30969344b4ec7046f1a"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet._render_layered_window (cognitive 46): WindowsPet._render_layered_window has cognitive complexity 46 (threshold 15). Drivers by points: if/else 13 (34 pts), ternaries 1 (4 pts), boolean chains 3, loops 1 (3 pts), error handling 1 (2 pts) (nesting depth added 27). 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":"windows_pet.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"665dea10e9e381ca26015beec38a089edcb9d2ee5b3e0e05f43425f7b0be86a8"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexObserver._poll_background (cognitive 45): CodexObserver._poll_background has cognitive complexity 45 (threshold 15). Drivers by points: if/else 9 (29 pts), loops 5 (11 pts), boolean chains 5 (nesting depth added 26). 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":"codex_observer.py"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c7ac3b29aa95503814d19594ed1f685b1d76f4d03f1fe9c12244907c6b538d"}},{"ruleId":"D2","level":"warning","message":{"text":"FamilyStore.reconcileObservations (cognitive 41): FamilyStore.reconcileObservations has cognitive complexity 41 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 9, ternaries 4 (8 pts), loops 2 (3 pts) (nesting depth added 15). 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":"macos/Sources/GooglePiggy/FamilyStore.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"b930c4974027e3a190c4e70c2f9d9c894a53b35ded6e1da1afb6cf74d11d88aa"}},{"ruleId":"D2","level":"warning","message":{"text":"PetController.applicationDidFinishLaunching (cognitive 40): PetController.applicationDidFinishLaunching has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 11, ternaries 2 (6 pts), match/switch 1 (2 pts), error handling 1 (nesting depth added 14). 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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"521d3ee082cf1f8bc52ab5c2ab244167f49840ef85a80e2c98dedf41d11b7b86"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateNotice.draw (cognitive 40): UpdateNotice.draw has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 15 (28 pts), if/else 7 (9 pts), boolean chains 2, loops 1 (nesting depth added 15). 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":"macos/Sources/GooglePiggy/UpdateNotice.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf9a35ca8612c837921a0c396643564042aac7e3b8c20baa27a2ad470b5c7b9"}},{"ruleId":"D2","level":"warning","message":{"text":"ObserverReader._read (cognitive 38): ObserverReader._read has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (18 pts), error handling 5 (11 pts), boolean chains 5, loops 3 (4 pts) (nesting depth added 17). 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":"codex_observer.py"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"6767bbdbce031d3760a2b927bb232a89c9e2e9658d64fbf81b18394d927eb560"}},{"ruleId":"D2","level":"warning","message":{"text":"HookBridge.swift.sessionToolInput (cognitive 38): HookBridge.swift.sessionToolInput has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (22 pts), boolean chains 12, loops 2 (4 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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2845afa5fdd869f802bc20f8efdedf5a593e201b0d5d200220546f7e77d890"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet._sync_family_permission (cognitive 37): WindowsPet._sync_family_permission has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 9, ternaries 3, loops 2 (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":"windows_pet.py"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c024e93cbc01a441effaa66e46daa990e4adb433cce81bfb28d2d440e5045a9"}},{"ruleId":"D2","level":"warning","message":{"text":"pig_pet.large_and_detached_components (cognitive 36): pig_pet.large_and_detached_components has cognitive complexity 36 (threshold 15). Drivers by points: loops 7 (18 pts), if/else 5 (16 pts), boolean chains 2 (nesting depth added 22). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pig_pet.py"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"236648baea242385dc1c2fb5728bde0e57665ef46c616c3fc3dd27a2a27b4f91"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexObserver.refresh_metadata (cognitive 34): CodexObserver.refresh_metadata has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 5, ternaries 4, error handling 2 (3 pts), loops 3 (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":"codex_observer.py"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e11584f241171b42571cdab642555dacc30d82527beff9c650fecdbcf66d1e"}},{"ruleId":"D2","level":"warning","message":{"text":"pig_pet.large_components (cognitive 33): pig_pet.large_components has cognitive complexity 33 (threshold 15). Drivers by points: loops 6 (19 pts), if/else 3 (12 pts), boolean chains 2 (nesting depth added 22). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pig_pet.py"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f85a5a10479451f1d1b26317ca10dd4eb93c66004184749552049e5d8b001da"}},{"ruleId":"D2","level":"warning","message":{"text":"pig_pet.detached_large_components (cognitive 33): pig_pet.detached_large_components has cognitive complexity 33 (threshold 15). Drivers by points: loops 7 (18 pts), if/else 4 (13 pts), boolean chains 2 (nesting depth added 20). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pig_pet.py"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b64da01f7852c49f497930febc5d8afcedea89a6c79adf0895678e72fd22d1f"}},{"ruleId":"D2","level":"warning","message":{"text":"PetController.drawFamilyChildren (cognitive 33): PetController.drawFamilyChildren has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 5 (10 pts), boolean chains 5, loops 2 (3 pts) (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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":1658}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2cf4a991228ec3773038c02e43bb678f34000137dde55e8fece6f5eaa17510a"}},{"ruleId":"D2","level":"warning","message":{"text":"HookBridge.swift.permissionSummary (cognitive 33): HookBridge.swift.permissionSummary has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18 (24 pts), ternaries 6 (8 pts), boolean chains 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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fca1e206cf1b7f4c9ee85621cb52270b64a3b6d9a1d833fac6a02765876765"}},{"ruleId":"D2","level":"warning","message":{"text":"pig_pet.largest_component (cognitive 30): pig_pet.largest_component has cognitive complexity 30 (threshold 15). Drivers by points: loops 6 (16 pts), if/else 3 (12 pts), boolean chains 2 (nesting depth added 19). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pig_pet.py"},"region":{"startLine":755}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d0006ad0e04dddfae80c7741bf729969941d56fe5f05eb853c57e651da8d9f"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet._poll_update (cognitive 30): WindowsPet._poll_update has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 7, error handling 2 (3 pts), loops 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":"windows_pet.py"},"region":{"startLine":1117}}}],"partialFingerprints":{"codehealthFindingId/v1":"9152548101cc63d034ebd3373becf768d2d7bb3d2808c8833ec749e752cffbb9"}},{"ruleId":"D2","level":"warning","message":{"text":"PetController.applyBridgePayload (cognitive 30): PetController.applyBridgePayload has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 11 (nesting depth added 4). 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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":1429}}}],"partialFingerprints":{"codehealthFindingId/v1":"19db5f135f4760adba637e9e98829f9668a5f8881f8193de25f77b5a7200d859"}},{"ruleId":"D2","level":"warning","message":{"text":"PetController.advance (cognitive 29): PetController.advance has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 10, match/switch 1 (2 pts) (nesting depth added 5). 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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":1278}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30eb9e14f2d07a799e972d18b4807c1b51b9173537ad5a25b1fdf123c656429"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsDirectoryChanges.read (cognitive 27): WindowsDirectoryChanges.read has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (22 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 15). 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":"windows_directory_changes.py"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ec62cdb91584c64010a80d2ea92762e521827141ea4f34a7bebddeebf58261"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexObserver.ingest (cognitive 26): CodexObserver.ingest has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 14, if/else 7 (11 pts), loops 1 (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"codex_observer.py"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc000abb10bdf5165fda8fc033eb7cd63f6aa6b8508ef11585e1e641e8b44da"}},{"ruleId":"D2","level":"warning","message":{"text":"pig_pet.write_qa (cognitive 26): pig_pet.write_qa has cognitive complexity 26 (threshold 15). Drivers by points: loops 6 (14 pts), if/else 2 (8 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pig_pet.py"},"region":{"startLine":2906}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b8d93d2199c0d5e51e2b438de039fc39b7cbb55634a9e5fb2e03c80f74e735"}},{"ruleId":"D2","level":"warning","message":{"text":"PetController.handleMouseUp (cognitive 26): PetController.handleMouseUp has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 10 (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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78e1f80fbe8ada4c6a6de1818b1b8df52ca50976d3396de7718cde2301ace8f"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet._handle_left_button_up (cognitive 25): WindowsPet._handle_left_button_up has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 4, error handling 1 (4 pts), ternaries 1 (2 pts) (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":"windows_pet.py"},"region":{"startLine":943}}}],"partialFingerprints":{"codehealthFindingId/v1":"82478a709fc3359cfbe774a319ee50ed524d777aa9799809357cd668feb745ae"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet._write_heartbeat (cognitive 25): WindowsPet._write_heartbeat has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 4 (8 pts), boolean chains 6, error handling 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":"windows_pet.py"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5f85ea1af03b05fb4d699ce400d1f0d23c401614e92c08f422748609c9080f"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet._wndproc (cognitive 25): WindowsPet._wndproc has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 2 (6 pts), boolean chains 4 (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":"windows_pet.py"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a51e309db28b1cdb27c01a1600d03d0c1c8fda30f9ef54ccf7abe745781b66a"}},{"ruleId":"D2","level":"warning","message":{"text":"HookBridge.swift.runCompletionWatcher (cognitive 25): HookBridge.swift.runCompletionWatcher has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 7, loops 1 (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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":1190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96bff6d742cd77bc3964136be250e8b5cd571f42801b5b3584b9994b27e4735"}},{"ruleId":"D2","level":"warning","message":{"text":"pig_pet.repair_right_hump_edge_clipping (cognitive 24): pig_pet.repair_right_hump_edge_clipping has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (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":"pig_pet.py"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"109d8aa6ed00c52020a02d491c0000c1f0b336a336bd50bbe39ff73af2b5d370"}},{"ruleId":"D2","level":"warning","message":{"text":"pig_pet.fill_mask_holes (cognitive 24): pig_pet.fill_mask_holes has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 5 (8 pts), boolean chains 4 (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":"pig_pet.py"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d84a73c7df73854198e677e092858fc53fe162eb8b565b1772c51de664173c8"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet._poll_bridge (cognitive 24): WindowsPet._poll_bridge has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 7, ternaries 2 (4 pts), loops 1 (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":"windows_pet.py"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"052e470b290915e744ead1b4b672193ba129cd0da997c21884f88f740487be38"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet._handle_left_button_down (cognitive 24): WindowsPet._handle_left_button_down has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 6, loops 2 (4 pts), ternaries 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":"windows_pet.py"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03a124e963126208132acbd10f4908a96dc2767d9829508d36f198f76fc44af"}},{"ruleId":"D2","level":"warning","message":{"text":"FamilyStore.swift.latestLifecycle (cognitive 24): FamilyStore.swift.latestLifecycle has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (9 pts), loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 6). 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":"macos/Sources/GooglePiggy/FamilyStore.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"7517d9dea9857be4273fd4aac6687f89de1c1aa497ac8fae802457520b82762e"}},{"ruleId":"D2","level":"warning","message":{"text":"HookBridge.swift.handlePermissionRequest (cognitive 24): HookBridge.swift.handlePermissionRequest has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 2 (8 pts), boolean chains 2, error handling 1, loops 1 (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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"18fad953a0c07f43b8ebae3c2146a5ccdc0d55b97989c43cd6bd6ccc73caecd7"}},{"ruleId":"D2","level":"warning","message":{"text":"ObserverReader._event_files (cognitive 22): ObserverReader._event_files has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 2 (4 pts), boolean chains 3, ternaries 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":"codex_observer.py"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"1299076e8f0ae81899740f102e6c01b41f4c710008a48096ddea33cf6724f922"}},{"ruleId":"D2","level":"warning","message":{"text":"HookBridge.swift.patchPermissionSummary (cognitive 22): HookBridge.swift.patchPermissionSummary has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 4 (6 pts), boolean chains 3 (nesting depth added 6). 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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28484a814517532fba85b558273726c0851f4488fa6cc61dc292247e3917b27"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet._qa_control (cognitive 21): WindowsPet._qa_control has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, ternaries 2 (4 pts), loops 1 (2 pts) (nesting depth added 6). 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":"windows_pet.py"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"254c978f872a0842249fc87437f572ae914c853ad8c4de6ab7ee5612ff1eea5d"}},{"ruleId":"D2","level":"warning","message":{"text":"windows_update.parse_releases (cognitive 21): windows_update.parse_releases has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 6, loops 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":"windows_update.py"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea171cf133bb7152d8016b5e701010f4ba99e4602bf47bc8efb2e2808fe57033"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet._resolve_visual (cognitive 20): WindowsPet._resolve_visual has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (7 pts), ternaries 3 (6 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":"windows_pet.py"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6204fb23ea130de7a948cf4a375ba9a50df17579e4abdfb0b117653385758e0"}},{"ruleId":"D2","level":"warning","message":{"text":"pig_pet.identify_sources (cognitive 18): pig_pet.identify_sources has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 8, if/else 5 (8 pts), loops 2 (nesting depth added 3). 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":"pig_pet.py"},"region":{"startLine":1223}}}],"partialFingerprints":{"codehealthFindingId/v1":"3252495e98676562c0fe51c17d6c27ab86a749a81b806615ac8d17bed9411a84"}},{"ruleId":"D2","level":"warning","message":{"text":"windows_update.install_transaction (cognitive 18): windows_update.install_transaction has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, error handling 2, loops 1 (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":"windows_update.py"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"5deb7750eebe03a2a6cc11bc90fccf107a28ee487918a28a2765958d62ce1d1f"}},{"ruleId":"D2","level":"warning","message":{"text":"FamilyStore.reconcileSelection (cognitive 18): FamilyStore.reconcileSelection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6 (nesting depth added 3). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"macos/Sources/GooglePiggy/FamilyStore.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"66320afa92038bd90854e3337c6b6cf01920893388a336149f698cb81b5f6483"}},{"ruleId":"D2","level":"warning","message":{"text":"PetController.currentKey (cognitive 18): PetController.currentKey has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 3 (6 pts), match/switch 2 (5 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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"986c7005a4915e1b5395b59db9c2acea04853fafcdbe9edf428e27fdba470c7a"}},{"ruleId":"D2","level":"warning","message":{"text":"PigPet._wndproc (cognitive 17): PigPet._wndproc has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 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":"pig_pet.py"},"region":{"startLine":2828}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eef61373e81b3cf6dc050ff45521d4220a11952843958b6b24d94bd97efcea2"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet._composite_selector (cognitive 17): WindowsPet._composite_selector has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 3 (4 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 6). 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":"windows_pet.py"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff7e36faf12df4aab654059b7a1ed52f66c4d58631d24af91fbd4a923fd7a49d"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet._composite_permission_bubble (cognitive 17): WindowsPet._composite_permission_bubble has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (8 pts), boolean chains 5, if/else 2, loops 2 (nesting depth added 3). 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":"windows_pet.py"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa3258bfb8d96f46c5640e73c58d8d3f1d4ccef4678d5c2ce54db2d6e3fe01c"}},{"ruleId":"D2","level":"warning","message":{"text":"PetController.applyFamilyState (cognitive 17): PetController.applyFamilyState has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), ternaries 1 (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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7dab69353a1d708889d1afe2d348ebb723c458bf9b842ca6532d34e0d94351"}},{"ruleId":"D2","level":"warning","message":{"text":"PetController.handleMouseDown (cognitive 17): PetController.handleMouseDown has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, loops 1 (nesting depth added 3). 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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":1903}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3df2854cdc0f185baf3d17db5a17f5af77487f833b0c16e0d0463e61d280123"}},{"ruleId":"D2","level":"warning","message":{"text":"HookBridge.swift.sessionHasTaskComplete (cognitive 17): HookBridge.swift.sessionHasTaskComplete has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, loops 1 (2 pts), error handling 1 (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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":1151}}}],"partialFingerprints":{"codehealthFindingId/v1":"c724f213559f70a90b3caee12624199f29e80198c56ed7d1a58479c246689027"}},{"ruleId":"D2","level":"warning","message":{"text":"WindowsPet._handle_mouse_move (cognitive 16): WindowsPet._handle_mouse_move has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), ternaries 1 (4 pts) (nesting depth added 9). 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":"windows_pet.py"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"478965a5ef33d192654a7c2a3787507c364502d4eeaa7e10c17f003f0592a9e6"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadAnimationClock.position (cognitive 16): ThreadAnimationClock.position has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, loops 1 (2 pts) (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":"macos/Sources/GooglePiggy/ThreadAnimationClock.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"defc4da9a7ce481e850f8df3413dcfc67ec62a7201b617ed41477d363bdff9dc"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateChecker.parse (cognitive 16): UpdateChecker.parse has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 13, if/else 2, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/GooglePiggy/UpdateNotice.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"527fd8e7c1fcfdff880db271e3c7c8a724f7fa4133a29fde60f5690bad6c3402"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./pig_pet.py: FileTooLong \u2014 2736 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2236 over it, 5.47\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":"pig_pet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da316f66a0b9b093f827b642c57364c9a96a68c0fd3409de56a83c409b55b6b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PetController: ClassTooLong \u2014 1578 significant lines (blank, comment-only and punctuation-only lines excluded), 77 methods. The bar is 400 significant lines; this is 1178 over it, 3.95\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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"fffa55167180f1f73062fa2afac4084c0519d49273ab747121f8ced11101a5b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: GooglePiggy/PetController.swift: FileTooLong \u2014 1943 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: PetController (195-2235). The bar is 500 significant lines; this is 1443 over it, 3.89\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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab26b961ff943d8ed69ad5dd76dd54c0669c84d2fe25db7efe7317bc52c5621"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PetController: 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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"768f207c2968050f9d796019845a93ced6cfa5f3ea01d3acc621b5369f6a8cb7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: PetController.swift.runManifestSelfTest: FunctionTooLong \u2014 runManifestSelfTest runs 240 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 140 over it, 2.40\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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":2237}}}],"partialFingerprints":{"codehealthFindingId/v1":"d233dd7f4ea7c112f46605661961e46d3ffd8c21597387586ae962de2c5563b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ./windows_pet.py: FileTooLong \u2014 1079 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 579 over it, 2.16\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":"windows_pet.py"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05578ec0914ef8e659f3a322c64d59e2212d166d5d2ab9a8a5ed634310142135"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PigPet: TooManyMethods \u2014 58 methods. The bar is 30 methods; this is 28 over it, 1.93\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":"pig_pet.py"},"region":{"startLine":1595}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d1084dc15b0b9f922985e3d81474c586c76f24970fbeaf33f97644dd19f8b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: GooglePiggy/HookBridge.swift: FileTooLong \u2014 918 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 418 over it, 1.84\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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcf5c6400c0fb41533e0af6a124ad755c64bd76e7c860a2388bbb24ba707071"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WindowsPet: 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":"windows_pet.py"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6d1ab522aac50a9afb5f77937d129631e5f57146e35adcbcc0c34a97f86f5a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.swift.top-level code: FunctionTooLong \u2014 top-level code runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\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":"macos/Sources/GooglePiggy/main.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f35a8e7913110609f11d6e8ccf1d83b829d159fb7557ef7cf6b8c5a06ffd4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: HookBridge.swift.handlePermissionRequest: FunctionTooLong \u2014 handlePermissionRequest runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbd49e1ccde074f779bc0172815af27a6899899f76feed7089480bda5dd67a6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: HookBridge.swift.permissionSummary: FunctionTooLong \u2014 permissionSummary runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"5234a6fbb021cedca2f032a8af022db569199be117910539c14fd4a191e081e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): pig_pet.py:756-780 | pig_pet.py:787-812 | pig_pet.py:816-837 | pig_pet.py:844-875 | pig_pet.py:879-907 | tools/prepare_effect_assets.py:63-89 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pig_pet.py"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d58ed2bbfa89334d8cfa13907508e4dcac6e7638a576277822310601ad72bd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): macos/Sources/GooglePiggy/FamilyStore.swift:304-327 | macos/Sources/GooglePiggy/HookBridge.swift:315-349 | macos/Sources/GooglePiggy/HookBridge.swift:351-408 | macos/Sources/GooglePiggy/HookBridge.swift:1151-1188 \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":"macos/Sources/GooglePiggy/FamilyStore.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a5ca1fdfd57cfab7a3497466caa6f8f368f24b48c36aa47f409ca139c72e990"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): pig_pet.py:1313-1340 | pig_pet.py:1360-1391 | tools/export_macos_assets.py:128-158 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 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":"pig_pet.py"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb5c06d9a9fdc3caaea8b4ca6ec1f752650b0fb18e3998e103fa3f98d98e700"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): pig_pet.py:1344-1356 | tools/export_macos_assets.py:108-124 \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":"pig_pet.py"},"region":{"startLine":1344}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a01c7b5e82287e56c1db2d21bb8577b1f5a429a175a2f20bd01f97515293f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): pig_pet.py:1364-1378 | tools/export_macos_assets.py:132-146 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pig_pet.py"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"08fe3bda5f62df3e0e47176b1f7e024961d32c9bbfc7f76467bbd4e7735e0095"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201311 lines \u00D7 6): pig_pet.py:759-769 | pig_pet.py:807-808 | pig_pet.py:819-829 | pig_pet.py:847-857 | pig_pet.py:882-892 | tools/prepare_effect_assets.py:68-78 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060pig_pet.py:770\u0060 calls \u0060max\u0060, \u0060min\u0060 and \u0060pig_pet.py:809\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":"pig_pet.py"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"880c0afd6ca0df47b009ca83ec301ccbe3f49d0063eb1cecb698eff56b7b49a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201311 lines \u00D7 2): pig_pet.py:1072-1082 | pig_pet.py:1102-1108 \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 \u0060pig_pet.py:1072\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":"pig_pet.py"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"5071e22ecf3dd2235aaf19b5d63bc53eedba295a14bf81f6cbb1f601bdc4b731"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 3): pig_pet.py:831-834 | pig_pet.py:859-865 | pig_pet.py:894-900 \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. 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":"pig_pet.py"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcd41c3cbf41258dba2acc53f67614198f3547a2d5daf89221613287b99a39e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): pig_pet.py:1059-1064 | tools/prepare_effect_assets.py:38-43 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pig_pet.py"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"0386d38e13ba7e27855d34b1096036c8b1e8065458ef784908565de509cef313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pig_pet.py:771-775 | tools/prepare_effect_assets.py:80-84 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pig_pet.py"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce33cff3aee5abd73a63880f5ced47431d4839cf95136a4ba33629f71ce80687"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): pig_pet.py:1348-1352 | tools/export_macos_assets.py:115-120 \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 \u0060tools/export_macos_assets.py:115\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. 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":"pig_pet.py"},"region":{"startLine":1348}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe89ade040d876ee638835710e11f7280f3ba5a69baf6303736bd156e91e8ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): codex_observer.py:179-183 | codex_observer.py:341-345 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060codex_observer.py:346\u0060 calls \u0060except\u0060 and \u0060codex_observer.py:184\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":"codex_observer.py"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd512ff8cad53f41a739b543249ee9b70d55820a59c3a7381cc469b3572f649"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): macos/Sources/GooglePiggy/HookBridge.swift:832-846 | macos/Sources/GooglePiggy/HookBridge.swift:864-880 \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 \u0060macos/Sources/GooglePiggy/HookBridge.swift:832\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. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3c30c68fef10f42854195b1a9bc7e308769407df8aa04b3f696fba33c1c26a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): macos/Sources/GooglePiggy/HookBridge.swift:1198-1206 | macos/Sources/GooglePiggy/HookBridge.swift:1213-1221 \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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":1198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1494b6a9e0fb505279192a75ab8377b8df86742ffd04881bd6c601836343ae69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 4): macos/Sources/GooglePiggy/FamilyStore.swift:316-318 | macos/Sources/GooglePiggy/HookBridge.swift:332-336 | macos/Sources/GooglePiggy/HookBridge.swift:367-371 | macos/Sources/GooglePiggy/HookBridge.swift:1171-1175 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. 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":"macos/Sources/GooglePiggy/FamilyStore.swift"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9dae3c5b3839a0adccee2d8a5b2e77f2900d5cbdaeba133ad533bc75682cc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (118 shared lines): tools/export_macos_assets.py:178-371 | tools/prepare_edge_tail_assets.py:58-204 \u2014 These two members are variants of one another: 118 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/export_macos_assets.py"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf746f3ea9a2f4125a83dfeba87fb1ed615f42cd4d88786841df430a3bd5cf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): tools/prepare_edge_tail_assets.py:45-54 | tools/export_macos_assets.py:67-77 \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":"tools/prepare_edge_tail_assets.py"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17a298d0249272c5982885d4558fc9bb98b4e70328f8bdb6e0c8e10987f21bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201336 lines \u00D7 2): tools/export_macos_assets.py:305-340 | tools/prepare_edge_tail_assets.py:153-183 \u2014 before extracting anything, compare \u0060tools/export_macos_assets.py\u0060 and \u0060tools/prepare_edge_tail_assets.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 141 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 \u0060tools/export_macos_assets.py:305\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":"tools/export_macos_assets.py"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"3deb0d556c7f92e7bcfc7d8eb24304d2c3012d6b8f2c5a730e88d0f5aa2160a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201326 lines \u00D7 2): tools/export_macos_assets.py:262-287 | tools/prepare_edge_tail_assets.py:114-134 \u2014 before extracting anything, compare \u0060tools/export_macos_assets.py\u0060 and \u0060tools/prepare_edge_tail_assets.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 141 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 \u0060tools/export_macos_assets.py:262\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":"tools/export_macos_assets.py"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"677b3128c7c9f7ccd25eea47a1b2953968bbd43d57c80a1f7aaa42363d67166b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201333 lines \u00D7 2): tools/export_macos_assets.py:188-220 | tools/prepare_edge_tail_assets.py:58-84 \u2014 before extracting anything, compare \u0060tools/export_macos_assets.py\u0060 and \u0060tools/prepare_edge_tail_assets.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 141 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 \u0060tools/export_macos_assets.py:188\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":"tools/export_macos_assets.py"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"a826f967defe5d2997bfe76bcaf9bcd4d03c8d65cffb98929e61f2b2e48dd403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 2): tools/export_macos_assets.py:230-246 | tools/prepare_edge_tail_assets.py:92-104 \u2014 before extracting anything, compare \u0060tools/export_macos_assets.py\u0060 and \u0060tools/prepare_edge_tail_assets.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 141 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 \u0060tools/export_macos_assets.py:230\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. 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":"tools/export_macos_assets.py"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"57426dbf0c99d6ef2908d4edfedfcbaf1375c7b35baab2c87cc321a1a8f96e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): tools/export_macos_assets.py:342-356 | tools/prepare_edge_tail_assets.py:185-197 \u2014 before extracting anything, compare \u0060tools/export_macos_assets.py\u0060 and \u0060tools/prepare_edge_tail_assets.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 141 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 \u0060tools/export_macos_assets.py:342\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":"tools/export_macos_assets.py"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3dc008b808300eea38e7b1d730c929a1ed1024ed80e799737f831168fdbdfcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): tools/export_macos_assets.py:290-303 | tools/prepare_edge_tail_assets.py:139-151 \u2014 before extracting anything, compare \u0060tools/export_macos_assets.py\u0060 and \u0060tools/prepare_edge_tail_assets.py\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 141 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 \u0060tools/export_macos_assets.py:290\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":"tools/export_macos_assets.py"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7fa8853b186fb524c2e0f1531c9a761ff60e33f31f939e31187d73f535445a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): tools/clean_celebration_edges.py:19-24 | tools/uniform_pig_contours.py:74-79 \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":"tools/clean_celebration_edges.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"18377c1b01ac382432fcf1f20d91009f3ed69869fea90c09501509407a2d503a"}},{"ruleId":"D5","level":"error","message":{"text":"Circular dependency: (root) \u2192 tools \u2192 (root)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1299da550bfa96bf56ad3c6284c4087cd89d6204038c71b951c118680b0bb9c6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/Sources/GooglePiggy/FamilyStore.swift: macos/Sources/GooglePiggy/FamilyStore.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in FamilyStore.ingest at line 117. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 20:26:01 \u002B08:00\u0027 --until=\u00272026-11-12 20:26:01 \u002B08:00\u0027 --full-history --no-merges -- macos/Sources/GooglePiggy/FamilyStore.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":"macos/Sources/GooglePiggy/FamilyStore.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d630b362de5a9dc0f710e5eeca70bad84c6ece7eb216ec0d559d83ba482437b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/Sources/GooglePiggy/PetController.swift: macos/Sources/GooglePiggy/PetController.swift changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in PetController.applicationDidFinishLaunching at line 443. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 20:26:01 \u002B08:00\u0027 --until=\u00272026-11-12 20:26:01 \u002B08:00\u0027 --full-history --no-merges -- macos/Sources/GooglePiggy/PetController.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":"macos/Sources/GooglePiggy/PetController.swift"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"2167ebd3b27d07e135b6c43f832092f670f05ebd322b1612580f63e9cb4a0b9e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: windows_pet.py: windows_pet.py changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in WindowsPet._render_layered_window at line 621. 3 of those changes were fix/bug commits, 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-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 20:26:01 \u002B08:00\u0027 --until=\u00272026-11-12 20:26:01 \u002B08:00\u0027 --full-history --no-merges -- windows_pet.py\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":"windows_pet.py"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cf82c177996a61480168ce593c3e098ed6ac0f02edeb6468109b03cd3d255d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: family_store.py: family_store.py changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 45 in FamilyStore.ingest at line 39. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. 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-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 20:26:01 \u002B08:00\u0027 --until=\u00272026-11-12 20:26:01 \u002B08:00\u0027 --full-history --no-merges -- family_store.py\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":"family_store.py"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0146a7f31c6de656914121ba5a8898f1357afdf1603e428c1ed01664f4ae78"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/Sources/GooglePiggy/HookBridge.swift: macos/Sources/GooglePiggy/HookBridge.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 43 in HookBridge.swift.runCodexHook at line 970. 1 of those changes was a fix/bug commit, and the other 2 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-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 20:26:01 \u002B08:00\u0027 --until=\u00272026-11-12 20:26:01 \u002B08:00\u0027 --full-history --no-merges -- macos/Sources/GooglePiggy/HookBridge.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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b764ff4a5dc2d5c3bcfaa1af18d0bd2b3d63e828eac1262347122fd49eb94b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: codex_observer.py: codex_observer.py changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in CodexObserver.poll at line 295. 1 of those changes was a fix/bug commit, and the other 3 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-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 20:26:01 \u002B08:00\u0027 --until=\u00272026-11-12 20:26:01 \u002B08:00\u0027 --full-history --no-merges -- codex_observer.py\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":"codex_observer.py"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe33f1bd7d1fa9a798183ba39135ed47904c8b063bbd28a63fb3173df576fe8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: macos/Sources/GooglePiggy/UpdateNotice.swift: macos/Sources/GooglePiggy/UpdateNotice.swift changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in UpdateNotice.draw at line 113. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-14..2026-11-12, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-14 20:26:01 \u002B08:00\u0027 --until=\u00272026-11-12 20:26:01 \u002B08:00\u0027 --full-history --no-merges -- macos/Sources/GooglePiggy/UpdateNotice.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":"macos/Sources/GooglePiggy/UpdateNotice.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0335bb3e5bdc1cd1714c1773d359e589606b5f6bfe55ac1f3b0fbc6224c7103"}},{"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":"8bfde30a96dddefb19a9543ecc4af1ad81ccd0a5041a9a570e418c9641a85bf2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"3025892b608f2fadd7f8b5fbcd6b4f266a1421411034eed65b68ede3a10f6ed8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"af9d2fdf90616041aba265d55478ec5db76ba2a36ff9b2b98406a8899b193092"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"a72ea6a71514e8f2b20d983e6c3b55107ae129bdbc22ba06c093d595ef3b5da7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"7e9af4129b34349073460052934a14532dc9e5383fafedb6397c4a6a683375f1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"9118b1022a91261d5053162086c708d1c5b8f330fc1be18c9fc97442cc552856"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03: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":"52b35fd0b6d9488e03b707f4668de3586f2f82463f5569e55b47dc0a4a9804bc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"de4c897e80370206fc96102532c3bb558e01c059d5411a4815d547f57d2f3f02"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"4007b7628b2f28fa47452cb66cbb17c24526cec30893fd36419259f4d1f06edc"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","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":"10c957c4ebb2a5a14896f5f3442b8c5aa8215094c41ec92bf376c33ae57498b3"},"taxa":[{"id":"CWE-939","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"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":"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":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","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":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AX3","level":"error","message":{"text":"Project dependency cycle: The projects (root) \u2192 tools \u2192 (root) form a reference cycle. Cyclic dependencies prevent independent build/test/deploy, blur ownership, and tend to grow into a big ball of mud. Break the cycle by extracting the shared types into a separate project both can reference."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"06ab53bf48f900cd058c3a245e9d464fe90285845f653aa8b4930ed0ff055650"}},{"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":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"M3","level":"note","message":{"text":"No src/ separation: Production code is mixed at the repository root with everything else the repository holds, so nothing marks which files are the product."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fdf7f5b24e313364d10170a5c2542959902fe0d26ed70edef3eaa10ec5bcdb1d"}},{"ruleId":"P12","level":"warning","message":{"text":"Test suite runs only after the merge: \u0060macos-release.yml\u0060 run(s) the test suite, but no workflow that runs tests is triggered by a pull request (or a merge queue) \u2014 so the suite reports on code that is already on the default branch. A red build there blocks nothing and the only remedy is a revert. Add the pull-request trigger to the workflow that runs your suite so the gate applies before the merge, not after it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"731ad560de6aa35d3e92103d5ad0fbec4c54f771b709281e852941847e03ef03"}},{"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 bandit, \u0060semgrep --config=p/python\u0060, or CodeQL\u0027s python pack as a CI step. What was searched, so you can tell an absence from a miss: the 2 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"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060requirements-dev.txt\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"requirements-dev.txt"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"50c5fb1fa839b492e817c2eefdcebe89a7c7d87d00550061115a8f3eb52d2a9d"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/windows-release.yml"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060owner_hwnd or self.hwnd or self.tail_hwnd\u0060 appears character-identically in 2 files \u2014 pig_pet.py, windows_pet.py. 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":"pig_pet.py"},"region":{"startLine":2783}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41dd89ede26f8e224790522d16416c9ecffdadfd1f6cbed760b22b7622f9a98"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060p.get(\u0027agent_id\u0027) or p.get(\u0027session_id\u0027)\u0060 appears character-identically in 2 files \u2014 codex_observer.py, windows_pet.py. 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":"codex_observer.py"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"92c281021fb33a1dc280cde7b3852668e2e15608689370c130c8be79e651d1d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060decision == \u0022allow\u0022 || decision == \u0022deny\u0022\u0060 appears character-identically in 2 files \u2014 macos/Sources/GooglePiggy/HookBridge.swift, macos/Sources/GooglePiggy/PetController.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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":909}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0f6e73a0e5daee67deb003b9846cb1cc203187b9d53f5417c9b599095fb3f3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\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":"pig_pet.py"},"region":{"startLine":1481}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1647f847458a03a7a0629a0d4191a066889d0427de15541937d527d38ee8551"}},{"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":"pig_pet.py"},"region":{"startLine":1704}}}],"partialFingerprints":{"codehealthFindingId/v1":"6889d8133d116f40f22f5ea1808e54948a3ab547a9a6847afe5ac43460ebf78d"}},{"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":"windows_update.py"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"7286f6e48419eca7d817897bdf8db7cf2f3e8ebad4cc0abf69b9e30f00a90067"}},{"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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"06887a8a70d0cd1117bb2ec77b94b865a132a6b9c7806303e0ee51553e48551c"}},{"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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d58a9da838ca7027cc3e5e6b66ff65f50b07e6e1f6fc9e33361d9227e39aaa"}},{"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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8db5f52ab67234f6d7657a3c100d1f516b4fc2632e3c2b03902a7db2c1624c7"}},{"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":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e705c24fa7f33c03198bd32e615003f838ff3b1a360d29d9bd89a77ba579fa4"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060read\u0060 returns \u0060{}\u0060 when \u0060(OSError, ValueError)\u0060 is raised, with no log or raise \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tools/test_windows_update_runtime.py"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e571f16cd620016c2abb4c5280c84d818408878d6fed287af77c84d2633283ea"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060sessionWorkingDirectory\u0060 turns every thrown error into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4775322e3c928273889cbcb7d7c98628e50dcc19bccf623048aac99a58f123b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060handlePermissionRequest\u0060 turns every thrown error into \u0060\u0022{}\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or let it propagate (\u0060throws\u0060). If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060, \u0060guard\u0060 or \u0060??\u0060, or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"macos/Sources/GooglePiggy/HookBridge.swift"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"61383392474342827f79397531f80eb16ee099e189d20742726ccb89b39a073c"}}],"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-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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.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-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.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-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"Files or Directories Accessible to External Parties","shortDescription":{"text":"Files or Directories Accessible to External Parties"},"helpUri":"https://cwe.mitre.org/data/definitions/552.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-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-939","guid":"12397742-f2c4-8254-8012-482c3356c551","name":"CWE-939","shortDescription":{"text":"CWE-939"},"helpUri":"https://cwe.mitre.org/data/definitions/939.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":"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":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"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/"}]},{"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-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"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":15,"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."]}]}