{"$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":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"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":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"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":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"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":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"DM4","name":"Rich vs anemic domain model","shortDescription":{"text":"Rich vs anemic domain model"},"helpUri":"https://codehealth.canine.dev/dimensions/DM4"},{"id":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"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":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"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":"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":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"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":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"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":"Chat.body (cyclomatic 151): Chat.body has cyclomatic complexity 151 (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":"Core/Sources/ConversationTab/Chat.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b2cdba8b371bd68ee7e0fb516b9201a903f543e2f9faf95da06ae3de4e165d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatPanelFeature.body (cyclomatic 72): ChatPanelFeature.body has cyclomatic complexity 72 (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":"Core/Sources/SuggestionWidget/FeatureReducers/ChatPanelFeature.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e70da81cc52d10c2725ba886f6a91448674bab137130a8cf517dc00c04c350"}},{"ruleId":"D1","level":"warning","message":{"text":"WidgetFeature.body (cyclomatic 52): WidgetFeature.body has cyclomatic complexity 52 (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":"Core/Sources/SuggestionWidget/FeatureReducers/WidgetFeature.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"591677c89c028d72c321ee6447746c9c8c042877d3c9aecdc5ac413e5fd4b9ed"}},{"ruleId":"D1","level":"warning","message":{"text":"PanelFeature.body (cyclomatic 42): PanelFeature.body has cyclomatic complexity 42 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/FeatureReducers/PanelFeature.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b3ab9efcc40899d5449d1d3013be503b9e85b0530dd7d0b2241e6f47d5bdaf1"}},{"ruleId":"D1","level":"warning","message":{"text":"GUI.body (cyclomatic 38): GUI.body has cyclomatic complexity 38 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc139150101d103dd18ecd08df4c196988fad3b1c3df6ccce63f0c722d4a3d5c"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMessage.mergeEditAgentRounds (cyclomatic 38): ChatMessage.mergeEditAgentRounds has cyclomatic complexity 38 (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":"Tool/Sources/ChatAPIService/Memory/ChatMemory.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"760895e82c4c32002daa08b30f90bc277fd79241c548658c7c8eb997244d3e41"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeReviewPanelFeature.body (cyclomatic 34): CodeReviewPanelFeature.body has cyclomatic complexity 34 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/FeatureReducers/CodeReviewFeature.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bd2077508c35dc9a837c032a2a6f3e807c1c17bfee5cd36982774e5f7f9837"}},{"ruleId":"D1","level":"warning","message":{"text":"WidgetWindowsController.updateWindowOpacity (cyclomatic 33): WidgetWindowsController.updateWindowOpacity 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":"Core/Sources/SuggestionWidget/WidgetWindowsController.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da1cb665f199363728c86363f9ccc31f56bd496e98860be8384fe16759a6e7d"}},{"ruleId":"D1","level":"warning","message":{"text":"FixErrorPanelFeature.body (cyclomatic 31): FixErrorPanelFeature.body has cyclomatic complexity 31 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/FeatureReducers/FixErrorPanelFeature.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f969961c1a7e9c948e4134f3b41859412009140b504a6a8adbf85b0f66d302"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatService.handleProgressReport (cyclomatic 28): ChatService.handleProgressReport has cyclomatic complexity 28 (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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"052ebcdd3bc4d2cb8e0b768a58afb08803f2f31be0753b87a5fbec0ec7a67fc5"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMemory.appendMessage (cyclomatic 27): ChatMemory.appendMessage 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":"Tool/Sources/ChatAPIService/Memory/ChatMemory.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fa6e69a0e54657a98991e91a7ddc65ced3600bf421baeb59fa657f2ec7ea76"}},{"ruleId":"D1","level":"warning","message":{"text":"HTMLToMarkdownConverter.convertSpecificElement (cyclomatic 27): HTMLToMarkdownConverter.convertSpecificElement has cyclomatic complexity 27 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/WebContentExtractor/HTMLToMarkdownConverter.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f32ebd023478c68cc4155545cd1dc6a3fa133ae31b816b0ee33a0f00ad39265"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolAutoApprovalManager.splitTerminalCommandLineIntoSubCommands (cyclomatic 26): ToolAutoApprovalManager.splitTerminalCommandLineIntoSubCommands has cyclomatic complexity 26 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. 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":"Core/Sources/ChatService/ToolCalls/AutoApproval/ToolAutoApprovalParsingHelpers.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde8ee7a5b42c9ca9f7d4984c33e065744a81349a5ca73ef8d420cb4b4ab9d1a"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerNotificationHandlerImpl.handleNotification (cyclomatic 25): ServerNotificationHandlerImpl.handleNotification has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHubCopilotService/LanguageServer/ServerNotificationHandler.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63d10abd09323a7cd1f13a17c9fb5385a335fb4a7b9a391d7463f0768a9e980"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatService.resetOngoingRequest (cyclomatic 24): ChatService.resetOngoingRequest 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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"326535908d1efe35ec5f62db2d2cc56ef567a88ea48c3fba614adb280c90be19"}},{"ruleId":"D1","level":"warning","message":{"text":"NSError.from (cyclomatic 24): NSError.from 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":"Core/Sources/Service/Helpers.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69da142a2d61aa9650f05b1743ed23670f984a3758d3e378f6589406290b651"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptToCode.body (cyclomatic 23): PromptToCode.body has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/FeatureReducers/PromptToCode.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b869dc6145f63c21ce69cad86f7a52627d524b45b35fa11132d7639a8e7563d"}},{"ruleId":"D1","level":"warning","message":{"text":"XcodeInspector.restart (cyclomatic 23): XcodeInspector.restart 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":"Tool/Sources/XcodeInspector/XcodeInspector.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd3c9291a62c257c14c0c9147714c482006179766722e60a7724b8337b8ba3d"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolStatusItemView.parsedFileListResult (cyclomatic 22): ToolStatusItemView.parsedFileListResult 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":"Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cce644594d3394bd951011cdc8862e159201847ea75f464288bc97c37803603"}},{"ruleId":"D1","level":"warning","message":{"text":"WidgetWindowsController.generateWidgetLocation (cyclomatic 22): WidgetWindowsController.generateWidgetLocation 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":"Core/Sources/SuggestionWidget/WidgetWindowsController.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd341ac086ee936746c79c1652df4bf19e20d93a10e2e3ccbf041f4aeb0eedfc"}},{"ruleId":"D1","level":"warning","message":{"text":"HighlightrThemeManager.theme (cyclomatic 21): HighlightrThemeManager.theme 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":"Core/Sources/XcodeThemeController/HighlightrThemeManager.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbad3b4f5dc2aa3f0ba4d943b86e148a318d31dedf2883a33e59444a29a486f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatService.handleProgressEnd (cyclomatic 20): ChatService.handleProgressEnd 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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"e317bfcc85f825886d6344bc2d3348d75257a2b54b5ed4f57d7b6efa3479fa65"}},{"ruleId":"D1","level":"warning","message":{"text":"InputAreaTextEditor.body (cyclomatic 20): InputAreaTextEditor.body has cyclomatic complexity 20 (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":"Core/Sources/ConversationTab/Views/ChatPanelInputArea/InputAreaTextEditor.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f226d4e070d1730aec1e17b87aecea62bafa60b44351221694fdb655d0f18c39"}},{"ruleId":"D1","level":"warning","message":{"text":"SuggestionInjector.acceptSuggestion (cyclomatic 20): SuggestionInjector.acceptSuggestion 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":"Core/Sources/SuggestionInjector/SuggestionInjector.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"bed6549e31d2bdb62680cd47f4826c5de80568f75fcc5cc948c6b6a6f66f2c35"}},{"ruleId":"D1","level":"warning","message":{"text":"WidgetWindowsController.updateAttachedChatWindowLocation (cyclomatic 20): WidgetWindowsController.updateAttachedChatWindowLocation 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":"Core/Sources/SuggestionWidget/WidgetWindowsController.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e91b32bf35bff8bfe92a0d2796bc562bcc1a77ff8ebeed9a9e497df20f1f87"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolAutoApprovalManager.extractTerminalCommandName (cyclomatic 19): ToolAutoApprovalManager.extractTerminalCommandName has cyclomatic complexity 19 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ChatService/ToolCalls/AutoApproval/ToolAutoApprovalParsingHelpers.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3f684d9e9b8c61727441b12895eebb3be4e5140f3427087e1e2cd9e21dcc86"}},{"ruleId":"D1","level":"warning","message":{"text":"ModelPickerDetailPanel.show (cyclomatic 19): ModelPickerDetailPanel.show 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":"Core/Sources/ConversationTab/ModeAndModelPicker/ModelPicker/ModelPickerDetailPanel.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5637bfbaebbf477555f82742e31b80be94732ce11987bd6c930d20bc718478f"}},{"ruleId":"D1","level":"warning","message":{"text":"PseudoCommandHandler.acceptSuggestion (cyclomatic 19): PseudoCommandHandler.acceptSuggestion 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":"Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2391359905cc4bc2ed7c9b8dc69df48e835af7ce3db378f609d6106d3a237f5"}},{"ruleId":"D1","level":"warning","message":{"text":"GitHubCopilotRequest.swift.editorConfiguration (cyclomatic 19): GitHubCopilotRequest.swift.editorConfiguration has cyclomatic complexity 19 (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":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1901dd817f4cccfb5da37586426343d03e0ee7002931c56579597c292fd7c15d"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchingFileChangeWatcher.processEvent (cyclomatic 19): BatchingFileChangeWatcher.processEvent 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":"Tool/Sources/Workspace/FileChangeWatcher/BatchingFileChangeWatcher.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bf120abba04b30a04b39dc8cb46c1cb95301d1c94c3d25eabecff9c6835d09"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkspaceXcodeWindowInspector.deriveWorkspaceFromDocumentURL (cyclomatic 19): WorkspaceXcodeWindowInspector.deriveWorkspaceFromDocumentURL 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":"Tool/Sources/XcodeInspector/XcodeWindowInspector.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"986490b0c0f1b6e879fe80bd7c4bcfef6f7c984343e03ed50726b0dae71b646d"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatService.send (cyclomatic 18): ChatService.send 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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b1875456860bc79e3c1b3d77d1aff12a1cc5ed8da0a86a3acd10ab757ef795"}},{"ruleId":"D1","level":"warning","message":{"text":"SuggestionInjector.recoverSuffixIfNeeded (cyclomatic 18): SuggestionInjector.recoverSuffixIfNeeded has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionInjector/SuggestionInjector.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f411d6b21adbc88b2781641305ef874147b98807aff184ca544286ef184244"}},{"ruleId":"D1","level":"warning","message":{"text":"PromptToCodeGroup.body (cyclomatic 18): PromptToCodeGroup.body has cyclomatic complexity 18 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/FeatureReducers/PromptToCodeGroup.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9ba043cf207ed311998e4ad763808e1caccad20f4347930331424d675a9567"}},{"ruleId":"D1","level":"warning","message":{"text":"XcodeThemeController.syncXcodeThemeIfNeeded (cyclomatic 18): XcodeThemeController.syncXcodeThemeIfNeeded has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/XcodeThemeController/XcodeThemeController.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"163463c3d72ecb2ca7940deee101b5c89f069e8bb6f1b8a185f166e3e46c8e01"}},{"ruleId":"D1","level":"warning","message":{"text":"AXNotificationStream.init (cyclomatic 18): AXNotificationStream.init has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/AXNotificationStream/AXNotificationStream.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a462579b7cf87421c37af83f0a1d4a95d2305c700a7b083ba7384283c230c92"}},{"ruleId":"D1","level":"warning","message":{"text":"AppDelegate.menuWillOpen (cyclomatic 18): AppDelegate.menuWillOpen 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":"ExtensionService/AppDelegate\u002BMenu.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed164bdf438bb4e6324d11306397250de7f8333bea79fb63f8e1bfea3ccdb0ba"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolAutoApprovalManager.approve (cyclomatic 17): ToolAutoApprovalManager.approve has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ChatService/ToolCalls/AutoApproval/ToolAutoApprovalManager.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef160b8295cf0a20c3d534f1f518bed72ab03fd68c69609815bf76f7628c196"}},{"ruleId":"D1","level":"warning","message":{"text":"CopilotLocalProcessServer.handleNotification (cyclomatic 17): CopilotLocalProcessServer.handleNotification has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHubCopilotService/LanguageServer/CopilotLocalProcessServer.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"970c9c2223310585fddc983e07ce6774b6e864fa03eef9bfc3227a6968839d89"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeHighlighting.convertToCodeLines (cyclomatic 17): CodeHighlighting.convertToCodeLines has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. 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":"Tool/Sources/SharedUIComponents/SyntaxHighlighting.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d2d87e67ace0b07f18ebf56ced16a61795819a1d3b3c409711fb9b5e0d8cb79"}},{"ruleId":"D1","level":"warning","message":{"text":"ToolStatusItemView.body (cyclomatic 16): ToolStatusItemView.body has cyclomatic complexity 16 (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":"Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d385f7763f7aaa8ca8203d8891c814c8811ede20276ac88bb2d5966ad9d8726"}},{"ruleId":"D1","level":"warning","message":{"text":"RealtimeSuggestionController.handleFocusElementChange (cyclomatic 16): RealtimeSuggestionController.handleFocusElementChange 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":"Core/Sources/Service/RealtimeSuggestionController.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c877c3f96f1fc0c7d28290e7189ae176665272a03f327864918d7126488e62"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentMCPServerSection.body (cyclomatic 16): AgentMCPServerSection.body 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":"Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0dfff477dbf7b75d4116a2a82729b80d1a575bb779ef3e81bee259dde10076"}},{"ruleId":"D1","level":"warning","message":{"text":"WidgetWindowsController._updateCodeReviewWindowLocation (cyclomatic 16): WidgetWindowsController._updateCodeReviewWindowLocation has cyclomatic complexity 16 (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":"Core/Sources/SuggestionWidget/WidgetWindowsController.swift"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc258892f60c8094d5042995090cf70b48931f8f3646e2a16dfb8a20ad259a0d"}},{"ruleId":"D1","level":"warning","message":{"text":"QuotaView.createUpsellView (cyclomatic 16): QuotaView.createUpsellView 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":"Tool/Sources/StatusBarItemView/QuotaView.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7760e382e9d2c1aefc5de3251907c88595f383ed007e849e8a7384a191c5259"}},{"ruleId":"D1","level":"warning","message":{"text":"QuotaView.buildFooterConstraints (cyclomatic 16): QuotaView.buildFooterConstraints 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":"Tool/Sources/StatusBarItemView/QuotaView.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef861da511ce2642744f183ea5f14b9f105f9ec51a468154e048e8c2de30908"}},{"ruleId":"D2","level":"warning","message":{"text":"Chat.body (cognitive 186): Chat.body has cognitive complexity 186 (threshold 15). Drivers by points: if/else 51 (110 pts), loops 14 (30 pts), boolean chains 15, match/switch 5 (15 pts), error handling 4 (14 pts), ternaries 1 (2 pts) (nesting depth added 96). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Chat.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"05dfad31ec6f5f676e3ee895dbabcc82e6a77b83fceebff90b9d50da3597b16c"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessage.mergeEditAgentRounds (cognitive 158): ChatMessage.mergeEditAgentRounds has cognitive complexity 158 (threshold 15). Drivers by points: if/else 24 (129 pts), loops 4 (16 pts), boolean chains 13 (nesting depth added 117). 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":"Tool/Sources/ChatAPIService/Memory/ChatMemory.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cccb20efd4bc5c50f28681451f820c953e72b73bf41974b6c5d7752bf34e71c"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMemory.appendMessage (cognitive 130): ChatMemory.appendMessage has cognitive complexity 130 (threshold 15). Drivers by points: if/else 20 (112 pts), loops 2 (11 pts), boolean chains 7 (nesting depth added 101). 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":"Tool/Sources/ChatAPIService/Memory/ChatMemory.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd880163eeb0484051578e9d2d3ca9c4ce9bfe6f7b1888be51ab60386866575"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPanelFeature.body (cognitive 77): ChatPanelFeature.body has cognitive complexity 77 (threshold 15). Drivers by points: if/else 29 (62 pts), boolean chains 10, loops 1 (2 pts), ternaries 1 (2 pts), match/switch 1 (nesting depth added 35). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/FeatureReducers/ChatPanelFeature.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc14b81980c14e5510d0f5c7054b483d721e6cda536474a3ab800810eef85a7c"}},{"ruleId":"D2","level":"warning","message":{"text":"WidgetFeature.body (cognitive 62): WidgetFeature.body has cognitive complexity 62 (threshold 15). Drivers by points: if/else 23 (45 pts), match/switch 5 (7 pts), loops 3 (6 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 28). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/FeatureReducers/WidgetFeature.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f442740a9260fbb68ba15bc5fcd77fa0297e0ad2057634adf6b187dc4c8f16"}},{"ruleId":"D2","level":"warning","message":{"text":"WidgetWindowsController.updateWindowOpacity (cognitive 57): WidgetWindowsController.updateWindowOpacity has cognitive complexity 57 (threshold 15). Drivers by points: ternaries 15 (30 pts), if/else 14 (20 pts), boolean chains 7 (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":"Core/Sources/SuggestionWidget/WidgetWindowsController.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"2977b69def5812e4c5fbe6e163010684fea604af87d09965e6e66be703ac7b89"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolAutoApprovalManager.splitTerminalCommandLineIntoSubCommands (cognitive 52): ToolAutoApprovalManager.splitTerminalCommandLineIntoSubCommands has cognitive complexity 52 (threshold 15). Drivers by points: if/else 16 (43 pts), boolean chains 8, loops 1 (nesting depth added 27). Of this number, 51 points are the body\u0027s own statements and 1 belongs 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":"Core/Sources/ChatService/ToolCalls/AutoApproval/ToolAutoApprovalParsingHelpers.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc3b1eae31d011c31c6badffc4e078e2ffa5061388c59abb9f834e45016f92e"}},{"ruleId":"D2","level":"warning","message":{"text":"GUI.body (cognitive 47): GUI.body has cognitive complexity 47 (threshold 15). Drivers by points: if/else 21 (41 pts), boolean chains 4, match/switch 2 (nesting depth added 20). Of this number, 45 points are the body\u0027s own statements and 2 belong to one function item inside it that branches. The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b140961bf86f56d89c673a69917d807bcde8b2fc1dc31083db041fcd4b2928f"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.menuWillOpen (cognitive 45): AppDelegate.menuWillOpen has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (22 pts), ternaries 4 (13 pts), loops 3 (9 pts), match/switch 1 (nesting depth added 24). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ExtensionService/AppDelegate\u002BMenu.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"94243f0f2f0ef211e0d39ce1c0ebdd847aa0698741a1b2c5ac95470418fd85eb"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatService.resetOngoingRequest (cognitive 44): ChatService.resetOngoingRequest has cognitive complexity 44 (threshold 15). Drivers by points: if/else 10 (24 pts), loops 7 (14 pts), boolean chains 6 (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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f26b3a55fe8312a0b091635fa095b0fee7190e6d5ecdb849661569f1f84234"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolStatusItemView.parsedFileListResult (cognitive 43): ToolStatusItemView.parsedFileListResult has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 7, ternaries 1 (6 pts), loops 1 (3 pts) (nesting depth added 21). 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":"Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e747d5e6550a46970797286541226ff8dcdbf5b21d5aa03ec084bcc5c8f55dd"}},{"ruleId":"D2","level":"warning","message":{"text":"XcodeInspector.restart (cognitive 42): XcodeInspector.restart has cognitive complexity 42 (threshold 15). Drivers by points: if/else 18 (35 pts), loops 4 (5 pts), boolean chains 2 (nesting depth added 18). 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":"Tool/Sources/XcodeInspector/XcodeInspector.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"555a447ddbcb061ab8ca6b1f36b25f2b765c5324eb40b506061c02d7ac72afb5"}},{"ruleId":"D2","level":"warning","message":{"text":"PseudoCommandHandler.acceptSuggestion (cognitive 41): PseudoCommandHandler.acceptSuggestion has cognitive complexity 41 (threshold 15). Drivers by points: if/else 10 (29 pts), match/switch 2 (6 pts), error handling 3 (5 pts), boolean chains 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"900fa052a95b43b4964e9f68bddce867c15b10104079ddb8f077e99050c22a80"}},{"ruleId":"D2","level":"warning","message":{"text":"WidgetWindowsController.generateWidgetLocation (cognitive 39): WidgetWindowsController.generateWidgetLocation has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 11, match/switch 3 (11 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":"Core/Sources/SuggestionWidget/WidgetWindowsController.swift"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5702fa99b9e60c0839cae909da45c7500f9f026d98e2c76d8caf958f3d9ec1"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerNotificationHandlerImpl.handleNotification (cognitive 38): ServerNotificationHandlerImpl.handleNotification has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (28 pts), boolean chains 6, match/switch 2 (4 pts) (nesting depth added 18). 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":"Tool/Sources/GitHubCopilotService/LanguageServer/ServerNotificationHandler.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7ad8b62b5f3852d350d209d15e1dc1df1fa1d0011c8f899f4919ff4fe59c83"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatService.handleProgressEnd (cognitive 37): ChatService.handleProgressEnd has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 9, error handling 1 (4 pts), ternaries 1 (4 pts) (nesting depth added 16). 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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b90729b170d032d00301078f622534bb844eec097aa304e750ee68982c345a"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeReviewPanelFeature.body (cognitive 36): CodeReviewPanelFeature.body has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 10, loops 2 (4 pts), match/switch 1 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/FeatureReducers/CodeReviewFeature.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a3f68c3772d17b853b013edeab1c1aadbe98d8ea93601ee0cdcbc4952ed6d6"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchingFileChangeWatcher.processEvent (cognitive 36): BatchingFileChangeWatcher.processEvent has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 5, loops 1 (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":"Tool/Sources/Workspace/FileChangeWatcher/BatchingFileChangeWatcher.swift"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b3b6ddef7e5e7807249fa46979cf08fe4f7afc7336efbd4de79b26f39f2567c"}},{"ruleId":"D2","level":"warning","message":{"text":"NSMutableArray.apply (cognitive 34): NSMutableArray.apply has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (26 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (2 pts) (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":"Tool/Sources/SuggestionBasic/Modification.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a7d44ada1ba392bde266277527a18122da0144b150d3e101bb43d64c1cf88d4"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeHighlighting.convertToCodeLines (cognitive 32): CodeHighlighting.convertToCodeLines has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 4 (8 pts), error handling 1 (3 pts) (nesting depth added 16). Of this number, 29 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":"Tool/Sources/SharedUIComponents/SyntaxHighlighting.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b5398c16415e2ea8d6ca5f90d98b314dc02e9d484028df46925f42de142568"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceXcodeWindowInspector.deriveWorkspaceFromDocumentURL (cognitive 31): WorkspaceXcodeWindowInspector.deriveWorkspaceFromDocumentURL has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 6, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/XcodeInspector/XcodeWindowInspector.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2474c3c09882fe60249c29bd5deb4b4afb24f34dced3b78c261b62e3a2e10c1"}},{"ruleId":"D2","level":"warning","message":{"text":"QuotaView.createUpsellView (cognitive 30): QuotaView.createUpsellView has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 4 (11 pts), boolean chains 4, match/switch 1 (2 pts) (nesting depth added 14). 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":"Tool/Sources/StatusBarItemView/QuotaView.swift"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f283f823d9e1c53cdf8d3cc988a27596342b77036410a1c4f0a70793d23a5c8"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatService.handleProgressReport (cognitive 29): ChatService.handleProgressReport has cognitive complexity 29 (threshold 15). Drivers by points: boolean chains 16, if/else 12 (13 pts) (nesting depth added 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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"b026573b938d1c6527c0e8d124cec959b561fd1a28948ceecee8e75c0caae1d7"}},{"ruleId":"D2","level":"warning","message":{"text":"WidgetWindowsController.updateAttachedChatWindowLocation (cognitive 29): WidgetWindowsController.updateAttachedChatWindowLocation has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 8, ternaries 2 (8 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/WidgetWindowsController.swift"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"295e0629b34d216baddc36c65e65e6fa09979a685b97ba3d5b14b35655c59980"}},{"ruleId":"D2","level":"warning","message":{"text":"FixErrorPanelFeature.body (cognitive 29): FixErrorPanelFeature.body has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 5, loops 2 (4 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/FeatureReducers/FixErrorPanelFeature.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd931a9659425a0e419efbb59264674fa6fb5f34e0e25f40d93daaeab5fecd8"}},{"ruleId":"D2","level":"warning","message":{"text":"QuotaPopoverView.quotaContent (cognitive 29): QuotaPopoverView.quotaContent has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (18 pts), if/else 5 (9 pts), boolean chains 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":"Tool/Sources/SharedUIComponents/QuotaPopoverView.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e28c30d2c16d2c0a7ff12218b5089c94b328c9d74df61a856a5a434468bf72e"}},{"ruleId":"D2","level":"warning","message":{"text":"XcodeAppInstanceInspector.observeAXNotifications (cognitive 29): XcodeAppInstanceInspector.observeAXNotifications has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (22 pts), boolean chains 3, match/switch 1 (3 pts), 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":"Tool/Sources/XcodeInspector/Apps/XcodeAppInstanceInspector.swift"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cc4d661e60db5f3f8b8da4f932fd71aa0d0661ddbd2289a75e7f019777d514"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPAutoApproveView.body (cognitive 27): MCPAutoApproveView.body has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 1, ternaries 1 (nesting depth added 15). 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":"Core/Sources/HostApp/ToolsSettings/AutoApprove/MCPAutoApproveView.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d51fb86bcd045c8f11a50e946cef408baddae734d358194156f666ba30034b0"}},{"ruleId":"D2","level":"warning","message":{"text":"PanelFeature.body (cognitive 27): PanelFeature.body has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (20 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 12). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/FeatureReducers/PanelFeature.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"56f19203424dcc3922fd86a37781618dac7b34d827ff6a14c0007c9992fc122a"}},{"ruleId":"D2","level":"warning","message":{"text":"AppInstanceInspector.triggerMenuItem (cognitive 26): AppInstanceInspector.triggerMenuItem has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (21 pts), error handling 1 (2 pts), loops 1 (2 pts), boolean chains 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":"Tool/Sources/XcodeInspector/XcodeInspector\u002BTriggerCommand.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fef5806de92e78802f7af900f06e42eac789111277cd31e65cf4e5d57673cb"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPickerDetailPanel.show (cognitive 25): ModelPickerDetailPanel.show has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/ModeAndModelPicker/ModelPicker/ModelPickerDetailPanel.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"188990b35a807cf0fd475affdbd92f7dcea4e8f2b03eccc780cee03702ba9638"}},{"ruleId":"D2","level":"warning","message":{"text":"TabToAcceptSuggestion.handleEvent (cognitive 25): TabToAcceptSuggestion.handleEvent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 2 (6 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/KeyBindingManager/TabToAcceptSuggestion.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9ab20ccdec3776c8a7b1871ac2e602729c0b5c6cb1643912f61f3cf5476df8"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeSuggestionController.handleFocusElementChange (cognitive 25): RealtimeSuggestionController.handleFocusElementChange has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (21 pts), error handling 1 (2 pts), loops 2 (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":"Core/Sources/Service/RealtimeSuggestionController.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfba7363759cd70b84cdcc467c8868250be4210b7dce99d3972ae28d29bd4e2b"}},{"ruleId":"D2","level":"warning","message":{"text":"SuggestionInjector.acceptSuggestion (cognitive 25): SuggestionInjector.acceptSuggestion has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (15 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":"Core/Sources/SuggestionInjector/SuggestionInjector.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4e75e7fb889a684293a0fb589543fe55cbb2c03cbb270b27cb30fafc359b727"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubCopilotService.refreshClientTools (cognitive 25): GitHubCopilotService.refreshClientTools has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (14 pts), error handling 2 (6 pts), boolean chains 5 (nesting depth added 13). 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":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbffcd85f2fc39077043d7ee0f4b67e413ad02aaa032412da50804375b7e7d2d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatService.send (cognitive 24): ChatService.send has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4, ternaries 2 (3 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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecef7b4e995046bc040e9e6cbd944479e5b56d0503e42a89f32d73b8a16c4616"}},{"ruleId":"D2","level":"warning","message":{"text":"XPCService.updateToolsStatus (cognitive 24): XPCService.updateToolsStatus has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), error handling 3 (4 pts), boolean chains 3 (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":"Core/Sources/Service/XPCService.swift"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"222bc99fda066b184da15a4d61fa9c9c8fb7c55ed5e1be9231729c1d1a232acd"}},{"ruleId":"D2","level":"warning","message":{"text":"QuotaPopoverView.buildQuotaItems (cognitive 24): QuotaPopoverView.buildQuotaItems has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 4 (8 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/SharedUIComponents/QuotaPopoverView.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc1d91c31217fbcae8f912cf03be401b1796e8216117e6bdd9d384835508577"}},{"ruleId":"D2","level":"warning","message":{"text":"XPCService.updateMCPServerToolsStatus (cognitive 23): XPCService.updateMCPServerToolsStatus has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (17 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/XPCService.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4b31fedb0f4c6c43543b9cd623bab62575cbcd9d5aa20f7aedce3c9a594978"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolStatusItemView.fileOperationProgressView (cognitive 22): ToolStatusItemView.fileOperationProgressView has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5, ternaries 2 (4 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":"Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"a079d3aa7db57261f6c2cd199072d68785dc71236feece7b01c0c1d70959057e"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentMCPServerSection.body (cognitive 22): AgentMCPServerSection.body has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 6, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3bf7e6ad538d754f2ba8a704cc38e0bec2ca55787a06626c2034bb1083ca2d"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubCopilotService.updateServiceAuthStatus (cognitive 22): GitHubCopilotService.updateServiceAuthStatus has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6df647fad3dec01b803b193275453979926753617dc82d66a92317c68526412"}},{"ruleId":"D2","level":"warning","message":{"text":"ExtensionServiceLauncher.launch (cognitive 22): ExtensionServiceLauncher.launch has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, error handling 1 (2 pts), loops 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":"CommunicationBridge/ServiceDelegate.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff5048189625d7ee44ddf9f6bf28b88a5c617211e3f8ec6639fdd176a8734826"}},{"ruleId":"D2","level":"warning","message":{"text":"String.apply (cognitive 21): String.apply has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (17 pts), match/switch 1 (2 pts), boolean chains 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":"Tool/Sources/SuggestionBasic/Modification.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3670c9bd5e4f02d8fb3fd87973b2eded6b853803e066e4627d1412bcef4c4fc0"}},{"ruleId":"D2","level":"warning","message":{"text":"XcodeThemeController.syncXcodeThemeIfNeeded (cognitive 21): XcodeThemeController.syncXcodeThemeIfNeeded has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 4, error handling 1 (2 pts), ternaries 1 (nesting depth added 3). 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":"Core/Sources/XcodeThemeController/XcodeThemeController.swift"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e422d8ee23ed10a9a47bec7d78256dcdf14f9ee61cef5f0613bdfbe7578601d3"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHunk.parseDiff (cognitive 21): GitHunk.parseDiff has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 2, boolean chains 1, 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":"Tool/Sources/GitHelper/GitHunk.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8225e8a570556c93b9a3e1050f67679ca3124836578a9a0fc4f31cb3b4d72cca"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceFile.processWorkspaceNodes (cognitive 21): WorkspaceFile.processWorkspaceNodes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/Workspace/WorkspaceFile.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8244bf67e96228fa3571b080896cb59cf8b11b5c93c8b4e04d864dfcd141f7"}},{"ruleId":"D2","level":"warning","message":{"text":"InputAreaTextEditor.body (cognitive 20): InputAreaTextEditor.body has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, ternaries 5 (6 pts), boolean chains 4 (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":"Core/Sources/ConversationTab/Views/ChatPanelInputArea/InputAreaTextEditor.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"63d46c18acaa4956bdd8dce38227c319e9687db028ae18e98e884977b7473ab9"}},{"ruleId":"D2","level":"warning","message":{"text":"PseudoCommandHandler.acceptPromptToCode (cognitive 20): PseudoCommandHandler.acceptPromptToCode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), error handling 3 (5 pts), boolean chains 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":"Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"081b3f6985eb67d05c5d328a4b752529ed83aa958e0a8e063bd98c1333be7df1"}},{"ruleId":"D2","level":"warning","message":{"text":"HighlightrThemeManager.theme (cognitive 20): HighlightrThemeManager.theme has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 6, match/switch 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/XcodeThemeController/HighlightrThemeManager.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab68d1b1c6966d5dc041ed203cd59b333a798fad970490799efde14e75e06db1"}},{"ruleId":"D2","level":"warning","message":{"text":"GitDiff.parseDiff (cognitive 20): GitDiff.parseDiff has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHelper/GitDiff.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7a35bbccd9370dba32d20f47ee638e79251e497c61f4c6bd7150bd365c5d71"}},{"ruleId":"D2","level":"warning","message":{"text":"QuotaView.buildFooterConstraints (cognitive 20): QuotaView.buildFooterConstraints has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 5 (6 pts), boolean chains 5 (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":"Tool/Sources/StatusBarItemView/QuotaView.swift"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"1688d83d5d504255524de7e734e79f54595680eb8880fd627943b7637e8b7d08"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceFile.getFilesInActiveWorkspace (cognitive 20): WorkspaceFile.getFilesInActiveWorkspace has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), loops 2 (5 pts), error handling 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":"Tool/Sources/Workspace/WorkspaceFile.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d3a3b01881c6a14de4db2229e5157196ba18894e4fa29e6c66bfdb448e9934"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolAutoApprovalManager.extractTerminalCommandName (cognitive 19): ToolAutoApprovalManager.extractTerminalCommandName has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 8, loops 2 (3 pts) (nesting depth added 1). Of this number, 12 points are the body\u0027s own statements and 7 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":"Core/Sources/ChatService/ToolCalls/AutoApproval/ToolAutoApprovalParsingHelpers.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd51bd49fa83115b3edd59a5c30a747d6dce257d31a26056eccaef6d3d4ba5ff"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationTab.handlePasteEvent (cognitive 19): ConversationTab.handlePasteEvent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, loops 1 (2 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":"Core/Sources/ConversationTab/ConversationTab.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"642206d43ca4b37315d21dccdc09eb2d910eb14cfed31e7aa1fcafd784b0a37b"}},{"ruleId":"D2","level":"warning","message":{"text":"FunctionMessage.body (cognitive 19): FunctionMessage.body has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (19 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":"Core/Sources/ConversationTab/Views/FunctionMessage.swift"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89aa8605c1309f3cf57580229c48e67a1dda82f65cbfbefc8be713a1d51bec0"}},{"ruleId":"D2","level":"warning","message":{"text":"NSError.from (cognitive 19): NSError.from has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 10). 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":"Core/Sources/Service/Helpers.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"f955106739e2cc4f422246314c599ed80ee8115c0dfe1c916c51a1da9485f493"}},{"ruleId":"D2","level":"warning","message":{"text":"HorizontalMovable.framesForWindows (cognitive 19): HorizontalMovable.framesForWindows has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 2 (5 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":"Core/Sources/SuggestionWidget/WidgetPositionStrategy.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f581135a1e2c0f258f34d27b1fdac7fe1c57ec1f4319b249f65d98390695c0de"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubCopilotRequest.swift.editorConfiguration (cognitive 19): GitHubCopilotRequest.swift.editorConfiguration has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3, loops 3 (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":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"df204f64b2dea744139cd7e89d7f1e837e0b3b1acb89f569cdc16bca7b94400a"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkspaceXcodeWindowInspector.extractProjectURL (cognitive 19): WorkspaceXcodeWindowInspector.extractProjectURL has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 1, loops 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":"Tool/Sources/XcodeInspector/XcodeWindowInspector.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad60848d938e24a90434b96270f289362069ebd87e934113512c7ab5198e4f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPanel.onFileDrop (cognitive 18): ChatPanel.onFileDrop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, 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":"Core/Sources/ConversationTab/ChatPanel.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"df1cd315a6fd974b5addcd421cd3b1de92273571d4b814ee1b7277704ab2a750"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPickerMenu.rebuildMenuItems (cognitive 18): ModelPickerMenu.rebuildMenuItems has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/ModeAndModelPicker/ModelPicker/ModelPickerMenu.swift"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"3013edf7c395b5a30eae81e4e26655d5ef88442c8fde19427d29d6e5b952e605"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPConfigView.body (cognitive 18): MCPConfigView.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1 (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":"Core/Sources/HostApp/ToolsConfigView.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b249c390cb0cc7c13876f976782f391b61dea968a8fbe681315d30acf27b01"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelRowView.body (cognitive 18): ModelRowView.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4 (6 pts), boolean chains 3, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/HostApp/BYOKSettings/ModelRowView.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f4f37c4fa403f4046f92514cd6e809b266295c1be029231d3fc62d91eea07d"}},{"ruleId":"D2","level":"warning","message":{"text":"SuggestionInjector.recoverSuffixIfNeeded (cognitive 18): SuggestionInjector.recoverSuffixIfNeeded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8, loops 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":"Core/Sources/SuggestionInjector/SuggestionInjector.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a54b627748b14d78f0d3aa5f9f364203db6e34527b9dbbc3c46596f6a8b7f8"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentConfigurationWidgetLocationStrategy.getAgentConfigurationWidgetLocation (cognitive 18): AgentConfigurationWidgetLocationStrategy.getAgentConfigurationWidgetLocation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5 (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":"Core/Sources/SuggestionWidget/WidgetPositionStrategy.swift"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"5737db112cccb8a8d32980e4877acad7df435d3976b80f2a3c61db4576a1561d"}},{"ruleId":"D2","level":"warning","message":{"text":"PromptToCode.body (cognitive 18): PromptToCode.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 2 (4 pts), loops 1 (3 pts), boolean chains 1, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/FeatureReducers/PromptToCode.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba86f1722621f580ae0b5ed7c576926664324961b6d0eb29f865da5131f2230"}},{"ruleId":"D2","level":"warning","message":{"text":"AXNotificationStream.init (cognitive 18): AXNotificationStream.init has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), loops 3 (4 pts), match/switch 1 (3 pts), boolean chains 1, ternaries 1 (nesting depth added 7). Of this number, 17 points are the body\u0027s own statements and 1 belongs 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":"Tool/Sources/AXNotificationStream/AXNotificationStream.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b733657080fedf8df2681d6c86224883e0cc6718b6d7b428967268a4344b39"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubCopilotService.init (cognitive 18): GitHubCopilotService.init has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (8 pts), loops 2 (4 pts), match/switch 1 (3 pts), boolean chains 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08b0115abf35a2b99b663684a1495359f5d524cbfe16647c7f819377c321b0f"}},{"ruleId":"D2","level":"warning","message":{"text":"AppDelegate.updateStatusBarItem (cognitive 18): AppDelegate.updateStatusBarItem has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 1 (4 pts), boolean chains 1, match/switch 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":"ExtensionService/AppDelegate.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"26305fb550cf3e2a79a6cef1bf69f792a408776eef7ac59b15804fd179d75ca3"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalAddon.handleSingleLine (cognitive 18): TerminalAddon.handleSingleLine has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3 (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":"Server/src/terminal/terminalAddon.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7797d1527843cf1653c35eae4d3c9d413b8f88b9bebfb50d20223c3d182643a"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolCallStatusUpdater.findAndUpdateToolCall (cognitive 17): ToolCallStatusUpdater.findAndUpdateToolCall has cognitive complexity 17 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 3 (7 pts) (nesting depth added 9). 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":"Core/Sources/ChatService/ToolCalls/ToolCallStatusUpdater.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea756494a42adfd4238c0c9e1663ab6702abc21fdd8e3dd79dbb45afca144548"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolAutoApprovalManager.approve (cognitive 17): ToolAutoApprovalManager.approve has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (9 pts), if/else 3 (7 pts), boolean chains 1 (nesting depth added 8). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ChatService/ToolCalls/AutoApproval/ToolAutoApprovalManager.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc14b02c748bb9d9db8260b01fdd0c5eca7305520bebd472f475d1998a54b22"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelPickerDetailPanel.layoutAndShow (cognitive 17): ModelPickerDetailPanel.layoutAndShow has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1, ternaries 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":"Core/Sources/ConversationTab/ModeAndModelPicker/ModelPicker/ModelPickerDetailPanel.swift"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"9630209c558234c745a95c7b1895cb70482deb0b9303d86ff6940ab001249968"}},{"ruleId":"D2","level":"warning","message":{"text":"General.body (cognitive 17): General.body has cognitive complexity 17 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 3 (6 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 8). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/HostApp/General.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ac274edcabdf804cd9c9c0af902053d6654bd29216309068c51cd41da91d43"}},{"ruleId":"D2","level":"warning","message":{"text":"ScheduledCleaner.cleanUp (cognitive 17): ScheduledCleaner.cleanUp has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/ScheduledCleaner.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"67741325395e9bba692bf734f24d351603011d4afa96a49c84c81ff18b8b24a9"}},{"ruleId":"D2","level":"warning","message":{"text":"WidgetWindowsController._updateCodeReviewWindowLocation (cognitive 17): WidgetWindowsController._updateCodeReviewWindowLocation has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (7 pts) (nesting depth added 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":"Core/Sources/SuggestionWidget/WidgetWindowsController.swift"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"587dbca6be8a0b02cc235774a903d270d4057ff608e217081083d749345b3946"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeBlockSuggestionPanel.body (cognitive 17): CodeBlockSuggestionPanel.body has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, ternaries 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/SuggestionPanelContent/CodeBlockSuggestionPanel.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8dd0f99821da3539acab23a48ffd16afb5a0611db4caaaec3242051c3dbbc73"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffBuilder.diff (cognitive 17): DiffBuilder.diff has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 5 (6 pts), boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/NES/NESDiffView/NESDiffBuilder.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1dfd1269ed435b52fa5af68b6a49677fe9ba8534c015fed38d69c00b9e02466"}},{"ruleId":"D2","level":"warning","message":{"text":"CurrentChangeService.getPRChanges (cognitive 17): CurrentChangeService.getPRChanges has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (3 pts), match/switch 1 (2 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":"Tool/Sources/GitHelper/CurrentChange.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1352eb5515c620685c60965a823cd285743105752850cdb082b71a486eda18e5"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationStorage.operate (cognitive 17): ConversationStorage.operate has cognitive complexity 17 (threshold 15). Drivers by points: loops 4 (10 pts), match/switch 2 (6 pts), if/else 1 (nesting depth added 10). 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":"Tool/Sources/Persist/Storage/ConversationStorage/ConversationStorage.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d2fd324bd76a34cadafe1436e9371ffd6cac8923bba780ee1f7ac244480675"}},{"ruleId":"D2","level":"warning","message":{"text":"Terminal.streamCommand (cognitive 17): Terminal.streamCommand has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 4, error handling 1, loops 1 (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":"Tool/Sources/Terminal/Terminal.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7e40759c27c8a8545fe411e98aa30f4cd0ceef6d00fda1089e0eb118e85248"}},{"ruleId":"D2","level":"warning","message":{"text":"SourceEditor.observeAXNotifications (cognitive 17): SourceEditor.observeAXNotifications has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (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":"Tool/Sources/XcodeInspector/SourceEditor.swift"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"566718e5ce1c6abe427803fffa3a2d9f7757db158301d1ed0b9379881b1e6c46"}},{"ruleId":"D2","level":"warning","message":{"text":"XcodeInspector.setActiveXcode (cognitive 17): XcodeInspector.setActiveXcode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 4 (5 pts), boolean chains 2 (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":"Tool/Sources/XcodeInspector/XcodeInspector.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e68624a6437558710d292f3e9143b5f9d89b76357f642ed742bc9bf1aaa2b6cc"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatService.requestThinkingTitle (cognitive 16): ChatService.requestThinkingTitle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 3 (4 pts), boolean chains 3, 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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3429db6da8b0faef4bb1c8e281a90b5e05d009594f59d67e29e1f5e0a0e3c9b"}},{"ruleId":"D2","level":"warning","message":{"text":"InputAreaTextEditor.subscribeToActiveDocumentChangeEvent (cognitive 16): InputAreaTextEditor.subscribeToActiveDocumentChangeEvent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Views/ChatPanelInputArea/InputAreaTextEditor.swift"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac85995c7fd9506a316d994c1dec43da0f1fb00faa64cb373354627d7873ac9"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpandableFileListView.fileRow (cognitive 16): ExpandableFileListView.fileRow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 1 (3 pts), ternaries 3, boolean chains 2 (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":"Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ExpandableFileListView.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e504cca78a4ed2a57d832f5c1833a914be34f85b0436dc4c641cdbecd48be9e"}},{"ruleId":"D2","level":"warning","message":{"text":"ToolStatusItemView.body (cognitive 16): ToolStatusItemView.body has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 8. 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":"Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e29d3f26de44c2a4a0f3b68c7225d8f4beac6029417ddff1042b67e74ab8d9a"}},{"ruleId":"D2","level":"warning","message":{"text":"GitHubCopilotViewModel.waitForSignIn (cognitive 16): GitHubCopilotViewModel.waitForSignIn has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2, match/switch 1 (2 pts), boolean chains 1 (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":"Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"997dfe587ee35196378a401f7ac2ed0e88f79d4a93db4d1c32a4ca0954486d8c"}},{"ruleId":"D2","level":"warning","message":{"text":"BuiltInToolsListView.reloadModesAndUpdateStates (cognitive 16): BuiltInToolsListView.reloadModesAndUpdateStates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 1 (4 pts), error handling 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":"Core/Sources/HostApp/ToolsSettings/BuiltInToolsListView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b978545a14e06130b3b4af6eb35b87cf6ef91f9715b26e61bc0ebc328c2d91"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPServerToolsSection.reloadModesAndUpdateStates (cognitive 16): MCPServerToolsSection.reloadModesAndUpdateStates has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 1 (4 pts), error handling 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":"Core/Sources/HostApp/ToolsSettings/MCPServerToolsSection.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"d810c2c1fc419d6cb635063191dbad5cb156d3870302da0fc0d79eb49377ddef"}},{"ruleId":"D2","level":"warning","message":{"text":"PseudoCommandHandler.generateRealtimeSuggestions (cognitive 16): PseudoCommandHandler.generateRealtimeSuggestions has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa479dae1197f70f59a439e00abf753537845331683d4618fcc3d1fb7f8d72a9"}},{"ruleId":"D2","level":"warning","message":{"text":"CopilotLanguageModelToolManager.updateToolsStatus (cognitive 16): CopilotLanguageModelToolManager.updateToolsStatus has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2, boolean chains 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":"Tool/Sources/GitHubCopilotService/LanguageServer/CopilotLanguageModelToolManager.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cbbdc1b69bedfc87b693a02908336bb1bf66d9a4160b930e84e609432b7823a"}},{"ruleId":"D2","level":"warning","message":{"text":"QuotaView.addSubviewsToHierarchy (cognitive 16): QuotaView.addSubviewsToHierarchy has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5 (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":"Tool/Sources/StatusBarItemView/QuotaView.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a00e1724af9dd6b0c88507233df1d60ab501d0830da0ef3aa731d0992c2195a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Chat.body: MethodTooLong \u2014 body runs 560 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 460 over it, 5.60\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":"Core/Sources/ConversationTab/Chat.swift"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"88420e1db62db84ea07deef11a850a6c2b2385fc5c5373383491dba86266f5b8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatPanelFeature.body: MethodTooLong \u2014 body runs 251 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 151 over it, 2.51\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":"Core/Sources/SuggestionWidget/FeatureReducers/ChatPanelFeature.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c82f35b6a50062acd3127aad4efdf2f6a1dc41bce1a6932d1a90fc63bb9d993"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: LanguageServer/GitHubCopilotService.swift: FileTooLong \u2014 1143 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: GitHubCopilotService (442-1606). The bar is 500 significant lines; this is 643 over it, 2.29\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":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"931e1090097e02a5f9ac681881d35a06533cdab4f31a1944d2d2a164fd20775e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Chat: ClassTooLong \u2014 896 significant lines (blank, comment-only and punctuation-only lines excluded), 0 methods. The bar is 400 significant lines; this is 496 over it, 2.24\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":"Core/Sources/ConversationTab/Chat.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc18100bab5200ab830e0d08efdc7b0251baf7e082e2f52018b828a4e31fa5e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatService: TooManyMethods \u2014 67 methods, declared across 4 files: ChatService/ChatService.swift (58), Extensions/ChatService\u002BFileEdit.swift (5), ToolCalls/ClientToolConfirmationEventHandler.swift (3), ToolCalls/ICopilotTool.swift (1). The bar is 30 methods; this is 37 over it, 2.23\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9daa93a4c4594ce100da8a82072dc72d7efc318de6b6455cf8ca66bac4f0206"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GitHubCopilotService: TooManyMethods \u2014 67 methods. The bar is 30 methods; this is 37 over it, 2.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef5cbda6ac8e1b997e45bb68bde4c91e166322776035f4612a1eb6d98419267"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ConversationTab/Chat.swift: FileTooLong \u2014 1095 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: Chat (180-1502). The bar is 500 significant lines; this is 595 over it, 2.19\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":"Core/Sources/ConversationTab/Chat.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee01f1cf0b07f24db58050ca7814c97bb5d47530e4bf6f390559de672e28d55e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WidgetFeature.body: MethodTooLong \u2014 body runs 214 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 114 over it, 2.14\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":"Core/Sources/SuggestionWidget/FeatureReducers/WidgetFeature.swift"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6a13721724a351583caf12416a16c8557af5ca4b798cc2fe989a51459fec78"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ChatService/ChatService.swift: FileTooLong \u2014 1045 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: ChatService (63-1310). The bar is 500 significant lines; this is 545 over it, 2.09\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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37180839f066c0c0e3f14baeb5c6cf73645e352819662935df664781ef62208"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: GitHubCopilotService: ClassTooLong \u2014 805 significant lines (blank, comment-only and punctuation-only lines excluded), 67 methods. The bar is 400 significant lines; this is 405 over it, 2.01\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":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"966c592b33046c6cd6ca9a0f7ea96ae52dadd6b05f78730c2ea77525ae93838f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatService: ClassTooLong \u2014 775 significant lines (blank, comment-only and punctuation-only lines excluded), 67 methods. The bar is 400 significant lines; this is 375 over it, 1.94\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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd70da5d6061c39daa6961045ac49191d851f6c1370ae0636e9772c157a2a7c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentConfigurationWidgetView: ClassTooLong \u2014 773 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 373 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":"Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37df78daeaae984249a8d7f25e2cc6325a0bb8cdcb52d623121359509021ca1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SuggestionWidget/WidgetWindowsController.swift: FileTooLong \u2014 942 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 442 over it, 1.88\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":"Core/Sources/SuggestionWidget/WidgetWindowsController.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0815664e24e989e64a38629d4329cebc1038e559901df99768758a855c6689"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: XcodeThemeParser.parseXCColorTheme: MethodTooLong \u2014 parseXCColorTheme runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\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":"Core/Sources/XcodeThemeController/XcodeThemeParser.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2664a47fdd2389b839f7409860d1726bc9d2f6d3f553f6d8569b4c1f34a944"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: XPCExtensionService: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\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":"Tool/Sources/XPCShared/XPCExtensionService.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cf1ab81fcbde25e4489a08b1e873688a1f228b0cf8fd7629d7c02680d3fd7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: SuggestionWidget/AgentConfigurationWidgetView.swift: FileTooLong \u2014 792 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: AgentConfigurationWidgetView (25-1190). The bar is 500 significant lines; this is 292 over it, 1.58\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":"Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca6dbee43bdf5ea6d376677912ad24b2ff1387b715d06d64805c24faf12694cd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: XPCService: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\u00D7 the bar. Most of these members implement Tool~XPCShared.XPCServiceProtocol (43 of 44 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/XPCService.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e12c7bc389af3fdb2a1d60089e5f4231dc5efa700ff6e415be12d32e3ff7eda"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: WidgetWindowsController: TooManyMethods \u2014 43 methods, declared across 5 files: SuggestionWidget/WidgetWindowsController.swift (26), Extensions/WidgetWindowsController\u002BNES.swift (7), Extensions/WidgetWindowsController\u002BFixErrorPanel.swift (5), Extensions/WidgetWindowsController\u002BAgentConfigurationWidget.swift (3), \u002B1 more file(s). The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Core/Sources/SuggestionWidget/WidgetWindowsController.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e25b9931400c561a3af36eb44afe75f70f9c621e60e9864c135f18ef694e540"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LanguageIdentifier.fileExtensions: MethodTooLong \u2014 fileExtensions runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\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":"Tool/Sources/SuggestionBasic/LanguageIdentifierFromFilePath.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3043d1815774dfb338d8de0a31b9062959e3d98fa359e2653f3a63bfdf4849c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QuotaView: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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":"Tool/Sources/StatusBarItemView/QuotaView.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"7821948ff2b0efe9c242d6cf556d95953dab62a22af63d3d205fdfa94d331775"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PanelFeature.body: MethodTooLong \u2014 body runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\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":"Core/Sources/SuggestionWidget/FeatureReducers/PanelFeature.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd06d7d09466d5d218548ebb259ee509187e8dff9d4b2f4b9f87b71b2db5686"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GUI.body: MethodTooLong \u2014 body runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\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":"Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"58030570ec7b10142e20db3c79502d408fa175cef383c199f117d4d1b1c5788f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: XPCService: ClassTooLong \u2014 496 significant lines (blank, comment-only and punctuation-only lines excluded), 44 methods. The bar is 400 significant lines; this is 96 over it, 1.24\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":"Core/Sources/Service/XPCService.swift"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41a90cd0f48ced468ebb305228a325a16de9eb61ee85de51d96d3dd76924e8b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ConversationServiceProvider/LSPTypes.swift: FileTooLong \u2014 586 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 86 over it, 1.17\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":"Tool/Sources/ConversationServiceProvider/LSPTypes.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56b4894189140d41878e107ae4c65cbbec959e48e07b3f8293355a6485bce20"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: XPCShared/XPCExtensionService.swift: FileTooLong \u2014 586 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 86 over it, 1.17\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":"Tool/Sources/XPCShared/XPCExtensionService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2f0137348a1fdee433680a5829d2761d82b98e8a020ae1715ab3d0fcb388cb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: View: TooManyMethods \u2014 35 methods, declared across 20 files: ConversationTab/ViewExtension.swift (8), ConversationTab/Styles.swift (4), ScaledComponent/ScaledModifier.swift (3), ConversationAgentProgressView/ToolStatusItemView.swift (2), \u002B16 more file(s). The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Core/Sources/ConversationTab/Styles.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e795ef532ccb45052911816b129192379df5992f7062a352cac5a52cceae9e99"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FixErrorPanelFeature.body: MethodTooLong \u2014 body runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\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":"Core/Sources/SuggestionWidget/FeatureReducers/FixErrorPanelFeature.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"91e97871845689648af56b91afd478fc2caf8a679e99e7310ce0c010a448b566"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ModelPickerDetailPanel.show: MethodTooLong \u2014 show runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\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":"Core/Sources/ConversationTab/ModeAndModelPicker/ModelPicker/ModelPickerDetailPanel.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"a51b52e1aa26e24455fb0767ae1dd499cd8f9d465a0f261dd55e739f026faf9c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InputAreaTextEditor.body: MethodTooLong \u2014 body runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\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":"Core/Sources/ConversationTab/Views/ChatPanelInputArea/InputAreaTextEditor.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9f14892b153b2a118f007fe626ba092f3cf1d702922fda725826ce9abcf9929"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDelegate.buildStatusBarMenu: MethodTooLong \u2014 buildStatusBarMenu runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ExtensionService/AppDelegate\u002BMenu.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec85e4f03b1938044c083fead5759eb95db9f0cf166ab37c084ccda71f8622a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: InputAreaTextEditor: ClassTooLong \u2014 441 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 41 over it, 1.10\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":"Core/Sources/ConversationTab/Views/ChatPanelInputArea/InputAreaTextEditor.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28325d4cc7f69b9f295d5ac19c20a2d9e815bc2214f96138089a2e7bdbeb6a0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ToolAutoApprovalManager: TooManyMethods \u2014 33 methods, declared across 2 files: AutoApproval/ToolAutoApprovalManager.swift (20), AutoApproval/ToolAutoApprovalParsingHelpers.swift (13). The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. 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":"Core/Sources/ChatService/ToolCalls/AutoApproval/ToolAutoApprovalManager.swift"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfc673947a58cc700042e1844099a05dcbc2aad1dcf86fa0173682b401c99ee"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ModelPickerDetailPanel: ClassTooLong \u2014 436 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 36 over it, 1.09\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":"Core/Sources/ConversationTab/ModeAndModelPicker/ModelPicker/ModelPickerDetailPanel.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1bf7c68bd6e7db7c8d6ca3c9d2e27998c23021d33ab398c884b5f2b9e77ac3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: GitHubCopilotRequestTypes/MCPRegistry.swift: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 38 over it, 1.08\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":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2826b2499f6ee0514f76d617c124951dd4d964bd116807e39d62c0feb5be09"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HorizontalMovable.framesForWindows: MethodTooLong \u2014 framesForWindows runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"Core/Sources/SuggestionWidget/WidgetPositionStrategy.swift"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"db12258d6cc9a3ef24cca394f5f3fb25a6583001da04ead7f4ab91fb661b9098"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ConversationTab/ChatPanel.swift: FileTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 30 over it, 1.06\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":"Core/Sources/ConversationTab/ChatPanel.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de89c7dfdb6add0946e314e122e07f195da9196807f6fff441f1bfebd8542fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Service/XPCService.swift: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: XPCService (15-766). The bar is 500 significant lines; this is 13 over it, 1.03\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":"Core/Sources/Service/XPCService.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a13b0799139d69b4d511c11c06c6e9632b5c84c9ba80b3de26b42e9b27c464"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomJSONRPCServerConnection.sendRequest: MethodTooLong \u2014 sendRequest runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"Tool/Sources/GitHubCopilotService/LanguageServer/CustomJSONRPCServerConnection.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d61c05d37f8ae0e8ea48357853de07bc132954a7f7c0b96a0dc65687f29563"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: StatusBarItemView/QuotaView.swift: FileTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 5 over it, 1.01\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":"Tool/Sources/StatusBarItemView/QuotaView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2679cd7104d7dd19c5382a01332d1e20aadd44d46e2f0897af077df5fac1262f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (22 members, 50\u002B identical tokens): Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:367-371 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:439-443 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:453-457 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:465-469 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:479-483 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:493-497 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:507-511 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:531-535 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:545-549 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:557-561 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:589-593 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:601-605 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:613-617 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:627-631 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:641-645 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:655-659 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:667-671 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:679-683 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:691-695 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:703-707 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:715-719 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:728-732 \u2014 These 22 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 22 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 22 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"979f9ebe3254f2a8ffc65891ce2137e271e840b96d788a68a9aba51b36a6dff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Tool/Sources/HostAppActivator/HostAppActivator.swift:42-60 | Tool/Sources/HostAppActivator/HostAppActivator.swift:62-89 | Tool/Sources/HostAppActivator/HostAppActivator.swift:91-110 | Tool/Sources/HostAppActivator/HostAppActivator.swift:112-130 | Tool/Sources/HostAppActivator/HostAppActivator.swift:132-150 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/HostAppActivator/HostAppActivator.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d79e79e6b6349282c0d8978caa5ed580f60eb534afd4f3a2ddba0f1c53dd7b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:269-275 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:285-291 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:337-341 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:351-357 \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":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"678ed0763fd87993e217c62266b1b8cb5e53745561ef9131809689004deb6544"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): Core/Sources/Service/XPCService.swift:335-391 | Core/Sources/Service/XPCService.swift:480-551 \u2014 These two members are one piece of code written twice and then edited apart: 57 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":"Core/Sources/Service/XPCService.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"196d2972fed0a908a78e5e1f4b14622fab01ae7b9c96221b84d51cf21c052fa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Tool/Sources/SuggestionBasic/Modification.swift:10-51 | Tool/Sources/SuggestionBasic/Modification.swift:61-110 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"Tool/Sources/SuggestionBasic/Modification.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73ab1d71a7a5797fc7fc1154b20672a89518f932cd5d04bd8acc7b921321647"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): Core/Sources/ConversationTab/Chat.swift:46-90 | Tool/Sources/ChatAPIService/Models.swift:191-247 \u2014 These two members are one piece of code written twice and then edited apart: 45 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":"Core/Sources/ConversationTab/Chat.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"582d0386d226ac3f5ff44969797135b390b65ae852d9e06b05c51f1a54c2b42c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Core/Sources/SuggestionWidget/ChatWindow/ChatHistoryView.swift:259-281 | Core/Sources/SuggestionWidget/ChatWindowView.swift:689-714 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"Core/Sources/SuggestionWidget/ChatWindow/ChatHistoryView.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"7030984ab1d4819598a576f456cf25c3b82e35442026ba4a2fdf769927d6c48b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift:44-88 | Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift:90-130 \u2014 These two members are one piece of code written twice and then edited apart: 41 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":"Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"221fa6c92bf152603d9cbac329820e485db2a5e7c03f6e6a819f3206ab1c5078"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): Core/Sources/SuggestionWidget/ChatWindow/ChatNoAXPermissionView.swift:8-49 | Core/Sources/SuggestionWidget/ChatWindow/ChatNoSubscriptionView.swift:10-63 \u2014 These two members are one piece of code written twice and then edited apart: 42 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":"Core/Sources/SuggestionWidget/ChatWindow/ChatNoAXPermissionView.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb14771edb08670d158f07dd27935151ae33be110aba35215eaabb302d8b854"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift:176-211 | Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift:213-246 \u2014 These two members are one piece of code written twice and then edited apart: 34 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":"Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5a580e04da79ca387dabfd138c0d4cdacdf50709b67b73c32411c14b444033"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift:295-315 | Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift:334-354 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"f939b998925754fb7b29673e46866aeeddc40fcfe6c6923c30e89e37b213f13b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): Tool/Sources/ConversationServiceProvider/ConversationServiceProvider.swift:356-390 | Tool/Sources/ConversationServiceProvider/LSPTypes.swift:800-836 \u2014 These two members are one piece of code written twice and then edited apart: 35 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":"Tool/Sources/ConversationServiceProvider/ConversationServiceProvider.swift"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"e070a9dc90876b3d7b7c36437c931f546ee09865c3bf09246abc918e58801aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift:278-293 | Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift:317-332 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"925132b35cd65f431ace57ab522dffb6ab566d14b8358db6c0ffc1b6acf7f12d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Tool/Sources/XPCShared/XPCExtensionService.swift:423-448 | Tool/Sources/XPCShared/XPCExtensionService.swift:577-613 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Tool/Sources/XPCShared/XPCExtensionService.swift"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff9c350ba1a3533901fd3655d0eaf8dd58c3184b45d5b4f620d142f6806c2fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift:139-187 | Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift:189-228 \u2014 These two members are one piece of code written twice and then edited apart: 40 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":"Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"21aa9aa190eb3117554edee5940741ae6fdb2ba9c1e15f9bb20233132c0f119f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Core/Sources/HostApp/AdvancedSettings/ChatSection.swift:430-468 | Core/Sources/HostApp/AdvancedSettings/ChatSection.swift:494-532 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"Core/Sources/HostApp/AdvancedSettings/ChatSection.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d72e135004d1f714a4546e534e127b0a56b7440abe3974eb31541a624a9a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Core/Sources/HostApp/ToolsSettings/BuiltInToolsListView.swift:178-201 | Core/Sources/HostApp/ToolsSettings/MCPServerToolsSection.swift:419-449 \u2014 These two members are one piece of code written twice and then edited apart: 24 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":"Core/Sources/HostApp/ToolsSettings/BuiltInToolsListView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1bc483bbb87f6469286f0d562a5744c75b4f45099062dabf8eacde746a44af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Core/Sources/Service/XPCService.swift:231-250 | Core/Sources/Service/XPCService.swift:252-273 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/XPCService.swift"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"1177559cb41d1dea74392dc8d95d8df78ae792045653d8bcc160352486885b93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): Core/Sources/HostApp/CopilotPolicyManager.swift:57-84 | Core/Sources/HostApp/FeatureFlagManager.swift:59-88 \u2014 These two members are one piece of code written twice and then edited apart: 28 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":"Core/Sources/HostApp/CopilotPolicyManager.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db5d3f0d426a482927d82f2399b7e054cb0c8af015b4b58e2e109393ddf5691"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift:1290-1316 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift:1318-1346 \u2014 These two members are one piece of code written twice and then edited apart: 27 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":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ad3b91345ed0a730a1679c9b40f987a0a2b16988ca99c4e70f22a97d7a2b8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift:360-389 | Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift:391-420 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e39b045002b063023d6165a629f3fe68c6bb18290ffe39bf3c39e7c73a51f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Tool/Sources/GitHubCopilotService/Services/GitHubCopilotConversationService.swift:43-65 | Tool/Sources/GitHubCopilotService/Services/GitHubCopilotConversationService.swift:67-88 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"Tool/Sources/GitHubCopilotService/Services/GitHubCopilotConversationService.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"19463769ba1772d8c4b9860c5b83dc1bb1cc8ec5ead7a92f371b63561aaa401d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Core/Sources/HostApp/ToolsSettings/ToolRowView.swift:14-42 | Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift:1004-1029 \u2014 These two members are one piece of code written twice and then edited apart: 26 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":"Core/Sources/HostApp/ToolsSettings/ToolRowView.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20e9885406e88a04b7abe032d514ea773e3fbe62405a031eb2317e8e4387727"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift:416-437 | Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift:449-468 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"44174c93215399b025fde88be5fa02acdd594062234a40ab9462cd7366499e7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 20\u002B corresponding lines): Core/Sources/Service/XPCService.swift:395-416 | Core/Sources/Service/XPCService.swift:418-439 | Core/Sources/Service/XPCService.swift:626-645 | Core/Sources/Service/XPCService.swift:671-690 | Core/Sources/Service/XPCService.swift:692-711 | Core/Sources/Service/XPCService.swift:746-765 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 20 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/XPCService.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b94f35c36e86dd19282face1df6e16bd8bda341bdd784a37272f9a2a7dc639"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift:450-467 | Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift:469-485 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"304ef8f599c37ce027d018ad475c69424a8a50bcbba2d5efd7c3244cca5c6183"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Tool/Sources/GitHubCopilotService/Services/GitHubCopilotSuggestionService.swift:77-98 | Tool/Sources/GitHubCopilotService/Services/GitHubCopilotSuggestionService.swift:100-121 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"Tool/Sources/GitHubCopilotService/Services/GitHubCopilotSuggestionService.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3fae86940b5382e250a5f81f07e4af07333a50c5c47ccc555f557667e6e37a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Tool/Sources/Preferences/Types/AutoApprovedMCPServers.swift:20-35 | Tool/Sources/Preferences/Types/SensitiveFilesRules.swift:20-31 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/Preferences/Types/AutoApprovedMCPServers.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddec8823a85f11ab12b100d2f8d2138d00423a60c2418809e8c85b8ef33acd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Core/Sources/ConversationTab/TerminalViews/RunInTerminalToolView.swift:47-69 | Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift:16-39 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"Core/Sources/ConversationTab/TerminalViews/RunInTerminalToolView.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c59a419a294415f36e97a3b22d13f01f137cf0eac176dc0497870be1dba10b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Tool/Sources/StatusBarItemView/QuotaView.swift:529-552 | Tool/Sources/StatusBarItemView/QuotaView.swift:563-578 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"Tool/Sources/StatusBarItemView/QuotaView.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"734f320a4903b069294c38193ec5a685f0f8820abcc46567f0c46e1c0011a3dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 24\u002B corresponding lines): Tool/Sources/XPCShared/XPCExtensionService.swift:734-757 | Tool/Sources/XPCShared/XPCExtensionService.swift:759-782 | Tool/Sources/XPCShared/XPCExtensionService.swift:784-807 | Tool/Sources/XPCShared/XPCExtensionService.swift:809-832 | Tool/Sources/XPCShared/XPCExtensionService.swift:864-887 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/XPCShared/XPCExtensionService.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d414930af4843673dfedad08dc988dbf0c0e0b4d9c4ca3ad8709fef1238a218"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Tool/Sources/TelemetryService/TelemetryService.swift:74-96 | Tool/Sources/TelemetryService/TelemetryService.swift:99-121 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"Tool/Sources/TelemetryService/TelemetryService.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4737c390541ed180d4c802441d5f1e270e4ab8aec21fb14942a6c95ac533a4ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/Sources/ConversationTab/ModeAndModelPicker/ModePicker/AgentModeButton.swift:258-274 | Core/Sources/ConversationTab/ModeAndModelPicker/ModePicker/AgentModeButtonMenuItem.swift:228-244 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/ModeAndModelPicker/ModePicker/AgentModeButton.swift"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a693f949171dafc612018779487610c1b4fe8738b084207749bf53168e66ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Core/Sources/SuggestionWidget/Extensions/WidgetWindowsController\u002BFixErrorPanel.swift:25-47 | Core/Sources/SuggestionWidget/WidgetWindowsController.swift:108-130 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"Core/Sources/SuggestionWidget/Extensions/WidgetWindowsController\u002BFixErrorPanel.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c757126a75120ca354d354a45a0a22788a84121df9fb82ef7e243df3f2bb4331"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift:168-191 | Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift:193-216 \u2014 These two members are one piece of code written twice and then edited apart: 24 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":"Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eaf4846d3b957810f87a5b406247f966feb3b34d82b7cd81a9df645f7ab0781"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Core/Sources/ConversationTab/ModeAndModelPicker/ModePicker/AgentModeMenu.swift:83-104 | Core/Sources/ConversationTab/ModeAndModelPicker/ModePicker/AgentModeMenu.swift:106-137 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"Core/Sources/ConversationTab/ModeAndModelPicker/ModePicker/AgentModeMenu.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce441e77ae898242b098f063cf133f6dcf18987b29e8c1d68d6a22160e068df3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift:104-116 | Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift:154-166 \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":"Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e87036864ec30c2728ffdf5129cdd0679e2ff3200f84ddbcf5567067fc23f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Core/Sources/SuggestionService/SuggestionService.swift:46-66 | Core/Sources/SuggestionService/SuggestionService.swift:68-88 \u2014 These two members are one piece of code written twice and then edited apart: 21 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":"Core/Sources/SuggestionService/SuggestionService.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dd897998e691a9e51bed9364e9c41f98e3092bbebd05ee09a5c8e2c817ebe79"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/Sources/Service/XPCService.swift:441-453 | Core/Sources/Service/XPCService.swift:610-623 \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":"Core/Sources/Service/XPCService.swift"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4289523d4174b8f30e4f7e119470055b37fc7075e48a3ad4396d78ea8d602b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Core/Sources/KeyBindingManager/TabToAcceptSuggestion.swift:199-216 | Core/Sources/KeyBindingManager/TabToAcceptSuggestion.swift:218-235 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/KeyBindingManager/TabToAcceptSuggestion.swift"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"a57dd0c939ec8b9b7c3dd761d963eb784b7186ce1db55e11212b84f0d5ce680f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift:118-129 | Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift:168-179 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"73dcc9646ec80e54e1304245fdaf9ec9336cc40d3ee0e083f753ac239d585044"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): EditorExtension/AcceptNESSuggestionCommand.swift:10-31 | EditorExtension/AcceptPromptToCodeCommand.swift:9-30 | EditorExtension/AcceptSuggestionCommand.swift:10-31 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 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":"EditorExtension/AcceptNESSuggestionCommand.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"911c223bb375b7b3b196075c5b8fa4d6829849aafd66467a447904255849902c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Tool/Sources/Workspace/FileChangeWatcher/FileChangeWatcherService.swift:149-164 | Tool/Sources/Workspace/FileChangeWatcher/FileChangeWatcherService.swift:166-178 \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":"Tool/Sources/Workspace/FileChangeWatcher/FileChangeWatcherService.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"09809637996b8bca7dbc38d7c9656080cf4856a3dca4d2b010600c51693a276b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Tool/Sources/GitHubCopilotService/Services/GitHubCopilotSuggestionService.swift:22-39 | Tool/Sources/GitHubCopilotService/Services/GitHubCopilotSuggestionService.swift:41-54 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"Tool/Sources/GitHubCopilotService/Services/GitHubCopilotSuggestionService.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a859a53fcb636641657beb4e46242c3df75915a767ee719bd21c35cf3f78a6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Tool/Sources/SharedUIComponents/DownvoteButton.swift:13-27 | Tool/Sources/SharedUIComponents/UpvoteButton.swift:13-27 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/SharedUIComponents/DownvoteButton.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f4d82efb636dc26572ad50152caf1fc098da29fc7bae7b8151ed9ff22b8653"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 24\u002B corresponding lines): Tool/Sources/XPCShared/XPCExtensionService.swift:452-480 | Tool/Sources/XPCShared/XPCExtensionService.swift:482-510 | Tool/Sources/XPCShared/XPCExtensionService.swift:655-679 | Tool/Sources/XPCShared/XPCExtensionService.swift:708-731 | Tool/Sources/XPCShared/XPCExtensionService.swift:834-862 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/XPCShared/XPCExtensionService.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e027221405ebd389f8655316d918ab13db42a45fc7c1742dc1b3e538a09c44f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift:341-349 | Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift:351-359 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b63b6712371e8df0f78be3abcd2329b616e8a0e96eb305d9d36dffa10a11740"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Tool/Sources/XPCShared/XPCExtensionService.swift:376-399 | Tool/Sources/XPCShared/XPCExtensionService.swift:512-535 \u2014 These two members are one piece of code written twice and then edited apart: 24 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":"Tool/Sources/XPCShared/XPCExtensionService.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2b8b883dbea5f802bac5ceb6be27fa6b8e22ba17dd88d14fc263b586fa0a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift:230-246 | Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift:248-264 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cc382833f13959c2bc24aecdf5d14dfa5ccca6fb9550ebf8415c3014c9df5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift:114-124 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift:172-184 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift:220-232 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c53d55ae57af808bd193d60d8135e176ef09e8b55f699d2999934b75e97f440"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift:917-928 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift:1219-1242 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"583e321279aefd226b847e0672fef5ed1ff015fc44450007469d4acdc009e710"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Tool/Sources/GitHubCopilotService/Conversation/ShowMessageRequestHandler.swift:44-62 | Tool/Sources/GitHubCopilotService/Services/QuotaNotifier.swift:224-243 | Tool/Sources/GitHubCopilotService/Services/RateLimitNotifier.swift:80-99 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 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":"Tool/Sources/GitHubCopilotService/Conversation/ShowMessageRequestHandler.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"67084dac2dd07317b832c75fe3c3ae94f8d1a1ffc2ed457a6cfadb6aff73e98e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Tool/Sources/XcodeInspector/SourceEditor.swift:47-60 | Tool/Sources/XcodeInspector/SourceEditor.swift:66-83 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"Tool/Sources/XcodeInspector/SourceEditor.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a9ef0e60fc42f28e198d4ad148a85257825b6a63e98e03e8f72b39b31b83fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/Sources/ChatService/ToolCalls/AutoApproval/MCPApprovalStorage.swift:41-52 | Core/Sources/ChatService/ToolCalls/AutoApproval/MCPApprovalStorage.swift:66-77 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ChatService/ToolCalls/AutoApproval/MCPApprovalStorage.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3199760e3f22a9cba907be9bca335e8468cb5ea94ba9722106945f44954077a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/Sources/SuggestionWidget/NES/NESDiffView.swift:62-76 | Core/Sources/SuggestionWidget/NES/NESDiffView.swift:99-111 \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":"Core/Sources/SuggestionWidget/NES/NESDiffView.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6009de626a03b8175911b39bb0ddce1eee44130d0a15fd1a79269c99b2650ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Tool/Sources/Workspace/WorkspaceDirectoryIndex.swift:33-58 | Tool/Sources/Workspace/WorkspaceFileIndex.swift:31-52 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"Tool/Sources/Workspace/WorkspaceDirectoryIndex.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"873a9102a64799ea3537ad4ee9062304ebaf6ed631c38640a756677252bd9857"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Tool/Sources/SharedUIComponents/CustomTextEditor.swift:24-42 | Tool/Sources/SharedUIComponents/CustomTextEditor.swift:75-93 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/SharedUIComponents/CustomTextEditor.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a222f90d41fd755bee1e15ae6b7be6329478301782c2a5234b564082743fb5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): Core/Sources/SuggestionWidget/NES/NESMenu/NESMenuController.swift:137-150 | Core/Sources/SuggestionWidget/NES/NESMenu/NESMenuController.swift:209-226 \u2014 These two members are one piece of code written twice and then edited apart: 14 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":"Core/Sources/SuggestionWidget/NES/NESMenu/NESMenuController.swift"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e92f40a99bd8577295ca111cfb6783052bf9eefd291273b9d2fd717ef6a56cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Tool/Sources/Persist/AppState.swift:61-67 | Tool/Sources/Persist/ConfigPathUtils.swift:12-18 | Tool/Sources/Persist/ConfigPathUtils.swift:80-86 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 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":"Tool/Sources/Persist/AppState.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"dceb474c75c26034be21ca1c02e5fa8bd01da23c92b98de7ff067eed902982f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Tool/Sources/Persist/ConfigPathUtils.swift:12-18 | Tool/Sources/Persist/ConfigPathUtils.swift:80-86 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"Tool/Sources/Persist/ConfigPathUtils.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"354e3bf745d3052cc2456f6b1e5d6a0da56b691b1c938f9243d68734988bfb2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Tool/Sources/StatusBarItemView/QuotaView.swift:333-343 | Tool/Sources/StatusBarItemView/QuotaView.swift:345-356 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"Tool/Sources/StatusBarItemView/QuotaView.swift"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7365d835417275839060e3b14a4e177cc341aa614c6b25a5b69dd6257639a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 19\u002B corresponding lines): Tool/Sources/XPCShared/XPCExtensionService.swift:403-421 | Tool/Sources/XPCShared/XPCExtensionService.swift:537-555 | Tool/Sources/XPCShared/XPCExtensionService.swift:557-575 | Tool/Sources/XPCShared/XPCExtensionService.swift:615-633 | Tool/Sources/XPCShared/XPCExtensionService.swift:635-653 | Tool/Sources/XPCShared/XPCExtensionService.swift:688-706 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 19 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/XPCShared/XPCExtensionService.swift"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca16b94beae2eacb8cae943f26ad57bd13a337268d9fea9d8543723333a0145"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Core/Sources/ConversationTab/DiffViews/DiffWebView.swift:74-91 | Core/Sources/ConversationTab/DiffViews/DiffWebView.swift:146-164 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/DiffViews/DiffWebView.swift"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4475a25eb80b857fe973c33f86be84e9a34a3d42e1349c102308a52797e882a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Tool/Sources/ConversationServiceProvider/ConversationServiceProvider.swift:283-292 | Tool/Sources/TelemetryServiceProvider/TelemetryServiceProvider.swift:124-133 \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":"Tool/Sources/ConversationServiceProvider/ConversationServiceProvider.swift"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb381b24535e084fb42924600ea9a5e0ebc54bd32534cf9b0133d05453f4b7fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Tool/Sources/Workspace/OpenedFileRocoverableStorage.swift:13-21 | Tool/Sources/Workspace/OpenedFileRocoverableStorage.swift:23-31 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/Workspace/OpenedFileRocoverableStorage.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"796d51c14cf6c7cb7bed28d5ac564dd0c7b8c44d79f19d7421b0a8e060375134"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/Sources/ChatService/ToolCalls/AutoApproval/MCPApprovalStorage.swift:120-132 | Core/Sources/ChatService/ToolCalls/AutoApproval/MCPApprovalStorage.swift:134-146 \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":"Core/Sources/ChatService/ToolCalls/AutoApproval/MCPApprovalStorage.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d8eccc565068ead0ec7941a061dbc72f4a54dad753f06d31ee2f7fd5f07e2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift:239-248 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift:356-367 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift:389-404 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 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":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b728965d1459febeb4a682bdf2dc41497be6d3c50666cf061dcceac7d5c83a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Tool/Sources/SuggestionProvider/PostProcessingSuggestionServiceMiddleware.swift:7-21 | Tool/Sources/SuggestionProvider/PostProcessingSuggestionServiceMiddleware.swift:23-38 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/SuggestionProvider/PostProcessingSuggestionServiceMiddleware.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c185d71891da15032ebe79f6f73f0a1a3dd5c15a652d339e052ece37d5e170f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/Sources/ChatService/ToolCalls/AutoApproval/SensitiveFileApprovalStorage.swift:33-45 | Core/Sources/ChatService/ToolCalls/AutoApproval/SensitiveFileApprovalStorage.swift:64-72 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ChatService/ToolCalls/AutoApproval/SensitiveFileApprovalStorage.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8468dd1dd74c6b4711f14a013814b22532de2d244626c89ce97f07ee94fa01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): ExtensionService/AppDelegate\u002BMenu.swift:313-324 | ExtensionService/AppDelegate\u002BMenu.swift:326-337 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ExtensionService/AppDelegate\u002BMenu.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"64693c8f8aa69e3292d425337f216bee7b79f82aaeea7e4b504e7db6b49b4445"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Tool/Sources/ChatTab/ChatTab.swift:41-52 | Tool/Sources/ChatTab/ChatTab.swift:55-65 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"Tool/Sources/ChatTab/ChatTab.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfc9dadc2cd860a385e2d90bc413c55dc17285aac69d39d010ce98e67b00638"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift:24-37 | Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift:39-52 | Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift:266-279 | Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift:281-294 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1428046872276826d2a1bae964bf6200d5db2ed613b335c712b8959456337af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/Sources/SuggestionWidget/NES/NESDiffView.swift:78-91 | Core/Sources/SuggestionWidget/NES/NESDiffView.swift:113-123 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"Core/Sources/SuggestionWidget/NES/NESDiffView.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da452b294feaea46698214e7788185e717cf5b8a7b7362526d700db9301c215"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Tool/Sources/BuiltinExtension/BuiltinExtensionSuggestionServiceProvider.swift:42-54 | Tool/Sources/BuiltinExtension/BuiltinExtensionSuggestionServiceProvider.swift:56-67 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/BuiltinExtension/BuiltinExtensionSuggestionServiceProvider.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a46214fc6bf98691bdcd316428f2ff61196a83a792afd51329f15ed7bacdcfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Tool/Sources/StatusBarItemView/AccountItemView.swift:115-123 | Tool/Sources/StatusBarItemView/AccountItemView.swift:125-133 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/StatusBarItemView/AccountItemView.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"048b98f7cb765e408d6747b36daa65ffc54f31a9c31ac3f312132538830d2a75"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/Sources/ConversationTab/Chat.swift:1554-1565 | Tool/Sources/CustomAsyncAlgorithms/TimedDebounce.swift:16-28 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Chat.swift"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a977499dc09c2ee5eca08c2790745de668764ba720d6b2e8f2564a1286feaa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Tool/Sources/ChatTab/ChatTab.swift:138-148 | Tool/Sources/ChatTab/ChatTab.swift:152-162 | Tool/Sources/ChatTab/ChatTab.swift:187-197 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/ChatTab/ChatTab.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e76e4625fc8387786d986e8961eb50416b8bbe793629c791269100777879b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift:201-211 | Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift:251-264 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9f95b3cbda2753dcfb1108ae1ec02ce1d46eb859d939e64f5a8df07a05804f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 11\u002B corresponding lines): Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:11-23 | Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:94-105 | Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:107-118 | Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:120-130 | Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:132-142 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77aee6d9b1b16e9d976ae07aef2ee372d55aa46edbd8ffc8c01649259233966"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 9\u002B corresponding lines): Core/Sources/ConversationTab/ChatPanel.swift:740-748 | Core/Sources/ConversationTab/ChatPanel.swift:752-760 | Core/Sources/ConversationTab/ChatPanel.swift:764-779 | Core/Sources/ConversationTab/ChatPanel.swift:783-791 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/ChatPanel.swift"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"56957bdeb8781b550b86df05f8376d044c01ed660b837e31692c2082cbf27e2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ConversationAgentProgressView.swift:510-514 | Core/Sources/ConversationTab/Views/FunctionMessage.swift:154-162 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ConversationAgentProgressView.swift"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6b206c14379380d8c3bf0ebe5041a5bc5379452e7feca1a6bbcaa94d024e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Core/Sources/HostApp/ToolsSettings/CopilotBuiltInToolManagerObservable.swift:14-29 | Core/Sources/HostApp/ToolsSettings/CopilotMCPToolManagerObservable.swift:14-31 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"Core/Sources/HostApp/ToolsSettings/CopilotBuiltInToolManagerObservable.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43c3c7a3268bf43476f67e3ec6591dbb91088321537dc0dfcc49c0b7f4f99f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift:89-103 | Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift:116-130 | Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift:143-152 | Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift:165-174 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"633c9ab29471f305f5d4ff3c8d73f21be4b642ee880e15ef3bead470faef4e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Tool/Sources/GitHubCopilotService/GitHubCopilotExtension.swift:70-80 | Tool/Sources/GitHubCopilotService/GitHubCopilotExtension.swift:82-92 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"Tool/Sources/GitHubCopilotService/GitHubCopilotExtension.swift"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"95162a48bdc2fc859bfa6b3b4906ac989e2f4e084288564b9133ef5cd29bc985"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift:102-112 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift:158-170 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift:206-218 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"04109df6388607be7aa6969e95e041d2bee645799a8ecbc963c69281a514668e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/Sources/HostApp/ToolsSettings/AutoApprove/AutoApprovalDisableView.swift:8-24 | Core/Sources/HostApp/ToolsSettings/MCPIntroView.swift:14-34 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/HostApp/ToolsSettings/AutoApprove/AutoApprovalDisableView.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5785f2c488ae7d958b49a1f3171245f8e67166f9f79b5f26ff3768a532e8a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift:395-402 | Core/Sources/HostApp/ToolsSettings/MCPRegistry/ServerInstallationOptionView.swift:164-169 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0eb741f55449f81eebb5db2ffa9e25187b23f601383ade5f4600a61923b5c2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Tool/Sources/Logger/Logger.swift:112-127 | Tool/Sources/Logger/Logger.swift:129-145 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"Tool/Sources/Logger/Logger.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"886b8f21bbcdf42affa28fdc0db0e15a4cfd32fd4964ee4bbf19522faf382b83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Tool/Sources/Persist/Storage/ConversationStorage/Model.swift:12-20 | Tool/Sources/Persist/Storage/ConversationStorage/Model.swift:32-40 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/Persist/Storage/ConversationStorage/Model.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9069c27434ac5be96d21b27625c54123eafb9437037d01905c55ca75609d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Tool/Sources/GitHubCopilotService/LanguageServer/CustomJSONRPCServerConnection.swift:194-204 | Tool/Sources/GitHubCopilotService/LanguageServer/CustomJSONRPCServerConnection.swift:264-273 \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":"Tool/Sources/GitHubCopilotService/LanguageServer/CustomJSONRPCServerConnection.swift"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"567e5491053124fdc658d9de8eec94e224bd9d95bf68f1d22dbe833e6284e8ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Tool/Sources/GitHubCopilotService/Services/GitHubCopilotConversationService.swift:112-117 | Tool/Sources/GitHubCopilotService/Services/GitHubCopilotConversationService.swift:119-126 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"Tool/Sources/GitHubCopilotService/Services/GitHubCopilotConversationService.swift"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fa83d7f420081bb4a38c3656e6d98a20ceff8ea635dc87f155c2aff3872055"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Tool/Sources/Persist/Storage/ConversationStorageService.swift:87-98 | Tool/Sources/Persist/Storage/ConversationStorageService.swift:114-126 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/Persist/Storage/ConversationStorageService.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58232da8c21fc1379d437575d4b3ff6bdbe6c29ba3f1617a4829d0c9ec026a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Tool/Sources/WorkspaceSuggestionService/SuggestionWorkspacePlugin.swift:32-49 | Tool/Sources/WorkspaceSuggestionService/SuggestionWorkspacePlugin.swift:51-61 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"Tool/Sources/WorkspaceSuggestionService/SuggestionWorkspacePlugin.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae49ed9defe3a3cbc4770011749d2e3ca366b8ed08b2492a5aaf776dc04092ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Core/Sources/ConversationTab/ChatContextMenu.swift:45-53 | Core/Sources/ConversationTab/ChatContextMenu.swift:56-64 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/ChatContextMenu.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc10022bab8a2208d4887d56cf4999ad700b2bce3df1a999b14c273a5654d28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/Sources/ConversationTab/TerminalViews/RunInTerminalToolView.swift:313-317 | Core/Sources/ConversationTab/TerminalViews/RunInTerminalToolView.swift:337-344 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/TerminalViews/RunInTerminalToolView.swift"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"c723cf805b4472b63c96951dbf373ec5a9d25f1d8972b55ebb1c9c0551abfb93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/Sources/HostApp/SharedComponents/Badge.swift:42-49 | Core/Sources/HostApp/SharedComponents/Badge.swift:51-58 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"Core/Sources/HostApp/SharedComponents/Badge.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"112eb1bf0f1fab1cb2954a459ecf35107c94fcb73c4f27aab424ccd34ab62c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift:288-298 | Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift:1159-1173 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cef456103beb01a694f7ab860706ab3ef2a54b992f0db4d504d08557de154eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Tool/Sources/AXExtension/AXUIElement.swift:297-304 | Tool/Sources/AXExtension/AXUIElement.swift:306-322 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e87a848062a63444fd63b55546162d8b04aa6717f1677aea0b9508d659930d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPRegistryURLInputField.swift:22-36 | Tool/Sources/Workspace/FileChangeWatcher/SingleFileWatcher.swift:15-27 \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":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPRegistryURLInputField.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"428c0860ba196cf27beb53dd93e77bbbce7f3d7f4ddd3ce718430c4c3f6815f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (8 members, 11\u002B corresponding lines): Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:59-72 | Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:74-92 | Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:144-155 | Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:157-168 | Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:170-181 | Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:192-203 | Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:205-216 | Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:218-228 \u2014 These 8 members are one piece of code written 8 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 8 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2cdf02c1fca37b388ec66fe5b894fceac3a5ee964fd7410a9030200e809eecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): EditorExtension/OpenChat.swift:9-24 | EditorExtension/ToggleRealtimeSuggestionsCommand.swift:9-24 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"EditorExtension/OpenChat.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"083486a8c4e61b13572589f744cd7abbb85e949f96c10863be1c930f81a2550e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): Tool/Sources/Preferences/UserDefaults.swift:161-168 | Tool/Sources/Preferences/UserDefaults.swift:170-178 | Tool/Sources/Preferences/UserDefaults.swift:236-244 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 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":"Tool/Sources/Preferences/UserDefaults.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef26a5fec7074438ba277c374eb3bbc627dc69c494ba23cf6f80c44be5780e4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Core/Sources/ConversationTab/ModeAndModelPicker/ModePicker/AgentModeButtonMenuItem.swift:354-365 | Core/Sources/ConversationTab/ModeAndModelPicker/ModePicker/AgentModeButtonMenuItem.swift:367-378 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/ModeAndModelPicker/ModePicker/AgentModeButtonMenuItem.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28a55b7a367b5e8ee5c2c0cdcf2d543459c74be85cd8fba4735f93a8ae25014"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Core/Sources/Service/TelemetryLogger.swift:6-22 | Core/Sources/Service/TelemetryLogger.swift:24-41 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/TelemetryLogger.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2b1daee8c29ac69dd9fbf89f40f1a7de834149b37fa820cc68e588ce754787"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): ExtensionService/AppDelegate.swift:292-303 | ExtensionService/AppDelegate.swift:401-413 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ExtensionService/AppDelegate.swift"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b0d20f003d30893a452336693f42b96dd39199c459eb72a3888dc0017b3349"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/Sources/HostApp/ToolsSettings/AppState\u002BLanguageModelTools.swift:8-15 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift:1395-1402 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"Core/Sources/HostApp/ToolsSettings/AppState\u002BLanguageModelTools.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"eccfa618b3821bed2ebc8f649face262efd2541896330bf4aa4791bc10d73be6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Core/Sources/ConversationTab/ModeAndModelPicker/ModePicker/AgentModeMenu.swift:157-164 | Core/Sources/ConversationTab/ModeAndModelPicker/ModelPicker/ModelPickerMenu.swift:169-175 \u2014 These two members are one piece of code written twice and then edited apart: 7 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":"Core/Sources/ConversationTab/ModeAndModelPicker/ModePicker/AgentModeMenu.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"502de30897fcb2b26ce25f0c00dde1eeca36d802bc2e1e93983d67b7a745bf66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift:644-649 | Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift:837-843 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"Core/Sources/SuggestionWidget/AgentConfigurationWidgetView.swift"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"151eddba31caba273e706f978dc1b9e9b20350867602faf5b67c9da78049bc65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Tool/Sources/GitHubCopilotService/Services/CopilotPolicyNotifier.swift:45-52 | Tool/Sources/GitHubCopilotService/Services/FeatureFlagNotifier.swift:111-119 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"Tool/Sources/GitHubCopilotService/Services/CopilotPolicyNotifier.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ddf0f8f3e4e5618d5cf75bcbae722ceaa28607a6e4e5796fb37659d8e2ae72e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Core/Sources/HostApp/CopilotPolicyManager.swift:46-55 | Core/Sources/HostApp/FeatureFlagManager.swift:48-57 \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":"Core/Sources/HostApp/CopilotPolicyManager.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6fae289f862d6f26a61559470bab8f30933135f3fe0e757d2265a3482786f0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Tool/Sources/ConversationServiceProvider/ConversationServiceProvider.swift:294-302 | Tool/Sources/TelemetryServiceProvider/TelemetryServiceProvider.swift:143-151 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/ConversationServiceProvider/ConversationServiceProvider.swift"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bfe8b321d6711cf579ddd708bc0b2efac2b6d934401fbf3205ecb4784a541ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Tool/Sources/Preferences/UserDefaults.swift:146-151 | Tool/Sources/Preferences/UserDefaults.swift:293-299 \u2014 These two members are one piece of code written twice and then edited apart: 6 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":"Tool/Sources/Preferences/UserDefaults.swift"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"012b88ea8fa4c4882cc529c1787c9052f2f6acc8cc280a37ca6c9ed372185b40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Tool/Sources/ConversationServiceProvider/LSPTypes.swift:232-242 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCP.swift:164-174 \u2014 These two members are one piece of code written twice and then edited apart: 11 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":"Tool/Sources/ConversationServiceProvider/LSPTypes.swift"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"685602cd4821c1834749b9b92a3f95d5e1c22cb319e08faedd2708cc2cc25112"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:765-767 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCP.swift:133-135 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ffe4bc1ff3cbf873877f885dc2bcfe6a42e4fe895c0fae1c2e2286adf11b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): CommunicationBridge/ServiceDelegate.swift:7-22 | ExtensionService/ServiceDelegate.swift:6-18 \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":"CommunicationBridge/ServiceDelegate.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad5aba4b0f6d5e9047d51f268f7fea56a37d943f01bfc7e07adad3a0250dadba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Core/Sources/HostApp/ToolsSettings/BuiltInToolsListView.swift:116-125 | Core/Sources/HostApp/ToolsSettings/MCPServerToolsSection.swift:309-316 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"Core/Sources/HostApp/ToolsSettings/BuiltInToolsListView.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d96ff3e391d616c036b62e2c191c85489c9eb8178b6e77fd97dd0d4da36fa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Core/Sources/PersistMiddleware/Stores/ChatMessageStore.swift:12-15 | Core/Sources/PersistMiddleware/Stores/ChatTabInfoStore.swift:11-16 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"Core/Sources/PersistMiddleware/Stores/ChatMessageStore.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e076bca4748aab162ff599aaf8b4c2f929b8d7d791aaac98b5b95b3dcd8fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/Sources/SuggestionWidget/ChatWindow/CopilotIntroView.swift:52-58 | Tool/Sources/SharedUIComponents/CopilotIntroSheet.swift:13-15 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/ChatWindow/CopilotIntroView.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c363bd9f70650731c7834b78e345260acc60c125bf72f010e49a8e751443e75a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Core/Sources/SuggestionWidget/ChatWindow/CopilotIntroView.swift:44-50 | Tool/Sources/SharedUIComponents/CopilotIntroSheet.swift:9-11 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/ChatWindow/CopilotIntroView.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"231a67b37a7903ef249aa70d94ac57a21a2a9955b74e59553829710048f7f091"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ExpandableFileListView.swift:213-218 | Tool/Sources/SharedUIComponents/OverlayScrollView.swift:40-44 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ExpandableFileListView.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2ec1b5f77942bd5d8e0813292139357e5d661a69d32ba3297a3282ffc057f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Tool/Sources/GitHubCopilotService/Services/GitHubCopilotConversationService.swift:96-100 | Tool/Sources/GitHubCopilotService/Services/GitHubCopilotSuggestionService.swift:72-75 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"Tool/Sources/GitHubCopilotService/Services/GitHubCopilotConversationService.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c731cf44ae895b30b5a220d17377e2d75af04fa874f767f930f6295b9f9bf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Tool/Sources/DebounceFunction/DebounceFunction.swift:9-12 | Tool/Sources/DebounceFunction/ThrottleFunction.swift:11-14 \u2014 These two members are one piece of code written twice and then edited apart: 4 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":"Tool/Sources/DebounceFunction/DebounceFunction.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c6f767d22768b928df481f6aaebb75bc202fa5d9f93b141fd3017b92246788"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): Core/Sources/HostApp/ToolsSettings/AutoApprove/EditsAutoApproveView.swift:97-132 | Core/Sources/HostApp/ToolsSettings/AutoApprove/TerminalAutoApproveView.swift:77-112 \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":"Core/Sources/HostApp/ToolsSettings/AutoApprove/EditsAutoApproveView.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcc29af080941cae1f73748f939aed00a3dc058bc495c9e9cff5dccbc67b481"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201332 lines \u00D7 2): Core/Sources/HostApp/ToolsSettings/AutoApprove/EditsAutoApproveView.swift:25-52 | Core/Sources/HostApp/ToolsSettings/AutoApprove/TerminalAutoApproveView.swift:22-53 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/HostApp/ToolsSettings/AutoApprove/EditsAutoApproveView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"208d2eebe22de39acba904a59e1fd1c23d6de8573b50e8c818cc9cb934d8abd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): Tool/Sources/AppActivator/AppActivator.swift:77-106 | Tool/Sources/XcodeInspector/XcodeInspector\u002BTriggerCommand.swift:177-206 \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":"Tool/Sources/AppActivator/AppActivator.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b0da2a1c1b5ab9719c72f61efa372eea437cf295d20d5277372733c5642169"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift:366-392 | Core/Sources/HostApp/ToolsSettings/MCPRegistry/ServerInstallationOptionView.swift:136-162 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"71ad8341312e8b4e0a71d2854905653ed86959163c4c26d2238a91dfe214b7ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift:359-381 | Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift:454-476 \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 \u0060Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift:359\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":"Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"854de9aa51c90f72621babe12787a93aa4a8544b91f636d58a1f4dff5f73f208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift:47-69 | Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift:93-115 \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 \u0060Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift:47\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"401d8203ca8e2a5c4d2a09484febf263c617022c8b15ae43423b9fccf4b5e172"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 3): Core/Sources/SuggestionWidget/SuggestionPanelContent/PromptToCodePanel.swift:485-504 | Core/Sources/SuggestionWidget/SuggestionPanelContent/PromptToCodePanel.swift:514-535 | Core/Sources/SuggestionWidget/SuggestionPanelContent/PromptToCodePanel.swift:545-564 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/Sources/SuggestionWidget/SuggestionPanelContent/PromptToCodePanel.swift:485\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":"Core/Sources/SuggestionWidget/SuggestionPanelContent/PromptToCodePanel.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a846d2047e38ba099287211c2e587bd81c2429eb0ffa6d026adde7ec90bd8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): Core/Sources/SuggestionWidget/WidgetPositionStrategy.swift:248-268 | Core/Sources/SuggestionWidget/WidgetPositionStrategy.swift:300-319 \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 \u0060Core/Sources/SuggestionWidget/WidgetPositionStrategy.swift:248\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/WidgetPositionStrategy.swift"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e365eaa50357fb93526fb343cddb3b155a002dcb994f03b0245ec40cae01cbb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Tool/Sources/SuggestionProvider/SuggestionServiceMiddleware.swift:82-102 | Tool/Sources/SuggestionProvider/SuggestionServiceMiddleware.swift:105-125 \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 \u0060Tool/Sources/SuggestionProvider/SuggestionServiceMiddleware.swift:82\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/SuggestionProvider/SuggestionServiceMiddleware.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"37255416fe392d7fce52939b8af419aafe44f3c055f438edd4a5037a11e5ce9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Core/Sources/HostApp/AdvancedSettings/DisabledLanguageList.swift:29-48 | Core/Sources/HostApp/AdvancedSettings/GlobalInstructionsView.swift:16-35 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/Sources/HostApp/AdvancedSettings/DisabledLanguageList.swift:29\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":"Core/Sources/HostApp/AdvancedSettings/DisabledLanguageList.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cc3bbe84b4135d50ca283e676aad45b1082b96a82637c53a5684f93a652afd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Core/Sources/HostApp/AdvancedSettings/ChatSection.swift:430-448 | Core/Sources/HostApp/AdvancedSettings/ChatSection.swift:494-512 \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 \u0060Core/Sources/HostApp/AdvancedSettings/ChatSection.swift:430\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":"Core/Sources/HostApp/AdvancedSettings/ChatSection.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"607c089ce413bcdf3e0d021761e7b550132d3a541192f74b34b2a89a58ff2814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Tool/Sources/GitHubCopilotService/Services/GitHubCopilotSuggestionService.swift:80-98 | Tool/Sources/GitHubCopilotService/Services/GitHubCopilotSuggestionService.swift:103-121 \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 \u0060Tool/Sources/GitHubCopilotService/Services/GitHubCopilotSuggestionService.swift:80\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":"Tool/Sources/GitHubCopilotService/Services/GitHubCopilotSuggestionService.swift"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be96ab1ef7c29013438fe369444d0a02a84e35d165285dc627f7c50466e22ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Core/Sources/HostApp/AdvancedSettings/ChatSection.swift:451-468 | Core/Sources/HostApp/AdvancedSettings/ChatSection.swift:515-532 \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 \u0060Core/Sources/HostApp/AdvancedSettings/ChatSection.swift:451\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/HostApp/AdvancedSettings/ChatSection.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"6598759fd20df2779934cf3c3b0004f5eebb1b49f88a42cfdaebd4febe9606ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): Core/Sources/HostApp/AdvancedSettings/GlobalInstructionsView.swift:65-82 | Core/Sources/HostApp/AdvancedSettings/ProxySection.swift:42-58 \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":"Core/Sources/HostApp/AdvancedSettings/GlobalInstructionsView.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"564b61e0880d1062ebbb4c6c64b61e3cec13a229c3fdc1de9d1915d596c71d35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Core/Sources/SuggestionWidget/WidgetWindowsController.swift:338-355 | Core/Sources/SuggestionWidget/WidgetWindowsController.swift:362-379 \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 \u0060Core/Sources/SuggestionWidget/WidgetWindowsController.swift:338\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":"Core/Sources/SuggestionWidget/WidgetWindowsController.swift"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e11044a474d607438e715d2f7b93fa8e49d065982e3bc9434674e415197ac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Core/Sources/HostApp/ToolsSettings/AutoApprove/AutoApprovalDisableView.swift:9-24 | Core/Sources/HostApp/ToolsSettings/MCPIntroView.swift:17-32 \u2014 before extracting anything, compare \u0060Core/Sources/HostApp/ToolsSettings/AutoApprove/AutoApprovalDisableView.swift\u0060 and \u0060Core/Sources/HostApp/ToolsSettings/MCPIntroView.swift\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/Sources/HostApp/ToolsSettings/MCPIntroView.swift:17\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":"Core/Sources/HostApp/ToolsSettings/AutoApprove/AutoApprovalDisableView.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"37967ba72c7ce828f395bfa1985f8eff90a8f94324b4cfefc77b1a38d5ce17d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Tool/Sources/SuggestionProvider/SuggestionServiceMiddleware.swift:42-57 | Tool/Sources/SuggestionProvider/SuggestionServiceMiddleware.swift:60-75 \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 \u0060Tool/Sources/SuggestionProvider/SuggestionServiceMiddleware.swift:42\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/SuggestionProvider/SuggestionServiceMiddleware.swift"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"11288c13948ee0a9271390b19b2d40b7d7a9a06582a6d3c1635490eed2ddc417"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Tool/Sources/ChatAPIService/Memory/ChatMemory.swift:44-57 | Tool/Sources/ChatAPIService/Memory/ChatMemory.swift:187-199 \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 \u0060Tool/Sources/ChatAPIService/Memory/ChatMemory.swift:44\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":"Tool/Sources/ChatAPIService/Memory/ChatMemory.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e4a5d18bc2f9745311108f3bea45b3defb88c71716bede87224f2cb45dd880"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Tool/Sources/Terminal/Terminal.swift:54-67 | Tool/Sources/Terminal/Terminal.swift:135-148 \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":"Tool/Sources/Terminal/Terminal.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd391cd8fd8ca9e49c2e6f4bec0307d5f0dd0fef911e78ec900b90daee3d9365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/Sources/ConversationTab/Chat.swift:77-89 | Tool/Sources/ChatAPIService/Models.swift:230-242 \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. Note what the matched lines are: every one of them assigns one field to another, so the block is a hand-written mapper between two data shapes rather than behaviour with a helper inside it. Extracting one shared function only works if both sites map the SAME pair of types in the same direction \u2014 check that first, because inverse or differently-typed mappers have no single function they can both call. Where they do not, the moves that exist are a generated or reflective mapper, a common embedded/base type the fields live on once, or accepting the run and covering it with a test that fails when a field is added to one side only."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Chat.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40c80968207cbbebee5e4e683462628ab4dbda91a11620c86965a50698cb4bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Core/Sources/ConversationTab/DiffViews/DiffWebView.swift:77-89 | Core/Sources/ConversationTab/DiffViews/DiffWebView.swift:147-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/DiffViews/DiffWebView.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adbdce79d20bc5eec2e3b1d4b1f2e894090d40993b832c76ddf71773158d9ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Core/Sources/HostApp/BYOKSettings/ApiKeySheet.swift:23-34 | Core/Sources/HostApp/BYOKSettings/ModelSheet.swift:29-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/Sources/HostApp/BYOKSettings/ApiKeySheet.swift:23\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":"Core/Sources/HostApp/BYOKSettings/ApiKeySheet.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c316cf95ec41f27e3ac0df5bfce2948d7569dd16c9d9786423f890c98c944474"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/Sources/HostApp/ToolsSettings/BuiltInToolsListView.swift:58-70 | Core/Sources/HostApp/ToolsSettings/MCPToolsListView.swift:21-33 \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":"Core/Sources/HostApp/ToolsSettings/BuiltInToolsListView.swift"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"856c5a05fb91157c4aa9f19c0813d1898bae7b0816396317b028d947eb302142"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/Sources/SuggestionWidget/ChatWindow/ChatNoAXPermissionView.swift:8-20 | Core/Sources/SuggestionWidget/ChatWindow/ChatNoSubscriptionView.swift:10-22 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/Sources/SuggestionWidget/ChatWindow/ChatNoAXPermissionView.swift:8\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":"Core/Sources/SuggestionWidget/ChatWindow/ChatNoAXPermissionView.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"39dc05cd8ea0c5b285c4b2462f684c30022ac53a2c17e53f5502524e7c65ba6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Core/Sources/SuggestionWidget/WidgetView.swift:77-89 | Core/Sources/SuggestionWidget/WidgetView.swift:94-105 \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 \u0060Core/Sources/SuggestionWidget/WidgetView.swift:77\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":"Core/Sources/SuggestionWidget/WidgetView.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"585726d473c5dfdbcccb2ba91e6643b5105edb6585e02c02a888d555cc941bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/Telemetry.swift:11-23 | Tool/Sources/TelemetryServiceProvider/TelemetryServiceProvider.swift:29-41 \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":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/Telemetry.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b53dd9f3e21715260815945935eb3ca47f20a56cb53717ef9ab67dcab9feff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift:170-182 | Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift:195-207 \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 \u0060Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift:170\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":"Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ede9f3eb9a89ebb354406b7ce4a46f7d759d7e8dc80a31f5d0a7c781b5a2185"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Core/Sources/ChatService/ChatService.swift:335-345 | Core/Sources/ChatService/ChatService.swift:1140-1151 \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 \u0060Core/Sources/ChatService/ChatService.swift:335\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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"34cbdb4ce9c8a9ae2df460cff34553988ec501bfe495dacab259751cf46fac82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/Sources/ConversationTab/TerminalViews/RunInTerminalToolView.swift:57-68 | Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift:26-37 \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 \u0060Core/Sources/ConversationTab/TerminalViews/RunInTerminalToolView.swift:57\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":"Core/Sources/ConversationTab/TerminalViews/RunInTerminalToolView.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"90568f001822ffacdce2b5f9a8af536cc2acef9943f43acd49e4b4ffe00ac32b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/Sources/ConversationTab/Views/BotMessage.swift:290-301 | Core/Sources/ConversationTab/Views/BotMessage.swift:303-314 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00600\u0060 in one and \u00604\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Views/BotMessage.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8dfae3c64f90b0cb92fc23ee98722c79b97b34fd3b5a389e03772a856be48f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/Sources/SuggestionWidget/WidgetPositionStrategy.swift:376-387 | Core/Sources/SuggestionWidget/WidgetPositionStrategy.swift:394-405 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/WidgetPositionStrategy.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ba9703b408c22a42ee8c3d2546eb19e6901bda587c87f973645e96a33fc7c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Core/Sources/UserDefaultsObserver/UserDefaultsObserver.swift:8-19 | Tool/Sources/UserDefaultsObserver/UserDefaultsObserver.swift:8-19 \u2014 before extracting anything, compare \u0060Core/Sources/UserDefaultsObserver/UserDefaultsObserver.swift\u0060 and \u0060Tool/Sources/UserDefaultsObserver/UserDefaultsObserver.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/UserDefaultsObserver/UserDefaultsObserver.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ec969b17537a32bf3a77a0184c1d6ffc18cde354bcc3bbd0e4ac968d95692b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/Sources/ConversationTab/Chat.swift:840-850 | Core/Sources/ConversationTab/Chat.swift:1345-1355 \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 \u0060Core/Sources/ConversationTab/Chat.swift:840\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Chat.swift"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"63dc8f201617ad639d64ac416f98e3acd10a00099262ef55df15059fe38732fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Core/Sources/ConversationTab/Views/ChatPanelInputArea/InputAreaTextEditor.swift:456-466 | Core/Sources/ConversationTab/VisionViews/VisionMenuView.swift:108-118 \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 \u0060Core/Sources/ConversationTab/Views/ChatPanelInputArea/InputAreaTextEditor.swift:456\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Views/ChatPanelInputArea/InputAreaTextEditor.swift"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a8b79981045f6fa182fac15228be9651a96ddc19b0f499cc08323adde5b48cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Core/Sources/KeyBindingManager/KeyBindingManager.swift:6-15 | Core/Sources/KeyBindingManager/TabToAcceptSuggestion.swift:52-62 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/Sources/KeyBindingManager/KeyBindingManager.swift:6\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/KeyBindingManager/KeyBindingManager.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"07dce5c04a4f4ac4c3f645b61a0ecc8ee6113a64abdc03aadec32ea9a8f71026"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:61-69 | Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:76-86 \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 \u0060Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift:61\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":"Tool/Sources/BuiltinExtension/BuiltinExtensionConversationServiceProvider.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1533f34764627ce4d676bc16f258cdbe4bd714fc343fd3cec777fe67f9ed1bbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/Sources/ConversationTab/ModeAndModelPicker/ModePicker/AgentModeButton.swift:46-55 | Core/Sources/ConversationTab/ModeAndModelPicker/ModelPicker/ModelPickerButton.swift:18-27 \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":"Core/Sources/ConversationTab/ModeAndModelPicker/ModePicker/AgentModeButton.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9f7bcd4a32c45bc45f555fae263d060f9fbf4fba204ef99511c6e37bc59793"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/Sources/HostApp/ToolsSettings/BuiltInToolsListView.swift:178-187 | Core/Sources/HostApp/ToolsSettings/MCPServerToolsSection.swift:419-428 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/Sources/HostApp/ToolsSettings/BuiltInToolsListView.swift:178\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":"Core/Sources/HostApp/ToolsSettings/BuiltInToolsListView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"0769728e50dcbeb92988973fba4f16dc63fefa3250ee37140995ef227d049dee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/Sources/Service/Service.swift:172-181 | Tool/Sources/Workspace/WorkspaceFile.swift:184-193 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/Service.swift"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"2365c0cbaeab51c9a6d329ebdf91ac4e9d8eb663aaee900a74d54d50d66f89d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Core/Sources/Service/XPCService.swift:349-358 | Core/Sources/Service/XPCService.swift:495-504 \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 \u0060Core/Sources/Service/XPCService.swift:349\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/Sources/Service/XPCService.swift:505\u0060 calls \u0060JSONEncoder\u0060, \u0060encode\u0060, \u0060reply\u0060 and \u0060Core/Sources/Service/XPCService.swift:359\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":"Core/Sources/Service/XPCService.swift"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"b816548dd1c4232bd0628935b29f685738dc773aee45453fad416b233c71ef94"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Tool/Sources/SuggestionProvider/PostProcessingSuggestionServiceMiddleware.swift:8-17 | Tool/Sources/SuggestionProvider/PostProcessingSuggestionServiceMiddleware.swift:24-33 \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 \u0060Tool/Sources/SuggestionProvider/PostProcessingSuggestionServiceMiddleware.swift:8\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Tool/Sources/SuggestionProvider/PostProcessingSuggestionServiceMiddleware.swift:18\u0060 calls \u0060checkIfSuggestionHasNoEffect\u0060 and \u0060Tool/Sources/SuggestionProvider/PostProcessingSuggestionServiceMiddleware.swift:36\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":"Tool/Sources/SuggestionProvider/PostProcessingSuggestionServiceMiddleware.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"372b8ff283e536fce05d36e53983d989342db4d35aafb5a386d292872785bc37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Tool/Sources/TelemetryService/TelemetryService.swift:76-85 | Tool/Sources/TelemetryService/TelemetryService.swift:101-110 \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 \u0060Tool/Sources/TelemetryService/TelemetryService.swift:76\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/TelemetryService/TelemetryService.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7319dabfc5bb28a760f2f3d13181d23b86bc2547387c670f5982421929af0d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/Sources/HostApp/BYOKSettings/ApiKeySheet.swift:67-75 | Core/Sources/HostApp/BYOKSettings/ProviderConfigView.swift:162-171 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Core/Sources/HostApp/BYOKSettings/ApiKeySheet.swift:67\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":"Core/Sources/HostApp/BYOKSettings/ApiKeySheet.swift"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a32b11bc7a65c623c146f7ea6e4bfa1980412b54e679ee6a5e1e9f3955d2f2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift:459-467 | Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift:477-485 \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 \u0060Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift:459\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Core/Sources/Service/GUI/GraphicalUserInterfaceController.swift"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7fe80f5fe81bf0b92896d29737dd3b73d61f827fd0638cd0e80eb4f9132bd42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift:178-186 | Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift:215-223 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/SuggestionCommandHandler/WindowBaseCommandHandler.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e37ad4437c5ae788a16e3344d739e5bc013b873017b0123fa20c2d7e41d0a584"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Core/Sources/SuggestionWidget/ChatWindow/ChatHistoryView.swift:259-266 | Core/Sources/SuggestionWidget/ChatWindowView.swift:689-697 \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 \u0060Core/Sources/SuggestionWidget/ChatWindow/ChatHistoryView.swift:259\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Core/Sources/SuggestionWidget/ChatWindow/ChatHistoryView.swift:256\u0060 calls \u0060EmptyChatTab\u0060 and \u0060Core/Sources/SuggestionWidget/ChatWindowView.swift:686\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":"Core/Sources/SuggestionWidget/ChatWindow/ChatHistoryView.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"152eb91a740e5e379165b07554988a4354ac02d54dab0202c044fca76e59577b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Tool/Sources/StatusBarItemView/QuotaView.swift:335-343 | Tool/Sources/StatusBarItemView/QuotaView.swift:348-356 \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 \u0060Tool/Sources/StatusBarItemView/QuotaView.swift:335\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Tool/Sources/StatusBarItemView/QuotaView.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a36843a3c36facf5f165780f1beaf2488247f04dd8d2ae69d8949c44f30bce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): Tool/Sources/XPCShared/XPCExtensionService.swift:308-315 | Tool/Sources/XPCShared/XPCExtensionService.swift:335-343 \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 \u0060Tool/Sources/XPCShared/XPCExtensionService.swift:308\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/XPCShared/XPCExtensionService.swift"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af4d3b1dae50022bee9b8ec5b780f5a5b8e1685afc0a7eab5fb92cbbe80a119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift:116-123 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift:174-180 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift:223-229 \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":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequestTypes/MCPRegistry.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac5ad399247a1c4715fdfef0d0db131e878aa874af1bca1cf24a88ea9c7f0b7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/Sources/ConversationTab/ChatPanel.swift:627-634 | Core/Sources/ConversationTab/Views/WorkingSetView.swift:38-45 \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 \u0060Core/Sources/ConversationTab/ChatPanel.swift:627\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Core/Sources/ConversationTab/ChatPanel.swift:635\u0060 calls \u0060padding\u0060 and \u0060Core/Sources/ConversationTab/Views/WorkingSetView.swift:46\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":"Core/Sources/ConversationTab/ChatPanel.swift"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"33bf1408717252938f1f582dc84c3e466e0d54374af3023e05f8960cb9444d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/Sources/ConversationTab/Styles.swift:7-14 | Core/Sources/ConversationTab/Styles.swift:16-23 \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":"Core/Sources/ConversationTab/Styles.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"065d63a21bcfcfdbb70093015aa40caa33df8f2061ccb9d07c077cdd8cfec36f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift:92-99 | Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift:166-173 \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":"Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ebbf5ca68062bf3c7bc9768617c2f0a6d9f114f049454c8c5a3f5580db6d9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift:104-111 | Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift:154-161 \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 \u0060Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift:104\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":"Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b1e8122ba63beb61ddff87c5fff18a8f901119faf5b6ba8f4e41fe71af51347"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Tool/Sources/HostAppActivator/HostAppActivator.swift:44-50 | Tool/Sources/HostAppActivator/HostAppActivator.swift:64-70 | Tool/Sources/HostAppActivator/HostAppActivator.swift:93-99 | Tool/Sources/HostAppActivator/HostAppActivator.swift:114-120 | Tool/Sources/HostAppActivator/HostAppActivator.swift:134-140 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Tool/Sources/HostAppActivator/HostAppActivator.swift:44\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":"Tool/Sources/HostAppActivator/HostAppActivator.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1970871855a5a9f27ae1e7cf72db6c0e8420d3bcfd9b885bed10216097e0b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): Tool/Sources/ChatAPIService/Memory/ChatMemory.swift:36-42 | Tool/Sources/ChatAPIService/Memory/ChatMemory.swift:179-184 \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 \u0060Tool/Sources/ChatAPIService/Memory/ChatMemory.swift:36\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":"Tool/Sources/ChatAPIService/Memory/ChatMemory.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a0bfde0258fee9e6095b190ce54ed70a3b3d5c0b47c3daececf56cbf2f1639"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift:118-124 | Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift:168-174 \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 \u0060Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift:118\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":"Tool/Sources/ConversationServiceProvider/LSPTypes\u002BAgentRound.swift"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bab30dc6f70ccfaeba4da083683805c6e2dab24c5db6388489722c40f4ff4cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift:342-349 | Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift:352-359 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"8404eda131ffe51c6101a54e9fe1c908fe4cba0d578bc6d397de2bfbf9fa6bfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift:296-301 | Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift:335-340 \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":"Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ef0a68eae3a5ca9c73165a3523c2f5f85ebd454a4bbd5203ed8befd999cb7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift:304-309 | Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift:343-348 \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":"Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5b2ba7dd878f54c2492b74a4cf6f670f4764ecd96b213bc2e2db0facae4e38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Tool/Sources/StatusBarItemView/QuotaView.swift:596-604 | Tool/Sources/StatusBarItemView/QuotaView.swift:624-632 \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 \u0060Tool/Sources/StatusBarItemView/QuotaView.swift:596\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":"Tool/Sources/StatusBarItemView/QuotaView.swift"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bd4a5c378e52b7efd3f128e4b88f90893df32debd3d5734322396ab2ea8bfd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Tool/Sources/XPCShared/XPCExtensionService.swift:430-435 | Tool/Sources/XPCShared/XPCExtensionService.swift:584-589 \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 \u0060Tool/Sources/XPCShared/XPCExtensionService.swift:430\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/XPCShared/XPCExtensionService.swift"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"632903220784363783e29e7e8854eee03825c13fac98c78fde324687a04a744d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 4): Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:271-275 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:287-291 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:337-339 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:353-357 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:271\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:339\u0060 calls \u0060JSONDecoder\u0060, \u0060decode\u0060, \u0060hash\u0060 and \u0060Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:275\u0060 does not \u2014 after which the two agree again for 4 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":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dffa90e21ca386f0b5e1a86ab2edc2155d35a8efccf01c0d3744e045e14e183"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): Tool/Sources/Persist/AppState.swift:63-67 | Tool/Sources/Persist/ConfigPathUtils.swift:14-18 | Tool/Sources/Persist/ConfigPathUtils.swift:82-86 \u2014 there are 3 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 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Tool/Sources/Persist/AppState.swift:63\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"Tool/Sources/Persist/AppState.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbadff275a8f637c956c772f710b11017f85f285f36ee9d5fa0361b93fec0403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPRegistryInstallation.swift:395-399 | Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPRegistryInstallation.swift:412-416 \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 \u0060Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPRegistryInstallation.swift:395\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPRegistryInstallation.swift"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"55771ed3af12ac04b96756d62210004c4b898f9997ed39499a964609eb117334"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/Sources/ChatService/ToolCalls/AutoApproval/MCPApprovalStorage.swift:79-86 | Core/Sources/ChatService/ToolCalls/AutoApproval/SensitiveFileApprovalStorage.swift:74-81 \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":"Core/Sources/ChatService/ToolCalls/AutoApproval/MCPApprovalStorage.swift"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fbf79407482100bbc0b75e099d28c297087f38870bf359facc1bd36d2ca0b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Core/Sources/UserDefaultsObserver/UserDefaultsObserver.swift:27-34 | Tool/Sources/UserDefaultsObserver/UserDefaultsObserver.swift:27-34 \u2014 before extracting anything, compare \u0060Core/Sources/UserDefaultsObserver/UserDefaultsObserver.swift\u0060 and \u0060Tool/Sources/UserDefaultsObserver/UserDefaultsObserver.swift\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/UserDefaultsObserver/UserDefaultsObserver.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"276888db7bf795445d15c0274135675ab4485a54a68130401dcb2e55fcc5a5e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Tool/Sources/SharedUIComponents/QuotaPopoverView.swift:150-154 | Tool/Sources/StatusBarItemView/QuotaView.swift:670-674 \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":"Tool/Sources/SharedUIComponents/QuotaPopoverView.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ad33bdae227eb19122cfe9a68de2bca6532c659b7c6d2f01b6aa18b7630430"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Core/Sources/ChatService/ToolCalls/AutoApproval/MCPApprovalStorage.swift:90-96 | Core/Sources/ChatService/ToolCalls/AutoApproval/SensitiveFileApprovalStorage.swift:85-91 \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":"Core/Sources/ChatService/ToolCalls/AutoApproval/MCPApprovalStorage.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e530f564756595898a11ef7476831db906cd4a5ea9e4765b9247e5a42a44aa34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Core/Sources/HostApp/SidebarTabView.swift:37-49 | Core/Sources/HostApp/TabContainer.swift:162-174 \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":"Core/Sources/HostApp/SidebarTabView.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f07871e103c5e116596cc09c1e63920aecbf618e03bc932a4871a54ac87fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 7): EditorExtension/GetSuggestionsCommand.swift:9-18 | EditorExtension/NextSuggestionCommand.swift:9-18 | EditorExtension/PreviousSuggestionCommand.swift:9-18 | EditorExtension/PromptToCodeCommand.swift:9-18 | EditorExtension/RejectNESSuggestionCommand.swift:9-18 | EditorExtension/RejectSuggestionCommand.swift:9-18 | EditorExtension/SyncTextSettingsCommand.swift:9-18 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 7 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"EditorExtension/GetSuggestionsCommand.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff828f2e233f58f54ff06d1e9a5cff2f4b989f6eb5701076b0ed8aa932215793"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): ExtensionService/AppDelegate\u002BMenu.swift:365-371 | ExtensionService/AppDelegate\u002BMenu.swift:386-392 | ExtensionService/AppDelegate.swift:491-497 \u2014 there are 3 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 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ExtensionService/AppDelegate\u002BMenu.swift"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a239070fc852e5cd22ea1c61d6e546b2c60a80f3bdc40e6c28c76cb648a1a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Tool/Sources/Workspace/WorkspaceDirectoryIndex.swift:61-65 | Tool/Sources/Workspace/WorkspaceFileIndex.swift:55-59 \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":"Tool/Sources/Workspace/WorkspaceDirectoryIndex.swift"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7272ac4ba1e27fd1863b070929bb289333cd5b9d040d9c382f68123c62ed86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/Sources/ChatService/ChatService.swift:897-902 | Core/Sources/ChatService/ChatService.swift:932-937 \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 \u0060Core/Sources/ChatService/ChatService.swift:897\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"760804f19ba12ea7aafd965683aabce1c269be31c3d8ec812f73277ff10d7dc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Core/Sources/ConversationTab/ModeAndModelPicker/ModelPicker/ModelPickerDetailPanel.swift:279-284 | Core/Sources/ConversationTab/ModeAndModelPicker/ModelPicker/ModelPickerDetailPanel.swift:369-374 \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":"Core/Sources/ConversationTab/ModeAndModelPicker/ModelPicker/ModelPickerDetailPanel.swift"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c499048913696eeb2702ccaa4da6423e849aa89a1e2d27842fa2f69fd208019"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift:155-159 | Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift:206-210 \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 \u0060Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift:155\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":"Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ToolStatusItemView.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70bf66c80974a3471c95052d28c3c34ab672f699bbfe160d46fb670d679ad2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Core/Sources/SuggestionWidget/WidgetWindowsController.swift:488-492 | Core/Sources/SuggestionWidget/WidgetWindowsController.swift:516-520 \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":"Core/Sources/SuggestionWidget/WidgetWindowsController.swift"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"441ec2304fefcb94d9e45c1e886e4bb16355a36f9a1f6cf53d84b7b2e7693771"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 22): Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:367-371 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:439-443 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:453-457 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:465-469 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:479-483 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:493-497 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:507-511 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:531-535 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:545-549 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:557-561 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:589-593 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:601-605 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:613-617 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:627-631 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:641-645 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:655-659 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:667-671 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:679-683 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:691-695 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:703-707 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:715-719 | Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift:728-732 \u2014 all 22 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. 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":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotRequest.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"6594d07e765b891aaa9eb1ef8587fb468c5296758143e2ef59d73b2abb0f24e9"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project ChatService: ChatService has instability 0.87 with 3 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c824075adfb037369cfa4008ec1b66cd0e352e95b024e9bbf4df794f12b00c60"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project ConversationTab: ConversationTab has instability 0.82 with 2 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bcefc323c7a1c79fe2b3b8c5583d9cba0fb9290ffb4e47e256948c1ce6e13295"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project KeyBindingManager: KeyBindingManager has instability 0.93 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b94aac736c733d1292307d3bb96f4fe726208e2b27cb04aa17b665b7f28f9857"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project SuggestionService: SuggestionService has instability 0.88 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"552865790d2673079d9a3e8567a2077423496f1b9c49f4a549957f061450d4cf"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project SuggestionWidget: SuggestionWidget has instability 0.90 with 2 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"abab9b7c86779a8ffa5c67118098f713e287ac7fc75cfc3c6b8808f83dce680a"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project TelemetryService: TelemetryService has instability 0.86 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f6d23513aa68ce8dc36c1f574ca6e86d8a660e36b157afe283c1c9e9a0afff7e"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project XcodeThemeController: XcodeThemeController has instability 0.88 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0b6314521f288030010ef12617158adf1bd7cd432fa63eaf00d760d63f1b0d57"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: ActiveApplicationMonitor: ActiveApplicationMonitor: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 6 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f214da78732a320d8ebeecd44854bf9c77a15057092eb7c96e6172c483113324"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: AsyncPassthroughSubject: AsyncPassthroughSubject: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e0bd1124ca581d81c2cb141606d5c5890fb1033ed7f5c97089203af18c101229"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: Cache: Cache: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"58c5231e8b8383ea456e53712cfbbad89fa4d246cfa254fae34c6f76221daaaf"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: CustomAsyncAlgorithms: CustomAsyncAlgorithms: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"805c74932ed666837ef8a28fda40e0b4815c17d2f5ab540f27ac91a7cdadfd4c"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: DebounceFunction: DebounceFunction: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2b6e64449050a04641c16d1e507b09bab7854373d05f9dbf5e92639659cf8497"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: FileChangeChecker: FileChangeChecker: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d4f187dd20625d08d0c92eb79505a6fb90b95ccf6b1688bcf73b761f2128dab6"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: NotificationCenterCoordinator: NotificationCenterCoordinator: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7bafcb6c17d0011bb6c8ac97ea2037906e6f7feb6a7291a480de8503d9832bdd"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: UserDefaultsObserver: UserDefaultsObserver: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 8 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c6692331a7fcd8100d653d8c69c362e393192d83fc49c2487a1adc7cb7620b22"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: SuggestionBasic: SuggestionBasic: abstractness 0.00, instability 0.06, distance 0.94 \u2014 zone of pain \u2014 concrete and depended on by 15 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6720ce816d16af9f8ffebbf342dcd229372754187c0abf561dce6546433d6772"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: Logger: Logger: abstractness 0.11, instability 0.00, distance 0.89 \u2014 zone of pain \u2014 concrete and depended on by 21 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fe97daf5d7754486f7b43135f32fe30c7704e8ddc0b0deb90b7c17a8a3c3667a"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: AppActivator: AppActivator: abstractness 0.00, instability 0.14, distance 0.86 \u2014 zone of pain \u2014 concrete and depended on by 6 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d34e44e9861e962ae2eca8fbe8caecbcb8e152a308a0727c71e7726fe9e1a355"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: ChatTab: ChatTab: abstractness 0.14, instability 0.00, distance 0.86 \u2014 zone of pain \u2014 concrete and depended on by 4 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0da06d4fb313b61671e6b6104d11ad99e787e0907d386cfe9c8f49397f41e6e3"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: Status: Status: abstractness 0.00, instability 0.18, distance 0.82 \u2014 zone of pain \u2014 concrete and depended on by 9 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91673334ef24f82f3a825c9378bc83ba43e1c578a427602cd280a96029f0fc7e"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: SystemUtils: SystemUtils: abstractness 0.00, instability 0.20, distance 0.80 \u2014 zone of pain \u2014 concrete and depended on by 4 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"28d87a5b42b575ddbf11513578e6c4c67b47b8b24a2f95c5fe57745d46682024"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: Preferences: Preferences: abstractness 0.19, instability 0.05, distance 0.76 \u2014 zone of pain \u2014 concrete and depended on by 18 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b7e14d89d1d937cfd56cbd9ce64782e0c49781a27fff14899f01dd6c78c5d88c"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: ConversationServiceProvider: ConversationServiceProvider: abstractness 0.03, instability 0.22, distance 0.75 \u2014 zone of pain \u2014 concrete and depended on by 7 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2ccbf8463a37dd82b4e592f64f21abb127594cd2b30ed0fee8275cf5befc5b79"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: LaunchAgentManager: LaunchAgentManager: abstractness 0.00, instability 0.25, distance 0.75 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f22864fe2217cefcbbf5351b06b5ce9e6c7e607ae15c8def9b0c5d728f3cdb2a"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: Toast: Toast: abstractness 0.00, instability 0.25, distance 0.75 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"792c65d84b7f5ec20d1b113bea71f1c5f6b6cbc65495e4132e97909a033b1bfb"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: View (LCOM4 30): View\u0027s methods fall into 30 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 30 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Styles.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd4cd077fea1c592d1ffd7a9b9c4c3aae3aab4d1b448ebccc25e2da052ca35f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GitHubCopilotService (LCOM4 14): GitHubCopilotService\u0027s methods fall into 14 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 14 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHubCopilotService/LanguageServer/GitHubCopilotService.swift"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"69be4750cf859eb469f538b6654540a07e08c9ffcfa86e32dcbc1ac2f15262ee"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 12): String\u0027s methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/HostApp/ToolsConfigView.swift"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c12e62c393d0bd7eb893a779b89ed5298230158de35329ef15129cb4d9473f2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppDelegate (LCOM4 10): AppDelegate\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"CommunicationBridge/main.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"a233eb325811f015de135473ab3309ec2ccdbfb8b0a90ca4951777847f667087"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AppDelegate (LCOM4 10): AppDelegate\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ExtensionService/AppDelegate.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3089d27a1151fca787e639c0dc5c0bc3b25ab72fbb22edb8d821e0b93e33a6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Array (LCOM4 7): Array\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f082fd0266e217b64710c0de55790b7eec60eb08e9574491bdca6f9276f1a13"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Filespace (LCOM4 7): Filespace\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/Workspace/Filespace.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ef98845877d6b70d44277a42f599455dfca8e44fffa16fe24ab191d9f95a99"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AXUIElement (LCOM4 6): AXUIElement\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/AXExtension/AXUIElement\u002BXcode.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8ea3e75c57b325e933d9892b7c876912845474a906ee6acb925d66f722d4799"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BuiltinExtensionSuggestionServiceProvider (LCOM4 5): BuiltinExtensionSuggestionServiceProvider\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/BuiltinExtension/BuiltinExtensionSuggestionServiceProvider.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"d420f0235a8724580ddf1529fb0f16a87a5ddeeb69e6ce2a317f57cc8cd3980d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatService (LCOM4 4): ChatService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f4cbc7278652911971068f8d33fcc69aeb693e40853c167e7756f3f0d6333e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Coordinator (LCOM4 4): Coordinator\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/DiffViews/DiffWebView.swift"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e05231ae17deacce2fb6de992cf9c6c8f07960da2afae8b7061a6356b8a1579"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatPanelWindow (LCOM4 4): ChatPanelWindow\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/ChatPanelWindow.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12114a8837dc9457f38fbfcf9f94e047234046f3df1217a5fc61bd930f58fd1"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AutoManagedChatMemory (LCOM4 4): AutoManagedChatMemory\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/ChatAPIService/Memory/AutoManagedChatMemory.swift"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f6f9b0b046a5bbea604a9d5d9eea8067c32647e5e00f454b8e6b5eacc4bae0"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: StatusObserver (LCOM4 4): StatusObserver\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/Status/StatusObserver.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b6722f6e5593a65a9cfb7ecc3128f98fa0949946a4f2ce4847bf2194fc3aad"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AccountItemView (LCOM4 4): AccountItemView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/StatusBarItemView/AccountItemView.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c4c638c43ace9131633a5073618d8db755c3d9e3aa7a53b3f6d425875d1e8f"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_should_accept: No conventional assertion call was detected, and 10 of 10 tests in \u0060KeyBindingManagerTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Tests/KeyBindingManagerTests/TabToAcceptSuggestionTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f57099d911e9265665a81de82c49c3c75d1b712e494c6ee9827e23048711f3"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_should_not_accept_without_suggestion: No conventional assertion call was detected, and 10 of 10 tests in \u0060KeyBindingManagerTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Tests/KeyBindingManagerTests/TabToAcceptSuggestionTests.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e26602fdb41e563c72b02592e514cac2c9fb0299bbf1dc5b279e172c6d4a12"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_should_not_accept_without_filespace: No conventional assertion call was detected, and 10 of 10 tests in \u0060KeyBindingManagerTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Tests/KeyBindingManagerTests/TabToAcceptSuggestionTests.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc59fea348555d3df515c71a3755bda0e1f125882bdfbfbe43c492b18f95cb9"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_should_not_accept_without_editor_focused: No conventional assertion call was detected, and 10 of 10 tests in \u0060KeyBindingManagerTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Tests/KeyBindingManagerTests/TabToAcceptSuggestionTests.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b23fe68f4bfb416bf6f0ae711f874cc657a93c28739f6884fcd784f07b04bd"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_should_not_accept_without_active_xcode: No conventional assertion call was detected, and 10 of 10 tests in \u0060KeyBindingManagerTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Tests/KeyBindingManagerTests/TabToAcceptSuggestionTests.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b8e2de4f467ad7af321c9eb214c9ae3e8a2e4496207cbab892bb8cd1e68b8b"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_should_not_accept_without_active_document: No conventional assertion call was detected, and 10 of 10 tests in \u0060KeyBindingManagerTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Tests/KeyBindingManagerTests/TabToAcceptSuggestionTests.swift"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf19ef062dbcbb7023f4fff848d4a621aac1094b2e909b90ba07d158898e75d7"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_should_not_accept_with_shift: No conventional assertion call was detected, and 10 of 10 tests in \u0060KeyBindingManagerTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Tests/KeyBindingManagerTests/TabToAcceptSuggestionTests.swift"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"6046fbc54e495a9eec41d903b457f19a69f74fd1deba87495d3cd302d45e633b"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_should_not_accept_with_command: No conventional assertion call was detected, and 10 of 10 tests in \u0060KeyBindingManagerTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Tests/KeyBindingManagerTests/TabToAcceptSuggestionTests.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86fd58a520b8a9fa6ef012163233abdcf2d4dba4e141fa75a96cc7718158e69"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_should_not_accept_with_control: No conventional assertion call was detected, and 10 of 10 tests in \u0060KeyBindingManagerTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Tests/KeyBindingManagerTests/TabToAcceptSuggestionTests.swift"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a472441597c1bdd9841eb97f8fc3cbf61909a76d83dbc3f4068c10e25e3de0e0"}},{"ruleId":"D10","level":"note","message":{"text":"No direct assertions: test_should_not_accept_with_help: No conventional assertion call was detected, and 10 of 10 tests in \u0060KeyBindingManagerTests\u0060 read the same way \u2014 so this is treated as that project\u0027s convention rather than a broken test, and it does not drag the score. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a project of runnable samples compiled as tests, where a run that does not throw is the only check. If it is the latter, these methods genuinely verify nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Tests/KeyBindingManagerTests/TabToAcceptSuggestionTests.swift"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9a36e4a76bbf386dfd50c33fbc72a61f21d9fc5ffe6794de4cd2bbd35b533a"}},{"ruleId":"D10","level":"error","message":{"text":"No assertions (empty test): test_selecting_a_line_in_freestanding_macro_the_scope_should_be_the_macro: Test method has an empty body \u2014 it asserts nothing and exercises no code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Tests/FocusedCodeFinderTests/SwiftFocusedCodeFinderTests.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19f595280878bfeddc34a0bca7bd928985fb000ae9c010167aead3d7236f6eb"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_breakLines: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Tests/SuggestionBasicTests/BreakLinePerformanceTests.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4edfd28a82b9d60ad291a3ed80ba809eefa400686cf55ae7b37c57ba4137bf"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: test_source_editor_cache_get_content_comparison: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Tests/XcodeInspectorTests/SourceEditorCachePerformanceTests.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af57794b5af012e85979960770e05dcb97a671a4c5f209818bf7efafe638d0c"}},{"ruleId":"D10","level":"note","message":{"text":"Test project verifies nothing: KeyBindingManagerTests: No conventional assertion call was detected in 10 of 10 tests in \u0060KeyBindingManagerTests\u0060 \u2014 the project as a whole, not one method. Two things look like this: verification that happens indirectly (an approval/verifier harness or BDD step methods), or a suite that genuinely checks nothing. If it is the latter, this project passes unconditionally and cannot fail."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Tests/KeyBindingManagerTests/TabToAcceptSuggestionTests.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f670827069dd8736d86d52e5c0b893223f2a8bd60e6c53cbb81f4472960a86"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: keyboardshortcuts: Dependency \u0060keyboardshortcuts\u0060 is declared in Core/Package.swift against branch \u0060main\u0060 \u2014 the declaration pins no immutable point, so \u0060swift package update\u0060 moves this dependency to whatever that branch holds at the time, which is code nobody reviewed. Pin it to a version requirement (\u0060from:\u0060, \u0060.upToNextMajor(from:)\u0060, \u0060exact:\u0060) or to a \u0060revision:\u0060 commit SHA."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6b089cdb892d4ef30a804874083a0edc48212c15f1b449de08823aef07edec50"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: cgeventoverride: Dependency \u0060cgeventoverride\u0060 is declared in Core/Package.swift against branch \u0060devm33/fix-stale-AXIsProcessTrusted\u0060 \u2014 the declaration pins no immutable point, so \u0060swift package update\u0060 moves this dependency to whatever that branch holds at the time, which is code nobody reviewed. Pin it to a version requirement (\u0060from:\u0060, \u0060.upToNextMajor(from:)\u0060, \u0060exact:\u0060) or to a \u0060revision:\u0060 commit SHA."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4e574fc46aed8f00d99887be805dc3133fb7ca5541551219064960900771355b"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: highlightr: Dependency \u0060highlightr\u0060 is declared in Core/Package.swift against branch \u0060master\u0060 \u2014 the declaration pins no immutable point, so \u0060swift package update\u0060 moves this dependency to whatever that branch holds at the time, which is code nobody reviewed. Pin it to a version requirement (\u0060from:\u0060, \u0060.upToNextMajor(from:)\u0060, \u0060exact:\u0060) or to a \u0060revision:\u0060 commit SHA."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"84333b61a956558e9964f288e03c6271dc98d644f9d251727a6f9d14dc1469df"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: highlightr: Dependency \u0060highlightr\u0060 is declared in Tool/Package.swift against branch \u0060master\u0060 \u2014 the declaration pins no immutable point, so \u0060swift package update\u0060 moves this dependency to whatever that branch holds at the time, which is code nobody reviewed. Pin it to a version requirement (\u0060from:\u0060, \u0060.upToNextMajor(from:)\u0060, \u0060exact:\u0060) or to a \u0060revision:\u0060 commit SHA."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"aa77725f05029f69f93345de6248154aacef24459a3e90b2d6bb49538470adc2"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: copilotforxcodekit: Dependency \u0060copilotforxcodekit\u0060 is declared in Tool/Package.swift against branch \u0060main\u0060 \u2014 the declaration pins no immutable point, so \u0060swift package update\u0060 moves this dependency to whatever that branch holds at the time, which is code nobody reviewed. Pin it to a version requirement (\u0060from:\u0060, \u0060.upToNextMajor(from:)\u0060, \u0060exact:\u0060) or to a \u0060revision:\u0060 commit SHA."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"66dc8fe2b97a5b1ef39fb6644d9f78f40bb73c5d1b6978333ab229eca0cf0d47"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: cgeventoverride: Dependency \u0060cgeventoverride\u0060 is resolved in Copilot for Xcode.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060devm33/fix-stale-AXIsProcessTrusted\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c286a4a10dbad77223cb0cb1a2a3fa6eff1b6dda69f313e0ab322412ccb282b"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: copilotforxcodekit: Dependency \u0060copilotforxcodekit\u0060 is resolved in Copilot for Xcode.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060main\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"280b1debd177daca0b14e88a25790997e452fc9eb3b1efdce2298fd4cb920647"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: highlightr: Dependency \u0060highlightr\u0060 is resolved in Copilot for Xcode.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060master\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db90e46915771794912c042cd7dde5fd5f036cb375c74c7bae781a7704d6e26f"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: keyboardshortcuts: Dependency \u0060keyboardshortcuts\u0060 is resolved in Copilot for Xcode.xcworkspace/xcshareddata/swiftpm/Package.resolved against branch \u0060main\u0060 rather than a released version \u2014 the project pins no immutable point, so resolving the packages again moves this dependency to whatever that branch holds at the time. Change the dependency rule in Xcode to a version requirement, or to an exact commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"afd1e66336957f565ef8c72e2c54f7329a205b6d0253d6632c70839cca62b123"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Update LanguageClient some day. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Package.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e6c6b651b9c9c6c51e6f0979603e44b70aca0b1874f89bcdf2b3cd5bf7cd61"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove CopilotForXcodeKit dependency once extension provider logic is removed. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Package.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb4355f70c0f25fa9024b7a16c02d5c7352a00626d0f0c59682ed0103393d65"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Tests/FocusedCodeFinderTests/SwiftFocusedCodeFinderTests.swift"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f25eae57f6d35d1df80631162a709a587f3c41d445262a36bfea38ca05952a3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: How to get the \u0060limit reached\u0060 error? Same as Code Completion? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/WorkspaceSuggestionService/Workspace\u002BSuggestionService.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8419a1f9b2ee862cb9e962243ab5dcbf8a471f06b8d98ca643169bff8f91bdf0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: should distinguish code completion and NES? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/Workspace/Filespace.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"22286739e9eab2f210d7c595e53b9f8e16b0ebe1258efe6164388198a6833734"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: implement \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/Workspace/WorkspaceFile.swift"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab2e71fa99e84c28a00893be80eb5330060eab42c62c3207be60c562d78c8d5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: set a proper value for stdio \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/Workspace/FileChangeWatcher/BatchingFileChangeWatcher.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f200e35aeb570baf18969a0c538f7d82be05b4d1137ae93d219d30c76a72b9f5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: If need to check? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/SuggestionProvider/PostProcessingSuggestionServiceMiddleware.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"5210c7c8f0bf2a0856a6563382909cadc2916eab0ad3629d66a6316b1b9e174c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle exception \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/Persist/Storage/ConversationStorage/ConversationStorage.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee2d515ec1a00a88eb6e64df31079ada3556039e4d980c020743610cc57b5ce"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle exception \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/PersistMiddleware/Extensions/ChatMessage\u002BStorage.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"d45937ec65600df045ff47de4e377d3d581b96c8bb2cba3e8d0ec39a3e8d30a8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHubCopilotService/LanguageServer/CustomJSONRPCServerConnection.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"00464bde6111d239c713dda52edb56df0a501711c0e2927bd6bd193e14a7460b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Handle cases of multi-project and referenced file \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHelper/CurrentChange.swift"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f112719eccf11e461ce7a05f3936a7491ec23c72702853fdce5dad633e695c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: when the \u0060agent\u0060 feature added, the avatarUrl could be obtained from the response of GitHub LSP \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/Cache/AvatarCache.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad11f682398a25373edfc19a2db8fb7e606102e4bcbdfbf17467168434d2a063"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// - todo: Make it not recursive. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc0b2f7e7b3928ed41b6c426a664faa3b2fd7cf8502978d02550d9cc8164ab7b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Could implement command history here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/terminal/terminalAddon.ts"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbc15050a71dde1d222c3a19010934b6de534bbb8fc2126e071675ed4525879"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Could implement command history here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/terminal/terminalAddon.ts"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b910d9b11335f899a4f076bc11a7af9fe990c5e32d88485a199a67dff82a47"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: dynamic set height by font size \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/CodeReviewPanelView.swift"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11e3ba7e8920aa45c13caa649821d7086cb4111b0e05a7501b563c5f032f4dc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle warnings \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/SuggestionWidget/FeatureReducers/NESSuggestionPanelFeature.swift"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"00f6663f9716e25114a59844be81845381bfe513311e850a49794ff643d73dbd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle errorMessage if any \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/Service/SuggestionCommandHandler/PseudoCommandHandler.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"827d2883d51fab3a28653659603230e4f7eb6823cd2866f4db298a7451a25e8c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: A more robust way to locate the executable. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/LaunchAgentManager/LaunchAgentManager.swift"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"923f1b10e9549f832c16df7d3c9cde248e59b513bc6c16520e9a642c65efccc2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider surfacing error to user \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b2956e43483bac669517b9e1abf74388b271090dac3d44761ab218bab095b9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider adding error handling UI feedback here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerGalleryViewModel.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"069089ecdd3a75b29f1e90a17ec94739ad7d1f575a80d90f6143e6ea5b6faf58"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Consider adding error handling UI feedback here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerGalleryViewModel.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba740939809282e8436b18f6e1c5bab2b449681ebf851a46e2449ca5e2a5d1cb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: if we need to switch to agent mode or keep the current mode \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Chat.swift"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e2a6dc825617615f06729bbf6b58888be910bba14698495b0a4370e65b4ffe"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: modify tab title dynamicly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/ConversationTab.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"995cdc1690072e662a593a84240de12aa8e8c106a39f64e37998f65bf2b5ba7b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Depends on CLS for manual compression \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ConversationTab/Views/ChatPanelInputArea/ContextSizeButton.swift"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9b94a3e3a938160462c53fe59bb7c95cf925f3b85393a091f380dfc63981c8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: clean up contents for resend message \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"74b7075cae0b468277606b63db4750aefc4b7a77750d44710a074f8f5466ab22"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: pass copy code info to Copilot server \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cd33cb4e83e52e491f431dc3ff8874259ccbbb91c13762406c52107a3ec28b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Remove this after \u0060Continue\u0060 is supported. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":1092}}}],"partialFingerprints":{"codehealthFindingId/v1":"800ae0bbc966515b74a2c475b6e2cd5fa1c907012113aa2134e6614ae662214e"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060Copilot for Xcode.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Copilot for Xcode.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"490375c062e40702a8eeaf55bb81677a9de535ef5f50353f543019ed9abd9322"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060originalMcpRegistryBaseURL\u0060 spells \u0060Mcp\u0060 where 34 names in the project spell it \u0060MCP\u0060: 34 of 35 names in project Core~ChatService spell the token \u0060MCP\u0060 (34 of 35; unit: names in project Core~ChatService containing \u0060MCP\u0060). Peers: ToolAutoApprovalManager.allowMCPTool (Core/Sources/ChatService/ToolCalls/AutoApproval/ToolAutoApprovalManager.swift:86); ToolAutoApprovalManager.allowMCPServer (Core/Sources/ChatService/ToolCalls/AutoApproval/ToolAutoApprovalManager.swift:90); ToolAutoApprovalManager.isMCPAllowed (Core/Sources/ChatService/ToolCalls/AutoApproval/ToolAutoApprovalManager.swift:94); ToolAutoApprovalManager.allowMCPToolGlobally (Core/Sources/ChatService/ToolCalls/AutoApproval/ToolAutoApprovalManager.swift:104); ToolAutoApprovalManager.allowMCPServerGlobally (Core/Sources/ChatService/ToolCalls/AutoApproval/ToolAutoApprovalManager.swift:108). Rename to \u0060originalMCPRegistryBaseURL\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPRegistryURLSheet.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d8d2dad9f99a928a0763b5b32e78e6ce8b9e2f1d0e974de386a2a7fcdc954f1"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Update diff stats\u0022 repeats the code it sits on: 3 of its 3 words (update, diff, stats) are already in \u0060updateDiffStats();\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/diffView/js/api.ts"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c95150e4933b34fa5784017f9a2c31be41cc6f61fed5d3ae2f246e3bf8f8cc"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Write prompt and input\u0022 repeats the code it sits on: 3 of its 3 words (write, prompt, input) are already in \u0060this.term.write(this.promptInLastLine \u002B this.inputBuffer);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/terminal/terminalAddon.ts"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"563505d2ff37be31d10d1408459b8af290c741d2445442fc67a64362ce5f1e84"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 2 of 4 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060Core\u0060 (39665 LoC, 556 module-visible types across 52 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D30","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":"ef5151364b4d9935f20d316416cd4022fbcc54cb67322daca1899b1df1ae6177"},"properties":{"dependency":{"package":"browserslist","version":"4.24.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"ab8f2a4dd466f515ef26b1ffa4de0df7369838af456aa95d6efeb39be7a7ff09"},"properties":{"dependency":{"package":"fast-uri","version":"3.1.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"43de5712feea1163394b036a2aa56ae9a1b47677113083e0c8d684e9bde2cc78"},"properties":{"dependency":{"package":"picomatch","version":"2.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"b3cdfb88a46c9aa3f4055eb1d12dd18aba018c69304050e4ee8a8bc60363977d"},"properties":{"dependency":{"package":"picomatch","version":"4.0.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"f68da1da62d80ad9461ce7059b97628cd3012e277cceb6df4e23b17be6f51fbe"},"properties":{"dependency":{"package":"source-map-js","version":"1.2.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"c4a710b03c8776ca2bdd6910bcfe53261a1053d08161a6a077e8a87175140f64"},"properties":{"dependency":{"package":"github.com/sparkle-project/Sparkle","version":"2.6.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"079ee785a73df863ee7cb78ae1b237a4494b0a855be56f992aa1e771d9c8a54f"},"properties":{"dependency":{"package":"ajv","version":"8.17.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"3b8b5d228a9caf830a410c28f5bd9ce0b673e6fafab90e24f7990d63faa279e2"},"properties":{"dependency":{"package":"postcss-selector-parser","version":"7.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"12d6556cb45456fed47976978b6800d02d548c7670d70e7960282e8dc2f1b2d3"},"properties":{"dependency":{"package":"serialize-javascript","version":"7.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","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":"2d6479bff432ff830b4ea77a8657aff654f9643cba713b2b08990654b30dab18"},"properties":{"dependency":{"package":"webpack","version":"5.99.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"test-or-tooling","file":"Server/webpack.config.js","line":3}}}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/diffView/diffView.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2ef6966f8d63416db7116f2dfe7b8d08cc1dc8182322e532f6e24d361600c0"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/diffView/diffView.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"37baa4cf338079b0a46986d3db653384acbbc74264da90b39146822dc0c2b470"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/terminal/terminal.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f465d8b1d6ffb038c10b04c6090d5c52b16ef4fc2bd07a5692bf0bc0b16634ec"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/terminal/terminal.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8e05a6b7113c871c1530e0250bd4ac9b04a743d559160f5ab5acee5dd84b04"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.8:1): \u0060.action-button.secondary\u0060 sets color: #DFDEDF on background-color: #6E6D70 \u2014 3.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/diffView/css/style.css"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dff83168c0c8afd082f4c9595a9d61e8ab1c2b52f5fed85e4a75ef3aa44342c"}},{"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":"P10","level":"note","message":{"text":"Implementation type on the public API: 11 public types in \u0060Tool~GitHubCopilotService\u0060 are marked as implementation by their own namespace, folder or name: \u0060ClientToolHandlerImpl\u0060 (Tool/Sources/GitHubCopilotService/Conversation/ClientToolHandler.swift:13, name ends in \u0060Impl\u0060), \u0060CompressionHandlerImpl\u0060 (Tool/Sources/GitHubCopilotService/Conversation/CompressionHandler.swift:9, name ends in \u0060Impl\u0060), \u0060ConversationContextHandlerImpl\u0060 (Tool/Sources/GitHubCopilotService/Conversation/ConversationContextHandler.swift:9, name ends in \u0060Impl\u0060), \u0060ConversationProgressHandlerImpl\u0060 (Tool/Sources/GitHubCopilotService/Conversation/ConversationProgressHandler.swift:18, name ends in \u0060Impl\u0060), \u0060DynamicOAuthRequestHandlerImpl\u0060 (Tool/Sources/GitHubCopilotService/Conversation/DynamicOAuthRequestHandler.swift:15, name ends in \u0060Impl\u0060), \u0060ShowMessageRequestHandlerImpl\u0060 (Tool/Sources/GitHubCopilotService/Conversation/ShowMessageRequestHandler.swift:17, name ends in \u0060Impl\u0060), \u0060WatchedFilesHandlerImpl\u0060 (Tool/Sources/GitHubCopilotService/Conversation/WatchedFilesHandler.swift:13, name ends in \u0060Impl\u0060), \u0060CopilotPolicyNotifierImpl\u0060 (Tool/Sources/GitHubCopilotService/Services/CopilotPolicyNotifier.swift:32, name ends in \u0060Impl\u0060), and 3 more. While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Tool/Sources/GitHubCopilotService/Conversation/ClientToolHandler.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dafaa43126a02a651c81d332a3e14278c0b0d2821cd69934301c0467fdac720"}},{"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":"Dependabot does not watch npm: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060npm\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"da14c5e8fb421b8614b797a2517de829b3c94f3b85263a50e3283dfd26519afe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): Server/src/diffView/js/ui-controller.ts:84 \u00B7 Server/src/diffView/js/ui-controller.ts:108 \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":"Server/src/diffView/js/ui-controller.ts"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5475c8c599d157f4c3dc2b9a0eb6f3daced569e1d8649ddf1c7c4f941d7e0d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): Server/src/diffView/js/api.ts:82 \u00B7 Server/src/diffView/js/monaco-diff-editor.ts:243 \u2014 the two spans are one implementation copied and then locally edited \u2014 106 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/diffView/js/api.ts"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"30b46e474bfc9902fed55482aacf04bafad3268f1a2ded7bc7e1cf929285c7dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): Server/src/terminal/terminalAddon.ts:93 \u00B7 Server/src/terminal/terminalAddon.ts:132 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/terminal/terminalAddon.ts"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b3373dca850889f03dc8a9f0650fd3562ce935591c04a0e48888c312215286"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): Server/src/diffView/js/monaco-diff-editor.ts:61 \u00B7 Server/src/diffView/js/monaco-diff-editor.ts:243 \u2014 the two spans are one implementation copied and then locally edited \u2014 56 tokens are still identical, in the same order in both spans, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/diffView/js/monaco-diff-editor.ts"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac008b03cc2434817d1c4a2200f5aa175b74e2dd3b2804488a147564db650083"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): Server/src/terminal/terminalAddon.ts:132 \u00B7 Server/src/terminal/terminalAddon.ts:142 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/terminal/terminalAddon.ts"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e52e93c91ce768de3749a4305eac289f75725edf130a496a2da581f5bc1996e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleSingleLine (cyclomatic 12, cognitive 18): handleSingleLine has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Server/src/terminal/terminalAddon.ts"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3389aebfd62c7f6012ba3f06ae4f569f2927204215ad0b850440f9177293b0"}},{"ruleId":"R6","level":"warning","message":{"text":"No test or lint script: test \u2717 \u00B7 lint \u2717 \u00B7 typecheck \u2713 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cc320bfcb25580c14169043586a3ddd9570d8bf0b4c844452a5deb0ff234a119"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@github/copilot-language-server\u0027: Declared in Server/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f9558ba83a12a70cac34df613ad43e4e2771d5074a1ab1b33e12e59a149b59c3"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@github/copilot-language-server-darwin-arm64\u0027: Declared in Server/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e9daaf61620be141f71bbc30410fe9b9469a1379a2173988f9360e00a0bc9311"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027@github/copilot-language-server-darwin-x64\u0027: Declared in Server/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e1c6378fa8b2ad6964ac22d241f423c08c8fa2853856473c97e3ad99903a8175"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060window.matchMedia \u0026\u0026 window.matchMedia(\u0027(prefers-color-scheme: dark)\u0027).matches\u0060 appears character-identically in 2 files \u2014 Server/src/diffView/js/api.ts, Server/src/diffView/js/monaco-diff-editor.ts. 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":"Server/src/diffView/js/api.ts"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"775c968eb2af87008b5307dddc1b946d57676686d69a665b8c8fe884af1434bf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060FeatureFlagNotifierImpl.shared.featureFlags.agentModeAutoApproval \u0026\u0026 CopilotPolicyNotifierImpl.shared.copilotPolicy.agentModeAutoApprovalEna\u2026\u0060 appears character-identically in 2 files \u2014 Core/Sources/ConversationTab/TerminalViews/RunInTerminalToolView.swift, Core/Sources/ConversationTab/Views/ConversationAgentProgressView/ConversationAgentProgressView.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":"Core/Sources/ConversationTab/TerminalViews/RunInTerminalToolView.swift"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f485452f72c7d0235f883eda8de21ef5d341d4dc2214f50d48c3918669f0be"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060accountStatus == .ok || accountStatus == .maybeOk\u0060 appears character-identically in 2 files \u2014 Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift, ExtensionService/AppDelegate.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":"Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0d21744ce998367a96a2211857633f7d6c1924fafa697d274ab53e29020eee"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060viewModel.isRunningAction || viewModel.waitingForSignIn\u0060 appears character-identically in 3 files \u2014 Core/Sources/HostApp/GeneralSettings/CopilotConnectionView.swift, Core/Sources/SuggestionWidget/ChatWindow/ChatLoginView.swift, Core/Sources/SuggestionWidget/ChatWindow/ChatNoSubscriptionView.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":"Core/Sources/HostApp/GeneralSettings/CopilotConnectionView.swift"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"b940452ef22629eec2765ad4ad3677fc90b2947000a5a32b0586a00c1bd8fb17"}},{"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":"Tool/Sources/XcodeInspector/SourceEditor.swift"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca75c3a332fb52f5871fe8d3d08ce546473cd654c055dd9a3ac4287b5de259b"}},{"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":"Tool/Sources/XcodeInspector/Apps/XcodeAppInstanceInspector.swift"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b92c2a2673a5526b128c386656e38d746eae8cf358dcff1d3dabd5cf119e841"}},{"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":"Tool/Sources/XPCShared/XPCService.swift"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"43178770c1111690463cd56524678648fd667c941edc2e0d47e104d638148e88"}},{"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":"Tool/Sources/SharedUIComponents/SyntaxHighlighting.swift"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"597f6443355cc536ae515e29bd4b623640d8a3c4b7986ad8dbe278aac9e8a3f3"}},{"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":"Tool/Sources/FileSystem/FileSystem.swift"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f0b0dfc7b42d9168e85d43462ec3185bd28e93b5c7d279601ab9d229859dad"}},{"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":"Tool/Sources/FileSystem/FileSystem.swift"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"2591cbaa39ff728a23590f3e0b54e1fce431338d1067102009a6a94d85c8acba"}},{"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":"Tool/Sources/FileSystem/FileSystem.swift"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9ff30fa3e46211e21df8af7fb6249c29ec09816ffeb7aa9934741298ec6150"}},{"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":"Tool/Sources/FileSystem/FileSystem.swift"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"e553bb4fa4198134015323bcc8a6ccdc514c8165ea7c62aa8dbbfd2338b0cb83"}},{"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":"Tool/Sources/Cache/AvatarCache.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"80319d6d93e640e1561d391a66a7499cf54706257ad85f3f3bb7b02f643329d8"}},{"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":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb125dc94dc7250c301f4b15b88573e247dde98637d9f1d86580ab8c5ce4227"}},{"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":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c91b6d7b2d4091aeba2ea4ea6abd476b8c1a05ba21a635c65e254178199f5cf"}},{"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":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/ServerInstallationOptionView.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"764f626daed3813c0d03e65135e29e27d61e719703535b1e9fcddae527b454bb"}},{"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":"Core/Sources/GitHubCopilotViewModel/GitHubCopilotViewModel.swift"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"93b38466c330724e73dbd22531fc9cc797c365780b21679bbcc176653116dc22"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060copilotModels\u0060 turns every thrown error into \u0060[]\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":"Core/Sources/ChatService/ChatService.swift"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"435e9210acc841b9acfc9e49014d2c33bf0dedd894f3ea86b7fb4feb60cdef70"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060formatConfigAsJSON\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":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/MCPServerDetailSheet.swift"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87c76e99562dda0c8e81f795b346985e60db0049922e6064bd29ff76cf202f1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060formatConfigAsJSON\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":"Core/Sources/HostApp/ToolsSettings/MCPRegistry/ServerInstallationOptionView.swift"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2035aab56efd41661e5ec6ca1b73b7101e7c1cbfdc4a0ef9377c75e6e9857a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060identifier\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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc014360e0caaf9bc88fa2fe86f3bc1095f2bf9d5d3bf4c01fe670173ba98801"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060value\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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"13955440db33a7659b955fe76346fb1d60ad4ff14ec93e61eaee08fb3d111c8b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060title\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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a758a898546abf3ca8584ea20028df156f901c29697ef5cff7fe2a8b297abaf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060role\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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a6fa67a2a0839f740d7245638f978cfd567c6dbf7a4fcc2860a299734613a13"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060doubleValue\u0060 turns every thrown error into \u00600.0\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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4d1adac6af3b60d629ec3a7a2b6ee6ba883a381452c53a9618d7834921494ff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060description\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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"02eaad11d7836d6d36f7c6dd1cb817623189f8b928ca84f080a691f61e9656b2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060roleDescription\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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"97052be1d79fd4128f6818fbbb726550062abb962904fff7379a30c8daab55fe"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060label\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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b897915fae519f093f4c8ef9bc65e1be0f9a999a1fda8ceb13dfe10bff9040"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060sharedFocusElements\u0060 turns every thrown error into \u0060[]\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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5857970a43aeb7fa7b69b3d665cd7bf1900bee325840f4fee91c48ee244eeae5"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060windows\u0060 turns every thrown error into \u0060[]\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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d662ecdc45e085762d4bd8ba9920306cfcf91b39836c4657e6e1912aed5b043"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060rows\u0060 turns every thrown error into \u0060[]\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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6fd57d58b02fd3e423e0f0e12a798f7b0e82f9e9de8afbf0a03a08dafef21fd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060children\u0060 turns every thrown error into \u0060[]\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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"dae4f8a9dcdefdda778c85160ce0f1ea1bdb724d9570161ec913f59195edac84"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060visibleChildren\u0060 turns every thrown error into \u0060[]\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":"Tool/Sources/AXExtension/AXUIElement.swift"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23c95ccbe627af4eb55085ae14a03fb7bce9fd8a19d38444e004876ee615ea9"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-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-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-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-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"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":10,"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."]}]}