{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"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":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"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":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ChatView.wrapSectionMessages (cyclomatic 35): ChatView.wrapSectionMessages has cyclomatic complexity 35 (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":"Sources/ExyteChat/Views/WrappingMessages.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"45659e4fa839a535ad3514f3626f3cda821154825cf3ae225374f57c35d174b4"}},{"ruleId":"D1","level":"warning","message":{"text":"InputViewModel.inputViewActionInternal (cyclomatic 21): InputViewModel.inputViewActionInternal has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Views/InputView/InputViewModel.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9c6610de5372b7aa7911082fdd5dd844da1f345b6ddc2f6660712dd49b17c7"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageMenu.transitionViewState (cyclomatic 20): MessageMenu.transitionViewState has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Views/MessageView/MessageMenu/MessageMenu.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f17b9ee71cc084b262d257bcaaa154fa80e323a496f966b9beaaefc05eb983"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageMenu.calcVertOffset (cyclomatic 20): MessageMenu.calcVertOffset has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Views/MessageView/MessageMenu/MessageMenu.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb7646e07134e51d7e8cd0f7f5eaed8edee2d1b31a6f5d0d63d455be2590ea4"}},{"ruleId":"D1","level":"warning","message":{"text":"Date.timeAgoFormat (cyclomatic 20): Date.timeAgoFormat has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ChatFirestoreExample/ChatFirestoreExample/Utils/Utils.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab233db84617e9aba6c86527230a6802815386000a5ff393d78afaf86d670b5"}},{"ruleId":"D1","level":"warning","message":{"text":"Coordinator.tableView (cyclomatic 16): Coordinator.tableView 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":"Sources/ExyteChat/Views/UIList.swift"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"7770c6b1b8ea7f672064f2a00d83529bb80ae739a36fb00625f1e5c00ad24a96"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentCell.body (cyclomatic 16): AttachmentCell.body has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Views/Attachments/AttachmentCell.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77d78f40bfc6f2d74e215fae26f1c121c4ce2b888b07711e736da9b29f4169d"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageView.bubbleView (cyclomatic 16): MessageView.bubbleView has cyclomatic complexity 16 (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":"Sources/ExyteChat/Views/MessageView/MessageView.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e61ac6b73731106e2922b2fddfa2063141e30db400cfc5f4421749a397dd83"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatView.wrapSectionMessages (cognitive 39): ChatView.wrapSectionMessages has cognitive complexity 39 (threshold 15). Drivers by points: if/else 23, boolean chains 14, ternaries 2. 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":"Sources/ExyteChat/Views/WrappingMessages.swift"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92e81d2917e8bf072ac47a031a1668f69459ca39310701d5b606c364b78c96c"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageMenu.calcVertOffset (cognitive 37): MessageMenu.calcVertOffset has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (26 pts), ternaries 4 (10 pts), match/switch 1 (nesting depth added 19). 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":"Sources/ExyteChat/Views/MessageView/MessageMenu/MessageMenu.swift"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc441e43e5b1ed2ea2d96dd7d393308e9f24750c594c02b0f60ac62096c195df"}},{"ruleId":"D2","level":"warning","message":{"text":"Date.timeAgoFormat (cognitive 32): Date.timeAgoFormat has cognitive complexity 32 (threshold 15). Drivers by points: if/else 25 (31 pts), ternaries 1 (nesting depth added 6). 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":"ChatFirestoreExample/ChatFirestoreExample/Utils/Utils.swift"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac38811d1bb32a253647b2a728b6b3a8f47f42dc0afb23ed48ba756f51b21f6"}},{"ruleId":"D2","level":"warning","message":{"text":"Lorem.text (cognitive 31): Lorem.text has cognitive complexity 31 (threshold 15). Drivers by points: loops 6 (15 pts), ternaries 3 (12 pts), if/else 4 (nesting depth added 18). This file\u0027s own header attributes it to another copyright holder, so it is code this repository carries rather than code it wrote: restructuring the body in place forks it from upstream and turns every future re-sync into a manual merge. The performable moves are to leave the body as close to its upstream form as possible and keep it behind a narrow interface of your own, and to re-sync it when upstream changes \u2014 or, if it has already diverged far enough that you maintain it here, adopt it deliberately and then split the body into named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ChatExample/ChatExample/DataGeneration/Lorem.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9afb51069bf3dad6933172ba94aaa10bf963654896d89818d6562f70a26f189b"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageMenu.transitionViewState (cognitive 21): MessageMenu.transitionViewState has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 3 (6 pts), match/switch 2 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Views/MessageView/MessageMenu/MessageMenu.swift"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0af7fe3b455cca16057a0a8d138f5db76f417506487378c287185e9f77a0cb5"}},{"ruleId":"D2","level":"warning","message":{"text":"InputView.dragGesture (cognitive 19): InputView.dragGesture has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Views/InputView/InputView\u002BRecording.swift"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"0773d880e2cc0c6efd0b84a05967b37d360188e439a8668221cd83f0fe1724fb"}},{"ruleId":"D2","level":"warning","message":{"text":"UIList.updateUIView (cognitive 17): UIList.updateUIView has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Views/UIList.swift"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"7673264c9a5076971a56e3bd44e6e5dcddcc1b322f235e27df99643ec1fe0646"}},{"ruleId":"D2","level":"warning","message":{"text":"InputView.viewOnTop (cognitive 16): InputView.viewOnTop has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Views/InputView/InputView\u002BAttachmentPreviews.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d704727025d415b9f6556e06456bf7978c16a7356351171e1012bbc57d5e24"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentCell.body (cognitive 16): AttachmentCell.body has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), match/switch 2 (6 pts) (nesting depth added 6). 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":"Sources/ExyteChat/Views/Attachments/AttachmentCell.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6efdc99367ff5eb4f21e68f3d7a76f7521c5f875902c25b1f9793fb7c3744f6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatView: TooManyMethods \u2014 64 methods, declared across 3 files: Views/PublicAPI.swift (49), Views/ChatView.swift (10), Views/WrappingMessages.swift (5). The bar is 30 methods; this is 34 over it, 2.13\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Views/ChatView.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd234cd9ea9343254d3151b1b65430eb9b1fcbff93f522c96ec5938bd8bd53b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Views/UIList.swift: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 27 over it, 1.05\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":"Sources/ExyteChat/Views/UIList.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b3e4f1d79c0c2a151d415d57980bdea4c532af966934e79fe1c6b6cd3226cde"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): Sources/ExyteChat/Model/Message.swift:77-105 | Sources/ExyteChat/Model/Message.swift:107-135 \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":"Sources/ExyteChat/Model/Message.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"0062922eeae3d68355dc7f73bc51a426c7444fac6b5c905b1201dfedfe0fdd68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): ChatFirestoreExample/ChatFirestoreExample/Conversation/ConversationViewModel.swift:297-319 | ChatFirestoreExample/ChatFirestoreExample/Users/UsersViewModel.swift:60-84 \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":"ChatFirestoreExample/ChatFirestoreExample/Conversation/ConversationViewModel.swift"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0ee56e92429aa29068591722b6b91cf063c47db9eb44a2809a2d89c00eafc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): Sources/ExyteChat/Views/InputView/InputView\u002BAttachmentPreviews.swift:111-137 | Sources/ExyteChat/Views/InputView/InputView\u002BAttachmentPreviews.swift:139-165 \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":"Sources/ExyteChat/Views/InputView/InputView\u002BAttachmentPreviews.swift"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d05f94bcfa0eb2bc4b217297dd670a8884d922cb2fb217363db7e89a14c0aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/ExyteChat/Views/UIList.swift:727-735 | Sources/ExyteChat/Views/UIList.swift:737-745 \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":"Sources/ExyteChat/Views/UIList.swift"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e8a9b6bd88345dbd36dcda767bd9d6044b70902141b716889a8f543034f3e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): ChatFirestoreExample/ChatFirestoreExample/Conversations/ConversationsView.swift:142-159 | Sources/ExyteChat/Views/ChatView.swift:297-314 \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":"ChatFirestoreExample/ChatFirestoreExample/Conversations/ConversationsView.swift"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"883c74b29d1e8046aeb4a5b09ff62682606843feb5b371cbfea993823f4dad4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): ChatExample/ChatExample/Screens/ChatExampleView.swift:21-33 | Sources/ExyteChat/Views/MessageView/MessageMenu/MessageMenu\u002BAction.swift:46-61 \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":"ChatExample/ChatExample/Screens/ChatExampleView.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf287836c47ee2f9c7002051e0065f96e1bf5e00886a7592582ec32799e9fef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): Sources/ExyteChat/Views/PublicAPI.swift:178-187 | Sources/ExyteChat/Views/PublicAPI.swift:191-200 \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":"Sources/ExyteChat/Views/PublicAPI.swift"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"742f3b4240a2a2a0c9db3054b499336564d2d631c8541cc6b80ec8085e34c5dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): Sources/ExyteChat/Managers/ReactionDelegate.swift:76-88 | Sources/ExyteChat/Views/PublicAPI.swift:237-253 \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":"Sources/ExyteChat/Managers/ReactionDelegate.swift"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"26931df978c86096c4845919a45087ff3a6b304bf3ebce3aaa0d21bb9ddd5a69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): Sources/ExyteChat/Managers/PaginationState.swift:22-27 | Sources/ExyteChat/Managers/PaginationState.swift:29-35 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Managers/PaginationState.swift"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d67e1bc932dc93e5090e420c33777639cbf715a4795a381e447082d47a7a3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/ExyteChat/Model/Message.swift:239-253 | Sources/ExyteChat/Model/Message.swift:255-269 \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":"Sources/ExyteChat/Model/Message.swift"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21aefce59fb5797d04260d3b53b95887e50e0dd85df43e0100e78c2009ba1e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): Sources/ExyteChat/Views/Attachments/AttachmentCell.swift:134-148 | Sources/ExyteChat/Views/Attachments/AttachmentCell.swift:151-165 \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":"Sources/ExyteChat/Views/Attachments/AttachmentCell.swift"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb573ad04c7a1e7964e91ed4eb1cb1fd907233ee55b7e234fb24a15d70dd685"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): ChatFirestoreExample/ChatFirestoreExample/Managers/UploadingManager.swift:13-18 | ChatFirestoreExample/ChatFirestoreExample/Managers/UploadingManager.swift:29-34 | ChatFirestoreExample/ChatFirestoreExample/Managers/UploadingManager.swift:36-41 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 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":"ChatFirestoreExample/ChatFirestoreExample/Managers/UploadingManager.swift"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d779699dc62ed9d7a88d12f8cbfcb7ecfb95c2d288f10773aaa1fb2b21b85b33"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): Sources/ExyteChat/Views/InputView/InputView.swift:192-201 | Sources/ExyteChat/Views/InputView/InputView.swift:203-211 \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":"Sources/ExyteChat/Views/InputView/InputView.swift"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"5841fd18d89e24a6c3ac7f97b799a7070370910ff47968b1ccd01152cf925036"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): Sources/ExyteChat/Utils/AsyncMap.swift:25-37 | ChatExample/ChatExample/Extensions/Sequence\u002BasyncMap.swift:11-21 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Utils/AsyncMap.swift"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1891005c566e4d047bba45f8251c43df7c5c364536360115f591710a0ba29678"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): ChatExample/ChatExample/Screens/ChatExampleView.swift:12-19 | Sources/ExyteChat/Views/MessageView/MessageMenu/MessageMenu\u002BAction.swift:33-44 \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":"ChatExample/ChatExample/Screens/ChatExampleView.swift"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"37105c6ebcd95fb1f86ff15676528d96365ed12b9dd3c3577945f76f04ae71cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): ChatExample/ChatExample/Screens/ActiveChatExampleViewModel.swift:43-48 | ChatExample/ChatExample/Screens/ChatExampleViewModel.swift:39-44 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"ChatExample/ChatExample/Screens/ActiveChatExampleViewModel.swift"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"76feb271db416a107532928f27ae2c1ae3c3832eb134f757ca3450b937878a71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): ChatFirestoreExample/ChatFirestoreExample/Utils/Utils.swift:34-38 | Sources/ExyteChat/Managers/KeyboardState.swift:21-23 \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":"ChatFirestoreExample/ChatFirestoreExample/Utils/Utils.swift"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc57f85832e0a19cb0d74447ce7fcef43ca9d057daff799d8c2810725e0446e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): Sources/ExyteChat/Model/Message.swift:83-95 | Sources/ExyteChat/Model/Message.swift:113-126 \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 \u0060Sources/ExyteChat/Model/Message.swift:83\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060Sources/ExyteChat/Model/Message.swift:96\u0060 calls \u0060applyDefaultAttributes\u0060 and \u0060Sources/ExyteChat/Model/Message.swift:127\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":"Sources/ExyteChat/Model/Message.swift"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"a573bb7dde502a7ed8b006f6acfbfc69ab7e3660178e99b94de5d2ab40de2ac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): ChatExample/ChatExample/Screens/ChatExampleView.swift:21-30 | Sources/ExyteChat/Views/MessageView/MessageMenu/MessageMenu\u002BAction.swift:47-57 \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 \u0060ChatExample/ChatExample/Screens/ChatExampleView.swift:21\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":"ChatExample/ChatExample/Screens/ChatExampleView.swift"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"002d703db614f6660c56b1acb37b1f91d4060fa90999a9244a63dd6fb9c31235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): ChatFirestoreExample/ChatFirestoreExample/Conversation/ConversationViewModel.swift:305-314 | ChatFirestoreExample/ChatFirestoreExample/Users/UsersViewModel.swift:68-77 \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 \u0060ChatFirestoreExample/ChatFirestoreExample/Conversation/ConversationViewModel.swift:305\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"ChatFirestoreExample/ChatFirestoreExample/Conversation/ConversationViewModel.swift"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f609b7288a3ea213fbf39751ddd718ebeecffa8c2ec37cb8e5b1f276520321"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): Sources/ExyteChat/Views/InputView/InputView\u002BAttachmentPreviews.swift:128-137 | Sources/ExyteChat/Views/InputView/InputView\u002BAttachmentPreviews.swift:156-165 \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 \u0060Sources/ExyteChat/Views/InputView/InputView\u002BAttachmentPreviews.swift:128\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":"Sources/ExyteChat/Views/InputView/InputView\u002BAttachmentPreviews.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b941e39a341f21c87a25e70a5fe6547e81c1b29111fca55201e6522b85b94043"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): Sources/ExyteChat/Views/PublicAPI.swift:179-184 | Sources/ExyteChat/Views/PublicAPI.swift:192-197 \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 \u0060Sources/ExyteChat/Views/PublicAPI.swift:179\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":"Sources/ExyteChat/Views/PublicAPI.swift"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"3631ab36c420ca0b848f2d42d763d772e164dc715a76c7564400377c8150fa92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): Sources/ExyteChat/Views/UIList.swift:729-735 | Sources/ExyteChat/Views/UIList.swift:739-745 \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 \u0060Sources/ExyteChat/Views/UIList.swift:729\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":"Sources/ExyteChat/Views/UIList.swift"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5f4490a8299163721dd96606b22a64eec6de2d6c74507c18c56df8382f6df0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): ChatExample/ChatExample/Screens/ActiveChatExampleView.swift:38-48 | ChatExample/ChatExample/Screens/ChatExampleView.swift:148-158 \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":"ChatExample/ChatExample/Screens/ActiveChatExampleView.swift"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04f327c2424469a9dddcef8fd0d6f3b8a6e255baaa4829932140406a1e77157"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ChatExample/ChatExample/Screens/ActiveChatExampleViewModel.swift:50-54 | ChatExample/ChatExample/Screens/ChatExampleViewModel.swift:46-50 \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":"ChatExample/ChatExample/Screens/ActiveChatExampleViewModel.swift"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b841b6f3decc3cd9fb5c331d94e4d505a70ec56cd5ee2862aa5ef0d64c25ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): ChatExample/ChatExample/Screens/ChatExampleView.swift:128-132 | ChatExample/ChatExample/Screens/CommentsExampleView.swift:208-212 \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":"ChatExample/ChatExample/Screens/ChatExampleView.swift"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea25a18cf6a9df68b9eebca0724e177fa65c02ef82c9455968450e35fc8ab27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): Sources/ExyteChat/Managers/ReactionDelegate.swift:77-81 | Sources/ExyteChat/Views/PublicAPI.swift:238-242 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Managers/ReactionDelegate.swift"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab4cd2343cfc49a3a3e9dbbda800bcdd6922a9771be4cbf32ef6c2a9c434375"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatViewModel (LCOM4 6): ChatViewModel\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Views/ChatViewModel.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96b3b01d6d2f2a7afb8894a7559f8459bda7b07c8a382403af6f6fb536867eb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/ExyteChat/Views/Attachments/AttachmentCell.swift: Sources/ExyteChat/Views/Attachments/AttachmentCell.swift changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AttachmentCell.body at line 26. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:49:54 \u002B07:00\u0027 --until=\u00272026-11-06 16:49:54 \u002B07:00\u0027 --full-history --no-merges -- Sources/ExyteChat/Views/Attachments/AttachmentCell.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":"Sources/ExyteChat/Views/Attachments/AttachmentCell.swift"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0632c95fef57ff2a36a249db02b216f1542fe982d78489b423cbc1a85cd284a4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/ExyteChat/Views/InputView/InputViewModel.swift: Sources/ExyteChat/Views/InputView/InputViewModel.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in InputViewModel.inputViewActionInternal at line 82. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:49:54 \u002B07:00\u0027 --until=\u00272026-11-06 16:49:54 \u002B07:00\u0027 --full-history --no-merges -- Sources/ExyteChat/Views/InputView/InputViewModel.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":"Sources/ExyteChat/Views/InputView/InputViewModel.swift"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9078335f545faed084e175d3085da4c47abba1c6b49a3987ada412d788391a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: Sources/ExyteChat/Views/MessageView/MessageView.swift: Sources/ExyteChat/Views/MessageView/MessageView.swift changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in MessageView.bubbleView at line 151. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:49:54 \u002B07:00\u0027 --until=\u00272026-11-06 16:49:54 \u002B07:00\u0027 --full-history --no-merges -- Sources/ExyteChat/Views/MessageView/MessageView.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":"Sources/ExyteChat/Views/MessageView/MessageView.swift"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc5f7a60be3238378555255fa2c241467fc801982b5dc5fe32653ca07c85404"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: Sources/ExyteChat/Views/Attachments/AttachmentsEditor.swift: Sources/ExyteChat/Views/Attachments/AttachmentsEditor.swift changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 3 (its worst body is AttachmentsEditor.titleToolbarItem at line 66), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix removing photos selected through system picker\u201D; \u201CFix for ipad\u0027s 3 dots button\u201D; \u201CMore UIScreen bug fixes\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 16:49:54 \u002B07:00\u0027 --until=\u00272026-11-06 16:49:54 \u002B07:00\u0027 --full-history --no-merges -- Sources/ExyteChat/Views/Attachments/AttachmentsEditor.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":"Sources/ExyteChat/Views/Attachments/AttachmentsEditor.swift"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9d3c384fd3a93216c9699b167b7aab17f76d6a200e8d0e8e5fd9905067035d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 6 significant file(s) lose their only recent owner: Sources/ExyteChat/Views/InputView/InputView\u002BAttachmentPreviews.swift, Sources/ExyteChat/Views/InputView/InputView\u002BRecording.swift, Sources/ExyteChat/Views/UIList\u002BOperationsSplit.swift, Sources/ExyteChat/Views/UIList\u002BQueue.swift, Sources/ExyteChat/Utils/CachedAsyncImage.swift, Sources/ExyteChat/Extensions/AttributedString\u002BExtensions.swift. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4cd5131c94020e7a16bd5ae9a8efac2c956802d4cf7d42e2c20adf0f54d74deb"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (10 single-owned of 59 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 59 of the 154 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: Sources/ExyteChat/Views/Location/LocationPickerView.swift, Sources/ExyteChat/Views/Location/LocationManager.swift, Sources/ExyteChat/Theme/ChatTheme\u002BAuto.swift, Sources/ExyteChat/Utils/ZoomableContainer.swift."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: do not hardcode this value \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":"Sources/ExyteChat/Views/Recording/RecordWaveform.swift"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"32b6a84e07bed0ef3a517869fb45ba48ef5bd036526469c944649f0518be3e6a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Make injectable \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":"Sources/ExyteChat/Views/Attachments/AttachmentsGrid.swift"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"371532826444cb3e1442233f9b459e88b471e80e0608aed045775344d8011536"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO get video, not image \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":"Sources/ExyteChat/Views/Attachments/AttachmentsGrid.swift"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b539b1e541be5026351c18bd633e97dce9ad5becab8bbb17a11dfb6968fbe84a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Create option \u0022download video before playing\u0022 \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":"Sources/ExyteChat/Views/Attachments/Video/VideoViewModel.swift"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c5d6c11cafab865ea31449366f9d7f10ed4bb216faa3e3bf5ee4ccbc7cd1f2"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060swiftUiInsets\u0060 spells \u0060Ui\u0060 where 18 names in the project spell it \u0060UI\u0060: 18 of 19 names in project ExyteChat spell the token \u0060UI\u0060 (18 of 19; unit: names in project ExyteChat containing \u0060UI\u0060). Peers: LinkViewRepresentable.makeUIView (Sources/ExyteChat/Extensions/LinkPresentation\u002BView.swift:21); LinkViewRepresentable.updateUIView (Sources/ExyteChat/Extensions/LinkPresentation\u002BView.swift:30); EmojiTextField.makeUIView (Sources/ExyteChat/Extensions/TextField\u002BEmoji.swift:41); EmojiTextField.updateUIView (Sources/ExyteChat/Extensions/TextField\u002BEmoji.swift:49); FullScreenCoverBackgroundRemovalView.makeUIView (Sources/ExyteChat/Extensions/View\u002BFullscreenCover.swift:56). Rename to \u0060swiftUIInsets\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Utils/SafeAreaInsets.swift"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"853eae2008d147eda5fb6421b89a79746a919712cf6984afe3239705d302871a"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 3 project(s) overshoot their size bounds, lowering Project Cohesion to 3.8/10. The most over is \u0060(repository root)\u0060 (10949 LoC, 203 module-visible types across 14 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"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":"613343d1b752f35745826fe8d15b453cf20383607c0f92f58d6658c1e8f77558"},"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":"0e7bbf6d58d90cf992a92b7992dbc53cd3428c139b35e16035ce1a663cc60295"},"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":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 4 of 59 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 59 of the 154 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: Sources/ExyteChat/Views/Attachments/AttachmentsGrid.swift, Sources/ExyteChat/Theme/ChatTheme\u002BAuto.swift, Sources/ExyteChat/Managers/ReactionDelegate.swift, Sources/ExyteChat/Views/Giphy/GiphyPicker.swift. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Views/Attachments/AttachmentsGrid.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e84dcf434ab6bd12a1e7f1d259fcdd2564f93234582182beebf9eeff8ad5f1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Theme/ChatTheme\u002BAuto.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7a6f8bd683b13e488c3e65f490856f31efcfce5c5800f3f1bc968a1380d88f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Managers/ReactionDelegate.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a084627b0cb1ce679c19649f9618e1a37b6eac9f115fc4c9ca045e58b1d78c26"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Views/Giphy/GiphyPicker.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbc326dea29049b936e47d770c1f1c73d4242b0723a59fca17894e085c65ab7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: AttachmentCell.swift \u2194 AttachmentsPage.swift: \u0060Sources/ExyteChat/Views/Attachments/AttachmentCell.swift\u0060 and \u0060Sources/ExyteChat/Views/Attachments/AttachmentsPage.swift\u0060 change together 60% of the time (9 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 the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither 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 \u0060ab22b6cc\u0060 Fix theme not applied to some icons; \u0060ec64e45b\u0060 Apply theme to document attachments; \u0060b94e9bba\u0060 Fix gif attachment \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"Sources/ExyteChat/Views/Attachments/AttachmentCell.swift"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d224057bda0d8013f53735c89d8d23598d9e7c0311705291c4eaec79b38939"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s Swift pack (Swift/Xcode) (or \u0060semgrep --config=auto\u0060, which runs on any language) 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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":4}}}],"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.fullUploadStatus == nil || $0.fullUploadStatus == .complete\u0060 appears character-identically in 3 files \u2014 Sources/ExyteChat/Views/Attachments/FullscreenMediaPages.swift, Sources/ExyteChat/Views/ChatViewModel.swift, Sources/ExyteChat/Views/MessageView/MessageMenu/MessageMenu\u002BAction.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":"Sources/ExyteChat/Views/Attachments/FullscreenMediaPages.swift"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f74b16b6bb060b0ad44394ee8c3fb2871ba7a240e7fe33b4db492db06758c0"}}],"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-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-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"}]}],"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":3,"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."]}]}