{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"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":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"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":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"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":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"APIServiceDetailContent.body (cyclomatic 38): APIServiceDetailContent.body 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":"Warden/UI/Preferences/TabAPIServicesView.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"8942b365e86d2a057f91898f7ff6c7c3b36021aa8f6b6bff254a3e6f3cfde14e"}},{"ruleId":"D1","level":"warning","message":{"text":"BaseAPIHandler.sendMessageStream (cyclomatic 36): BaseAPIHandler.sendMessageStream has cyclomatic complexity 36 (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":"Warden/Utilities/APIHandlers/BaseAPIHandler.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"86476a6e19b8edca2ed00c5d32057a12e341647652e14b48bacd12e4fcfc77b5"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageParser.parseMessageFromString (cyclomatic 35): MessageParser.parseMessageFromString has cyclomatic complexity 35 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 11 belong to 9 function items inside it that branch. 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":"Warden/Utilities/MessageParser.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b801dd194b2d33a2465ab1d9158f4b6609793c6a970a4c353ad1d06371cd3e"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatGPTHandler.prepareRequest (cyclomatic 35): ChatGPTHandler.prepareRequest has cyclomatic complexity 35 (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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4a21bed20c813bca78703a73f86235b8c1ee7141084f9a75bbea0e9a7f4fb0"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageContentView.containsMarkdownFormatting (cyclomatic 35): MessageContentView.containsMarkdownFormatting has cyclomatic complexity 35 (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":"Warden/UI/Chat/BubbleView/MessageContentView.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a14fcaa58e9e2562795f61fc793a1fe5627e38736b5a578de5b519ddbd358ec"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageManager.sendMessageStream (cyclomatic 34): MessageManager.sendMessageStream has cyclomatic complexity 34 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 9 belong to 3 function items inside it that branch. 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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20fc5e7df7b202d19d2f6aaa462077410868d3dc380b0cf69193b258d19efd8"}},{"ruleId":"D1","level":"warning","message":{"text":"APIServiceDetailView.body (cyclomatic 31): APIServiceDetailView.body has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0778635ffec9a18928dfdd1a468f4f9cf06501c52c6c8bd0d4eefab22e98ba30"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageListView.body (cyclomatic 28): MessageListView.body has cyclomatic complexity 28 (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":"Warden/UI/Chat/MessageListView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83e10c279f3bc267abe79c6adb90ef3c8741e1837995ca02cff621f0073b610"}},{"ruleId":"D1","level":"warning","message":{"text":"AppConstants.getModernCSS (cyclomatic 26): AppConstants.getModernCSS has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Configuration/AppConstants.swift"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"425f710ee6f9d50a73e8123e6258c788d811919b85fb457f164b92016795ed10"}},{"ruleId":"D1","level":"warning","message":{"text":"QuickChatView.fetchServiceAndSend (cyclomatic 24): QuickChatView.fetchServiceAndSend 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":"Warden/UI/Chat/QuickChatView.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"14beaa6b8a2c0859a78d50d0231e96c7913c94c9a0377775b7c4c4c6ede13bcb"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageManager.handleToolCalls (cyclomatic 22): MessageManager.handleToolCalls 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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"62aa6fe787825778e19babf0a1099435330711a065d3b534cf497e1985aea501"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexAppServerHandler.sendMessageStream (cyclomatic 22): CodexAppServerHandler.sendMessageStream 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":"Warden/Utilities/APIHandlers/APIServiceFactory.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6646b01e05221fa19049664259a02a85a1189923115cb460f425d56843c19b"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeHandler.parseDeltaJSONResponse (cyclomatic 22): ClaudeHandler.parseDeltaJSONResponse 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":"Warden/Utilities/APIHandlers/ClaudeHandler.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f59502cfc8ed2b8a85f40f1aa5dd44a50dd3b76de84e4852ab6b5fb1eff758a"}},{"ruleId":"D1","level":"warning","message":{"text":"ProviderErrorBodyParser.parse (cyclomatic 21): ProviderErrorBodyParser.parse 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":"Warden/Utilities/APIHandlers/ProviderError.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e36a1503ccd94a0aa5150995015efeb860dfdd7b2b1f472cd56b729b1da24a78"}},{"ruleId":"D1","level":"warning","message":{"text":"ErrorPresentation.init (cyclomatic 21): ErrorPresentation.init 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":"Warden/UI/Chat/BubbleView/ErrorPresentation.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f43d380f49eb76c4bd27fe230684bbe7fb3e3aff65bdd630b77b07ba4364f6c"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentTagTokenizer.tokenize (cyclomatic 19): AttachmentTagTokenizer.tokenize 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":"Warden/Utilities/AttachmentTagTokenizer.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ecec029a6f1c480b5c0a011e731ad29c1a6ce2c9aed9738584c7a43a33433c"}},{"ruleId":"D1","level":"warning","message":{"text":"ServiceSelectionRow.body (cyclomatic 19): ServiceSelectionRow.body 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":"Warden/UI/Chat/MultiAgentServiceSelector.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7cc7845274e9770aa62bdb04048f6baeae4b6266e0b88bdb91bdace95ba391b"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownView.createAttributedTextForInline (cyclomatic 19): MarkdownView.createAttributedTextForInline 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":"Warden/UI/Components/MarkdownView.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b2c169966112223a7f5467ec06b391a9069a9b79a7aba1a8b013cc12ed9c97"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatView.mainChatContent (cyclomatic 18): ChatView.mainChatContent 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":"Warden/UI/Chat/ChatView.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8545a286bccdf7bf2418341f7761bf6b247ca4b7205294bb006bd58041d6e33"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageCell.body (cyclomatic 18): MessageCell.body 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":"Warden/UI/ChatList/MessageCell.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"622584ae52aa20dd47e7132d8f7aff9f4d76fbbe7248cc5cc4006d3801c1093d"}},{"ruleId":"D1","level":"warning","message":{"text":"UsageExtractor.usage (cyclomatic 18): UsageExtractor.usage has cyclomatic complexity 18 (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":"Warden/Utilities/APIHandlers/UsageExtractor.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"3af0f82c331a8c67b7288aa17457287610c7eaa1f6298a26a485fb2ff4a0eac8"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPAgentDetailView.body (cyclomatic 18): MCPAgentDetailView.body 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":"Warden/UI/Preferences/MCP/MCPSettingsView.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e2c8b184c5ca670c7c185e7c8627190f778969b52a79ea3691a6b09d9ed3a7"}},{"ruleId":"D1","level":"warning","message":{"text":"APIServiceManager.handleStream (cyclomatic 17): APIServiceManager.handleStream has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. 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":"Warden/Utilities/APIServiceManager.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"a460e2577bd326fa37fe15e4303e2b999b69909e9acc6fbc04e40bd91820bc2d"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentMimeTypeSniffer.sniff (cyclomatic 17): AttachmentMimeTypeSniffer.sniff has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/AttachmentMimeTypeSniffer.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"faba9bfa8c3baadc2906dd3795c2ddc4fd52404893e9b2894d2ab801477e0c2f"}},{"ruleId":"D1","level":"warning","message":{"text":"InlineCitations.convertToLinks (cyclomatic 17): InlineCitations.convertToLinks has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/WebSearchService.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ab5d41221ca0e931f175ec0e49970ccc3d2a04e69c28ff23cf902c54773bf1"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatView.sendMultiAgentMessage (cyclomatic 17): ChatView.sendMultiAgentMessage has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/ChatView.swift"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf3167c085aeaede3852b5e45a7637cff4f1754f67ff9b21888ed0a9cc71c44"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentCompatibility.shouldRetryWithoutFileAttachments (cyclomatic 17): AttachmentCompatibility.shouldRetryWithoutFileAttachments has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/APIHandlers/APIProtocol.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c31a56273dd477515d77a5410e7c6a7c9ddf4c1d2be920fb23d6a3a0dc00f36"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatGPTHandler.buildResponsesInputMessages (cyclomatic 17): ChatGPTHandler.buildResponsesInputMessages has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f1725f068b3164ffdd1523a1a5f21f3e3010fdc19b0f91ecec7f2ed33b97b4"}},{"ruleId":"D1","level":"warning","message":{"text":"ErrorPresentation.detailRows (cyclomatic 17): ErrorPresentation.detailRows has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/BubbleView/ErrorPresentation.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0536598be634cd8e5aa9a9d590f4b2610a85de3b55510fe074e95b0f61e1979"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageManager.sendMessage (cyclomatic 16): MessageManager.sendMessage 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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"66dddb5f4e26112b56a11cdd1b02fe9473b6410088622df9e00d27eea3755933"}},{"ruleId":"D1","level":"warning","message":{"text":"MCPManager.callTool (cyclomatic 16): MCPManager.callTool 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":"Warden/Core/MCP/MCPManager.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb671a7d84086d2c188941675f6820b171ebdfba0ded749607263641ef070d3b"}},{"ruleId":"D1","level":"warning","message":{"text":"CodexAppServerClient.listModels (cyclomatic 16): CodexAppServerClient.listModels 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":"Warden/Utilities/APIHandlers/APIServiceFactory.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b15f89df5196d97094456c3215fb3d1c54745eb13362cea1db2cd1322de222"}},{"ruleId":"D1","level":"warning","message":{"text":"ClaudeHandler.prepareRequest::expandedContent (cyclomatic 16): ClaudeHandler.prepareRequest::expandedContent 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":"Warden/Utilities/APIHandlers/ClaudeHandler.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e1b1428291d97b3cb342f8c72c64d3aa341263d7d56c7b382d06e43ceb2a7cd"}},{"ruleId":"D1","level":"warning","message":{"text":"ErrorCardContent.actionRow (cyclomatic 16): ErrorCardContent.actionRow 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":"Warden/UI/Chat/BubbleView/ErrorBubbleView.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"277ab61a4812559f064454c135ba1dd7cba9cdac6044ac5ba32daba7351045a1"}},{"ruleId":"D1","level":"warning","message":{"text":"CodeBlockFilename.validatedFilename (cyclomatic 16): CodeBlockFilename.validatedFilename 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":"Warden/UI/Chat/BubbleView/MessageContentView.swift"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9b2318d99d7ea80491b37cc47f6f37392874183846dc51b62f260017bc806a"}},{"ruleId":"D1","level":"warning","message":{"text":"AddMCPAgentSheet.body (cyclomatic 16): AddMCPAgentSheet.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":"Warden/UI/Preferences/MCP/AddMCPAgentSheet.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2deb6c64feec6d2afa7267e395738668ac36dd75c88619fefe0b1906dba661d7"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseAPIHandler.sendMessageStream (cognitive 94): BaseAPIHandler.sendMessageStream has cognitive complexity 94 (threshold 15). Drivers by points: if/else 25 (75 pts), error handling 5 (9 pts), boolean chains 5, match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 57). 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":"Warden/Utilities/APIHandlers/BaseAPIHandler.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc38982c6b289130c9c678f26afca56b1517e303461b248e36d2a2d86089b2e3"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageParser.parseMessageFromString (cognitive 67): MessageParser.parseMessageFromString has cognitive complexity 67 (threshold 15). Drivers by points: if/else 33 (63 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 31). Of this number, 52 points are the body\u0027s own statements and 15 belong to 9 function items inside it that branch. 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":"Warden/Utilities/MessageParser.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26e2cae773780ac9c4f2dafd61f6f9931f929a961fec4b74fa051e29c76e5b2"}},{"ruleId":"D2","level":"warning","message":{"text":"APIServiceDetailContent.body (cognitive 54): APIServiceDetailContent.body has cognitive complexity 54 (threshold 15). Drivers by points: if/else 27 (37 pts), ternaries 6 (9 pts), boolean chains 8 (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":"Warden/UI/Preferences/TabAPIServicesView.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d048a08c9602f88c3a366e3f982f52f3c4d14e93fb03d4c0c7026e0d6c3b0df"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageManager.sendMessageStream (cognitive 51): MessageManager.sendMessageStream has cognitive complexity 51 (threshold 15). Drivers by points: if/else 16 (26 pts), ternaries 6 (14 pts), boolean chains 7, error handling 2, loops 2 (nesting depth added 18). Of this number, 42 points are the body\u0027s own statements and 9 belong to 3 function items inside it that branch. 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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a3aff882adef714c805beb2338f0f0d9a06edafe6b61040bcda0c834115f25"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatGPTHandler.prepareRequest (cognitive 47): ChatGPTHandler.prepareRequest has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 15, match/switch 1 (4 pts), ternaries 1 (4 pts), error handling 1, loops 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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"227de22da483121b01da6879ff13005cd370ef5ccef622a6857461e8d5472f00"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatGPTHandler.buildResponsesInputMessages (cognitive 44): ChatGPTHandler.buildResponsesInputMessages has cognitive complexity 44 (threshold 15). Drivers by points: if/else 12 (36 pts), loops 2 (3 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 27). 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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddedd23d21a54a8e88838558f8415b978a7e05751294f33351136ce5e489834c"}},{"ruleId":"D2","level":"warning","message":{"text":"APIServiceDetailView.body (cognitive 44): APIServiceDetailView.body has cognitive complexity 44 (threshold 15). Drivers by points: if/else 24 (33 pts), boolean chains 7, ternaries 2 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3f0f37d48849c1aa2403b4e2e51f18bb7207330cf401923de3903f696a9f3e"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageCell.body (cognitive 40): MessageCell.body has cognitive complexity 40 (threshold 15). Drivers by points: ternaries 10 (26 pts), if/else 8 (14 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/ChatList/MessageCell.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"414a0faedbf9a58ce6a61a5f3416ec5512cac2932d4f27ef9d2abc08d163cca4"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexAppServerHandler.sendMessageStream (cognitive 40): CodexAppServerHandler.sendMessageStream has cognitive complexity 40 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 8, error handling 3 (5 pts), match/switch 1 (3 pts), loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 19). 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":"Warden/Utilities/APIHandlers/APIServiceFactory.swift"},"region":{"startLine":885}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbba594663a62c1ce9b1eff07a2d14d110e89fbbd8d1674a7bdd8fce368e07c"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageContentView.containsMarkdownFormatting (cognitive 38): MessageContentView.containsMarkdownFormatting has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 22, if/else 12 (16 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/BubbleView/MessageContentView.swift"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"448e374643da2232f106743bb94d0b4110a17ef803bb71237161bb4675e8f7d9"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageManager.handleToolCalls (cognitive 37): MessageManager.handleToolCalls has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 5, error handling 1 (2 pts), loops 1, match/switch 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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"2915be54d13006776e42fff604df02f8550552225580c0067d938dc5faf915af"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickChatView.fetchServiceAndSend (cognitive 36): QuickChatView.fetchServiceAndSend has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (24 pts), loops 6 (7 pts), error handling 2, ternaries 1 (2 pts), boolean chains 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":"Warden/UI/Chat/QuickChatView.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"130314558a52daf06248a1f49176cb694563b28367c689f48eb9544bf63f042a"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteLLMMetadataFetcher.parseModels (cognitive 35): LiteLLMMetadataFetcher.parseModels has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (25 pts), ternaries 2 (5 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/LiteLLMMetadataFetcher.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e248c6b150c101f7336c385b9dab2031c7dc4a308a917d6925006788e61e727"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentTagTokenizer.tokenize (cognitive 34): AttachmentTagTokenizer.tokenize has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (26 pts), match/switch 2 (4 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/AttachmentTagTokenizer.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cda084ad4f79e5a240d331743d2547160eb8584bbbf30e3595a12afd9f2b5f"}},{"ruleId":"D2","level":"warning","message":{"text":"CodexAppServerClient.listModels (cognitive 34): CodexAppServerClient.listModels has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (26 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 19). 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":"Warden/Utilities/APIHandlers/APIServiceFactory.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34cc197c20db10fc6fa452b922a1d7a28f810c34d21a66e4c3ebe4002ecbe67"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownView.createAttributedTextForInline (cognitive 33): MarkdownView.createAttributedTextForInline has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 2 (6 pts), ternaries 2 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 17). 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":"Warden/UI/Components/MarkdownView.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"38547cf465fbf456a563772e84a39b7da2f03f9ed047b27f807bd27f7ee84543"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeHandler.parseDeltaJSONResponse (cognitive 33): ClaudeHandler.parseDeltaJSONResponse has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (24 pts), match/switch 2 (5 pts), boolean chains 3, ternaries 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":"Warden/Utilities/APIHandlers/ClaudeHandler.swift"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"54eb84822937f2ec7fe307bc690ccf8ac8013ffa61eb4df112df4d154c9e5983"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenRouterHandler.parseJSONResponse (cognitive 32): OpenRouterHandler.parseJSONResponse has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (24 pts), boolean chains 6, error handling 1 (2 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":"Warden/Utilities/APIHandlers/OpenRouterHandler.swift"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"679b74c3ac01a77855c519a26164d3b981eaabf10ffaf449d4966395f978cf3d"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatGPTHandler.parseJSONResponse (cognitive 31): ChatGPTHandler.parseJSONResponse has cognitive complexity 31 (threshold 15). Drivers by points: if/else 6 (23 pts), boolean chains 6, error handling 1 (2 pts) (nesting depth added 18). 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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"173ec4a44fca165047269fe3f631b8d72c66fead2af72f5c8e283b1d2ffa62da"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageListView.body (cognitive 30): MessageListView.body has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 9, ternaries 2 (4 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":"Warden/UI/Chat/MessageListView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2230ce2964bb0c23230997453ed68384ca5e0f2496851d41cb1a353ebc2988"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeHandler.parseJSONResponse (cognitive 30): ClaudeHandler.parseJSONResponse has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (22 pts), boolean chains 7, error handling 1 (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":"Warden/Utilities/APIHandlers/ClaudeHandler.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df3cd537451ba8b3c4ad859c237c9eb18cca6f32d292d22e3d57f82e51fd152"}},{"ruleId":"D2","level":"warning","message":{"text":"ProviderErrorBodyParser.parse (cognitive 30): ProviderErrorBodyParser.parse has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (18 pts), ternaries 3 (6 pts), boolean chains 4, loops 1 (2 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":"Warden/Utilities/APIHandlers/ProviderError.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b028d81910128bb3896e0db5d7137b587d906575117a2251f2e6dde8cd24d4e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatGPTHandler.parseDeltaJSONResponse (cognitive 29): ChatGPTHandler.parseDeltaJSONResponse has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (23 pts), boolean chains 5, error handling 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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d0243f990d0f273c9db78fac01b5a17b5edf1b5aeee9b94f9c550966f6a58b"}},{"ruleId":"D2","level":"warning","message":{"text":"APIServiceManager.handleStream (cognitive 27): APIServiceManager.handleStream has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 4, loops 2 (nesting depth added 11). Of this number, 24 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. 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":"Warden/Utilities/APIServiceManager.swift"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"59983b6d9fc48f433f489e50609b29ff9cb44c94d3e1c00113b54449b7256638"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPAgentDetailView.body (cognitive 27): MCPAgentDetailView.body has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 10 (14 pts), if/else 9 (13 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":"Warden/UI/Preferences/MCP/MCPSettingsView.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e35f23b01feaa89fdd9fb6a34b167cc718350a91c3aadb1513a43b99b9b210e"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiAgentMessageManager.sendRequest (cognitive 26): MultiAgentMessageManager.sendRequest has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 1 (3 pts), error handling 2, boolean chains 1 (nesting depth added 13). Of this number, 13 points are the body\u0027s own statements and 13 belong to 2 function items inside it that branch. 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":"Warden/Utilities/MultiAgentMessageManager.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d6a043c474efe32225234b2d48416b91cff8fc847d6ff47ce7d53297abe3b1"}},{"ruleId":"D2","level":"warning","message":{"text":"AppConstants.getModernCSS (cognitive 25): AppConstants.getModernCSS has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 25. 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":"Warden/Configuration/AppConstants.swift"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aca58e8425338547cf3a5394b6d03cb82e2aaf7fa317fac268708133e68a689"}},{"ruleId":"D2","level":"warning","message":{"text":"ClaudeHandler.prepareRequest::expandedContent (cognitive 25): ClaudeHandler.prepareRequest::expandedContent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 2, match/switch 1 (2 pts), loops 1, ternaries 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":"Warden/Utilities/APIHandlers/ClaudeHandler.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42dd15357c23db1e63c5f2a9179d6ef5d1c6276e3381802a29e354384e4d737"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageInputView.handleDrop (cognitive 23): MessageInputView.handleDrop has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 3, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/BottomContainer/MessageInputView.swift"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4f13959af072e4228222d7eb84215b0270dc95cf4f1ced4fdc932400350b99"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatView.sendMultiAgentMessage (cognitive 22): ChatView.sendMultiAgentMessage has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5, loops 1 (2 pts), match/switch 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":"Warden/UI/Chat/ChatView.swift"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b5c74cf8195a49ea5694036c36540a3192abe1f7e014d591bc7618f59da14c"}},{"ruleId":"D2","level":"warning","message":{"text":"AddMCPAgentSheet.body (cognitive 22): AddMCPAgentSheet.body has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8 (12 pts), if/else 7 (8 pts), boolean chains 2 (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":"Warden/UI/Preferences/MCP/AddMCPAgentSheet.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c4c5830066eb44bcedeaf03dddf32dc5cf7d75976bbbb4dbe795f8e783ea24"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageManager.sendMessage (cognitive 21): MessageManager.sendMessage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 4 (8 pts), boolean chains 3, 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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"45829baed27933627098f71e6d748a737dd9cf170a05add37643670ebab0c17f"}},{"ruleId":"D2","level":"warning","message":{"text":"InlineCitations.convertToLinks (cognitive 21): InlineCitations.convertToLinks has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (7 pts), ternaries 2 (4 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/WebSearchService.swift"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d3d5b19378e2f39b869c336b277fdad0ab6cd71df536b461262feff8561c0e"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelMetadataPopover.body (cognitive 21): ModelMetadataPopover.body has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 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":"Warden/UI/Components/ModelSelectorPopover.swift"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"82175c772730dbe31d3f3f6a4b7b9b1fece00be126de351c2166b99b7dd432db"}},{"ruleId":"D2","level":"warning","message":{"text":"MistralHandler.parseDeltaJSONResponse (cognitive 21): MistralHandler.parseDeltaJSONResponse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 4, error handling 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":"Warden/Utilities/APIHandlers/MistralHandler.swift"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"301a64f51ab368929e1c599137f488135961fd64c455e69198651572f589f6dc"}},{"ruleId":"D2","level":"warning","message":{"text":"ErrorCardContent.actionRow (cognitive 21): ErrorCardContent.actionRow has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 8 (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":"Warden/UI/Chat/BubbleView/ErrorBubbleView.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"04eddcecace6556a0c49c448b6ea7c434b5f916d2e0847b2e912ddfdcfdd0705"}},{"ruleId":"D2","level":"warning","message":{"text":"ReasoningStepParser.headingTitle (cognitive 20): ReasoningStepParser.headingTitle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 2, loops 1 (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":"Warden/Utilities/ReasoningStepParser.swift"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d014d892471aec60282fa60948027af73c5eaa4d6d2bda735d1e6037c0c629"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageContentView.refreshParsedElements (cognitive 20): MessageContentView.refreshParsedElements has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 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":"Warden/UI/Chat/BubbleView/MessageContentView.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9890ff1cca49273ba9a64ea7a49678cc43ede9c6521a06b1d01e42ee00a3fc5"}},{"ruleId":"D2","level":"warning","message":{"text":"InlineCitations.codeRanges (cognitive 19): InlineCitations.codeRanges has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/WebSearchService.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"94324bb3f2b5def12e21fb842da7dae24b980be5bf1d1c2f3af97ec8348c83a7"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatListView.performSearch (cognitive 19): ChatListView.performSearch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (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":"Warden/UI/ChatList/ChatListView.swift"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae07d56010ba613df6ef0e77b9316056be953ba29dcae5c35ab802c67387f6b"}},{"ruleId":"D2","level":"warning","message":{"text":"ModelMetadata.formatModelName (cognitive 18): ModelMetadata.formatModelName has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/ModelMetadata.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f973741bbcfd8451e60405dbf099a6aef877af43748297113cdb60565c61842"}},{"ruleId":"D2","level":"warning","message":{"text":"MCPManager.callTool (cognitive 18): MCPManager.callTool has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 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":"Warden/Core/MCP/MCPManager.swift"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"7587afdd0c683153fe2ba4ac0dbd024c6df9318f384ac07615fbdebb91b12f21"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatView.mainChatContent (cognitive 18): ChatView.mainChatContent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 2, match/switch 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":"Warden/UI/Chat/ChatView.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ada2b38cd19a76cefc7407a281a6c2574285c51d82f217b3c864b0d469f7a2"}},{"ruleId":"D2","level":"warning","message":{"text":"ServiceSelectionRow.body (cognitive 18): ServiceSelectionRow.body has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 10, boolean chains 7, if/else 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":"Warden/UI/Chat/MultiAgentServiceSelector.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de9fe46a852cd3f3a743e3c0915917cace36a006bb26bf99d63987d3fe8b4a4"}},{"ruleId":"D2","level":"warning","message":{"text":"FilePreviewView.body (cognitive 18): FilePreviewView.body has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), match/switch 2 (3 pts), 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":"Warden/UI/Components/FilePreviewView.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"915e044d6f8a83e64df6fd41724d5c592f44c2b7f74b1681d3ab0d3f78128732"}},{"ruleId":"D2","level":"warning","message":{"text":"APIService.sendMessageReturningUsage (cognitive 18): APIService.sendMessageReturningUsage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 2, error handling 1 (2 pts), loops 1, match/switch 1 (nesting depth added 8). Of this number, 11 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":"Warden/Utilities/APIHandlers/APIProtocol.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff0ddc532a6aa4ab7dc0f17f8eef8f8293b18aa19560f9786d451fb3f0495f9"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepseekHandler.parseDeltaJSONResponse (cognitive 18): DeepseekHandler.parseDeltaJSONResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/APIHandlers/DeepseekHandler.swift"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd100d9b894f1769fb93a398050e973590bc3b33fc057e45d49216f07267d632"}},{"ruleId":"D2","level":"warning","message":{"text":"UsageExtractor.usage (cognitive 18): UsageExtractor.usage has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 7 (8 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":"Warden/Utilities/APIHandlers/UsageExtractor.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"32eb7ab49590ae05547ecf44a6a514b916599a6e613752faf3fa9f08f978ebf2"}},{"ruleId":"D2","level":"warning","message":{"text":"APIServiceDetailViewModel.setupInitialValues (cognitive 18): APIServiceDetailViewModel.setupInitialValues has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 2 (6 pts), error handling 1 (3 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":"Warden/UI/Preferences/TabAPIServices/APIServiceDetailViewModel.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a105803f758a5a4bc8e66926ec2d5c873b3cf804f1dfed24e221beb128111b9"}},{"ruleId":"D2","level":"warning","message":{"text":"APIServiceDetailViewModel.fetchModelsForService (cognitive 18): APIServiceDetailViewModel.fetchModelsForService has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 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":"Warden/UI/Preferences/TabAPIServices/APIServiceDetailViewModel.swift"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d1174c9c1be6ede40f5f28781f1aca48025c3feeac6b8082592f3fcc36400b"}},{"ruleId":"D2","level":"warning","message":{"text":"QuickChatView.ensureQuickChatEntity (cognitive 17): QuickChatView.ensureQuickChatEntity has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, error handling 2 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/QuickChatView.swift"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c94020970efbe7d6d5ca855815a4b90979fa076f9918f8d9bb28547580dcff1"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentCompatibility.shouldRetryWithoutFileAttachments (cognitive 17): AttachmentCompatibility.shouldRetryWithoutFileAttachments has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 12, if/else 4, match/switch 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":"Warden/Utilities/APIHandlers/APIProtocol.swift"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"238bad091dee5b15bf424e8dea5000c33855d8b286ceaec7f76401cd89293758"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatGPTHandler.parseResponsesJSON (cognitive 17): ChatGPTHandler.parseResponsesJSON has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 2 (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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"055f5a26a453526a0c25632619ab46277bb6caf419247ed81b4ad45566a99d3a"}},{"ruleId":"D2","level":"warning","message":{"text":"ErrorPresentation.sanitizedMessage (cognitive 17): ErrorPresentation.sanitizedMessage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 5, ternaries 2 (4 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/BubbleView/ErrorPresentation.swift"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef12d2532f1a4a633246bfb870baab9f0d8492e745b32f53072880b8dd40f0d0"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentMimeTypeSniffer.sniff (cognitive 16): AttachmentMimeTypeSniffer.sniff has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/AttachmentMimeTypeSniffer.swift"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"978c566cfa36d5e2880750e85240cde177642e9dd7cc8a6a379f2c73390f6df3"}},{"ruleId":"D2","level":"warning","message":{"text":"MistralHandler.prepareRequest (cognitive 16): MistralHandler.prepareRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), error handling 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":"Warden/Utilities/APIHandlers/MistralHandler.swift"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3498c8652c155b3dbf38795b404633a058ac9e8a445f892ddef94c8fb72bce6f"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenRouterHandler.parseDeltaJSONResponse (cognitive 16): OpenRouterHandler.parseDeltaJSONResponse has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, 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":"Warden/Utilities/APIHandlers/OpenRouterHandler.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"426265d72aafae9c838716e3121d927f920ebfc275f96eae9f57ab50586c3c02"}},{"ruleId":"D2","level":"warning","message":{"text":"ErrorPresentation.detailRows (cognitive 16): ErrorPresentation.detailRows has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. 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":"Warden/UI/Chat/BubbleView/ErrorPresentation.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"982739586561aadd3c7260800608167bb8a81408396bea4ef78b62d72dbefea7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: APIServiceDetailContent.body: MethodTooLong \u2014 body runs 309 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 209 over it, 3.09\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":"Warden/UI/Preferences/TabAPIServicesView.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a4dc34173009e2b82b0b699ad102dadfa199b27c046689b2b77fcfe033efaa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: APIServiceDetailView.body: MethodTooLong \u2014 body runs 257 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 157 over it, 2.57\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":"Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4249850fe44f4e2fe4df571c5f9bad8d797f13fa7018002e0bf3c453cc6f84"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MessageManager.sendMessageStream: MethodTooLong \u2014 sendMessageStream runs 209 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 109 over it, 2.09\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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a9b7574e783c525df0b017be8b4eb0450e072f34e9dd7dbf7c6ef5ecdf4a228"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MessageManager: ClassTooLong \u2014 797 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 397 over it, 1.99\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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3f7a18a84726031a35f3d738ff1c5dba2c0e1e18e2a8269ef7cdd9b4958107"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatStore: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\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":"Warden/Store/ChatStore.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca064680dd2c99d6fc2ecd27bc650eb2636a4704bc1fc65cbe5809d3115a4e7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MessageParser.parseMessageFromString: MethodTooLong \u2014 parseMessageFromString runs 179 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 79 over it, 1.79\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":"Warden/Utilities/MessageParser.swift"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fff6f10bdd3f67e96e666dbdaf90520a9d79ea051c6b7b51e43a5a4ad13c048"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/ChatView.swift: FileTooLong \u2014 834 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 334 over it, 1.67\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":"Warden/UI/Chat/ChatView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfcf5217559ac1edf2834c53f1dfa21ed337f804a591cf35fd888dc85f61cfeb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AppConstants: ClassTooLong \u2014 651 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 251 over it, 1.63\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":"Warden/Configuration/AppConstants.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6025aaa9d4958874155d749bb03335e8cb1a2372bb2ffea26a9bfecc5f6d121"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Utilities/MessageManager.swift: FileTooLong \u2014 802 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: MessageManager (7-1210). The bar is 500 significant lines; this is 302 over it, 1.60\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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e02194170973d60322671abcd88b4ddfa54624ebc66e9e8cf80a7627405bf07f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BottomContainer/MessageInputView.swift: FileTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 271 over it, 1.54\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":"Warden/UI/Chat/BottomContainer/MessageInputView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53d44ca549b9bfe34a12221c276951176499c617176145b75a63604025bed9b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ErrorPresentation.init: MethodTooLong \u2014 init runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\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":"Warden/UI/Chat/BubbleView/ErrorPresentation.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d55a98249438e6f5351742311441be9f535278e2d67b66ea14b53d743b8061"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AddMCPAgentSheet.body: MethodTooLong \u2014 body runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\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":"Warden/UI/Preferences/MCP/AddMCPAgentSheet.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e9f9e729643a3d23ed88059b2aa258c953a8becac5e7005d8f8cd3a0172881"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: CodeView/CodeView.swift: FileTooLong \u2014 738 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: CodeView (6-758). The bar is 500 significant lines; this is 238 over it, 1.48\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":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d422f4f563c005749e121f2ec1523a0f9a4353b1b57cb5a424e695f23e5c5dd6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: APIHandlers/APIServiceFactory.swift: FileTooLong \u2014 734 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 234 over it, 1.47\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/APIHandlers/APIServiceFactory.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43888e5c4446417a3191f3a63e9031b40e3bef5a1f8bd706583a7ea472d64104"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WardenApp.body: MethodTooLong \u2014 body runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\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":"Warden/WardenApp.swift"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ca705757ed021165caad37f099ff723a12a67430f908cfd56ab787a61bec95"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TabGeneralSettingsView.body: MethodTooLong \u2014 body runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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":"Warden/UI/Preferences/TabGeneralSettingsView.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"44b0436b80bf45c7a57e787986f9e14f083b46636142c9457eb948aee9be031e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatStore: ClassTooLong \u2014 541 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 400 significant lines; this is 141 over it, 1.35\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":"Warden/Store/ChatStore.swift"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"460d8ec6f30feda1b715066fa06b33e661a086a408b1322501a58312ed725c0e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Configuration/AppConstants.swift: FileTooLong \u2014 658 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: AppConstants (6-857). The bar is 500 significant lines; this is 158 over it, 1.32\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":"Warden/Configuration/AppConstants.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14aeebf3e8629ad939c0d836e2e580a4a35bb9c42c7605a110f2a1b8ec97c976"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PersonaDetailView.body: MethodTooLong \u2014 body runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\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":"Warden/UI/Preferences/TabAIPersonasView.swift"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"67a0ef63259491ab6d0917093ba5cf371aea9e99a28e7ba35ab76b8b947a0792"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CodeView: ClassTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 116 over it, 1.29\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":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"e776c55c881ea52a464462ff422fcfa914244e2f853aafdbc566b47b78a10d3d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MessageListView.body: MethodTooLong \u2014 body runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\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":"Warden/UI/Chat/MessageListView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63419813ea039f22ac1b1ff88f7af26e93875b76a12d3ad750863e9c102418d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: QuickChatView.fetchServiceAndSend: MethodTooLong \u2014 fetchServiceAndSend runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\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":"Warden/UI/Chat/QuickChatView.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"9299be0634655e38b88722a439d7b88ff29e91cbc8e11e9e9ad8e07c5c88c272"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatView: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\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":"Warden/UI/Chat/ChatView.swift"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"7999c75d02b5b4cb424ddd5e1b1036e89162e5d049ee1b7b3caa63444916f110"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: UI/ContentView.swift: FileTooLong \u2014 628 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 128 over it, 1.26\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":"Warden/UI/ContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"621b4f1437ca7eef886f8e39a860fcd47381f74a612279899e7a3011dc6b0923"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Chat/QuickChatView.swift: FileTooLong \u2014 625 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: QuickChatView (6-560). The bar is 500 significant lines; this is 125 over it, 1.25\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":"Warden/UI/Chat/QuickChatView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c0803c8ff530ac971309b14088e245cc6071bb9729933d1f4dacef0f11b36c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseAPIHandler.sendMessageStream: MethodTooLong \u2014 sendMessageStream runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\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":"Warden/Utilities/APIHandlers/BaseAPIHandler.swift"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e0c93bd7e2c3d94450aac43db420f333ca0d1d4a12eb9fb36daf5ce4465662"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MessageManager.handleToolCalls: MethodTooLong \u2014 handleToolCalls runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6876aad37747d74e5629f3987ba24f5bba0877ecfdaa1107ba061ae960af84a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TabWebSearchView.body: MethodTooLong \u2014 body runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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":"Warden/UI/Preferences/TabTavilySearchView.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7994d8d94aa66b97c57ffb0189d1ef9702f0538bd03b3bea950ad0e39c954cf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ClaudeHandler.prepareRequest: MethodTooLong \u2014 prepareRequest runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\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":"Warden/Utilities/APIHandlers/ClaudeHandler.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84c57800cd05f2e75b22c6942e8ca97fcd86523b436478ee200a905e92a8266"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Components/ModelSelectorPopover.swift: FileTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded), about 67% of them inside a single declaration: ModelSelectorList (280-830). The bar is 500 significant lines; this is 88 over it, 1.18\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":"Warden/UI/Components/ModelSelectorPopover.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd68b9da831ac11f07dd6cc631ad6b0caf4d9608ed24e0ccce1ea44cf5ca7186"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatView.mainChatContent: MethodTooLong \u2014 mainChatContent runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\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":"Warden/UI/Chat/ChatView.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c00338ed0d2af289cf4a70bc243355f623bda768bca5f9dca477f2e76515ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MultiAgentMessageManager.sendRequest: MethodTooLong \u2014 sendRequest runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\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":"Warden/Utilities/MultiAgentMessageManager.swift"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4973a46a36ec672dce544f1564be81a87fe1d30429bfcb92160471862f650846"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Store/ChatStore.swift: FileTooLong \u2014 551 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ChatStore (9-869). The bar is 500 significant lines; this is 51 over it, 1.10\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":"Warden/Store/ChatStore.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b48e8f5063d5fa26068230dd7fb4f1eacd9be93221cb3f9c8b61d1e99b10090e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CodexAppServerClient: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 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":"Warden/Utilities/APIHandlers/APIServiceFactory.swift"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f4807669eae74c983b519985fdcc5f8132548596ccda3259da03e18fa549c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: BubbleView/MessageContentView.swift: FileTooLong \u2014 543 significant lines (blank, comment-only and punctuation-only lines excluded), about 79% of them inside a single declaration: MessageContentView (49-651). The bar is 500 significant lines; this is 43 over it, 1.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":"Warden/UI/Chat/BubbleView/MessageContentView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7a45d283fae2cfbc726721234ed9a6af9e7373928ab59895dd4e88a2a9ba2b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MessageContentView: ClassTooLong \u2014 431 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 31 over it, 1.08\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":"Warden/UI/Chat/BubbleView/MessageContentView.swift"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"af294e35e748307e8b03da0e9e4bf9c39fb1433c165383a617d880583880f6b8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: APIServiceDetailViewModel: ClassTooLong \u2014 421 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 21 over it, 1.05\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":"Warden/UI/Preferences/TabAPIServices/APIServiceDetailViewModel.swift"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3441c6c7ab8f3ec74e413d86785e4e16dfd3b89afc304eb682e1f9e330f945"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FileAttachment: ClassTooLong \u2014 415 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 15 over it, 1.04\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":"Warden/Models/FileAttachment.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"74adeb8f31cc5f690e16a367bb64aaaeed318761e96c7d5bee971130f26414ee"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MessageInputView: ClassTooLong \u2014 409 significant lines (blank, comment-only and punctuation-only lines excluded), 10 methods. The bar is 400 significant lines; this is 9 over it, 1.02\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":"Warden/UI/Chat/BottomContainer/MessageInputView.swift"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffcdd0b6932379b1aead1c917a729c1a9e5b471ce4e2754511ac92bbd89895f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (70 shared lines): Warden/Utilities/MessageManager.swift:149-230 | Warden/Utilities/MessageManager.swift:232-313 \u2014 These two members are variants of one another: 70 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ea2153d2a4a8d63250efb97365199be38fe34a71374da501193b63559c9323"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Warden/UI/Chat/BubbleView/ChatBubbleView.swift:509-549 | Warden/UI/Chat/QuickChatView.swift:748-769 \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":"Warden/UI/Chat/BubbleView/ChatBubbleView.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f6986b5c2e2c3733c3840ea2dcaeb56330881ad6f43b4188eabf2ecd5286c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): Warden/Utilities/ChatSharingService.swift:102-137 | Warden/Utilities/ChatSharingService.swift:139-177 \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":"Warden/Utilities/ChatSharingService.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"8109ad85704d1a745966cb3b8723c2c56dc7987f587f728d5513eb1a7b5b5f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): Warden/Utilities/APIHandlers/APIProtocol.swift:240-266 | Warden/Utilities/APIHandlers/APIProtocol.swift:270-299 \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":"Warden/Utilities/APIHandlers/APIProtocol.swift"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6868fe80174ba834e198a1f41e64a07eede64dd461a1a8adca079b479a43c08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Warden/Core/MCP/MCPManager.swift:73-120 | Warden/Core/MCP/MCPManager.swift:246-267 \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":"Warden/Core/MCP/MCPManager.swift"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6699a020806a4e27d490f32a0556535ad85dd86e2e018a3aa06b20c5bbc66fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Warden/UI/Chat/ProjectSummaryView.swift:367-374 | Warden/UI/ChatList/ChatListRow.swift:49-56 | Warden/UI/ChatList/ChatListView.swift:22-29 | Warden/UI/ChatList/ProjectListView.swift:37-44 | Warden/UI/ChatList/ProjectListView.swift:206-213 | Warden/UI/ChatList/ProjectListView.swift:360-367 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/ProjectSummaryView.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"901c9ac81c23bfa1cf342fc93e798ae6e8630c3a2d7daec4837e70d369e8061f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:25-55 | Warden/Utilities/APIHandlers/ClaudeHandler.swift:24-52 | Warden/Utilities/APIHandlers/GeminiHandler.swift:54-85 | Warden/Utilities/APIHandlers/LMStudioHandler.swift:23-56 | Warden/Utilities/APIHandlers/MistralHandler.swift:16-44 | Warden/Utilities/APIHandlers/OllamaHandler.swift:16-42 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b416bcc30cd85dd371c55cbe36488fb8aa1849134e79765e153944bc4db41c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:246-356 | Warden/Utilities/APIHandlers/DeepseekHandler.swift:44-93 | Warden/Utilities/APIHandlers/OllamaHandler.swift:125-160 | Warden/Utilities/APIHandlers/OpenRouterHandler.swift:76-125 | Warden/Utilities/APIHandlers/PerplexityHandler.swift:98-136 \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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"7681ff0276d712c02d71fb416ec425c2a30f3db5d3c35f9d3c01bd47317c4ad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): Warden/Utilities/APIHandlers/ClaudeHandler.swift:54-223 | Warden/Utilities/APIHandlers/MistralHandler.swift:46-108 | Warden/Utilities/APIHandlers/OllamaHandler.swift:44-99 | Warden/Utilities/APIHandlers/PerplexityHandler.swift:7-54 \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":"Warden/Utilities/APIHandlers/ClaudeHandler.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3f7e2ceb12d38168589e959101bc165844a2f9fb335751e29913b95aa3b4a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (91 corresponding lines): Warden/UI/Chat/CodeView/CodeView.swift:227-333 | Warden/UI/ContentView.swift:776-866 \u2014 These two members are one piece of code written twice and then edited apart: 91 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":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"a971403bbc1989cc47e3ef67ad95902ef4ffb7d6abc22fa64ae5b5eddde8a93e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (76 corresponding lines): Warden/UI/ChatList/ProjectListView.swift:223-298 | Warden/UI/ChatList/ProjectListView.swift:377-452 \u2014 These two members are one piece of code written twice and then edited apart: 76 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":"Warden/UI/ChatList/ProjectListView.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"662c45e35e53a2cc68f90e2de7760660fa71a26020efd404f80da2b5846a24e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): Warden/UI/Chat/CodeView/CodeView.swift:542-582 | Warden/UI/Chat/CodeView/CodeView.swift:631-668 \u2014 These two members are one piece of code written twice and then edited apart: 38 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":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18a223f2204ae3c7ae6d6c841a6a567a323bc2942d2cf3d78fef30bcafcd8c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (46 corresponding lines): Warden/Utilities/TavilySearchService.swift:21-81 | Warden/Utilities/WebSearchService.swift:70-115 \u2014 These two members are one piece of code written twice and then edited apart: 46 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":"Warden/Utilities/TavilySearchService.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7c5a922b70505aa1ebae4a342f581f28fbe0700f22f71da1d09a14b53cf013"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Warden/UI/Chat/BottomContainer/MessageInputView.swift:1007-1046 | Warden/UI/Components/ModelSelectorDropdown.swift:59-113 \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":"Warden/UI/Chat/BottomContainer/MessageInputView.swift"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb73ca12aa2cf1948eeefef763c6fc99d7c410cb3447e9d012ea07b1f06652df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): Warden/UI/Chat/CodeView/CodeView.swift:335-373 | Warden/UI/ContentView.swift:635-682 \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":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff1d0af5f03a21ca2bfd14334549812ba3e264adbc4028a9ab46ee1ca58ce11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): Warden/UI/ChatList/ChatListView.swift:392-446 | Warden/UI/ChatList/ProjectListView.swift:108-160 \u2014 These two members are one piece of code written twice and then edited apart: 53 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":"Warden/UI/ChatList/ChatListView.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9817909bfa960dd1abff9de730849ab32a0311bacf7bc08079f842bd41ce09d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): Warden/UI/ChatList/MoveToProjectView.swift:228-270 | Warden/UI/ChatList/MoveToProjectView.swift:272-312 \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":"Warden/UI/ChatList/MoveToProjectView.swift"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2d60d28b9d7c9f3c089d2a627d8ca2250c348dddbb5794dcd0b39dec023ba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): Warden/Utilities/ExaSearchService.swift:14-56 | Warden/Utilities/TavilySearchService.swift:83-129 \u2014 These two members are one piece of code written twice and then edited apart: 43 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":"Warden/Utilities/ExaSearchService.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8507de60648fd0c68baeaf9fab122761d15af5458fe77b07653d81d46687ac47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): Warden/UI/Chat/CodeView/CodeView.swift:681-720 | Warden/Utilities/Extensions.swift:386-431 \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":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac755c30bb1b81a20234ec77d75b41556a2838bce6494d3f561722091f9cdb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): Warden/Utilities/APIHandlers/DeepseekHandler.swift:13-42 | Warden/Utilities/APIHandlers/OllamaHandler.swift:101-123 | Warden/Utilities/APIHandlers/PerplexityHandler.swift:70-96 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 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":"Warden/Utilities/APIHandlers/DeepseekHandler.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c2ae166695fccd29b8e638d3fb1f2306f69104eab440f3356c3891b8389b2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Warden/UI/Chat/NewChatHomeViews.swift:277-292 | Warden/UI/ChatList/ChatListRow.swift:6-32 \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":"Warden/UI/Chat/NewChatHomeViews.swift"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f55db97da0e348b8f32a06119c8cdf579a4f89ddc6ea4574765977fa137f72"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Warden/UI/Components/FavoriteQuickAccessBar.swift:37-72 | Warden/UI/Components/ModelSelectorPopover.swift:238-273 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"Warden/UI/Components/FavoriteQuickAccessBar.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"1941834f632a1401ad9f99ed7887e18800dd0df2dc2b87bbf69f79334453ddaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): Warden/UI/Chat/CenteredInputView.swift:246-285 | Warden/UI/Components/ChatShareMenu.swift:166-198 \u2014 These two members are one piece of code written twice and then edited apart: 33 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":"Warden/UI/Chat/CenteredInputView.swift"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8fe9ea0de1d9b30c28d1ca4653b8db71ac1102a039eea24ccccb22d9350837"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): Warden/Utilities/BackgroundDataLoader.swift:45-80 | Warden/Utilities/BackgroundDataLoader.swift:123-166 \u2014 These two members are one piece of code written twice and then edited apart: 36 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":"Warden/Utilities/BackgroundDataLoader.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9eccf5c11294132e7507c1c3b9fabca1bef6a3f1468618ecb23bf3991f01c34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Warden/UI/Chat/BubbleView/ChatBubbleView.swift:469-507 | Warden/UI/Chat/QuickChatView.swift:716-746 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/BubbleView/ChatBubbleView.swift"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"2143569c6e2541bba39b27bdd747ee9387833466695b9679f1be03cc5c615247"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Warden/Utilities/IncrementalMessageParser.swift:388-420 | Warden/Utilities/IncrementalMessageParser.swift:422-443 \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":"Warden/Utilities/IncrementalMessageParser.swift"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"8746ee3b33265279d1a0e6e18aef429747812ff1834e9c5c9a589e15cae51985"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): Warden/Models/FileAttachment.swift:400-424 | Warden/Models/ImageAttachment.swift:241-263 \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":"Warden/Models/FileAttachment.swift"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6272aca9f10079504ec5289d0e0982e27022c932767f880534e66edd99bf220"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): Warden/UI/Chat/ProjectSummaryButton.swift:445-478 | Warden/UI/Chat/ProjectSummaryView.swift:467-500 \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":"Warden/UI/Chat/ProjectSummaryButton.swift"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"a33ff26491ab15ce19770a7f5573de5215b7d84c6261988d91901c402dff6a60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): Warden/Utilities/APIHandlers/APIServiceFactory.swift:354-383 | Warden/Utilities/APIHandlers/APIServiceFactory.swift:385-412 | Warden/Utilities/APIHandlers/APIServiceFactory.swift:414-441 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/APIHandlers/APIServiceFactory.swift"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"412660df9ba83f1abde8748f9723db6e636c00f16a6e8a70cf0cc3a6afecc946"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Warden/Utilities/IncrementalMessageParser.swift:212-232 | Warden/Utilities/MessageParser.swift:18-45 \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":"Warden/Utilities/IncrementalMessageParser.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35fb8305ef18460f2da6d5f8cc4c1af700884b096ba1c63614c0d9c2f24ff6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): Warden/Utilities/SSEStreamParser.swift:18-58 | Warden/Utilities/SSEStreamParser.swift:60-90 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/SSEStreamParser.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4127fbf613d30b2af00251cc02118f26be7a2487284b2c9229bf2e99da07d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Warden/UI/Chat/BubbleView/MessageContentView.swift:358-379 | Warden/UI/Chat/BubbleView/MessageContentView.swift:381-402 \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":"Warden/UI/Chat/BubbleView/MessageContentView.swift"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"bceef26be0d768d8f6ea1974964a577b46970eecad9b50e08b442ae341eb09c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Warden/Models/Models.swift:229-247 | Warden/Models/Models.swift:263-304 \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":"Warden/Models/Models.swift"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"00be573553166509bef6bd1c61907a2a950abd343b0a4176a60dbd2e0813ee71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Warden/UI/Chat/ProjectSummaryView.swift:385-409 | Warden/UI/ChatList/ChatListRow.swift:209-229 \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":"Warden/UI/Chat/ProjectSummaryView.swift"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"4527790f07ba9bd3790ebc9bfdf83846d84e5928913e2bc6ee26bbc40a368c68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Warden/UI/Preferences/TabContributionsView.swift:190-213 | Warden/UI/Preferences/TabContributionsView.swift:222-252 \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":"Warden/UI/Preferences/TabContributionsView.swift"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdb4a24e40776e66606c7c9d25952c22ab0b75bbc359f1daa9c30944f09270a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Warden/UI/Chat/BottomContainer/MessageInputView.swift:1108-1138 | Warden/UI/Components/GlassEffectModifiers.swift:118-141 \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":"Warden/UI/Chat/BottomContainer/MessageInputView.swift"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b78a70b6c2502641b1280ef562ede9bc8e40df296a728d3e8cd92ecae9205312"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Warden/UI/ChatList/ProjectListView.swift:162-179 | Warden/UI/ChatList/ProjectListView.swift:493-510 \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":"Warden/UI/ChatList/ProjectListView.swift"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"0184c206d44723b3dae1723871f767fab94a90e6f76646382dda52ad749298d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): Warden/UI/Chat/ChatViewModel.swift:111-128 | Warden/UI/Chat/ChatViewModel.swift:130-149 | Warden/UI/Chat/ChatViewModel.swift:151-170 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 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":"Warden/UI/Chat/ChatViewModel.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b9b9c8d1e6b7e10b602602d1b64e3676fa8b487cac1c1eb0d9e7dca0ee8ebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Warden/Utilities/ReasoningStepParser.swift:56-86 | Warden/Utilities/ReasoningStepParser.swift:146-172 \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":"Warden/Utilities/ReasoningStepParser.swift"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b742d69b0ccdbcf15e000d651545f377eaad928fb62e73d9092b2e2110f1c43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Warden/UI/Chat/BottomContainer/MessageInputView.swift:979-1005 | Warden/UI/Chat/QuickChatView.swift:849-869 \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":"Warden/UI/Chat/BottomContainer/MessageInputView.swift"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"8399e09eb58f65e9b5fa1c6c9e1070850eb6864042a49e90987bd4d86b155bfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): Warden/Utilities/APIHandlers/APIServiceFactory.swift:861-883 | Warden/Utilities/APIHandlers/BaseAPIHandler.swift:39-60 \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":"Warden/Utilities/APIHandlers/APIServiceFactory.swift"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e82d843509570968bccb348cfb1cd2268e806ebd80d87edc5a2d9816666a223"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Warden/Utilities/APIServiceManager.swift:173-197 | Warden/Utilities/RephraseService.swift:76-95 \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":"Warden/Utilities/APIServiceManager.swift"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbcb00918dfa8807836285fd063b62ede01f58948461c9fe7c59eb9b2893b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): Warden/UI/Chat/ProjectSummaryView.swift:415-433 | Warden/UI/Chat/ProjectSummaryView.swift:435-455 | Warden/UI/ChatList/ChatListRow.swift:182-207 \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":"Warden/UI/Chat/ProjectSummaryView.swift"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb56237bb5cd0bee8730e1a488ac5f99e504ccd708a84cdd2f4a920f28f57b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Warden/Utilities/WardenOnboardingPresenter.swift:75-100 | Warden/Utilities/WardenOnboardingPresenter.swift:102-126 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/WardenOnboardingPresenter.swift"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a69d4bbdf6868646db4b9738804ecc8ff3aba2d60a4c6df7f28ce0254836701"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Warden/UI/Preferences/MCP/AddMCPAgentSheet.swift:318-340 | Warden/UI/Preferences/MCP/AddMCPAgentSheet.swift:348-367 \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":"Warden/UI/Preferences/MCP/AddMCPAgentSheet.swift"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc9ad692f9a5c7ea43c5976f3134915bb35030399f88e78c68b918cbba35de25"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): Warden/Utilities/APIServiceManager.swift:12-33 | Warden/Utilities/APIServiceManager.swift:35-51 \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":"Warden/Utilities/APIServiceManager.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52426495bd2ee4881f93ac052d10fd94696ebb67d857eb68dd6b5a688497399"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Warden/Models/FileAttachment.swift:260-283 | Warden/Models/FileAttachment.swift:348-371 \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":"Warden/Models/FileAttachment.swift"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a5c48d1e86ec17813be391df767a5a48dc4ba53e587c84d2b3cf9affbb8e7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Warden/UI/Chat/ProjectSummaryButton.swift:376-399 | Warden/UI/Chat/ProjectSummaryButton.swift:408-436 \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":"Warden/UI/Chat/ProjectSummaryButton.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc39fbfad9e99cb5ba1a8a5719c1c5bc68856ad156229acb3e0a560bf784dbeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): Warden/UI/ContentView.swift:222-248 | Warden/UI/ContentView.swift:250-274 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/ContentView.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba471400d9f6309e6917cfb2744090e77048f9bd94c5b41bc404f001c3488bba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): Warden/Models/MessageMetrics.swift:84-106 | Warden/Utilities/APIHandlers/ProviderError.swift:18-38 \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":"Warden/Models/MessageMetrics.swift"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3a6f57f2b0a2554ed3da763dcf38565b49dfe7e352f17d213665eaec4c8566"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Warden/UI/Chat/QuickChatView.swift:470-486 | Warden/UI/Chat/QuickChatView.swift:500-511 \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":"Warden/UI/Chat/QuickChatView.swift"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"0712df8e884fa17d9f96f62326f9b7e3d0aa2491d5d535ffcd14efabe1ab66bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Warden/Utilities/ExaSearchService.swift:81-99 | Warden/Utilities/TavilySearchService.swift:178-195 \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":"Warden/Utilities/ExaSearchService.swift"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7577f097c5fba44391bd1175c058559fec4adf41a3d86b346b1208fb2eb434d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Warden/Models/Models.swift:213-225 | Warden/Models/Models.swift:305-337 \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":"Warden/Models/Models.swift"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"248608e5f19cab269aa104684c86c0f32fd26b49bd1627cd8c761bed9a2c92c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Warden/Store/ChatStore.swift:822-833 | Warden/Store/ChatStore.swift:857-868 \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":"Warden/Store/ChatStore.swift"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"c709b629778ef27dc95999ae53c7d4c2f949690d552d44ef1bb19df7e7e9a9e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Warden/UI/Chat/BubbleView/TableView.swift:11-27 | Warden/UI/Chat/BubbleView/TableView.swift:34-49 \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":"Warden/UI/Chat/BubbleView/TableView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f28f843e8bb9a952f1f806d55263004cc3260ebe9250ec654f558c54c69974"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): Warden/Core/MCP/MCPManager.swift:142-165 | Warden/Core/MCP/MCPManager.swift:169-193 \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":"Warden/Core/MCP/MCPManager.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"b638ab251914097bd1d9514a8efaf1e81b6f3678d91fc873d8a5caaafe5de574"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Warden/UI/ChatList/ProjectListView.swift:300-328 | Warden/UI/ChatList/ProjectListView.swift:454-486 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/ChatList/ProjectListView.swift"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1dbf36cacdb91dd4d833538d5614df871cc577c16d0fd057c26b36ce6254333"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Warden/UI/Chat/ProjectSummaryView.swift:281-300 | Warden/UI/ChatList/ChatListView.swift:319-334 \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":"Warden/UI/Chat/ProjectSummaryView.swift"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2df44c159108ebbda173bce1c7a9d48ae62f43d42064652180a6f3ac4f9cef1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Warden/Models/FileAttachment.swift:285-300 | Warden/Models/FileAttachment.swift:373-387 \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":"Warden/Models/FileAttachment.swift"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0c40382f5a01b0f0503e2639085a10300eafc16382b89f438dc772f1bad6ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): Warden/UI/Preferences/TabAPIServices/APIServiceDetailViewModel.swift:455-475 | Warden/UI/Preferences/TabAPIServices/APIServiceDetailViewModel.swift:569-588 \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":"Warden/UI/Preferences/TabAPIServices/APIServiceDetailViewModel.swift"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"628166615322aad68df5ce3909e028b48d5ef3eaa8ff60dca822f9de671a45d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Warden/Utilities/ModelMetadataFetcher.swift:219-242 | Warden/Utilities/ModelMetadataFetcher.swift:340-358 \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":"Warden/Utilities/ModelMetadataFetcher.swift"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a87a420c0fcebfc98b1177b12a013521aa9056487791955d5943e8b28ad986"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Warden/Utilities/AttachmentResolver.swift:23-37 | Warden/Utilities/AttachmentResolver.swift:39-53 \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":"Warden/Utilities/AttachmentResolver.swift"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"362089e95453782754ac8bcf38d420f6803cfdd370a08675870a65ce31daa555"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Warden/UI/Chat/ChatView.swift:1216-1232 | Warden/UI/Chat/ChatView.swift:1244-1259 \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":"Warden/UI/Chat/ChatView.swift"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"237f7d039f97f8dfef5a332dc4d047567af01498fe59a057d3acdd00dc37bdd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): Warden/UI/AnimationShowcase.swift:53-69 | Warden/UI/AnimationShowcase.swift:71-86 \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":"Warden/UI/AnimationShowcase.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"56311d47bd76c347cffc06f9faad61e83de554f01161acb7889bb4758befd398"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Warden/UI/ChatList/CreateProjectView.swift:210-224 | Warden/UI/ChatList/ProjectSettingsView.swift:303-317 \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":"Warden/UI/ChatList/CreateProjectView.swift"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"1434f5287962043ff8c4b032511265f672bb008d5cb7458d647fc331b2c4cbda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): Warden/UI/Preferences/MCP/AddMCPAgentSheet.swift:238-258 | Warden/UI/Preferences/MCP/MCPSettingsView.swift:326-344 \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":"Warden/UI/Preferences/MCP/AddMCPAgentSheet.swift"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e20d982ed14ae13b0c577139b323a9e19dadcb9ccd2c35994cc7f904076950"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Warden/Utilities/APIHandlers/BaseAPIHandler.swift:28-37 | Warden/Utilities/ChatService.swift:28-38 \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":"Warden/Utilities/APIHandlers/BaseAPIHandler.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"973c83304136bb58eef7033c8936d4640c28f3be06d594613ed1a22601eaf353"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Warden/Store/ChatStore.swift:68-84 | Warden/Store/ChatStore.swift:728-739 \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":"Warden/Store/ChatStore.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"43746c4aefad0ee4eb7b62cbc949b24e5f5c961fc1171626fd3908bf211ec64a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Warden/Utilities/ChatBranchingManager.swift:191-199 | Warden/Utilities/ChatHistoryEditor.swift:71-79 \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":"Warden/Utilities/ChatBranchingManager.swift"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a50546f9c85782dff976d9903ee16571db65a16039ad3e1a64dd2d1ec594633"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Warden/Models/MessageMetrics.swift:45-52 | Warden/Models/MessageMetrics.swift:61-68 \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":"Warden/Models/MessageMetrics.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0f4a66759deb991b11c4085eedd43cb7a13a325b2a41e3b9dc15289a340950"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): Warden/UI/Chat/BubbleView/ChatBubbleView.swift:619-636 | Warden/UI/Components/TypingIndicatorView.swift:83-101 \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":"Warden/UI/Chat/BubbleView/ChatBubbleView.swift"},"region":{"startLine":619}}}],"partialFingerprints":{"codehealthFindingId/v1":"3edcbb2e1ac5aa321703ab9809d9c6e546ea9fd0152780822cb9c15f73e55cff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Warden/UI/Chat/BubbleView/ReplyFooterView.swift:25-31 | Warden/Utilities/CompareStats.swift:76-87 \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":"Warden/UI/Chat/BubbleView/ReplyFooterView.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7f91cd2439575dcd4c6e0cb6c4ef3bb3a778ac003a8e4c46a4acbf4167c801"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Warden/UI/Chat/BubbleView/ReplyFooterView.swift:34-40 | Warden/Utilities/CompareStats.swift:66-73 \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":"Warden/UI/Chat/BubbleView/ReplyFooterView.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89523549a251e444919ac02da9108de296a5000e05b1224a73377472ab0e400"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Warden/UI/ChatList/MoveToProjectView.swift:438-449 | Warden/UI/ChatList/ProjectSettingsView.swift:361-369 \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":"Warden/UI/ChatList/MoveToProjectView.swift"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02ceae13274f0ae83734e92d8e74da11cffc424fbcc2f04186564b22dd01949"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Warden/UI/Preferences/TabGeneralSettingsView.swift:321-330 | Warden/Store/ChatStore.swift:87-96 \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":"Warden/UI/Preferences/TabGeneralSettingsView.swift"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"276789c656a03f574677697aba89c592108738aae58c94a82e4b095cff38ecf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): Warden/UI/Preferences/SettingsView.swift:11-26 | Warden/UI/Preferences/PreferencesView.swift:118-129 \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":"Warden/UI/Preferences/SettingsView.swift"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d0f3e0b770de6fd51979380a66c5f48903ac89782748de94e3b8dd52faaee7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Warden/UI/Chat/BottomContainer/MessageInputView.swift:730-733 | Warden/UI/Chat/QuickChatView.swift:556-559 \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":"Warden/UI/Chat/BottomContainer/MessageInputView.swift"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"c715c74dd5fff0567f8d323f49dde56363dddb7326586795cd5e0dd055759729"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Warden/UI/Chat/BubbleView/ChatBubbleView.swift:186-195 | Warden/UI/Preferences/TabAPIServices/APIServiceDetailViewModel.swift:290-299 \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":"Warden/UI/Chat/BubbleView/ChatBubbleView.swift"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5893e65945647f5895bf7bc4e8917442c1da21c2a2964a0eace56b85d7c2e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Warden/UI/Chat/ProjectSummaryView.swift:376-383 | Warden/UI/ChatList/ChatListRow.swift:250-257 \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":"Warden/UI/Chat/ProjectSummaryView.swift"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf6bae0b95e589b67125da6ccc7dae00ece43f32b707e049afdd60cd8acddfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Warden/Utilities/LiteLLMMetadataFetcher.swift:222-231 | Warden/Utilities/ModelMetadataFetcher.swift:400-409 \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":"Warden/Utilities/LiteLLMMetadataFetcher.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"af63bd9185481a260d4dccc05aaef7ff112e8a7cdc1219c4255c8c3c2b5469c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): Warden/UI/Chat/Components/CitationBadgeView.swift:94-97 | Warden/Utilities/WebSearchService.swift:279-282 \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":"Warden/UI/Chat/Components/CitationBadgeView.swift"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfc4715634183be8f988d8863e32214d955bee5e347e806f2c841af0f8e1295"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): Warden/Store/ChatStore.swift:513-522 | Warden/UI/Preferences/TabAPIServices/ButtonTestApiTokenAndModel.swift:92-99 \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":"Warden/Store/ChatStore.swift"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79af32f06a084bc95563842c61ee8f194fc8aadec18f450806c4b324f3acd31"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): Warden/UI/Chat/BubbleView/ReplyFooterView.swift:290-296 | Warden/UI/Chat/ChatView.swift:1261-1267 | Warden/UI/Components/ToastNotification.swift:160-166 \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":"Warden/UI/Chat/BubbleView/ReplyFooterView.swift"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d639dafc56544bc75abd2fa520b21a02b6f783b9c2dcc66fda2996bb037a28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Warden/UI/Chat/CodeView/CodeView.swift:722-726 | Warden/UI/ContentView.swift:868-872 \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":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78a1c86315bed2e2e3c2d4b6cdccceef9cad06ff70387dd3759c263ae9e26eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): Warden/UI/Components/FavoriteQuickAccessBar.swift:120-124 | Warden/UI/Components/ModelSelectorDropdown.swift:118-124 \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":"Warden/UI/Components/FavoriteQuickAccessBar.swift"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1c99b13b807c7beed54feb9f96814796fa0f7481c284d442a34f5e6f9476b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): Warden/UI/Chat/CenteredInputView.swift:222-228 | Warden/Utilities/ChatBranchingManager.swift:201-207 \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":"Warden/UI/Chat/CenteredInputView.swift"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e5d010115e8ffb0f20838ca2c926ddaa26a5a129ddb9591e0c1541cd1a1c32"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:16-18 | Warden/Utilities/APIHandlers/ClaudeHandler.swift:16-18 | Warden/Utilities/APIHandlers/LMStudioHandler.swift:8-10 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff20511c62a27a6e911d8e20a31d276fd461041f43937422949c3086900688b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): Warden/UI/Components/PromptCompletionView.swift:136-141 | Warden/UI/Preferences/TabPromptLibraryView.swift:119-121 \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":"Warden/UI/Components/PromptCompletionView.swift"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"44eccefaf6a8e97e2fe87e3e7c0b2d657bef5d89f0885387dd6f907b08f8ef6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2): Warden/UI/ChatList/ProjectListView.swift:223-269 | Warden/UI/ChatList/ProjectListView.swift:377-423 \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 \u0060Warden/UI/ChatList/ProjectListView.swift:223\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":"Warden/UI/ChatList/ProjectListView.swift"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f84e1ed4e68aa844cfad97e10bc3b77974c5ba3bae5d9f9ea0c665511f9726"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 2): Warden/Utilities/MessageManager.swift:343-376 | Warden/Utilities/MessageManager.swift:535-567 \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 \u0060Warden/Utilities/MessageManager.swift:343\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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ef875075f0606c45eaeb2edd378889df1311e01dcb11eb2556892af5ddff5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): Warden/Utilities/ExaSearchService.swift:102-134 | Warden/Utilities/TavilySearchService.swift:198-230 \u2014 before extracting anything, compare \u0060Warden/Utilities/ExaSearchService.swift\u0060 and \u0060Warden/Utilities/TavilySearchService.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/ExaSearchService.swift"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"117f710ae942a60eea58debe0ff8abe040c7ada783f9de583e05e3a54a315bab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201330 lines \u00D7 2): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:28-55 | Warden/Utilities/APIHandlers/LMStudioHandler.swift:27-56 \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 \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:28\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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a9f9c6beee2382356b075f386ad596c9995ea3b888d8320562b13409588d27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): Warden/UI/Components/TypingIndicatorView.swift:13-37 | Warden/UI/Components/TypingIndicatorView.swift:51-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Components/TypingIndicatorView.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"088519ab07ef7153ec0fcb83bae81c19631206cf9c2a9921fd6ad27558105c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): Warden/Utilities/TavilySearchService.swift:53-77 | Warden/Utilities/WebSearchService.swift:91-111 \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 \u0060Warden/Utilities/TavilySearchService.swift:53\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":"Warden/Utilities/TavilySearchService.swift"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e515a09460c5a00301d9d14e2bb7de71db76fec25ad341498e424473fadcf877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201324 lines \u00D7 2): Warden/Utilities/IncrementalMessageParser.swift:216-232 | Warden/Utilities/MessageParser.swift:22-45 \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 \u0060Warden/Utilities/IncrementalMessageParser.swift:216\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":"Warden/Utilities/IncrementalMessageParser.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b44e2018356c42a2975316efaf8269a20b50bcbf7be4a86e1219b1b06174a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Warden/Utilities/MessageManager.swift:174-197 | Warden/Utilities/MessageManager.swift:257-280 \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 \u0060Warden/Utilities/MessageManager.swift:174\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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"346864011b5567052ebaab6d3e60b64ecd58fe0128920aa1bf1ba54f1f943ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): Warden/Utilities/MessageManager.swift:202-225 | Warden/Utilities/MessageManager.swift:285-308 \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 \u0060Warden/Utilities/MessageManager.swift:202\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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b806adb80e4dbbadc4fa76b9917cc01eafe43cc6c94a5c260de11cf2149247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): Warden/Utilities/APIHandlers/OllamaHandler.swift:54-76 | Warden/Utilities/APIHandlers/PerplexityHandler.swift:18-40 \u2014 before extracting anything, compare \u0060Warden/Utilities/APIHandlers/OllamaHandler.swift\u0060 and \u0060Warden/Utilities/APIHandlers/PerplexityHandler.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Warden/Utilities/APIHandlers/PerplexityHandler.swift:17\u0060 calls \u0060setValue\u0060 and \u0060Warden/Utilities/APIHandlers/OllamaHandler.swift:53\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":"Warden/Utilities/APIHandlers/OllamaHandler.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"3013fb198d1c4168fa17e537fbbe39a6e257ccf7c8b301c569f1428f6dfcf786"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): Warden/Utilities/MessageManager.swift:151-172 | Warden/Utilities/MessageManager.swift:234-255 \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 \u0060Warden/Utilities/MessageManager.swift:151\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":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"b009c434391d839c60564943255545525be6cb5e18b2fdddabb3d717d216b7b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): Warden/UI/Chat/ChatView.swift:1007-1027 | Warden/UI/Preferences/TabAPIServices/ButtonTestApiTokenAndModel.swift:70-90 \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":"Warden/UI/Chat/ChatView.swift"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"0014fca8841dcdd567b7c7ff30725c90dcee929953e394ce88634c76f855ba54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): Warden/UI/Chat/BubbleView/ChatBubbleView.swift:673-692 | Warden/UI/Components/ButtonWithStatusIndicator.swift:53-72 | Warden/UI/Components/ToolbarButton.swift:39-58 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/UI/Chat/BubbleView/ChatBubbleView.swift:673\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":"Warden/UI/Chat/BubbleView/ChatBubbleView.swift"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a8cda4d1c899bafd292735e5bcdd4b00aec03d68ec59a73c13f93554022e07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): Warden/UI/Chat/CodeView/CodeView.swift:351-370 | Warden/UI/ContentView.swift:660-679 \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 \u0060Warden/UI/Chat/CodeView/CodeView.swift:351\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Warden/UI/Chat/CodeView/CodeView.swift:371\u0060 calls \u0060frame\u0060 and \u0060Warden/UI/ContentView.swift:680\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"fca90554f375eb347d4bb4992af6e550eb6f2a9e4dc165408d6f8b81a2abf86e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Warden/UI/Chat/CodeView/CodeView.swift:278-296 | Warden/UI/ContentView.swift:826-844 \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 \u0060Warden/UI/Chat/CodeView/CodeView.swift:278\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, \u0060Warden/UI/ContentView.swift:823\u0060 calls \u0060Spacer\u0060 and \u0060Warden/UI/Chat/CodeView/CodeView.swift:275\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2551a4f8ddf846006e141d5f2c222f8269646b1854c5e9205e35080fafca0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): Warden/UI/Chat/CodeView/CodeView.swift:695-712 | Warden/Utilities/Extensions.swift:404-422 \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 \u0060Warden/UI/Chat/CodeView/CodeView.swift:695\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":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f549035d5fc5e3f510f8726d16c61d91a531cb36cc058c606ca775c8df4a28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Warden/UI/Chat/ProjectSummaryButton.swift:460-478 | Warden/UI/Chat/ProjectSummaryView.swift:482-500 \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 \u0060Warden/UI/Chat/ProjectSummaryButton.swift:460\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":"Warden/UI/Chat/ProjectSummaryButton.swift"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ff69a4a231c4230837962e8d885b7d668dfc7d6f022a8f6692a09321b539e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): Warden/UI/ChatList/ChatListRow.swift:303-321 | Warden/UI/Components/ChatShareMenu.swift:206-224 \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":"Warden/UI/ChatList/ChatListRow.swift"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"311bd8de456af21c9ceb4bcd718bd94ef025cf62b45944fd354e5e77ba5c706e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): Warden/UI/Chat/BottomContainer/MessageInputView.swift:1007-1024 | Warden/UI/Chat/QuickChatView.swift:871-888 | Warden/UI/Components/ModelSelectorDropdown.swift:59-76 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/UI/Chat/BottomContainer/MessageInputView.swift:1007\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":"Warden/UI/Chat/BottomContainer/MessageInputView.swift"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"9793f6cd99ac29110e80138d852ee7458f497c8e33f139659abade7cd2f91d48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): Warden/Utilities/APIHandlers/DeepseekHandler.swift:51-68 | Warden/Utilities/APIHandlers/OpenRouterHandler.swift:83-100 \u2014 before extracting anything, compare \u0060Warden/Utilities/APIHandlers/DeepseekHandler.swift\u0060 and \u0060Warden/Utilities/APIHandlers/OpenRouterHandler.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Utilities/APIHandlers/DeepseekHandler.swift:51\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":"Warden/Utilities/APIHandlers/DeepseekHandler.swift"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2487c80a6f10c97a52eac40e9ed98e26be4c1ae424264899e3b6d52be7eb45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201318 lines \u00D7 2): Warden/Utilities/ChatSharingService.swift:113-130 | Warden/Utilities/ChatSharingService.swift:157-170 \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 \u0060Warden/Utilities/ChatSharingService.swift:113\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":"Warden/Utilities/ChatSharingService.swift"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"82af99916dabab7c1a31994560198842b172f1f432f77f3c898c9b98592ff99a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): Warden/Models/FileAttachment.swift:209-225 | Warden/Models/ImageAttachment.swift:75-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Models/FileAttachment.swift:209\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":"Warden/Models/FileAttachment.swift"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4a1e2543ae9ff690fa4855fa165a08f739712405b66b7079af84469c176945"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): Warden/Core/MCP/MCPManager.swift:83-98 | Warden/Core/MCP/MCPManager.swift:249-263 \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":"Warden/Core/MCP/MCPManager.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e30a1e4a0541675ed45a5ca11390a1270d97668feda024472c8c30a2c5ca2b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): Warden/UI/Components/SkeletonLoaderView.swift:30-45 | Warden/UI/Components/SkeletonLoaderView.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 \u0060Warden/UI/Components/SkeletonLoaderView.swift:30\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":"Warden/UI/Components/SkeletonLoaderView.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bfa187cb005d4305dfcb012f0f2d8450ad206c11a5afff69edf99e6cce128e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 2): Warden/Utilities/APIServiceManager.swift:176-191 | Warden/Utilities/RephraseService.swift:78-89 \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 \u0060Warden/Utilities/APIServiceManager.swift:176\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. 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":"Warden/Utilities/APIServiceManager.swift"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"168622a2b55c6a5d0aa98ee103fb4c40b8a588482df87f2f56f14756ab66ca5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Warden/UI/Chat/ChatView.swift:659-673 | Warden/UI/Chat/QuickChatView.swift:284-297 \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":"Warden/UI/Chat/ChatView.swift"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"603f21ff61162bffdeddda4d266eeae7f344663032fe80235fde4aa4477196c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Warden/UI/Chat/Components/SearchErrorView.swift:30-44 | Warden/UI/Chat/Components/SearchErrorView.swift:49-63 \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 \u0060Warden/UI/Chat/Components/SearchErrorView.swift:30\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":"Warden/UI/Chat/Components/SearchErrorView.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"73bd12f5fb32404f88342f8dcbf82fca88a91c46f91d6e66a113433cb99f7f56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): Warden/UI/Chat/ProjectSummaryView.swift:419-433 | Warden/UI/ChatList/ChatListRow.swift:235-248 \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 \u0060Warden/UI/Chat/ProjectSummaryView.swift:419\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":"Warden/UI/Chat/ProjectSummaryView.swift"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71482599eb321a2637ce3fbc15d13fab4637f5c213dd5dec7e7b325f57f2cbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Warden/UI/Preferences/TabTavilySearchView.swift:155-169 | Warden/UI/Preferences/TabTavilySearchView.swift:171-185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Preferences/TabTavilySearchView.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc0d63ad888e4a524b04880169a7d7e101316d85a3964a4d4cdd0c8b3a14aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Warden/Utilities/APIHandlers/APIProtocol.swift:216-230 | Warden/Utilities/APIHandlers/BaseAPIHandler.swift:140-154 \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 \u0060Warden/Utilities/APIHandlers/APIProtocol.swift:216\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. 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":"Warden/Utilities/APIHandlers/APIProtocol.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4f2b387f20c39d046aca497c5331674b0acfe48ffd0254c9703326d80da0f61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Warden/UI/ChatList/MoveToProjectView.swift:236-249 | Warden/UI/ChatList/MoveToProjectView.swift:280-293 \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 \u0060Warden/UI/ChatList/MoveToProjectView.swift:236\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":"Warden/UI/ChatList/MoveToProjectView.swift"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa932af0e4b5520423c04170e811dce31888271acd49afcdc7669b6a1d2b36c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Warden/UI/ChatList/ProjectListView.swift:271-284 | Warden/UI/ChatList/ProjectListView.swift:425-438 \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 \u0060Warden/UI/ChatList/ProjectListView.swift:271\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":"Warden/UI/ChatList/ProjectListView.swift"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca75814d9f585db85b0083bdf549da36870d142fc25990658122c7bf60dca930"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Warden/Utilities/APIHandlers/APIProtocol.swift:253-266 | Warden/Utilities/APIHandlers/APIProtocol.swift:286-299 \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 \u0060Warden/Utilities/APIHandlers/APIProtocol.swift:253\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Warden/Utilities/APIHandlers/APIProtocol.swift:283\u0060 calls \u0060contains\u0060 and \u0060Warden/Utilities/APIHandlers/APIProtocol.swift:252\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/APIHandlers/APIProtocol.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6dbc44aa189dd1cb455acfc5d0fb72e810b3fcf2794484c772e1a39660fac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Warden/Utilities/APIHandlers/DeepseekHandler.swift:96-109 | Warden/Utilities/APIHandlers/OpenRouterHandler.swift:128-141 \u2014 before extracting anything, compare \u0060Warden/Utilities/APIHandlers/DeepseekHandler.swift\u0060 and \u0060Warden/Utilities/APIHandlers/OpenRouterHandler.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Utilities/APIHandlers/DeepseekHandler.swift:96\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":"Warden/Utilities/APIHandlers/DeepseekHandler.swift"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"123fbbedfe017379bf719c5270985955701ae6b96441c998b66b53298c28222a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): Warden/Utilities/APIHandlers/DeepseekHandler.swift:121-134 | Warden/Utilities/APIHandlers/OpenRouterHandler.swift:186-199 \u2014 before extracting anything, compare \u0060Warden/Utilities/APIHandlers/DeepseekHandler.swift\u0060 and \u0060Warden/Utilities/APIHandlers/OpenRouterHandler.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/APIHandlers/DeepseekHandler.swift"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a2a1238859bafb56d87408a8733d6bd341bcb527cd3b10bfa0e4194dc0071e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Warden/UI/Chat/ChatView.swift:1219-1232 | Warden/UI/Chat/ChatView.swift:1247-1259 \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 \u0060Warden/UI/Chat/ChatView.swift:1219\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":"Warden/UI/Chat/ChatView.swift"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e94c52dbedb065635d1cb31a192278c46617330343f26990283d850833e202"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Warden/UI/Chat/Components/ToolCallProgressView.swift:30-42 | Warden/UI/Chat/Components/ToolCallProgressView.swift:190-202 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Warden/UI/Chat/Components/ToolCallProgressView.swift:203\u0060 calls \u0060padding\u0060, \u0060transition\u0060, \u0060combined\u0060 and \u0060Warden/UI/Chat/Components/ToolCallProgressView.swift:43\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/Components/ToolCallProgressView.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"626256b3bbecce92a21c4878dc0b48273e3c35ffb2223082de471c8afd3028ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): Warden/UI/Components/ModelSelectorPopover.swift:367-378 | Warden/UI/Components/ModelSelectorPopover.swift:380-392 \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 \u0060Warden/UI/Components/ModelSelectorPopover.swift:367\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":"Warden/UI/Components/ModelSelectorPopover.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"073ea05d08d45142f097def619230a163f552b24c2ec8b9b2bb7c191e8be0e1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Warden/UI/Preferences/MCP/MCPSettingsView.swift:453-465 | Warden/UI/Preferences/MCP/MCPSettingsView.swift:467-479 \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 \u006014\u0060 in one and \u00608\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":"Warden/UI/Preferences/MCP/MCPSettingsView.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e83d53db0d0e1b7697f03a5f2b98418cf4e5cd0563bb309a7d669dce5813248"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift:37-49 | Warden/UI/Preferences/TabAPIServicesView.swift:214-226 \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. 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":"Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c030ed27d366d6f2597ac6baea79b814704e565f8d657e6ab1190c7b8df7b20b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:417-431 | Warden/Utilities/APIHandlers/ClaudeHandler.swift:91-105 \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 \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:417\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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7eda41b3495999b27dc59381b67b86f078d63337c9beaaaa098bbe1dffca54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:345-356 | Warden/Utilities/APIHandlers/DeepseekHandler.swift:82-93 | Warden/Utilities/APIHandlers/OllamaHandler.swift:149-160 | Warden/Utilities/APIHandlers/OpenRouterHandler.swift:114-125 | Warden/Utilities/APIHandlers/PerplexityHandler.swift:125-136 \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 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:345\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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8c12effdd1883056beb9be6b0252960bdd933fa03de8ffae3e8c421e46d38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:247-258 | Warden/Utilities/APIHandlers/DeepseekHandler.swift:45-56 | Warden/Utilities/APIHandlers/OpenRouterHandler.swift:77-88 | Warden/Utilities/APIHandlers/PerplexityHandler.swift:99-110 \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 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:247\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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddd2bd95628ade31cce3f95fa165d5d07b0a9c7f62679d95fe6ea525884c037"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): Warden/Utilities/TavilySearchService.swift:54-67 | Warden/Utilities/WebSearchService.swift:92-103 | Warden/Utilities/WebSearchService.swift:133-144 \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 \u0060Warden/Utilities/TavilySearchService.swift:54\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":"Warden/Utilities/TavilySearchService.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7978706dd1a2b7484d1d87556969795b73911487492b8d287a0999ac3d7b9c6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Warden/Models/FileAttachment.swift:402-413 | Warden/Models/ImageAttachment.swift:243-254 \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 \u0060Warden/Models/FileAttachment.swift:402\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":"Warden/Models/FileAttachment.swift"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"43b8dea96b9636ebf6804e51eaca1df75c140223d47767f75af5ed653410bd69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Warden/UI/Chat/ChatViewModel.swift:138-149 | Warden/UI/Chat/ChatViewModel.swift:159-170 \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 \u0060Warden/UI/Chat/ChatViewModel.swift:138\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060completion\u0060 to \u0060@escaping (Result\u003CVoid, Error\u003E) -\u003E Void\u0060 in one and \u0060@escaping (Result\u003CVoid, Error\u003E\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":"Warden/UI/Chat/ChatViewModel.swift"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"29610b77c42c0294b7db1aca5c53da3620c4de152f871c902c0837fc07c3f07a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Warden/UI/ChatList/ChatListView.swift:398-409 | Warden/UI/ChatList/ProjectListView.swift:111-122 \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 \u0060Warden/UI/ChatList/ChatListView.swift:398\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":"Warden/UI/ChatList/ChatListView.swift"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"a94f463e3786c84950218c915d62640dee16cd6510cbdfebf3e5e69199e280d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Warden/UI/Components/FilePreviewView.swift:35-46 | Warden/UI/Components/FilePreviewView.swift:48-59 \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":"Warden/UI/Components/FilePreviewView.swift"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"744b7b1d1b69993e0b1310c33c4b5a569480547372757e6a5a4adc67fe5d442f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Warden/UI/Components/MarkdownView.swift:259-270 | Warden/UI/Components/MarkdownView.swift:273-284 \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":"Warden/UI/Components/MarkdownView.swift"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"62237ce29fd9a65d62a67e5b2d241cca7ed90dcec5a789465d3772860c8afb3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Warden/UI/Preferences/TabGeneralSettingsView.swift:216-227 | Warden/UI/Preferences/TabGeneralSettingsView.swift:240-251 \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 \u0060Warden/UI/Preferences/TabGeneralSettingsView.swift:216\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006012\u0060 in one and \u00602\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":"Warden/UI/Preferences/TabGeneralSettingsView.swift"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3876d014b1436903235a3a904e20a70fa85fd686cabc05a8c535d9ce86cb07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Warden/Utilities/APIHandlers/GeminiHandler.swift:62-73 | Warden/Utilities/APIHandlers/OllamaHandler.swift:19-30 \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 \u0060Warden/Utilities/APIHandlers/GeminiHandler.swift:62\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":"Warden/Utilities/APIHandlers/GeminiHandler.swift"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9a8eaaf52bf790eedf0da42fdda212be672f45149d6745ee0a161d7cb69cb7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): Warden/Utilities/ExaSearchService.swift:32-43 | Warden/Utilities/TavilySearchService.swift:105-116 \u2014 before extracting anything, compare \u0060Warden/Utilities/ExaSearchService.swift\u0060 and \u0060Warden/Utilities/TavilySearchService.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Utilities/ExaSearchService.swift:32\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":"Warden/Utilities/ExaSearchService.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e01e93bf5d129c232e67c25fed544a48bde558c49da11341f31985b344c6c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): Warden/Utilities/ModelMetadataFetcher.swift:88-98 | Warden/Utilities/ModelMetadataFetcher.swift:340-351 \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 \u0060Warden/Utilities/ModelMetadataFetcher.swift:88\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":"Warden/Utilities/ModelMetadataFetcher.swift"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d59a12781f09109c23f7b9fb57795a7b9faf58b030773e0469c0d7fd538d30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): Warden/Models/FileAttachment.swift:409-419 | Warden/Models/ImageAttachment.swift:250-260 | Warden/Models/ImageAttachment.swift:303-313 \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":"Warden/Models/FileAttachment.swift"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"275ab386ad30dc6dd50008346d0c772d4bea45e806d3df75c32013d3b252442b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Warden/UI/Chat/BottomContainer/MessageInputView.swift:640-650 | Warden/UI/Components/RephraseButton.swift:99-109 \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 \u0060Warden/UI/Chat/BottomContainer/MessageInputView.swift:640\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":"Warden/UI/Chat/BottomContainer/MessageInputView.swift"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1dd45c85891aba7d09db5aa7162e3dddc925957975fdf988741f653b2308587"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): Warden/UI/Chat/BubbleView/MessageContentView.swift:221-231 | Warden/UI/Chat/BubbleView/MessageContentView.swift:284-294 \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 \u0060Warden/UI/Chat/BubbleView/MessageContentView.swift:221\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":"Warden/UI/Chat/BubbleView/MessageContentView.swift"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"8440f3b551a899bd18349b72159f9eb2121ccda02941bbbbb8c933fa2c0ce917"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:106-116 | Warden/Utilities/APIHandlers/MistralHandler.swift:60-69 \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 \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:106\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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"6145e9a793bf1757fcce7ec8072b4a385bae576e5fe5c2d6967407b9a2ea520c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): Warden/Utilities/APIHandlers/UsageExtractor.swift:33-43 | Warden/Utilities/APIHandlers/UsageExtractor.swift:46-53 \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 \u0060Warden/Utilities/APIHandlers/UsageExtractor.swift:46\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":"Warden/Utilities/APIHandlers/UsageExtractor.swift"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"84a51f854e041520afbe3ed1722d349eba02d7cfb5da6213f5630a5b4fc3ad9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): Warden/Utilities/APIHandlers/ClaudeHandler.swift:54-63 | Warden/Utilities/APIHandlers/MistralHandler.swift:46-55 | Warden/Utilities/APIHandlers/OllamaHandler.swift:44-53 | Warden/Utilities/APIHandlers/PerplexityHandler.swift:7-16 \u2014 before extracting anything, compare \u0060Warden/Utilities/APIHandlers/OllamaHandler.swift\u0060 and \u0060Warden/Utilities/APIHandlers/PerplexityHandler.swift\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Utilities/APIHandlers/ClaudeHandler.swift:54\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, \u0060Warden/Utilities/APIHandlers/ClaudeHandler.swift:64\u0060 calls \u0060setValue\u0060 and \u0060Warden/Utilities/APIHandlers/MistralHandler.swift:56\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/APIHandlers/ClaudeHandler.swift"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"23036b56ac927c79630a553a78cba0d6c1bf2c099e3caa108d440a16db67d323"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Warden/UI/Chat/BottomContainer/MessageInputView.swift:1032-1041 | Warden/UI/Chat/QuickChatView.swift:891-900 \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 \u0060Warden/UI/Chat/BottomContainer/MessageInputView.swift:1032\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":"Warden/UI/Chat/BottomContainer/MessageInputView.swift"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"9002c877eb06a5fda75466a1a23aef94d4690b9a06d41997424aaad3be7d280b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Warden/UI/Chat/CodeView/CodeView.swift:324-333 | Warden/UI/Chat/CodeView/CodeView.swift:508-517 \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 \u0060Warden/UI/Chat/CodeView/CodeView.swift:324\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":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba3665e3ffbf27f86350ca45ed9247ce9ab8975f7bf9dfadc8eb573faacebe6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Warden/UI/Chat/Components/BranchPopover.swift:78-87 | Warden/UI/Chat/Components/SearchErrorView.swift:69-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/UI/Chat/Components/BranchPopover.swift:78\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":"Warden/UI/Chat/Components/BranchPopover.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f821c5b8221fa23f4b117718fb32d00d34e870e958157709108c3dd62eed5f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Warden/UI/ChatList/MoveToProjectView.swift:252-261 | Warden/UI/ChatList/MoveToProjectView.swift:416-425 \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 \u0060Warden/UI/ChatList/MoveToProjectView.swift:252\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":"Warden/UI/ChatList/MoveToProjectView.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d81963636d1a1f45b37a3bd894b1af443175afc197d517827dfa5f053fd58a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): Warden/UI/Components/PromptCompletionView.swift:155-164 | Warden/UI/Preferences/TabPromptLibraryView.swift:130-138 \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 \u0060Warden/UI/Components/PromptCompletionView.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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u00602\u0060 in one and \u00603\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Warden/UI/Components/PromptCompletionView.swift:165\u0060 calls \u0060lineLimit\u0060 and \u0060Warden/UI/Preferences/TabPromptLibraryView.swift:139\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Components/PromptCompletionView.swift"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a2e4aa15dea773be4ed30e260ff0e5fd90d0794041f48ad4128cd28f9139bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Warden/Utilities/APIHandlers/APIServiceFactory.swift:367-376 | Warden/Utilities/APIHandlers/APIServiceFactory.swift:396-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/APIHandlers/APIServiceFactory.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f1faaa096e762fd5c4f4aa8472b4276c28f1561cd8602e89da9435076e1092"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:34-42 | Warden/Utilities/APIHandlers/ClaudeHandler.swift:32-40 | Warden/Utilities/APIHandlers/GeminiHandler.swift:65-73 | Warden/Utilities/APIHandlers/LMStudioHandler.swift:35-43 | Warden/Utilities/APIHandlers/MistralHandler.swift:23-31 | Warden/Utilities/APIHandlers/OllamaHandler.swift:22-30 \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 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:34\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, \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:31\u0060 calls \u0060setValue\u0060 and \u0060Warden/Utilities/APIHandlers/GeminiHandler.swift:63\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d4503c6529324b0081d99b75ce4242ff44125e2cc6f9562d3f6e0d45bd1aa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): Warden/UI/ChatList/ChatListRow.swift:183-190 | Warden/UI/ChatList/ChatListRow.swift:232-239 | Warden/UI/ChatList/ChatListView.swift:340-348 \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 \u0060Warden/UI/ChatList/ChatListRow.swift:183\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":"Warden/UI/ChatList/ChatListRow.swift"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1516b287e561020e81b915807fcf62c30ef82189c9457cfb344c2e16120e23ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): Warden/Utilities/APIHandlers/APIServiceFactory.swift:374-383 | Warden/Utilities/APIHandlers/APIServiceFactory.swift:403-412 | Warden/Utilities/APIHandlers/APIServiceFactory.swift:432-441 \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 \u0060Warden/Utilities/APIHandlers/APIServiceFactory.swift:374\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":"Warden/Utilities/APIHandlers/APIServiceFactory.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb3f751ee6165df1d3d2855cf200e80a014891136b9977afc4a5874d9c18637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 2): Warden/UI/Chat/BubbleView/ChatBubbleView.swift:509-517 | Warden/UI/Chat/QuickChatView.swift:748-753 \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 \u0060Warden/UI/Chat/BubbleView/ChatBubbleView.swift:509\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":"Warden/UI/Chat/BubbleView/ChatBubbleView.swift"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"2999ee88d313832922f8897036f6bfd82c4ace5161f1ff93d8046677a501a1bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Warden/UI/Chat/Components/ToolCallProgressView.swift:160-168 | Warden/UI/Preferences/MCP/MCPSettingsView.swift:499-507 \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 \u0060Warden/UI/Chat/Components/ToolCallProgressView.swift:160\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":"Warden/UI/Chat/Components/ToolCallProgressView.swift"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc87e5c86fd709ef76ff75feb524d10a20ad19c09be3d898666e6f7c3840b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Warden/UI/ChatList/ProjectListView.swift:167-175 | Warden/UI/ChatList/ProjectListView.swift:498-506 \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 \u0060Warden/UI/ChatList/ProjectListView.swift:167\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":"Warden/UI/ChatList/ProjectListView.swift"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d466cebe4bb94a6a18f4a984f61ea03212b7c17539cf573b57ef93e46a3b15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20139 lines \u00D7 3): Warden/Reproduction.swift:78-80 | Warden/Utilities/APIHandlers/DeepseekHandler.swift:15-22 | Warden/Utilities/APIHandlers/OpenRouterHandler.swift:22-30 \u2014 before extracting anything, compare \u0060Warden/Utilities/APIHandlers/DeepseekHandler.swift\u0060 and \u0060Warden/Utilities/APIHandlers/OpenRouterHandler.swift\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 93 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Utilities/APIHandlers/DeepseekHandler.swift:15\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":"Warden/Reproduction.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d64091a588c6bed8c748dea0a081ed15b8488a5d7e7361dd6b3f02e4b7c2b62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Warden/Utilities/AttachmentTagTokenizer.swift:64-72 | Warden/Utilities/AttachmentTagTokenizer.swift:83-91 \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 \u0060Warden/Utilities/AttachmentTagTokenizer.swift:64\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":"Warden/Utilities/AttachmentTagTokenizer.swift"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"cddce593d1bdca991b2e9ad9483394f119ada75ac220e4099c4b1043ea2e9f10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Warden/Utilities/ModelCacheManager.swift:28-36 | Warden/Utilities/ModelCacheManager.swift:92-100 \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":"Warden/Utilities/ModelCacheManager.swift"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8aa4107bd9fe19f0cd1651abe35f29ac83bce76ba432a23e6af09d7e28abd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): Warden/UI/Chat/ProjectSummaryView.swift:367-374 | Warden/UI/ChatList/ChatListRow.swift:49-56 | Warden/UI/ChatList/ChatListView.swift:22-29 | Warden/UI/ChatList/ProjectListView.swift:37-44 | Warden/UI/ChatList/ProjectListView.swift:206-213 | Warden/UI/ChatList/ProjectListView.swift:360-367 \u2014 there are 6 copies across 4 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/ProjectSummaryView.swift"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d597bf695cc0124a9e3405fbcde10c63dd258c4d986497a8ad6005f3c85b4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Warden/UI/Chat/BottomContainer/MessageInputView.swift:1032-1039 | Warden/UI/Chat/BottomContainer/ReasoningEffortMenu.swift:173-180 | Warden/UI/Chat/QuickChatView.swift:891-898 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/UI/Chat/BottomContainer/MessageInputView.swift:1032\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":"Warden/UI/Chat/BottomContainer/MessageInputView.swift"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"d714377ae639867c5075f53a15bc3b19a8e60c7623d028f3beaf8553b97102d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:253-260 | Warden/Utilities/APIHandlers/OllamaHandler.swift:131-138 | Warden/Utilities/APIHandlers/PerplexityHandler.swift:105-112 \u2014 before extracting anything, compare \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift\u0060 and \u0060Warden/Utilities/APIHandlers/OllamaHandler.swift\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:253\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, \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:262\u0060 calls \u0060parseResponsesStreamEvent\u0060 and \u0060Warden/Utilities/APIHandlers/PerplexityHandler.swift:113\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"903308057ddfefacc9bab1dbce23a59509f72d274d7825e5cecf2448d3d2ea49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift:239-246 | Warden/UI/Preferences/TabAPIServicesView.swift:491-498 \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 \u0060Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift:239\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":"Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd17e0d3d6d3a68fa4a215153d3bb93e9a7b6f8d9ef59274c8eae7499be5f3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Warden/UI/Preferences/TabAPIServices/ModelSelectionView.swift:169-176 | Warden/UI/Preferences/TabAPIServicesView.swift:461-468 \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 \u0060Warden/UI/Preferences/TabAPIServices/ModelSelectionView.swift:169\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060spacing\u0060 to \u006012\u0060 in one and \u00608\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":"Warden/UI/Preferences/TabAPIServices/ModelSelectionView.swift"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb3bc70c9ad7ee2a517b568884b7bde9774e3c85455202ad0981d6d3e464378"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): Warden/Utilities/ExaSearchService.swift:60-67 | Warden/Utilities/TavilySearchService.swift:152-159 \u2014 before extracting anything, compare \u0060Warden/Utilities/ExaSearchService.swift\u0060 and \u0060Warden/Utilities/TavilySearchService.swift\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Utilities/ExaSearchService.swift:60\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":"Warden/Utilities/ExaSearchService.swift"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c145cdfc308e7ebf55965f441b473afc5a9967598e3488abece2856edc9cbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Warden/Utilities/TavilySearchService.swift:133-141 | Warden/Utilities/WebSearchService.swift:56-64 \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":"Warden/Utilities/TavilySearchService.swift"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c96986393b8a20b349d7293faeb7bbc88cc37e441bd90acb4a4f81c7336eea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:252-258 | Warden/Utilities/APIHandlers/DeepseekHandler.swift:50-56 | Warden/Utilities/APIHandlers/OllamaHandler.swift:130-136 | Warden/Utilities/APIHandlers/OpenRouterHandler.swift:82-88 | Warden/Utilities/APIHandlers/PerplexityHandler.swift:104-110 \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 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:252\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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"999b6a2adc6a9e08c95180b46519ff73aa8735a7a669761c25dac7934bd726ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): Warden/Utilities/IncrementalMessageParser.swift:468-476 | Warden/Utilities/IncrementalMessageParser.swift:479-487 | Warden/Utilities/MessageParser.swift:168-176 | Warden/Utilities/MessageParser.swift:179-187 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. 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":"Warden/Utilities/IncrementalMessageParser.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e6b76eb98f375941f4273301fba367c539ce118045dc707b87c172edd8a2923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift:211-217 | Warden/UI/Preferences/TabAPIServices/ModelSelectionView.swift:170-176 | Warden/UI/Preferences/TabAPIServicesView.swift:462-468 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift:211\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, \u0060Warden/UI/Preferences/TabAPIServices/ModelSelectionView.swift:178\u0060 calls \u0060font\u0060 and \u0060Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift:219\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"954148cbe95696112e30897e1ffea2ac0a8c493dd6b0a3ed0f95d2c1ff763ce4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Warden/UI/Chat/CodeView/CodeView.swift:143-149 | Warden/UI/Chat/CodeView/CodeView.swift:212-218 \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 \u0060Warden/UI/Chat/CodeView/CodeView.swift:143\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":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a7ffb29e247641b7efebdaa7dc1718264a8edbe30f2c331d9c74cb154778d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Warden/UI/Preferences/MCP/AddMCPAgentSheet.swift:185-191 | Warden/UI/Preferences/MCP/MCPSettingsView.swift:256-262 \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 \u0060Warden/UI/Preferences/MCP/AddMCPAgentSheet.swift:185\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":"Warden/UI/Preferences/MCP/AddMCPAgentSheet.swift"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"9190ffab4a4fc802edd10c31d153662014e6e5dbd14780eedb5e0ee6e833bbbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:451-457 | Warden/Utilities/APIHandlers/ClaudeHandler.swift:116-122 \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 \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:451\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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"02458baca5f5c2598b15737cb3539bbc0131ea8200e0d8f359f424734e478c36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:196-201 | Warden/Utilities/APIHandlers/DeepseekHandler.swift:14-19 | Warden/Utilities/APIHandlers/OllamaHandler.swift:102-107 | Warden/Utilities/APIHandlers/OpenRouterHandler.swift:21-27 | Warden/Utilities/APIHandlers/PerplexityHandler.swift:71-76 \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 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:196\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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"e249104345ff8b8ecf7d775e09681aaa657c979824a2837ae23103e0a389e18a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Warden/UI/Chat/BubbleView/ChatBubbleView.swift:539-549 | Warden/UI/Chat/QuickChatView.swift:764-769 \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 \u0060Warden/UI/Chat/BubbleView/ChatBubbleView.swift:539\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":"Warden/UI/Chat/BubbleView/ChatBubbleView.swift"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa113e9941c2d4844afa7a1819a509ce8064c4becaf7bd334281ac0863959033"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:468-473 | Warden/Utilities/APIHandlers/ClaudeHandler.swift:139-142 | Warden/Utilities/APIHandlers/ClaudeHandler.swift:145-150 \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 \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:468\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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"38721b231f430a6070d8ea8602442fa49b237ba88c62d337363d6a6f84b4c7ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Warden/Utilities/TavilySearchService.swift:36-41 | Warden/Utilities/WebSearchService.swift:77-82 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060Warden/Utilities/TavilySearchService.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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060Warden/Utilities/TavilySearchService.swift:34\u0060 calls \u0060integer\u0060 and \u0060Warden/Utilities/WebSearchService.swift:76\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/TavilySearchService.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fea983c88250b2d77a5737df57f5f60ff43d93b44f01b0111dc924a0ba789d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Warden/UI/Chat/NewChatHomeViews.swift:288-292 | Warden/UI/ChatList/ChatListRow.swift:28-32 \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 \u0060Warden/UI/Chat/NewChatHomeViews.swift:288\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":"Warden/UI/Chat/NewChatHomeViews.swift"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e538ca4d2732ec0b9d8ea16460d99998737fe12accf67adf6e30364d6dc63d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Warden/UI/Chat/ProjectSummaryView.swift:392-397 | Warden/UI/ChatList/ChatListRow.swift:216-220 \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 \u0060Warden/UI/Chat/ProjectSummaryView.swift:392\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":"Warden/UI/Chat/ProjectSummaryView.swift"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0c6131a1222ec1d53380f6d0c16eae3780f13a1ec7e5efcea6613309122bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift:29-35 | Warden/UI/Preferences/TabAPIServicesView.swift:206-212 \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. 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":"Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d719a38cb8f1203a5eef9e72726ed9e3c0a218e4dfd468344402ef6b87b962c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Warden/Utilities/APIHandlers/DeepseekHandler.swift:22-26 | Warden/Utilities/APIHandlers/PerplexityHandler.swift:79-83 \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 \u0060Warden/Utilities/APIHandlers/DeepseekHandler.swift:22\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":"Warden/Utilities/APIHandlers/DeepseekHandler.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b59763853f3b4ad975332354a2011fc94034b7df5781cba19d97ce5a2199d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Warden/UI/Chat/BubbleView/ChatBubbleView.swift:453-467 | Warden/UI/Chat/QuickChatView.swift:701-710 \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":"Warden/UI/Chat/BubbleView/ChatBubbleView.swift"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"32208233fd2b3d971c5c31dce0f409a9c7d2b08f504482d53265db4bf71705cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): Warden/UI/Chat/CodeView/CodeView.swift:37-43 | Warden/UI/Chat/CodeView/CodeView.swift:53-59 | Warden/UI/ContentView.swift:556-562 | Warden/UI/ContentView.swift:572-578 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c9b5d4954c1fb0fdfba3a7486641eebde5f4c32cc27ce8706c196837f81ecc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Warden/UI/Chat/CodeView/CodeView.swift:45-51 | Warden/UI/ContentView.swift:564-570 \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":"Warden/UI/Chat/CodeView/CodeView.swift"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4bc76c456f9eeaed2d167954420cb027691311ca61f94477907d009205564db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Warden/UI/Chat/ProjectSummaryButton.swift:360-365 | Warden/UI/Chat/ProjectSummaryView.swift:304-309 \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":"Warden/UI/Chat/ProjectSummaryButton.swift"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3240d97ab1f1a1783850239c25fb58ef1d4147d1dd53c867b9e0b956c1ea69c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Warden/UI/Chat/QuickChatView.swift:843-847 | Warden/UI/Components/ModelSelectorDropdown.swift:32-36 \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. 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":"Warden/UI/Chat/QuickChatView.swift"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"108765495e66c73822da3224bed4918860c7d0d4990317e83f6b6007e30943ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Warden/UI/Components/ToastNotification.swift:93-99 | Warden/UI/ContentView.swift:923-929 \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":"Warden/UI/Components/ToastNotification.swift"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d322f4bebb6450c3b902cbdef2793cf2ae95a768a4041107aa6a216c9a3827fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): Warden/UI/Chat/BottomContainer/MessageInputView.swift:1099-1106 | Warden/UI/Preferences/MCP/MCPSettingsView.swift:105-112 | Warden/UI/Preferences/MCP/MCPSettingsView.swift:158-165 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060status\u0060 to \u0060statuses[config.id] ?? .disconnected\u0060 in one and \u0060manager.serverStatuses[config.id] ?? .disconnected\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":"Warden/UI/Chat/BottomContainer/MessageInputView.swift"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42790640fb7a5591e3f8f5a68d82de6aef3be0adbc120ce21ac8a969ea91ad6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): Warden/UI/Chat/ProjectSummaryButton.swift:481-489 | Warden/UI/Chat/ProjectSummaryView.swift:503-511 \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 \u0060Warden/UI/Chat/ProjectSummaryButton.swift:481\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":"Warden/UI/Chat/ProjectSummaryButton.swift"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"38bad30be6468e7b33a729820b07a69856dd701adf4b9e2467b4ada731064fae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Warden/UI/Preferences/PreferencesView.swift:134-139 | Warden/UI/Preferences/SettingsView.swift:37-42 \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":"Warden/UI/Preferences/PreferencesView.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ce52f457d7eed85f407ca98bffe30fdc883fcd979a52f11b22347a69354341"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Warden/Utilities/APIHandlers/ChatGPTHandler.swift:212-217 | Warden/Utilities/APIHandlers/ChatGPTHandler.swift:269-274 \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 \u0060Warden/Utilities/APIHandlers/ChatGPTHandler.swift:212\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":"Warden/Utilities/APIHandlers/ChatGPTHandler.swift"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"31696e08cba9bda337473d0f085ffbd7d2cae555c190e29eb8a2342e61952bd2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MenuBarManager (LCOM4 7): MenuBarManager\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":"Warden/Utilities/MenuBarManager.swift"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2c697fbf1e33323a998ae6c84c1f2ad5bcc410c49754c527720d7808bff393"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CodexAppServerHandler (LCOM4 4): CodexAppServerHandler\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":"Warden/Utilities/APIHandlers/APIServiceFactory.swift"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfe6a1fe570d14c85207364286dc502487aa9b70226aec0920fe484992a8d69"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ClaudeHandler (LCOM4 4): ClaudeHandler\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":"Warden/Utilities/APIHandlers/ClaudeHandler.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7c8d759904ee75518d6953c1032d9ff83e2a16bfdb363ae1f1861d1f52b69e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MistralHandler (LCOM4 4): MistralHandler\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":"Warden/Utilities/APIHandlers/MistralHandler.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc9ac36128fa4a730b8a88c7102645081c80201bf87793dd926e3f278847aff"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OllamaHandler (LCOM4 4): OllamaHandler\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":"Warden/Utilities/APIHandlers/OllamaHandler.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c47b3ca681274ff60508fb5a05267618bead19b0a8306f80cb977ff02ba2133"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: String (LCOM4 4): String\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":"Warden/Models/MessageContent.swift"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f36b20b17ed8ca11abf8154f78db6141995b040300694dc3d4319c0b26e9241"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"WardenTests/macaiTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7cfd19ddca6ed3c59558b06c0011eda46f2257c917a21d3b55af186607ccf8"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testPerformanceExample: 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":"WardenTests/macaiTests.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c626a406832c98da34cf5beb1205516e66cf8553cbe7f3d39ac2f1ce74ec6758"}},{"ruleId":"D10","level":"error","message":{"text":"Assertions commented out: testExample: The test body contains commented-out assertion calls and no live one \u2014 it runs, verifies nothing, and still passes. Restore the assertions or delete the test; a green test that checks nothing is worse than an absent one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"WardenUITests/WardenUITests.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a22a3a254e585f8ac8d067599267994e2805b8f913926eb4ad857084c666620"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunchPerformance: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"WardenUITests/WardenUITests.swift"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa119cdad111d80bcb416bc1a0f5cb81b6d0cf37c424febb1062915b172a4c77"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: testLaunch: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"WardenUITests/WardenUITestsLaunchTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"b464e350734c00c05723819fa01aad7404b489ef2a579eae6e860c08932f4b4b"}},{"ruleId":"D10","level":"error","message":{"text":"Test project verifies nothing: WardenTests: No conventional assertion call was detected in 2 of 2 tests in \u0060WardenTests\u0060 \u2014 the project as a whole, not one method. 1 of them has its assertions commented out, so this suite did verify conventionally and was switched off \u2014 it is not an approval/verifier harness."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"WardenTests/macaiTests.swift"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"691d0e865ff522bdb4793c47d3095d653ae85bc17fb04096f81a9cb3fea6c292"}},{"ruleId":"D10","level":"error","message":{"text":"Test project verifies nothing: WardenUITests: No conventional assertion call was detected in 3 of 3 tests in \u0060WardenUITests\u0060 \u2014 the project as a whole, not one method. 1 of them has its assertions commented out, so this suite did verify conventionally and was switched off \u2014 it is not an approval/verifier harness."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"WardenUITests/WardenUITests.swift"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"92733ac152871a248647effa468fada425d587bc90afe57c7e5197a1563098d8"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: highlightr: Dependency \u0060highlightr\u0060 is resolved in Warden.xcodeproj/project.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":"bde05ecb2affae5849c2cb6790aa3e258ea9c93e1dddaf471cdc64c3ec9208ea"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: keychainaccess: Dependency \u0060keychainaccess\u0060 is resolved in Warden.xcodeproj/project.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":"42af960cefb54a132794715d186c48a97b2e6b42508ad677df50aa684009d4e2"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating branch dependency: omentextfield: Dependency \u0060omentextfield\u0060 is resolved in Warden.xcodeproj/project.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":"f2c0389b91fca8cda8deae7cd262173e301614963ce5ff2fc439ba9f6337f001"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Warden/Utilities/MessageManager.swift: Warden/Utilities/MessageManager.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in MessageManager.sendMessageStream at line 446. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-23 14:20:39 \u002B05:30\u0027 --until=\u00272026-10-21 14:20:39 \u002B05:30\u0027 --full-history --no-merges -- Warden/Utilities/MessageManager.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/Utilities/MessageManager.swift"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5b3acdbf3d0c6130735784a90c184d38ee5c4a2e1e23b8e6338e9cef10a7d9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Warden/UI/Chat/ChatView.swift: Warden/UI/Chat/ChatView.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ChatView.mainChatContent at line 296. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-23 14:20:39 \u002B05:30\u0027 --until=\u00272026-10-21 14:20:39 \u002B05:30\u0027 --full-history --no-merges -- Warden/UI/Chat/ChatView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/ChatView.swift"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd9f30775f001242d1f51df1c26e54e2c262c8c6c1e462b307f6e38a245e0771"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Warden/UI/Chat/MessageListView.swift: Warden/UI/Chat/MessageListView.swift changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in MessageListView.body at line 178. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-23..2026-10-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-23 14:20:39 \u002B05:30\u0027 --until=\u00272026-10-21 14:20:39 \u002B05:30\u0027 --full-history --no-merges -- Warden/UI/Chat/MessageListView.swift\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/MessageListView.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82616224208d60334bb2f64f39b453efbf788c1d34c4776e3b960b1cd11fc61"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: implement unlimited context size (is it really needed though?) \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":"Warden/UI/Preferences/TabAPIServices/APIServiceDetailView.swift"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ffc31d878d4579e89c950eb13884027b336af610ca9143348d3f6943de4075"}},{"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 \u0060Warden.xcodeproj/project.pbxproj\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden.xcodeproj/project.pbxproj"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e65a4b48e770801b86817d9086e26aab9fac7dc56ba2d15e4375f8ab9ad6826"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31e15292ee7781495cff3025f3779e23aded0d07be93120b45c65e1d6518c389"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f1b966c70d2e5f6ab697ac6d268d54938c60e802d8ea58ea6ff9cb7e10a35f70"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"957b150e90b8de065e3fab913d6db8aa84cc38085b4826b482eaabde0c4cf347"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"865c1256b0af6cac7fabd52ec1703a6840a81e82c2cc09619e5e78e47af02756"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"c25a43456ba0d5346f01f6864cd5afc90cd38f0b6f65695f3a4fdee48088dc08"},"properties":{"dependency":{"package":"github.com/apple/swift-nio","version":"2.97.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"severity":"high","fixedVersion":"2.100.0","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":"55159158e733b13430be4441c664bdcf9ca6538d489e9486e295579e4cd4cf20"},"properties":{"dependency":{"package":"github.com/sparkle-project/Sparkle","version":"2.6.4","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"severity":"medium","reachability":{"kind":"unknown"}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ModelSelectorDropdown.swift \u2194 ModelSelectionView.swift: \u0060Warden/UI/Components/ModelSelectorDropdown.swift\u0060 and \u0060Warden/UI/Preferences/TabAPIServices/ModelSelectionView.swift\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060e0062721\u0060 Fix model selector and UI improvements across chat views; \u00602098eb50\u0060 feat: Centralize model capability detection by adding capabilities to\u2026; \u00605dda1336\u0060 feat: Add distinct input and output pricing display to model UI compo\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Components/ModelSelectorDropdown.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"636f9b10c2e147c3ee29b5afcf35fcca9a668f5d032d17d1d09c0bdf654912a9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ChatBottomContainerView.swift \u2194 CenteredInputView.swift: \u0060Warden/UI/Chat/BottomContainer/ChatBottomContainerView.swift\u0060 and \u0060Warden/UI/Chat/CenteredInputView.swift\u0060 change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00608005be6c\u0060 Fix chat input focus/enter and add Sparkle v1.01 appcast entry; \u0060f30336dd\u0060 Refactor ChatListRow and ChatListView for improved selection handling\u2026; \u006033a06d28\u0060 feat: Update chat input and message list UI for improved consistency;\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/BottomContainer/ChatBottomContainerView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff117f28a1688ea26c49bc8d652b4691b69f50bf427a3b0129aaa2fe3b1cd89f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MessageListView.swift \u2194 MessageManager.swift: \u0060Warden/UI/Chat/MessageListView.swift\u0060 and \u0060Warden/Utilities/MessageManager.swift\u0060 change together 50% of the time (9 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in different directories, but in this ecosystem the namespace is declared in the FILE, not by the folder \u2014 so the two may well share one namespace and reference each other with no import for this pass to see. Read the pair before acting: if one derives from or overrides the other, the dependency is explicit in the type declaration and the co-change is definitional; if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE and the thing to add is a comment saying so; if they simply belong together, co-locate them; if none of these holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u00608291fbe7\u0060 feat: Integrate streaming assistant text handling in ChatView and Mes\u2026; \u006023e6dddc\u0060 refactor: Update message handling and rendering in the chat applicati\u2026; \u0060be74edde\u0060 refactor: Remove unnecessary transitions and animations in chat views\u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Warden/UI/Chat/MessageListView.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"281ffb9e7f178bb0337e34c83e5356acbe4fa37260e4437c33bf5ef4300c09d7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"759dca709f1a032fb6f624ce672e6afb5558fce53ecf01fb73618c4d33923164"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"note","message":{"text":"CI test execution not evidenced: A CI pipeline exists but no test-runner invocation (your stack\u0027s test command, or a test job) was found \u2014 changes may merge without the suite running."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"860902100b1c048f49c648730bdf23459de2d8ca6af82ef0ec593ecb3995a80c"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 1 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!$0.isDeleted \u0026\u0026 $0.managedObjectContext != nil\u0060 appears character-identically in 3 files \u2014 Warden/UI/Chat/CenteredInputView.swift, Warden/UI/Components/PromptCompletionView.swift, Warden/UI/Components/QuickSwitcherView.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":"Warden/UI/Chat/CenteredInputView.swift"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f599f4ff3ce1d76493f56529eb62363d58f2eb6ba8c089b5b325f647c593607"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!composerState.attachedImages.isEmpty || !composerState.attachedFiles.isEmpty\u0060 appears character-identically in 2 files \u2014 Warden/UI/Chat/ChatView.swift, Warden/UI/Chat/QuickChatView.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":"Warden/UI/Chat/ChatView.swift"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a989e2287f5c042fe5ae0206cfba0385e0a6a30748c096e5c2106a9a0471a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060chunk.contains(\u0022\u003Cimage-uuid\u003E\u0022) || chunk.contains(\u0022\u003Cfile-uuid\u003E\u0022)\u0060 appears character-identically in 2 files \u2014 Warden/Utilities/APIServiceManager.swift, Warden/Utilities/MessageManager.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":"Warden/Utilities/APIServiceManager.swift"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"0228de33a4a46d1d3dc0d0ce806e4f971304236eec17742e85b539d678cad219"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060content.contains(MessageContent.imageTagStart) || content.contains(MessageContent.fileTagStart)\u0060 appears character-identically in 2 files \u2014 Warden/Utilities/AttachmentMessageExpander.swift, Warden/Utilities/AttachmentTagTokenizer.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":"Warden/Utilities/AttachmentMessageExpander.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73b05b7f6f04951cf93528fcd6eb537e6899e2ccdf86e4c9f5adadd1c3697b0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider == currentProvider \u0026\u0026 model == currentModel\u0060 appears character-identically in 2 files \u2014 Warden/UI/Components/QuickSwitcherView.swift, Warden/Utilities/RecentModelsStore.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":"Warden/UI/Components/QuickSwitcherView.swift"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"42a542ebc13d777316d90cb5b32a26dcae6efb4bca2b192d9a3509fa940dcc63"}},{"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":"Warden/Utilities/AttachmentStore.swift"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf81cc5091d47e4a478ccaa72221375225ab73703710c634efa226fe84bd5a1"}},{"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":"Warden/Utilities/ModelCacheManager.swift"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b24eb0091355015fa55a7accec3a42aa39b46fe39fd04e6feea0c4b2672698"}},{"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":"Warden/Utilities/ModelMetadataCache.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"720241b73bef84f1fefec44e3a48cb82234c385b8b783ece74123c2c304faac6"}},{"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":"Warden/Utilities/WardenOnboardingPresenter.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6c0c131990e74909f6dd7e6cfafaea0f7f46d03110ace52f7ffeac424cf24f"}},{"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":"Warden/UI/Preferences/TabAIPersonasView.swift"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d1d1496473d8dcd4212f9699fedc8b43dae15a0825867a65d136b27bcb3919"}},{"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":"Warden/UI/Chat/MultiAgentServiceSelector.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9371bfaa30c4fb45106929eed22fde244f76cd157854f1119b4046a3f06e4e42"}},{"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":"Warden/UI/Chat/MultiAgentServiceSelector.swift"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9ae992e5ac21d249d4c627554a8acbcb1371901f3af4f8ce87dbb8b23efc62"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-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":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":11,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}