{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"],"owasp":"A01: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":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"C1","name":"Data Protection","shortDescription":{"text":"Data Protection"},"helpUri":"https://codehealth.canine.dev/dimensions/C1"},{"id":"C4","name":"Data Retention","shortDescription":{"text":"Data Retention"},"helpUri":"https://codehealth.canine.dev/dimensions/C4"},{"id":"DM12","name":"Ambient inputs in the domain","shortDescription":{"text":"Ambient inputs in the domain"},"helpUri":"https://codehealth.canine.dev/dimensions/DM12"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"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":"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":"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":"P8","name":"Schema migrations","shortDescription":{"text":"Schema migrations"},"helpUri":"https://codehealth.canine.dev/dimensions/P8"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ImportComposeStore.handleEvent (cyclomatic 49): ImportComposeStore.handleEvent has cyclomatic complexity 49 (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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/store/ImportComposeStore.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"423d14279c5a5ac7facf3f8edf9613a57c7e498f8f97f6be00e4cda08fc27fdc"}},{"ruleId":"D1","level":"warning","message":{"text":"OverviewComposeStore.handleEvent (cyclomatic 29): OverviewComposeStore.handleEvent has cyclomatic complexity 29 (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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/store/OverviewComposeStore.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cf64351780795ec7cd55aa3a6dbded9381793505d305ffe6e60a4dfd3b415d9"}},{"ruleId":"D1","level":"warning","message":{"text":"OverviewTopSheetKt.OverviewTopSheetAnalysis (cyclomatic 24): OverviewTopSheetKt.OverviewTopSheetAnalysis has cyclomatic complexity 24 (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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff09eba414350bf5e03260aaa02febaa9b9666d2384a9f60359f1fabc74225d"}},{"ruleId":"D1","level":"warning","message":{"text":"ShareComposeStore.handleEvent (cyclomatic 23): ShareComposeStore.handleEvent has cyclomatic complexity 23 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareComposeStore.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b8a6a49c81d4f03be5c908b67d6a3f3d5f169232acc7b3840821337f299975"}},{"ruleId":"D1","level":"warning","message":{"text":"AssistantComposeStore.handleEvent (cyclomatic 23): AssistantComposeStore.handleEvent has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantComposeStore.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b2f48776d017bb163f72694d6d295913fe9942ee238046fd4b283411c6bccb"}},{"ruleId":"D1","level":"warning","message":{"text":"Base.updateClass (cyclomatic 22): Base.updateClass has cyclomatic complexity 22 (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. This is NOT this file\u0027s highest cyclomatic complexity: Base.execute (cyclomatic 28) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2f71ce4c9926fb9423f46f0d3306d1848c894cb5cc31fff2c2507dd6f7f1067"}},{"ruleId":"D1","level":"warning","message":{"text":"HomeworksComposeStore.handleEvent (cyclomatic 21): HomeworksComposeStore.handleEvent 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c8a97f5c01c029ab46a381ce8ca70b726d531eb1de7e0af17ce114944b6b7ba"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenRouterScheduleExtractionGateway.extractWithinDeadline (cyclomatic 21): OpenRouterScheduleExtractionGateway.extractWithinDeadline 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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/infrastructure/openrouter/OpenRouterScheduleExtractionGateway.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"503215e0ddc4f6be09f5fa25743beb853b720d7c21fbb889020317aa248a253b"}},{"ruleId":"D1","level":"warning","message":{"text":"SetupComposeStore.handleEvent (cyclomatic 20): SetupComposeStore.handleEvent has cyclomatic complexity 20 (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":"shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/store/SetupComposeStore.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a972242abb92554ca365fb5024d899cde9bf54d37186be2d416757819f3baff"}},{"ruleId":"D1","level":"warning","message":{"text":"YandexRewardedAdHostKt.YandexRewardedAdHost (cyclomatic 20): YandexRewardedAdHostKt.YandexRewardedAdHost 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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/ads/YandexRewardedAdHost.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1bb6e61adde547ad898244f25de0d26f52110fb9ea25b2194ce5a0156c257db"}},{"ruleId":"D1","level":"warning","message":{"text":"ClassComposeStore.handleEvent (cyclomatic 19): ClassComposeStore.handleEvent has cyclomatic complexity 19 (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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/store/ClassComposeStore.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"37b285de91f85e88b45565d30f792d63c292733901ae6080a5d75a068d7c87be"}},{"ruleId":"D1","level":"warning","message":{"text":"Base.createNotify (cyclomatic 19): Base.createNotify 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":"shared/core/common/src/androidMain/kotlin/ru/aleshin/studyassistant/core/common/notifications/NotificationCreator.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7462c94e3877265b05c603d051440072aa77c782eab584e3d8cd0116be6277d"}},{"ruleId":"D1","level":"warning","message":{"text":"DeepSeekAiCompletionGateway.completeWithinDeadline (cyclomatic 18): DeepSeekAiCompletionGateway.completeWithinDeadline 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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/deepseek/DeepSeekAiCompletionGateway.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4754b62df44d4b8bf82a4f0c52e8be19e486bd58195ac67fe7bd54330dde7fbd"}},{"ruleId":"D1","level":"warning","message":{"text":"DeepSeekMapper.mapResponse (cyclomatic 18): DeepSeekMapper.mapResponse has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/deepseek/mappers/DeepSeekMapper.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8167c96da6a74d64d5f9381108225295d66fa545a98f5aeb889395e3c7b7c3"}},{"ruleId":"D1","level":"warning","message":{"text":"DailyHomeworksDetailsViewKt.ShortHomeworkViewContent (cyclomatic 17): DailyHomeworksDetailsViewKt.ShortHomeworkViewContent 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"556120f09c1ebef05ffce56c9c74e88dfbc833b879fea8dd71fbb2206c0da5f5"}},{"ruleId":"D1","level":"warning","message":{"text":"OverviewComposeStore.handleEvent (cyclomatic 17): OverviewComposeStore.handleEvent 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/store/OverviewComposeStore.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e7c015888cad54ecd4ff0024b082b3d48ae93872067f9894e5f5583ff755fd"}},{"ruleId":"D1","level":"warning","message":{"text":"SetupContentKt.SetupPageInfoSection (cyclomatic 17): SetupContentKt.SetupPageInfoSection 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":"shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/SetupContent.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a79116efbf6d546d3406e1110368c52b641063ecc91640d75416ee144586b5"}},{"ruleId":"D1","level":"warning","message":{"text":"AiCompletionRequestValidator.validate (cyclomatic 17): AiCompletionRequestValidator.validate has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/api/validation/AiCompletionRequestValidator.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47815cacc091c2a4145e4b169a926d68e669ccb2f0d936726278fa9b37a7767"}},{"ruleId":"D1","level":"warning","message":{"text":"DetailsComposeStore.handleEvent (cyclomatic 16): DetailsComposeStore.handleEvent 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/store/DetailsComposeStore.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3787f7b65d4398025b6268ad30ef58a2d2348ec293237401c84f494420700b"}},{"ruleId":"D1","level":"warning","message":{"text":"Base.isOverlay (cyclomatic 16): Base.isOverlay 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":"shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/managers/TimeOverlayManager.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5a1d6de1082690163fbbdaa8d080a8a2ae219653cb19c94f9befb3ba573a28"}},{"ruleId":"D1","level":"warning","message":{"text":"AiQuotaRepositoryImpl.reserve (cyclomatic 16): AiQuotaRepositoryImpl.reserve 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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/AiQuotaRepositoryImpl.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bdcf7f8a54fb9fed1bb10a24b359892de099ead3176776540d598ad04e4b74"}},{"ruleId":"D2","level":"warning","message":{"text":"OverviewTopSheetKt.OverviewTopSheetAnalysis (cognitive 42): OverviewTopSheetKt.OverviewTopSheetAnalysis has cognitive complexity 42 (threshold 15). Drivers by points: if/else 34 (37 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a5c4e398afffd33cacdc3689b58319a248a239bb8448056e530e28b5c49ff4"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportComposeStore.handleEvent (cognitive 39): ImportComposeStore.handleEvent has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 6, match/switch 2 (3 pts) (nesting depth added 16). 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/store/ImportComposeStore.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f5a22250891fc4ba0cfea64daada1fd596ec4c3e83fe33543cd7ba47fa0da8"}},{"ruleId":"D2","level":"warning","message":{"text":"Base.fetchGoalsByDate (cognitive 27): Base.fetchGoalsByDate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 2, match/switch 1 (nesting depth added 9). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e5c160c59136a17e99b66b0b91d88c73ed8fd1aa7b242c7ead3083a44dc872"}},{"ruleId":"D2","level":"warning","message":{"text":"YandexRewardedAdHostKt.YandexRewardedAdHost (cognitive 26): YandexRewardedAdHostKt.YandexRewardedAdHost has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20 (23 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/ads/YandexRewardedAdHost.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"894e2962f1a69cbad6d4745d545ba07c0313e822d418956534e09713adcb6694"}},{"ruleId":"D2","level":"warning","message":{"text":"SetupContentKt.SetupPageInfoSection (cognitive 25): SetupContentKt.SetupPageInfoSection has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (15 pts), match/switch 3 (10 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/SetupContent.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d426dd03682d0057343c7f68968421c35e153bce2a483b8f563d2c863341b5"}},{"ruleId":"D2","level":"warning","message":{"text":"OverviewClassesSectionKt.OverviewClassesSection (cognitive 23): OverviewClassesSectionKt.OverviewClassesSection has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 2 (nesting depth added 12). 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewClassesSection.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ccd44b61f2ccde578db40cf40cb1c1805d4312cdf92d2a23fcb144312675f52"}},{"ruleId":"D2","level":"warning","message":{"text":"Base.createNotify (cognitive 23): Base.createNotify has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 2, match/switch 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":"shared/core/common/src/androidMain/kotlin/ru/aleshin/studyassistant/core/common/notifications/NotificationCreator.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c4ce94f5059639e448a846b48c09187ed752a25e454bf24fc33a2de4cbda37"}},{"ruleId":"D2","level":"warning","message":{"text":"AiQuotaRepositoryImpl.reserve (cognitive 23): AiQuotaRepositoryImpl.reserve has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 4 (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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/AiQuotaRepositoryImpl.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"1753f04bd2c19e6f3e87f367474d2a0a8d63cc4a3a610b28abfeb0c05c30799a"}},{"ruleId":"D2","level":"warning","message":{"text":"TodoViewItemKt.TodoViewFooter (cognitive 22): TodoViewItemKt.TodoViewFooter has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (20 pts), match/switch 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/common/TodoViewItem.kt"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cd72216b952077d94a578d14f0563e5eb4a6dc1297f3d7e301c5bfa81a2559a"}},{"ruleId":"D2","level":"warning","message":{"text":"Base.updateClass (cognitive 22): Base.updateClass has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, boolean chains 9. 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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd7dac1fb2d7f046fe24dcf2ffa0d13fe6cd6626471f1ad76cfb738b76b164e"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFieldsKt.ClickableInfoTextField (cognitive 22): TextFieldsKt.ClickableInfoTextField has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3b9454db0716253fb854170780d738818bb4c278af1483f29b8e9e1f465719"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenRouterScheduleExtractionGateway.extractWithinDeadline (cognitive 22): OpenRouterScheduleExtractionGateway.extractWithinDeadline has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), error handling 3, boolean chains 2, 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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/infrastructure/openrouter/OpenRouterScheduleExtractionGateway.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d20cd748da9c20c921fe9ca4093c18771d3e662c570a8cf856989588ff7a13e"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyHomeworksDetailsViewKt.ShortHomeworkViewContent (cognitive 20): DailyHomeworksDetailsViewKt.ShortHomeworkViewContent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 3, 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8dfe3b6713c57bf44b6455aaa579836ee8012a123ae768f75607c2ba0d957a"}},{"ruleId":"D2","level":"warning","message":{"text":"OrganizationPageInfoKt.OrganizationPageInfo (cognitive 20): OrganizationPageInfoKt.OrganizationPageInfo has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (20 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/views/OrganizationPageInfo.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83e3591b27883c9c25e153cecf2f29672ffcbe8f6bebf035dc8f21453eafa2c"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFieldsKt.ClickableTextField (cognitive 20): TextFieldsKt.ClickableTextField has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ca7572652fca8f89255db35969f57cdb49c0ce5a2724739295c56db5c95ffa"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivityKt.createAdsConfiguration (cognitive 20): MainActivityKt.createAdsConfiguration has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20. 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":"androidApp/src/main/java/ru/aleshin/studyassistant/presentation/ui/MainActivity.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacdb6a2657b4eda7c3d6efa0b2aa2109919539c6f8f3ee01c7c4cd057cf1a56"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyHomeworksDetailsViewKt.DailyHomeworksDetailsView (cognitive 18): DailyHomeworksDetailsViewKt.DailyHomeworksDetailsView has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31875ceb336936559e44ef8a7a23277957b7c10660f1f338441c391c010eab8"}},{"ruleId":"D2","level":"warning","message":{"text":"Base.isOverlay (cognitive 18): Base.isOverlay has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7 (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":"shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/managers/TimeOverlayManager.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ac5e37ec2d3844afc5f561851b4b9d9fe8df9c29d406b8f00a032ed4d22c62"}},{"ruleId":"D2","level":"warning","message":{"text":"DeepSeekAiCompletionGateway.completeWithinDeadline (cognitive 18): DeepSeekAiCompletionGateway.completeWithinDeadline has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 3, 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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/deepseek/DeepSeekAiCompletionGateway.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d692b62fadbb4c87a1cf34a37248d9992b9e6b666cae74410d8dc89fa8095b7b"}},{"ruleId":"D2","level":"warning","message":{"text":"AssistantComposeStore.handleEvent (cognitive 17): AssistantComposeStore.handleEvent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 2, match/switch 1 (nesting depth added 7). 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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantComposeStore.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc16db9c2b3d2274cf46d5623d513eab410767bd11bb90a528b5f115649a8dc"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalyticsContentKt.AnalyticsContent (cognitive 17): AnalyticsContentKt.AnalyticsContent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/AnalyticsContent.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0aafd2e6f32b3b69212994baf1dd35c54b108c262610e02ba48e0bbab1767a2"}},{"ruleId":"D2","level":"warning","message":{"text":"AiAssistantMessageKt.lastConfirmedTurnEndIndex (cognitive 17): AiAssistantMessageKt.lastConfirmedTurnEndIndex has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 2 (3 pts), match/switch 1 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/ai/AiAssistantMessage.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5365a674da1df5d3944d008eda7a619fca5d3aef3cdfc8736da11ec3e8db95e"}},{"ruleId":"D2","level":"warning","message":{"text":"DailyHomeworksViewKt.DailyHomeworksView (cognitive 16): DailyHomeworksViewKt.DailyHomeworksView has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3 (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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"abff646ce445fc0db3811a9f23174b4dbed7b76755ae8cc213dc8119ffe2e925"}},{"ruleId":"D2","level":"warning","message":{"text":"ImportContentKt.ImportContent (cognitive 16): ImportContentKt.ImportContent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, match/switch 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/ImportContent.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ad0dab982e23b35c3eb0f2bb61813377f40f6f05ff8d169757d12a2d05cd1b8"}},{"ruleId":"D2","level":"warning","message":{"text":"AnalyticsGridKt.analyticsDetailsItems (cognitive 16): AnalyticsGridKt.analyticsDetailsItems has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (15 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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/layouts/AnalyticsGrid.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"33deefe0475930ef248bea6fa208fa488e6fa1c3ab7a2554c24bf168d4d4c0ca"}},{"ruleId":"D2","level":"warning","message":{"text":"TabIndicatorOffsetKt.pagerTabIndicatorOffset (cognitive 16): TabIndicatorOffsetKt.pagerTabIndicatorOffset has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), match/switch 2 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TabIndicatorOffset.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"51eef636ff8ff722ccc51a67ce0f9baf2e02295e1c0a06e1ecb6d4aafb27c14f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiToolCallProcessor.activeCalls: MethodTooLong \u2014 activeCalls runs 838 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 738 over it, 8.38\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e626312e0cdf58b832947f6b419e5cd5bd6753c834efe9b1aaad553aff3f6664"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiToolCallProcessor.pendingMutations: MethodTooLong \u2014 pendingMutations runs 837 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 737 over it, 8.37\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7a25454057a8f97fb077af90f49835d26de6014d4c400905425f537ffbc6d5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiToolCallProcessor.isMutation: MethodTooLong \u2014 isMutation runs 836 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 736 over it, 8.36\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28445baf9f8d3fb69c86eacaa7c9b9c9ce258c143cfa905845bcad101c1c3a5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiToolCallProcessor.confirmationPreview: MethodTooLong \u2014 confirmationPreview runs 835 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 735 over it, 8.35\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55336a82f6b47a6965e2364898ba5b070b49e5f9febe710d2fbebab8fdc6db5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiToolCallProcessor.execute: MethodTooLong \u2014 execute runs 834 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 734 over it, 8.34\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d7efb251f666789c9f9ce41fc68f9647e810728b33584c0ea1fbf1c23b210ba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScheduleImportHandler.updateStartOfDay: MethodTooLong \u2014 updateStartOfDay runs 492 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 392 over it, 4.92\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b31a880840a9bad4e887463ceb1e8dfbc89a5808682bd7ec640c7db459261e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScheduleImportHandler.updateClassesDuration: MethodTooLong \u2014 updateClassesDuration runs 486 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 386 over it, 4.86\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d784befba8ac69e77286536ba3a31bc54e6c47b8203c298818f90281c2e48bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalyticsReportCalculator.calculate: MethodTooLong \u2014 calculate runs 481 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 381 over it, 4.81\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/domain/calculators/AnalyticsReportCalculator.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf92ff6f2eeca909944beaa42d8ff00e40a7083db235618be01940456ace8e6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScheduleImportHandler.updateBreaksDuration: MethodTooLong \u2014 updateBreaksDuration runs 479 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 379 over it, 4.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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"7414fc9e1d93881f6790e5b9450bf195e91375eee9cb484030d46031704ca5a9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScheduleImportHandler.swapDays: MethodTooLong \u2014 swapDays runs 472 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 372 over it, 4.72\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d35df0932f1d4bdae8db0a16f59813da9dc29611a8d743d09f4fcc1dee1bc22"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScheduleImportHandler.mergeOrganizationPlaces: MethodTooLong \u2014 mergeOrganizationPlaces runs 466 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 366 over it, 4.66\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8816cea36b171d9807ca570d42d21fca8384c27dfc3b47424ec0e1a6636fb0a6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShareSchedulesInteractor.linkOrganization: MethodTooLong \u2014 linkOrganization runs 380 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 280 over it, 3.80\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ShareSchedulesInteractor.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9964308edd272daed801d9b525f441bd7703eea93f6fb3e05ab315794ab1418"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShareSchedulesInteractor.updateLinkedSubjects: MethodTooLong \u2014 updateLinkedSubjects runs 374 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 274 over it, 3.74\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ShareSchedulesInteractor.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9facb8e34ea5fe6fe78f86a0d2adc562d388c06ea710b71f880b1a468203e02"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShareSchedulesInteractor.updateLinkedEmployees: MethodTooLong \u2014 updateLinkedEmployees runs 368 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 268 over it, 3.68\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ShareSchedulesInteractor.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ffaa410b7e872dc1d3dc921ebb97c47af11eb6cdcb226e4b12fb94f6625c566"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShareSchedulesInteractor.importShare: MethodTooLong \u2014 importShare runs 362 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 262 over it, 3.62\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ShareSchedulesInteractor.kt"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6f0f1a7851bee82429471bd4a28ef614f2dca37f5a8d240f9106ef453f34c4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WidgetInteractor.fetchSchedule: MethodTooLong \u2014 fetchSchedule runs 231 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 131 over it, 2.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":"widget/src/commonMain/kotlin/ru/aleshin/studyassistant/widget/domain/interactors/WidgetInteractor.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c48d102d0f8c98a7b4d8acec68ef4d8608cf212bb6867bfb6ac94797d9d1deb5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WidgetInteractor.fetchHomeworks: MethodTooLong \u2014 fetchHomeworks runs 230 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 130 over it, 2.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"widget/src/commonMain/kotlin/ru/aleshin/studyassistant/widget/domain/interactors/WidgetInteractor.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a289362b6e39e36d36399b72f83e8b0867145e92e2a499205de2f16c69f1a7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WidgetInteractor.fetchTodos: MethodTooLong \u2014 fetchTodos runs 229 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 129 over it, 2.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":"widget/src/commonMain/kotlin/ru/aleshin/studyassistant/widget/domain/interactors/WidgetInteractor.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65e92e1e83040dd95176ed9b6af1e3abe9c09b6bd363d81ac762d9f4033b2e5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WidgetInteractor.fetchGoals: MethodTooLong \u2014 fetchGoals runs 228 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 128 over it, 2.28\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":"widget/src/commonMain/kotlin/ru/aleshin/studyassistant/widget/domain/interactors/WidgetInteractor.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"3495f3161e175c31e2e10eaaa85e867576735b40bc1ce06c2d955c925b1a5b48"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WidgetInteractor.fetchDisplaySettings: MethodTooLong \u2014 fetchDisplaySettings runs 227 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 127 over it, 2.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":"widget/src/commonMain/kotlin/ru/aleshin/studyassistant/widget/domain/interactors/WidgetInteractor.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d33c5b3c4e6d12ed13310f826b213abe7a9e3b31b5b5a60b57e6cf777da0ea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WidgetInteractor.setTodoDone: MethodTooLong \u2014 setTodoDone runs 226 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 126 over it, 2.26\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":"widget/src/commonMain/kotlin/ru/aleshin/studyassistant/widget/domain/interactors/WidgetInteractor.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"370c7a82b93545ecf816819d63e3e505d3015973b6774af557bc891179fe6046"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImportClassEditorSheetKt.ImportClassEditorSheet: MethodTooLong \u2014 ImportClassEditorSheet runs 221 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 121 over it, 2.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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f128b19c57647242e3013b9f831b95d3ef72151d7cff5cdc2943bd8206d902"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AiToolCallProcessor: ClassTooLong \u2014 839 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 439 over it, 2.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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ac0a57a01322c2ff6bc598c23ee76b7198b40d92b43ac1028f9c7229d9e053"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GoalsInteractor.addGoal: MethodTooLong \u2014 addGoal runs 204 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 104 over it, 2.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"70444a6f9357a6821b44027b0c181b0a1b89449f64b539fff7dfbaa7ab43f801"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GoalsInteractor.fetchGoalsByDate: MethodTooLong \u2014 fetchGoalsByDate runs 203 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 103 over it, 2.03\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cd551f5789f985fd4deea4ecafa2eb250be688057a59d663d330ca419516467"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GoalsInteractor.fetchGoalsProgressByTimeRange: MethodTooLong \u2014 fetchGoalsProgressByTimeRange runs 202 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 102 over it, 2.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"46407a78c3823c3be3117ce6bd502543fb9cf4cdaf2cf62141d732c2bda40e41"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GoalsInteractor.updateGoals: MethodTooLong \u2014 updateGoals runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5d3656c9b752e28f70e33fb65f27bb967fd741fcb41918903b35c5f7ff51dd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GoalsInteractor.completeElapsedGoals: MethodTooLong \u2014 completeElapsedGoals runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6042be27560e9bf2a48699ca0f75d090c388f2d46f21d734aec77b76ab0e384"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GoalsInteractor.completeOrCancelGoal: MethodTooLong \u2014 completeOrCancelGoal runs 199 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 99 over it, 1.99\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f6e02fa83206d0e14452f632beaf41f9413c39cd62f240f1157b8199d07f298"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: GoalsInteractor.deleteGoal: MethodTooLong \u2014 deleteGoal runs 198 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 98 over it, 1.98\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"92d019f34d3511f9971b0660bca59fad48eb8a70f442f0cc2aec0dc3f820defd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScheduleInteractor.addBaseSchedules: MethodTooLong \u2014 addBaseSchedules runs 196 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 96 over it, 1.96\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleInteractor.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b87fb7b6fc1f361f5c7bae364b1a4dc66cfd662b3579b6eb2d6fb02dffa2aa4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScheduleInteractor.fetchDetailsWeekSchedule: MethodTooLong \u2014 fetchDetailsWeekSchedule runs 195 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 95 over it, 1.95\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleInteractor.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df760801201bc79e8d696d4d37f99e02138aa3e5e0575bb7c0e0b38019de773"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScheduleInteractor.fetchDetailsScheduleByDate: MethodTooLong \u2014 fetchDetailsScheduleByDate runs 194 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 94 over it, 1.94\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleInteractor.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7c7d454d2736456691e5095f936a754f921a0e9542eba864f4bd47c80f09519"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImportComposeStore.handleEvent: MethodTooLong \u2014 handleEvent runs 192 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/store/ImportComposeStore.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ada5c40f8fd11cb2eef034ca05c48431f10d3c82490bbc94f94968e411dce8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: tools/AiToolCallProcessor.kt: FileTooLong \u2014 891 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: AiToolCallProcessor (74-1194). The bar is 500 significant lines; this is 391 over it, 1.78\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d82214723080bf3786ef3864dd40bd86a44b4c13a6f07451b6c978d9650f47"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeworksInteractor.addHomeworksGroup: MethodTooLong \u2014 addHomeworksGroup runs 172 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 72 over it, 1.72\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"42418f11507791f76cd4bbe48bef2fdeebb52b089608f8243db4a7fb13566595"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeworksInteractor.fetchHomeworksByTimeRange: MethodTooLong \u2014 fetchHomeworksByTimeRange runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f64ef7b8a1122823b47453fc0a756c1a70253ee3d5bd5e27e52ec72cbc97ac98"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalyticsInteractor.fetchChangedPeriod: MethodTooLong \u2014 fetchChangedPeriod runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/domain/interactors/AnalyticsInteractor.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d1c3d58501701c54bb6b7074cc031a8413c0999cc97305a93b17fc314b3ee7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeworksInteractor.fetchHomeworksProgress: MethodTooLong \u2014 fetchHomeworksProgress runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04a537f647be30c45a8b08212afdbf40f434378c80235d090c873feececc637"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeworksInteractor.updateHomework: MethodTooLong \u2014 updateHomework runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac329b4d0555cf0a11ca7b15ac4cd2e6397f2480f93f09b8b155810cf547e1c6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseClassInteractor.addClassBySchedule: MethodTooLong \u2014 addClassBySchedule runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ac2f1ef28394244b303db5b0324416342ff4f2f801494c1a15faae27d13341"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeworksInteractor.doHomework: MethodTooLong \u2014 doHomework runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a001e51db70c2458a719060aee708f01f02271c317fce74722f5598b09b0bee5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeworksInteractor.skipHomework: MethodTooLong \u2014 skipHomework runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7528af83b559925f82a5f45c49705ceff57c0f4fcaeb173188e4abb152387e9f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeworksInteractor.calculateHomeworkScope: MethodTooLong \u2014 calculateHomeworkScope runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"67877e44fa0be59dadfdf8c3efae5b30abb99fefb3df1d21a128ff1bf413a6bb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalyticsInteractor.fetchCustom: MethodTooLong \u2014 fetchCustom runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/domain/interactors/AnalyticsInteractor.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57f2c57bde7cc24a1908da5ead03fc4337ff7d5756952333e040b3287ddc661"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseClassInteractor.fetchClass: MethodTooLong \u2014 fetchClass runs 163 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 63 over it, 1.63\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff749ea4ed794a903afebe8bd07e9d257c68106565c306129c985149fc401b2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseClassInteractor.updateClassBySchedule: MethodTooLong \u2014 updateClassBySchedule runs 162 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 62 over it, 1.62\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b604a5191081308d403ed2232cfceabc94bc23189a94ce45848f7f36c859b52"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalyticsInteractor.fetchShifted: MethodTooLong \u2014 fetchShifted runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/domain/interactors/AnalyticsInteractor.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb4b4f829368333fce800a2de687a3f77533de64f55175e3477eb974e752418"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseClassInteractor.deleteClassBySchedule: MethodTooLong \u2014 deleteClassBySchedule runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac869592a9af80961d5d9a369ad767793dbeca053b9d8e78966dcf05763be72"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalyticsContentKt.AnalyticsContent: MethodTooLong \u2014 AnalyticsContent runs 157 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 57 over it, 1.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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/AnalyticsContent.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3eafd58171f1cb27e9ee81b6ccab6b9246e812bcf875d5cb44a59ddca370eac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalyticsInteractor.fetchSelection: MethodTooLong \u2014 fetchSelection runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/domain/interactors/AnalyticsInteractor.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"8891b15501e1f8e1312272606b8813e6549e76fb45d93d0cadd4d023ef63bca1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseClassInteractor.calculateFreeTimeRanges: MethodTooLong \u2014 calculateFreeTimeRanges runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.54\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0864fbd66b84d95bfdc90fdf157f6ee0543a26de0014c4a77a0171f686539645"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScheduleImportInteractor.prepareImage: MethodTooLong \u2014 prepareImage runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleImportInteractor.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"a523717288d425e03e0f975352943e16cb56ea40598cb91e993a1e88486f6c35"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScheduleImportInteractor.extractDraft: MethodTooLong \u2014 extractDraft runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleImportInteractor.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed0eecd20879cf735d680067be11c8f8d42dca3ab1ce15fc55ea7e796e659a9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalyticsRangeCalculator.createDefault: MethodTooLong \u2014 createDefault runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/domain/calculators/AnalyticsRangeCalculator.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3fd8503f88b57d2aca5c3903cd44ebc3239bb5763d5563f5c00badff639d166"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalyticsRangeCalculator.selectPeriod: MethodTooLong \u2014 selectPeriod runs 144 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 44 over it, 1.44\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/domain/calculators/AnalyticsRangeCalculator.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd6a441c35c03050db8944d29a0097bdac50f8923d48a32fb46278629b7e3d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImportContentKt.ImportContent: MethodTooLong \u2014 ImportContent 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/ImportContent.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8df679e823c0d9d60ea1d7c3bafc9d7f34b6e0b1b9c1f8cfbf22b6a9a798650"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScheduleImportInteractor.createImportReward: MethodTooLong \u2014 createImportReward runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleImportInteractor.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"4538f06d34642039d0f38ed18341ff98120fe271faf295e88d7c80d2b1001aeb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OverviewTopSheetKt.OverviewTopSheetAnalysis: MethodTooLong \u2014 OverviewTopSheetAnalysis runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.41\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a343f6a13df2c2519208752b94303bd4daf4d54e5b6440e86b4c11bc3e67fe3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Base: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e308e9a1df5bff385aaa85c5d9e2a79a45dc87bbcc9747fd5b2c13381ef08f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TodoViewItemKt.TodoViewFooter: MethodTooLong \u2014 TodoViewFooter runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/common/TodoViewItem.kt"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a0ae8268e337a98d9c015b761a02ab6531cf3bc709f5ae24a0c59767607f6a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalyticsRangeCalculator.changePeriod: MethodTooLong \u2014 changePeriod runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/domain/calculators/AnalyticsRangeCalculator.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"085f60190d944a0fb5aa577eadbbe872c876cf18b6e03f054133a976fa043cf7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ScheduleImportInteractor.applySession: MethodTooLong \u2014 applySession runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleImportInteractor.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24f18ff9a32be82ec1f75f459a8de8a429a0fc687ac3597fbb497ccf56d86bc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiAssistantInteractor.addChat: MethodTooLong \u2014 addChat runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f3dea104216eeea6e659b26d4e63a4157e9a51bd62455435b2bff9198c1fbc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiAssistantInteractor.fetchAiSettings: MethodTooLong \u2014 fetchAiSettings runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"5285922ecbc9a80234d1a2862a55c1321509ad627f21efcc769edf211607a293"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalyticsRangeCalculator.selectCustom: MethodTooLong \u2014 selectCustom runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/domain/calculators/AnalyticsRangeCalculator.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b9d98a9cbf16f62d34a3058412d161f5efda0e2e9bb51f859cee8f327abac93"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiAssistantInteractor.createQuotaReward: MethodTooLong \u2014 createQuotaReward runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11353e62cc357d3e41111e2a07f0e99b0563715364f8255d5437777d1d27654"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiAssistantInteractor.completeQuotaReward: MethodTooLong \u2014 completeQuotaReward runs 133 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 33 over it, 1.33\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b6e06f5b2286895fd773887b296d3673039ccdcce19f28854879cecf02eb6d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiAssistantInteractor.fetchChats: MethodTooLong \u2014 fetchChats runs 132 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 32 over it, 1.32\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d108b5fde274edb6dc9521c7c784fecdcc89d555cdc25783f5045ac9789ce7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiAssistantInteractor.fetchChatHistory: MethodTooLong \u2014 fetchChatHistory 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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb8fee0b96a17fbe87db0275b956a69675831ff94f39d9a2be6f6ec2c01e330"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiAssistantInteractor.clearHistory: MethodTooLong \u2014 clearHistory runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74ae9cb4291e614f31815f87c2ab68f8f4709cf1c6882de928e10de6765c770"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalyticsRangeCalculator.shift: MethodTooLong \u2014 shift 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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/domain/calculators/AnalyticsRangeCalculator.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa9732bacea042824f89c78cf9969d5b90eb3665da50f68dfba9d6a5c57e553"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiAssistantInteractor.sendMessage: MethodTooLong \u2014 sendMessage 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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9753fbeff9f55de527565ce7ef401e0e269e7f3f0ecfc2c0c494d54de526bd04"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ScheduleImportHandler: ClassTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 115 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89df886c22410b67925ed846fdaa36d0070c7bad6a20fa1bdefe38081b14627"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiAssistantInteractor.resolveToolCall: MethodTooLong \u2014 resolveToolCall runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"0670728155fd1b4591dab35b7397be3e01f7979606cb3de9515e2e23150aa906"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: views/TextFields.kt: FileTooLong \u2014 638 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 138 over it, 1.28\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b4a75b82bd365bcc24a416f1b95f84bd02140bba762ea5930f318972373a2d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomScheduleInteractor.addOrUpdateSchedule: MethodTooLong \u2014 addOrUpdateSchedule runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/CustomScheduleInteractor.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf08592c2a56fe2470905d16ae14c07f4000d736c78e34105e2204f8d4b360e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OverviewComposeStore.handleEvent: MethodTooLong \u2014 handleEvent runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/store/OverviewComposeStore.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3148ac3cfe2e6819e7258780db9d695967175e1c490b1e00066089e399e98219"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomScheduleInteractor.fetchScheduleById: MethodTooLong \u2014 fetchScheduleById 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/CustomScheduleInteractor.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"462d87fb25be29640ecb1ddc66072b8f16bc2364fd350e4b1fe7e123d16d42fb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DailyHomeworksDetailsViewKt.DailyHomeworksDetailsView: MethodTooLong \u2014 DailyHomeworksDetailsView 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1b480529062d26d1ef6f1fec8a1ccd912785962db15c147ddb9e062727735e0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiAssistantInteractor.retryAttempt: MethodTooLong \u2014 retryAttempt runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"924434917e0e911de2fceed728937957ee49d8412ca8961b887883f36ad5b7d3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomScheduleInteractor.deleteScheduleById: MethodTooLong \u2014 deleteScheduleById runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/CustomScheduleInteractor.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0518e3a3b7d0b893d2616395600f9b806c39168207298c1699c49242204c5cf6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImportSubjectEditorSheetKt.ImportSubjectEditorSheet: MethodTooLong \u2014 ImportSubjectEditorSheet runs 123 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 23 over it, 1.23\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86e77705a267e10a711ef04a48cd35e25afca3f443a729c4a8384fb6dac3a3d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AiAssistantInteractor.clearUnsendMessage: MethodTooLong \u2014 clearUnsendMessage runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/interactors/AiAssistantInteractor.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea9b1a56c50cae7155d2526024d14087beca3e61f30e14bec42ad47f7979370"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomScheduleInteractor.updateStartOfDay: MethodTooLong \u2014 updateStartOfDay runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/CustomScheduleInteractor.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d465929719271a5893f5caa9e160a081f3b59031812a65b5a0377775670530a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeworksComposeStore.handleEvent: MethodTooLong \u2014 handleEvent 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"783a665095f607ca3e04161d60b2cfe9839f90c3f6dbaea684e95a8257e79ea1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AnalyticsReportCalculator: ClassTooLong \u2014 482 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 82 over it, 1.21\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/domain/calculators/AnalyticsReportCalculator.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b45dceaa8d4bf0d8d159c5b5b9f4f49f030c3ba07635a5fa56a10e67f2d6c7a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomScheduleInteractor.updateClassesDuration: MethodTooLong \u2014 updateClassesDuration 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/CustomScheduleInteractor.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"25daa1c2a584268b52630d15f44634b54cb4c933933c2c2d563d2c6d92be3933"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TeacherInfoFieldKt.TeacherSelectorBottomSheet: MethodTooLong \u2014 TeacherSelectorBottomSheet runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41999ecf1714e3b413927e48845a6108aa24a430fbc1c78df8fee49321c2082"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseScheduleLocalDataSource.addOrUpdateSchedule: MethodTooLong \u2014 addOrUpdateSchedule runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a63a66b61d760442f6d3a6eae83f82f2c7ab96a99ed97908674c4ef009b9177"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseScheduleLocalDataSource.addOrUpdateSchedules: MethodTooLong \u2014 addOrUpdateSchedules runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfe4aef187be681de0c50c376a8e0d21a482742e9b9c84a11f49580fcb4cc81"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseScheduleLocalDataSource.fetchScheduleDetailsById: MethodTooLong \u2014 fetchScheduleDetailsById runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"499061b0edfb3f5fb26ed031c9d2e7418c0599141a0c0615a81d9a3f1a4488fd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Base: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e5c584a4ba1786d848933e20cb255b3ac5b1327f06a84b090bfd98e49b71186"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: views/ImportStatusLayouts.kt: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 66 over it, 1.13\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportStatusLayouts.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9b0326a20c971278cfe78c2ba313d2a40d566fae3e379db9e29f95a8baa39f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: overview/OverviewContent.kt: FileTooLong \u2014 566 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 66 over it, 1.13\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/OverviewContent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"345a014b4760f918a9ecdd239493878f9f18cf351b7718733206430619e67222"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseScheduleLocalDataSource.fetchScheduleDetailsByDate: MethodTooLong \u2014 fetchScheduleDetailsByDate 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":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0e8fe844c580cb7f05b07e4289249ab35d0356222888b94230759015390811d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CustomScheduleInteractor.updateBreaksDuration: MethodTooLong \u2014 updateBreaksDuration 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/CustomScheduleInteractor.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa596650fb45a72c6d9802c3eebe4b865bd231d99fa61755f87a5b429b8b2cd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OverviewContentKt.OverviewContent: MethodTooLong \u2014 OverviewContent runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/OverviewContent.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4b6214be388708836dde87a58bfd1df55f93559db78665e1c9ed9342480876"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DailyHomeworksViewKt.DailyHomeworksView: MethodTooLong \u2014 DailyHomeworksView runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea8d3101dcd4dc77586e1f166ef1e013775889314de46ce5787cd859e05a06a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ImportStatusLayoutsKt.ImportReviewSection: MethodTooLong \u2014 ImportReviewSection runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportStatusLayouts.kt"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4b751fe18c3c301659bba7fafccda4ed047d3e1538c5c5e688f4a504a002a3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MediatedHomeworksLinkerBottomSheetKt.SubjectAndClassSelectorView: MethodTooLong \u2014 SubjectAndClassSelectorView runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/views/MediatedHomeworksLinkerBottomSheet.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c3abff10cca78f541999b548c7065dc78059e1d89aace4647b8f00ba8e28d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SubjectSelectorBottomSheetKt.SubjectSelectorBottomSheet: MethodTooLong \u2014 SubjectSelectorBottomSheet runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c8262bd1e1ad016a3a305a9811a9b312cf3fc028d5412337be44af46a39b36"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DailyScheduleContentKt.DailyScheduleContent: MethodTooLong \u2014 DailyScheduleContent runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"6214c6d523c3fce7787020e514dbc38910984dd1116c6b6a32d424490e2c5f70"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AnalysisInteractor.fetchWeekAnalysis: MethodTooLong \u2014 fetchWeekAnalysis runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/AnalysisInteractor.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a6b9e301bce110d94f01a08e070597805a0156257db7ee7a9e565b0fc222237"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseScheduleLocalDataSource.fetchSchedulesByVersion: MethodTooLong \u2014 fetchSchedulesByVersion runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.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":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c3ecd05a573819eae346001aef264812ee9048a396d6b3977684f325d1f2fa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShareHomeworksInteractor.createShare: MethodTooLong \u2014 createShare runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/ShareHomeworksInteractor.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"37341f3a9d0e78f9af7e7ab2f817dc4d62069ea2c6019f86600d514f1170c8f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: common/ScheduleImportHandler.kt: FileTooLong \u2014 533 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: ScheduleImportHandler (40-689). The bar is 500 significant lines; this is 33 over it, 1.07\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e00a9dddcacbbe7d3c8afbf64835c81af2bdfee29c8dcd5b5c26b77ed611c38"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeworkComposeStore.handleEvent: MethodTooLong \u2014 handleEvent runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/store/HomeworkComposeStore.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddebcf9ad5ffd6030a7a5b7b31945fe375fb4589de07f5255d3bcffcd1fb2343"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AllHomeworksExecutionAnalysisViewKt.AllHomeworksExecutionAnalysisView: MethodTooLong \u2014 AllHomeworksExecutionAnalysisView runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/AllHomeworksExecutionAnalysisView.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc9e380cf199f7916c5be12812a224db9f470c198d7567f2502b07627372a87"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: calculators/AnalyticsReportCalculator.kt: FileTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: AnalyticsReportCalculator (60-672). The bar is 500 significant lines; this is 23 over it, 1.05\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/domain/calculators/AnalyticsReportCalculator.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c83624c89223903ccf775d141e8e49941f6c4d893a602112f246e267b42781f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: views/DailyGoalsView.kt: FileTooLong \u2014 521 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 21 over it, 1.04\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyGoalsView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5367050baac455210f3d42efc605e61aa303c4129e70e7cf5a2692707f90906c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseScheduleLocalDataSource.fetchClassById: MethodTooLong \u2014 fetchClassById runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2464028a60cd5a5bdf0d9adf43127d3f32daf2022dbfa8f03328a1eba368624e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: views/DailyHomeworksDetailsView.kt: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 15 over it, 1.03\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"437e64bb36b958b6bd04cc53c3ab44f0ca213266167cd6c9c33854e745a86c79"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DailyGoalsLocalDataSource.addOrUpdateGoal: MethodTooLong \u2014 addOrUpdateGoal runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/goals/DailyGoalsLocalDataSource.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"353c6613d26bff0a51bbdd302cf4e32c11e29a856256ad58c54ae8653271d58b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BaseScheduleLocalDataSource.deleteSchedulesByTimeRange: MethodTooLong \u2014 deleteSchedulesByTimeRange runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc9018c05dd18fb8d951c87d42d2bfb847d1ef7a5a0d7a7452f519d3fb97098"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShareHomeworksInteractor.fetchSharePreview: MethodTooLong \u2014 fetchSharePreview runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/ShareHomeworksInteractor.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b27b820e435f3a94ab744ce26422167fc3993cb2575ed157a46d4dd4153adc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HomeworksContentKt.HomeworksContent: MethodTooLong \u2014 HomeworksContent runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"8032ee315496592b5f0c7a4efb89dd88bfd64b3711e322373cc401fc35b0baae"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DailyGoalsLocalDataSource.addOrUpdateGoals: MethodTooLong \u2014 addOrUpdateGoals runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/goals/DailyGoalsLocalDataSource.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d20e143b122ccf67979e76f6a022c14425e38c20f29c35504e93f28d2d8c13"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ShareHomeworksInteractor.importShare: MethodTooLong \u2014 importShare runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/ShareHomeworksInteractor.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"735bc8fc70095be150511d76d961fc7ff17dbcb09dc3dce96aa79d56eaf254ee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DailyGoalsLocalDataSource.fetchGoalDetailsById: MethodTooLong \u2014 fetchGoalDetailsById runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/goals/DailyGoalsLocalDataSource.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83cb6f6f981dec2b514481cc414b5a8490e83ee4725a250f4a2bb9da7e77426"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 45 shared lines): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:79-188 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:201-310 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:320-402 \u2014 These 3 members are variants of one another: a block of 45 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c623e25db434ff60bfc2d29872d1400710087c77d8bd520e1b57ce6278a2ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (91 shared lines): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:123-394 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt:92-245 \u2014 These two members are variants of one another: 91 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1162deda11d698b608181bd94c09563cffbb2fedc53a1aebd4eb86f79c78267"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (85 shared lines): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:97-185 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt:160-247 \u2014 These two members are variants of one another: 85 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a34bef2aa5abffad6f8b3cb1cf1a794cc5d1602ad03541b282495ee99ba18aa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (75 shared lines): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:90-232 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt:131-281 \u2014 These two members are variants of one another: 75 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e45ebfbe7118fd18884e6a88f1beb6dd9abedb8fbf48d6cf9212f1b5ee3df7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (47 shared lines): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:284-386 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:395-491 \u2014 These two members are variants of one another: 47 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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ea8703680fa88449e5de15d3fdbb71cffc8e5c4dca93ebe5a6ac4a52bf7e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:390-457 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:339-403 \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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c95354e649a65e96985e9ed100aafb5eb2e79c5c1aa992d916ae08ff915af5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/TImeInfoField.kt:68-161 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/EmailInfoFields.kt:59-177 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationsInfoFields.kt:57-175 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/PhoneInfoFields.kt:55-173 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/SubjectAndEventTypeInfoField.kt:68-150 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/WebInfoFields.kt:59-177 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeNameInfoField.kt:70-188 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/WorkTimeInfoField.kt:64-135 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/LinkedClassInfoField.kt:104-155 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/views/OrganizationNameInfoField.kt:68-154 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/TImeInfoField.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3b3917cc0c37b3c92a1b76d9898c8a7cbaa67bebc12cd744714f012d06cdae"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:65-100 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:109-155 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:164-212 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopBar.kt:138-203 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt:85-151 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:75-110 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:119-164 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:173-220 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSwapDaysDialog.kt:71-112 \u2014 These 9 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 9 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 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ec1810133d8ae981c90555c6cf3c9f16e0ddf0027d22867b013e4407c2f97b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt:55-65 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt:70-80 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt:86-96 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt:102-112 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt:118-128 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt:134-144 \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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"776b1075c739683bc88eba49ee26882b5102a5eb0a1cc6802ae8bc2008b70a20"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:116-163 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:191-238 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:266-313 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:342-395 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:424-477 \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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8d8e4ae80a409d7ad5ea62f2a014b016d9dfa9bc5d4dfc485ffaacec8c2542"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BirthdayDatePicker.kt:52-93 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/LinkedClassInfoField.kt:355-397 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/views/TodoDeadlineInfoFields.kt:149-197 | shared/features/settings/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/settings/impl/presentation/ui/calendar/views/HolidaysView.kt:490-530 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyGoalsView.kt:664-699 \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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BirthdayDatePicker.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee76637f1684e56df3c4bf272d24c2c4bbc95a1da33e4a9a453f284ad27cb10c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt:58-144 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/SubjectsContent.kt:58-143 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:105-253 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/OverviewContent.kt:123-288 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/todos/TodoContent.kt:72-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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca9012130b5ac5e353f5c3a5794f52c58bc20b8048f289d0fe66d5f1e2d8062"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:55-72 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:81-92 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:116-137 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:148-159 \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":"shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d76a2f1341d19f3534432eec6d4b42dddcd5ddd77d0259e2d65f142a1a45252"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/goals/DailyGoalsLocalDataSource.kt:134-201 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:161-212 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/CustomScheduleLocalDataSource.kt:129-176 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/tasks/HomeworksLocalDataSource.kt:129-172 \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":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/goals/DailyGoalsLocalDataSource.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee43f61401ba5bca098038b4cf7d00ba1c783299a7acaa0c5712a72b4f166f4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/ClassTopBar.kt:48-77 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeTopBar.kt:48-77 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/views/OrganizationTopBar.kt:48-77 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/subject/views/SubjectTopBar.kt:48-77 \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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/ClassTopBar.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d8e447cafdae86cfb8058a7df9a8b53c3d8f1f4c5a4cbfe71a5f9fbaa8bdd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:176-298 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:310-427 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:91-169 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt:88-153 \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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b936935dba0feab2d505ed9e7f9bc118b8651eec0015f5995d31e0429b89d548"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/HomeworkBottomActions.kt:61-103 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/views/TodoBottomActions.kt:61-103 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportBottomActionBar.kt:60-127 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareBottomActionBar.kt:60-124 \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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/HomeworkBottomActions.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"563a23e92afa8ed052baed9b0a7721fa50022cb87b37d1ecc181fcf81ce01677"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:115-135 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleView.kt:91-131 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt:116-156 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SharedScheduleView.kt:81-121 \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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"211a497c6278d29216d2885b420bbad891388a56346262374827b3d6840fd621"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:525-579 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:633-687 \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 \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:525\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0ec85064dc549bb18d18102eb0866efce8707a928c1dbd16a4ce22d572b7c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:391-441 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:340-390 \u2014 before extracting anything, compare \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:391\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"955df1f16d9fe28e4e6794e89ba5fe63e984a9394a94e30bc470778ac84d5f2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:535-580 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:477-522 \u2014 before extracting anything, compare \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:535\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"7146f5632d9e6ff8d4113b1a831603714bfe2a5e477e552d296414615372e72b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:132-175 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:127-170 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"547ac5d8595d29f67af033437ea5759a93396c250647ac7ce9c0c2ab50aaab69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:177-220 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:226-269 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:177\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d0e90b75514c76f03fd2501a41be9b163181be475401c3e223b3484d85f61a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt:87-129 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/SubjectsSearchTopBar.kt:87-129 \u2014 before extracting anything, compare \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt\u0060 and \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/SubjectsSearchTopBar.kt\u0060 as WHOLE FILES: 96% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt:87\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba5549c1b28df98ab2db9d24f5fe61c828148a56c89110e1959409059275575"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:141-182 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseSelectorDialog.kt:164-205 \u2014 before extracting anything, compare \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt\u0060 and \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseSelectorDialog.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 88 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 \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:141\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b2c91e09dcff424ccb72447811fa035077c28551baabc92bd622b90b5102154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41\u201342 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:98-139 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt:161-201 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:98\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"015d7af09ded37d4e66421af1e410c92314839deba4810836f8ca16083cd0b5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/EmployeeContent.kt:228-265 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/EmployeeContent.kt:329-366 \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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/EmployeeContent.kt"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c9abeb9b449cc47b41ade0df1dfcd17731e40634b66b1fe861ea0eeb901c5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/layouts/ShareCompactLayout.kt:94-129 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/layouts/ShareExpandedLayout.kt:123-158 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/layouts/ShareCompactLayout.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/layouts/ShareExpandedLayout.kt\u0060 as WHOLE FILES: 89% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/layouts/ShareCompactLayout.kt:94\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/layouts/ShareCompactLayout.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71639823b0684decd55f7f813f8c1b142464ca0d37f37d5bde831701b32e337"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:361-394 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:443-476 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:361\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"185c98b7e9afc1552291af838f7a5a802822072d814ad4fee467536d14e8abd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201334 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:173-205 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/CommonShortClassView.kt:176-209 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/CommonShortClassView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:173\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"8860b68d3dbad00961c129b3476e94b700a6ff953b945d27be147a85b8c1d362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:191-224 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalHomeworkView.kt:160-193 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalHomeworkView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ec0d25f042788812a281a739efbf304474cb7f2ba037022817f4e3710f84d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/HomeworkBottomActions.kt:71-103 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/views/TodoBottomActions.kt:71-103 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/HomeworkBottomActions.kt\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/views/TodoBottomActions.kt\u0060 as WHOLE FILES: 97% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/HomeworkBottomActions.kt:71\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/HomeworkBottomActions.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc85e2abddccf27c1f07b0498f169994c98ed3f9f7968993e79ba1abd8bd38c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:150-181 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalHomeworkView.kt:119-150 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalHomeworkView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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. Note first that the copies are not typed on the same thing: \u0060Res\u0060 names \u0060ru.aleshin.studyassistant.schedule.impl.resources.Res\u0060 in one and \u0060ru.aleshin.studyassistant.tasks.impl.resources.Res\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a3ecb283c85ad9b540e3c1e980b6ff4b3ceaa4a861f8828b81e2b5fc072db7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:81-111 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseSelectorDialog.kt:101-131 \u2014 before extracting anything, compare \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt\u0060 and \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseSelectorDialog.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 88 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 \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:81\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6dbc5b03f06edd8ec46676ced134618500557018734c528fa1014e2e11c9df1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:358-387 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:410-439 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:358\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"7877caae95512962fd930698be92e875b4b76a2d1e99d49c3d816f3d8e049a00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/menu/AvatarView.kt:99-127 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/menu/AvatarView.kt:157-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/menu/AvatarView.kt:99\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/menu/AvatarView.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e7e89f93864911830ae9eefed5b48b94a445e5922ad7b10026d8872aba84697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/OrganizationContent.kt:243-271 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/OrganizationContent.kt:342-370 \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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/OrganizationContent.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"930381f7631542129c8f228194c345fef9dd0f5a941e397d836261456c565edb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 3): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:238-264 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/common/HomeworkTaskView.kt:183-210 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalHomeworkView.kt:207-234 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalHomeworkView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:238\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"667987df01c77288d52aa09d4aa91df0109c65493d00063c3495521c81dfe778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/ClassContent.kt:228-255 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/ClassContent.kt:316-343 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/ClassContent.kt"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f14646e1221be4c31a076a4cbb4eed986a18f73c3a22626ffaf0698bd22e0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt:251-277 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt:375-401 \u2014 before extracting anything, compare \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 129 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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ea11a6585d0360deaf19bf16f687da9ce03f935b1aa5aa7662b3d772cad125"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:186-212 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/CustomScheduleLocalDataSource.kt:150-176 \u2014 before extracting anything, compare \u0060shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt\u0060 and \u0060shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/CustomScheduleLocalDataSource.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 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 \u0060shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:186\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":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d44422b3421158a4822e5b319f8d0c2f08456282af7a6b51879d6e42843049b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/Dialog.kt:63-89 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/Dialog.kt:148-174 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/Dialog.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b49814dce1eb887db89c11ba85ae37a13821345c93e10024cca96b62567d41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201327 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:127-153 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:226-242 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:127\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b4131eee3ff0abf95e453c79dd07c3f0ba275c9a7e08ef23674d86d39af1d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:75-101 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/CommonShortClassView.kt:77-103 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/CommonShortClassView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:75\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ea698fb0889bc42f3e5fc6bc5f9687eb3382c9197259968e3123a2e6841af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:275-301 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:368-394 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:275\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb060cf269b9bae749cd59989ae68100e0998d761bfdc377e61a4bc124c7ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:160-185 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt:222-247 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:160\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"300e24a4ea72cedb3063fe81ee9cb46d5eebcf66dba819938e2c51991a602a19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/TimeDurationMenu.kt:102-127 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt:452-477 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/TimeDurationMenu.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/TimeDurationMenu.kt:102\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: \u0060Icon\u0060 names \u0060androidx.compose.material.Icon\u0060 in one and \u0060androidx.compose.material3.Icon\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/TimeDurationMenu.kt"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa97e94abaf56102f5b3f64dc8fe99b3734b6793b6179bac831e15a7fce5f43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt:204-229 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/store/OverviewComposeStore.kt:213-238 \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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b36f53431857138eb6f2b0beebb0b67c6e0e70411de5f6583748eca14e2412"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/HomeworkContent.kt:224-248 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/HomeworkContent.kt:303-327 \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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/HomeworkContent.kt"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d7455937a0ff7ecbb2bcc5bab57ac175a6da0ab6a192f7d4747addd1a787d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:210-233 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:345-368 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:210\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abf1e870c55bdd304ba76cbeff0e58cbb072a9bc87dc58ef7e64c3bec930860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:239-262 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:411-434 \u2014 before extracting anything, compare \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:239\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"db81bfe6ed1c1c90063d87bd0d226254a7276b33c21bed587659a978073fb385"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt:283-305 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt:407-429 \u2014 before extracting anything, compare \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 129 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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f08ecfcca295f016165c7df63be3b966a0e4a9498088804d5b166ec9285a6b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:210-232 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt:259-281 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:210\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9477e880bab7dd9cf627b4be6ae150e1042404f68138e8fa6e0f7a7209ec1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt:184-206 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/HomeworkTasksChart.kt:135-157 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt:184\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"8091cf4074916f58372cba4a43bcffc49243834acc974246130270c96cce0b20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:212-233 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:287-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 \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:212\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f95da866948521aa9f46d4d280c24c213bd72299cd2bb273c88005042244566"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:100-121 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt:94-114 \u2014 before extracting anything, compare \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt\u0060 and \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:100\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"68851e65f4daf26352b390fad6faec3860a747aa993a108ec548b262a86299aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:365-386 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:470-491 \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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:365\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"80fd2fd2a6771cff85ed119612b2f8b840f4035cd1aa3f300576853b0d35616e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/SubjectsLayout.kt:121-142 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/SubjectsLayout.kt:197-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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/SubjectsLayout.kt:121\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/SubjectsLayout.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"037c33dcfd14f98ed4e30c280550b688c5b22792339711a4889a99b85d272ad2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/ClassTopBar.kt:57-77 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeTopBar.kt:57-77 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/views/OrganizationTopBar.kt:57-77 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/subject/views/SubjectTopBar.kt:57-77 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/ClassTopBar.kt\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeTopBar.kt\u0060 as WHOLE FILES: 92% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/ClassTopBar.kt:57\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/ClassTopBar.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f670dc4012c05b09def312e416ab2f0f0e5aac15cf7ec24b60c794694171f557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/HomeworkBottomActions.kt:62-82 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/views/TodoBottomActions.kt:62-82 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportBottomActionBar.kt:61-81 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareBottomActionBar.kt:61-81 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/HomeworkBottomActions.kt\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/views/TodoBottomActions.kt\u0060 as WHOLE FILES: 97% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/HomeworkBottomActions.kt: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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/HomeworkBottomActions.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc529f1d310367cb5dbd472a236f4ea4f0ecfd5aed06becd4d772c1463134e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:168-188 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:290-310 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:382-402 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:168\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff61eb9cb0880bff52fb0b0dddc4911428fee2f5a4cbca0959e278d71bc3c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:261-281 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationsInfoFields.kt:138-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:261\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3e39dcf413a92cac5c6207c1867824e00312fb0a6bf98d3416264dc0ba3f16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:218-238 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt:126-146 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:218\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"536c4e5133c8e0ce1d9b7cdee06215d4f65d20118d96e7e85048f3ca58a5e008"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/EmployeeContent.kt:282-302 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/EmployeeContent.kt:383-403 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/EmployeeContent.kt:282\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/EmployeeContent.kt"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c86b92dbe1a7e22a7576b81a066d39bcc4d3fdfd772db7280d2bc3ffad7399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/OrganizationContent.kt:295-315 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/OrganizationContent.kt:387-407 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/OrganizationContent.kt:295\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 before the matched lines, \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/OrganizationContent.kt:385\u0060 calls \u0060HorizontalDivider\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/OrganizationContent.kt:294\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/OrganizationContent.kt"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"729be0b211cab123bcaf679ed640518940179d5d19a47a76f5a05b5ed2e781c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201321 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:208-226 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/CommonShortClassView.kt:120-140 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/CommonShortClassView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:208\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b623e25e3f38c90351e75818f0e7e8ccb0ab67b8520123d69fbfb69ffa5b83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/TimeDurationMenu.kt:175-195 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt:527-546 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/TimeDurationMenu.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/TimeDurationMenu.kt:175\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 first that the copies are not typed on the same thing: \u0060Icon\u0060 names \u0060androidx.compose.material.Icon\u0060 in one and \u0060androidx.compose.material3.Icon\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/TimeDurationMenu.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"967a064572d839db78b018e2b94d4d362d79ddee9a3a469c2bf04ff84da16b98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt:119-139 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SharedScheduleView.kt:84-104 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt:119\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b396dbdbc39598ede7d09d416e21a4e21fa229f5990475c1e5f69b4d5173f4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/ImportLayout.kt:56-76 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/ImportLayout.kt:78-98 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/ImportLayout.kt:56\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/ImportLayout.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"44360823844a2cdc1a77a94a2ef89906c6d994f11d7963953d6e79b220e4091a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:131-147 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:116-136 \u2014 before extracting anything, compare \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:131\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"67ada8b1317751f346b315879c8028cc975ee86b120f33ee75a0347cb0e60f1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:143-162 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:218-237 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:293-312 \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 \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt: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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aa13b2cef738f3ffcf66cc526d457b6fb4b79f7b806876d444a0d923ff92026"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:383-402 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetClassView.kt:176-195 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:390-409 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetClassView.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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. Note first that the copies are not typed on the same thing: \u0060Icon\u0060 names \u0060androidx.compose.material.Icon\u0060 in one and \u0060androidx.compose.material3.Icon\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"faec9f54cdd02bc8872b0f868fe576fa80779cd9179b5b2cbf499ebf0fc488df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:139-158 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt:97-116 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportTeacherEditorSheet.kt:75-94 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 92 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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:139\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"070bd494df64e93466e52b8bd25a6df3821cee5cb1e323b3e21ac540aeaf2943"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:136-155 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt:185-204 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:136\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b61e2b274266e5df4e82be9285b20d0fe21cf51950b712f343208ecc9aaca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:174-193 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/WeekScheduleContent.kt:143-162 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt: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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5541fe136e315cd3144e6d64b150aae9f37717d73b92e2b066c9bf702970df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/subject/SubjectContent.kt:225-244 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/subject/SubjectContent.kt:289-307 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/subject/SubjectContent.kt:225\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/subject/SubjectContent.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a4fdfe49efafcee82c39bba58e7a9b942d540072f48e6bb311dbac6aa8f693d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:636-655 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:547-566 \u2014 before extracting anything, compare \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f93e71e6fc40c66bd479ea57dbdad0b6f6bde21de31b01dc16e5bcf9a0410d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalBottomSheet.kt:275-294 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:290-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. 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalBottomSheet.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50c181c3fd3df410026b8bd1582c25bbef5cb9819a75645e741c9371857fe28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:286-305 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:458-477 \u2014 before extracting anything, compare \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"88898ff5a311dad21c3e524fc3c1f39266b52cc1c5e5d38d43a534758ac53b5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 4): shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/goals/DailyGoalsLocalDataSource.kt:154-170 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:172-190 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/CustomScheduleLocalDataSource.kt:140-154 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/tasks/HomeworksLocalDataSource.kt:138-154 \u2014 before extracting anything, compare \u0060shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt\u0060 and \u0060shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/CustomScheduleLocalDataSource.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 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 \u0060shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/goals/DailyGoalsLocalDataSource.kt:154\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":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/goals/DailyGoalsLocalDataSource.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"52da15a026899baf5d5ea2caa0c5dade800d3a7c5247c08f4a8ae7b71cff8b0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:117-135 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleView.kt:109-127 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/views/CommonScheduleView.kt:134-152 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SharedScheduleView.kt:99-117 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:117\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"681ad7b52cc7dfeb269ec833c12fb0d00771b2cfb16b278ba8531ab399d277c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/common/TodoViewItem.kt:398-416 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/views/EmployeeContactInfoView.kt:111-129 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/views/EmployeeSubjectView.kt:130-148 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/common/TodoViewItem.kt: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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/common/TodoViewItem.kt"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2ce2dce9defdc14216182f8795d107a423a1404e22b5b53bfece21aac16db64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): shared/core/data/src/iosMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/EndClassesReminderManagerImpl.ios.kt:53-71 | shared/core/data/src/iosMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/StartClassesReminderManagerImpl.ios.kt:69-87 \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 \u0060shared/core/data/src/iosMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/EndClassesReminderManagerImpl.ios.kt:53\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":"shared/core/data/src/iosMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/EndClassesReminderManagerImpl.ios.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7346646953c8bd2b927aaf42a3480001c577ad13c5233ab7d1c71ddeb0a314e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt:312-330 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsSubjectsSection.kt:313-330 \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 \u0060shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt:312\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c11469e207b35856452da8fc4d9a312e4d3dcc363647fa018be2908816b377c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/EmployeeContent.kt:366-384 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/OrganizationContent.kt:370-388 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/EmployeeContent.kt:366\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/EmployeeContent.kt"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c89b380a0a44b67558f5814030c227b0d9676397ab4c7c9817bc93b90f5362b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/ShortSubjectView.kt:134-151 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt:285-303 \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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/ShortSubjectView.kt:134\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/ShortSubjectView.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"2831db9a6ef4dec43024f820ed799ac6a8911d9287f949ce32c5447782233692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:296-314 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/layouts/DetailsExpandedWeekSection.kt:189-207 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/layouts/DetailsExpandedWeekSection.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:296\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a8426981d64bc0015679ab0f385f15d60b6452685fc876627adecab724ec9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 3): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt:103-119 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt:161-176 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt:196-213 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt:103\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseClassInteractor.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e00231462fb35653932ceba5958573f7d9a1e6a5f58e5bb2431a4a3f2c4de5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt:117-134 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/SubjectsContent.kt:116-133 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/todos/TodoContent.kt:109-126 \u2014 before extracting anything, compare \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt\u0060 and \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/SubjectsContent.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt:117\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"52841c41383a642659af80305e2b0db78ebca2e8d90b84f2711252cd75fc8ac9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:289-306 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:382-399 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/layouts/DetailsExpandedWeekSection.kt:182-199 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/layouts/DetailsExpandedWeekSection.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:289\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"982878eb68d818928753e85e0e647694bd1a3eac9d65bf3ba08d55079598141f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/deepseek/DeepSeekAiCompletionGateway.kt:213-230 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/infrastructure/openrouter/OpenRouterScheduleExtractionGateway.kt:313-329 \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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/deepseek/DeepSeekAiCompletionGateway.kt"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2322470efa63cce12643bf2e7d015962b06f42a5fc4dcc2af1daedf955ef26b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/StartClassesReminderWorker.kt:129-146 | shared/core/data/src/iosMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/StartClassesReminderManagerImpl.ios.kt:122-139 \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 \u0060shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/StartClassesReminderWorker.kt:129\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":"shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/StartClassesReminderWorker.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"198deb7d5aa54d6694048f76328b3b7b6f4e28b7175def4c5a9a7670f3d90048"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/theme/tokens/StudyAssistantColors.kt:106-123 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/theme/tokens/StudyAssistantColors.kt:142-159 \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 \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/theme/tokens/StudyAssistantColors.kt:106\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/theme/tokens/StudyAssistantColors.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4f4687c880435bb7cd4a361147630254a30d44f8dd73fe74232f04de45a154"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:125-142 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:200-216 \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 \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:125\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. 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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56ef72ffeb92210f3bc7ef862dc31f441f38bc794d338cf3648cbb2046ec17e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:141-158 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt:203-220 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:141\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0f626f35b0d3e778043cae7cdda34d9328da4af1b87ba08f5ca90d271cd6c43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:198-215 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt:106-123 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:198\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ad067fa523fe449073a60cbb157e0f772c29c9a57a90cfe8b391627d93a3b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:249-266 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:252-269 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:249\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, \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:249\u0060 calls \u0060Composable\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:246\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c43966c44504a9a773be940c4765db688e66f7fd14660bed7b40c3b72a1c18d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/WeekScheduleBottomSheet.kt:399-416 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/WeekScheduleBottomSheet.kt:432-449 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/WeekScheduleBottomSheet.kt:399\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/WeekScheduleBottomSheet.kt"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a966481d276d8fd56e009039ffa5335d66fe7ee220bb90d671bb2db518bc23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt:68-85 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/SubjectsSearchTopBar.kt:68-85 \u2014 before extracting anything, compare \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt\u0060 and \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/SubjectsSearchTopBar.kt\u0060 as WHOLE FILES: 96% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt:68\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/EmployeeSearchTopBar.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"547bbede1cfbc5a7458c9889f504efe29e6ca264d5c86ef562c0a1ba57a346e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:267-284 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/layouts/DetailsExpandedWeekSection.kt:159-175 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/layouts/DetailsExpandedWeekSection.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 55 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt:267\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c82a4cbc1c1671d9cd95d9514b68acef845f7a14b81d033437a4e8f6a92a49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt:174-191 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportTeacherEditorSheet.kt:120-137 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportTeacherEditorSheet.kt\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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt:174\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7b051f483fb0ae9f5a9c756ee2a0ab1dfdf1c228592158baaa926be01fb6bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:240-256 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:267-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:240\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9c074d453ccab117ecd330283fc6e460ab231d8a622ae70728388b760834b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BirthdayDatePicker.kt:68-84 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/LinkedClassInfoField.kt:372-388 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/views/TodoDeadlineInfoFields.kt:172-188 | shared/features/settings/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/settings/impl/presentation/ui/calendar/views/HolidaysView.kt:505-521 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyGoalsView.kt:680-696 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 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 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BirthdayDatePicker.kt:68\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BirthdayDatePicker.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7ec38f30d62b4471cd3b965b0c259fca5dd63a93d560655f7676e6ae5fbf24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt:114-130 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:188-203 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/OverviewContent.kt:159-175 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/todos/TodoContent.kt:106-122 \u2014 before extracting anything, compare \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/todos/TodoContent.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt:114\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"977efeacbfb894e87cac35f99861b465b54f32d9e3ded424ec49b700e4efdfdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareTopBar.kt:49-65 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/views/ShareTopBar.kt:49-65 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/todos/views/TodoTopBar.kt:49-65 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareTopBar.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/views/ShareTopBar.kt\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareTopBar.kt:49\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareTopBar.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf1838d25caac8420b60f0d23fe29c60231b229d58c3375fd10fad19c2a55b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/services/ScheduleExtractionService.kt:70-86 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/services/AiCompletionService.kt:77-93 \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 \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/services/ScheduleExtractionService.kt:70\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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/services/ScheduleExtractionService.kt"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f781518c637bbf9ac23303041658c9569342be3ece0af1a8d825256fe22c41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/services/ScheduleExtractionService.kt:94-110 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/services/AiCompletionService.kt:105-121 \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 \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/services/ScheduleExtractionService.kt:94\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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/services/ScheduleExtractionService.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d65ef2cc7b9ad9618e607da17431f6b221b86f7fe9da57bd489173cda7bda17a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt:185-201 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt:154-168 \u2014 before extracting anything, compare \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 129 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 \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt:185\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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"a14e6efa75bd2917f2f8077302bd229f920a5ebd3fae8c4d9c87f6ffdf11e5b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt:308-324 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt:432-448 \u2014 before extracting anything, compare \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 129 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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"008ded3dde4bb5e9eb6687086e6f98ad2526d45b426be483f780e344b37dccb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt:107-123 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsOrganizationsSection.kt:97-113 \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 \u0060shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt:107\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"b63b47015cc86af32c245e3b2ac52ff48a2b472ec80c9e99226e220d5b482f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt:180-196 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsTargetSection.kt:160-176 \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 \u0060shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt:180\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"60bf01f419ec72c131dd7d940896ae731fa72eb1079978abc509d6da7cbec913"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:289-305 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt:298-314 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:289\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"133bda436f4391a131267f4ea442e992f77783f0e442d20a507d246405b23415"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt:144-160 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/CommonShortClassView.kt:149-165 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/CommonShortClassView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 99 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/CommonShortClassView.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"54c6b1aec849a132e3bbaca4b11381e733ee03d9f0fc2e39943cda7c97aa40d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/subject/SubjectContent.kt:200-216 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/subject/SubjectContent.kt:272-287 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/subject/SubjectContent.kt:200\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/subject/SubjectContent.kt:271\u0060 calls \u0060Column\u0060, \u0060spacedBy\u0060, \u0060EventTypeInfoField\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/subject/SubjectContent.kt:200\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/subject/SubjectContent.kt"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d012360d8444bf61a06fe69bdff829b57b356405f20b026ebb9ced87f2cfd07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:261-272 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/views/EmployeeProfileTopSheet.kt:152-168 \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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:261\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6be5b1da254d9e7db466d9aa855e5df90f2d5ee14034902e89fd406be2e2dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 5): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:148-163 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:223-238 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:298-313 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:380-395 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:462-477 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:148\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35ae059d062ca4b321caea96782018a37c304b53ad50c0d91a3ba56baf3d56e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 5): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt:117-132 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/SubjectsContent.kt:116-131 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:190-205 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/OverviewContent.kt:162-176 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/todos/TodoContent.kt:109-124 \u2014 before extracting anything, compare \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt\u0060 and \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/SubjectsContent.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt:117\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"77101e80aff80214f0ab368bebdc6189f37ffb7d39438080955a54448ac2ce69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:194-209 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/common/HomeworkTaskView.kt:159-174 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalHomeworkView.kt:163-178 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalHomeworkView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:194\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c26802fcb8d0c4f60dfef2b7671b20b158223cd4428d6aa577858a3ccce20bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/uikit/navigation/BottomNavBar.kt:98-112 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/uikit/navigation/SideNavRail.kt:117-132 \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 \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/uikit/navigation/BottomNavBar.kt:98\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/uikit/navigation/SideNavRail.kt:133\u0060 calls \u0060fillMaxWidth\u0060 and \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/uikit/navigation/BottomNavBar.kt:113\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/uikit/navigation/BottomNavBar.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"88a89d0366f21785838028d92a19e51604b1a1bd9625501460ba02e41e64b780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/AnalyticsMetricView.kt:81-96 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsWorkloadSection.kt:195-210 \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 \u0060shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/AnalyticsMetricView.kt:81\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/AnalyticsMetricView.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"439e03e2b3d16240f3c761a47dd413f85396711b7229c24d0a0c1dc43ede512e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/AnalyticsTopAppBar.kt:57-72 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/AnalyticsTopAppBar.kt:87-102 \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 \u0060shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/AnalyticsTopAppBar.kt:57\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/AnalyticsTopAppBar.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3ba44cfa258d9af063d6d0e9e6453947ef7a598c6d45b01f6f564839eaf52c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/layouts/AnalyticsExpandedLayout.kt:58-73 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/layouts/AnalyticsExpandedLayout.kt:95-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/layouts/AnalyticsExpandedLayout.kt:58\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/layouts/AnalyticsExpandedLayout.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"981cf1ba367d6134d591092a7adf2852d977a3f4169344a74d87c017013f36c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:167-182 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt:216-231 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:167\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"29b698ed4cfcad3b307f609e8edf5b9752bf5c3882e03a409ae27c5e58893cb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:191-206 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt:240-255 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/TeacherInfoField.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 75 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:191\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30c39f5437e5db06518e1bf5fd04f0323ad1043d384873e634e0275e19e043e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:189-204 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:324-339 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:189\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8cbe55538c89fe6c91bbcd29cb1fc811209b3addb6377ebb9ce8e5ece5e9a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/OrganizationInfoField.kt:115-130 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/common/OrganizationsPicker.kt:125-140 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/OrganizationInfoField.kt:115\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/OrganizationInfoField.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"66134e89c284d064e9a971628b25812c252fa3d9fb8917ccd136b4e028398051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:307-322 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:312-327 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"160b4def5f734b4b09423b73dc16adf56e230cc7aa149ec9eefb690627b292f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/TodoContent.kt:197-211 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/TodoContent.kt:238-253 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/TodoContent.kt:238\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/TodoContent.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4bbd673ba6c6c73da6bcd7a9906ab4ae432100fae0ab2588c1135e1fda4c05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeLayout.kt:137-152 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeLayout.kt:241-256 \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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeLayout.kt:137\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, \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeLayout.kt:258\u0060 calls \u0060Spacer\u0060, \u0060weight\u0060 and \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeLayout.kt:153\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeLayout.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3cf31d155b26447bfd47569df158006f140d242dfe742740eb77fc8f7a76b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/ShareContent.kt:138-153 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/ShareContent.kt:99-113 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/ShareContent.kt:138\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 first that the copies are not typed on the same thing: \u0060Res\u0060 names \u0060ru.aleshin.studyassistant.schedule.impl.resources.Res\u0060 in one and \u0060ru.aleshin.studyassistant.tasks.impl.resources.Res\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/ShareContent.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec043b0ba5616c74f36d766314f7e91a830c9e30573870e71eb587df8f690112"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedSubjectsView.kt:188-203 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/views/LinkDataSelectorDialogs.kt:80-95 \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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedSubjectsView.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c579d70b3d9bc0e278f91c83e2d644aea4f4fdf99c2702daca5e89e4b76a4f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:342-357 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/HomeworksOverview.kt:242-257 \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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e51efdb4b768682e62f23f5843337eb21b94846de1cbdcefe02277cf8b6f313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/store/ShareWorkProcessor.kt:67-81 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/store/ShareWorkProcessor.kt:130-145 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/store/ShareWorkProcessor.kt:67\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/store/ShareWorkProcessor.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0b8fc59c0c3f8f2fa265d255dc9f636b3dc817fa2d673d8caede8314ad6402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:359-373 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetClassView.kt:117-131 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:366-380 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetClassView.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:359\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"357af8be4f5775b01d5d369f12b20c69edf9ffca346baa48c88156d521c31e43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:263-277 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt:175-189 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportTeacherEditorSheet.kt:121-135 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 92 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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:263\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42017361b5bfdb287e446c838221d2b164dc294db41648053aeef9e4ccb4d37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:112-126 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseSelectorDialog.kt:135-149 \u2014 before extracting anything, compare \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt\u0060 and \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseSelectorDialog.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 88 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 \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:112\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 before the matched lines, \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseSelectorDialog.kt:133\u0060 calls \u0060item\u0060 and \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt:111\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/BaseCheckedDialog.kt"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fdd9b9e278f14a81b61c30f1ee013506c698d12f001af3df91ae53371d7841"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsOrganizationsSection.kt:263-277 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsRegularitySection.kt:273-287 \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 \u0060shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsOrganizationsSection.kt:263\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsOrganizationsSection.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5de7174666a2cdd78664cb69c3be791f62717f1f699b6d3385f9486d9ae2f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:106-120 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/WeekScheduleContent.kt:91-104 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt: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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d448ea478447fe89adccf961af7bcf4eeaaad9ba2b7fb353868b6c0ef78e133"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:185-199 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleView.kt:219-233 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:185\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf06104f86aae8a2fac6aecd475c0bf78d2824106d11ecc393379f8b1022cc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:344-358 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:350-364 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:344\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"e994e988e1c97767aa59c8b60f9a61db258cd05c4858ca905ff27da993cecf29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:113-127 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:168-182 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:113\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b9d948018969c3bdc240a2cb56a90ddafb380c333788d7b990c912f8fe919d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt:167-181 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:236-250 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt:167\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e31a05e378165d801c43176ce686cceb2df16efd7631059303b439ad585c79c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt:233-247 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt:279-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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt:233\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"69acb77a51decf7449398978721059584fb12b965112ac7b42616ee1912eac6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/TimeDurationMenu.kt:66-80 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt:415-429 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/TimeDurationMenu.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 62 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/TimeDurationMenu.kt:66\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/TimeDurationMenu.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"45794b7f3df9bf144f2ba7b5f3b93f68d217df5c55ea894aa3c75e4a844e33f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedEmployeesView.kt:124-138 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedSubjectsView.kt:131-145 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedEmployeesView.kt:124\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedEmployeesView.kt"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a67136b78e4b41327571ccbc3d41e48ce5d10e3a0dcab3ed6c7c1a215e5bf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:211-225 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/OverviewContent.kt:251-265 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada2590693eeea83b154ba51807aa99109be861b3496f1b65e360a8933fc9b0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:582-595 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:523-537 \u2014 before extracting anything, compare \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:523\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"053d8ac1aef9f88a1c2e13f8afd4e28e5d44f04cf62ca998975e71c27dbd32c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:116-130 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:238-252 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:116\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8a7a9d0d5fa907fa9242bb620851c64ca5e64759a4c9f8c95210a1c9163575"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:308-321 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetClassView.kt:103-116 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:313-326 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetClassView.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4be7ad572b72e3ffdea59175e21f6dbfbc7a143d8bbfece67e827d3fd882a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:101-113 | shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/StartClassesReminderWorker.kt:153-166 \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 \u0060shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:101\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":"shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bbb2db6f4f0a6019a019eeef05f1a375116dd4a2770f058d7e7c9855a397b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:385-398 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt:122-135 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:385\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77b76e1084ac3e18f02c67b8845766cd76d59dff4575980bd58efb7c77df3d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:192-205 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:198-211 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:192\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"772ad1de6644d674025dcade819eac2ef746ab01e410700b5d404e44b065f3a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/WeekScheduleContent.kt:125-138 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/WeekScheduleContent.kt:182-193 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/WeekScheduleContent.kt:125\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/WeekScheduleContent.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99936ebb2ee59c8a87d0e43c1c7dd4c35e9462846f14091957af489cdb15e6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeLayout.kt:177-190 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/SubjectsLayout.kt:153-166 \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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeLayout.kt:177\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeLayout.kt"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e6bf43d3a89b15151a27db3fb423ab7efa735a0c59e2d159b682dab49bfd21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:302-315 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:413-426 \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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:302\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"5128609c252f4381f5983ef015f98c8c3f8fb022439d8c0db278a7fbe37f3cfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:189-202 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt:132-145 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 92 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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:189\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e8ceed8d155d77f3b1dbf3e737ffe3620f83bc8c10f8f779ff30673f2f9dc34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareStatusLayouts.kt:123-136 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/ShareLayout.kt:150-163 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareStatusLayouts.kt:123\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. Note first that the copies are not typed on the same thing: \u0060Res\u0060 names \u0060ru.aleshin.studyassistant.schedule.impl.resources.Res\u0060 in one and \u0060ru.aleshin.studyassistant.tasks.impl.resources.Res\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareStatusLayouts.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"88da565ea53286282c730af595ab8ec7602eda80951f7afab91af87b46e45911"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareStatusLayouts.kt:321-334 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/ShareLayout.kt:295-308 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareStatusLayouts.kt:321\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/ShareStatusLayouts.kt"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f23ce1fbd84345e1d881ab4a1245724c8a800686b698e6845d44934a354d141"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:248-261 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:364-377 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:248\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:245\u0060 calls \u0060mutableStateOf\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:363\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4bf821722f65e64950b9e2c95e0c5ca17ecd04902d41ea627ade60d9532887"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:236-248 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:263-275 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:328-339 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:350-361 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:236\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c559eddaf191dc55a3c11719168d1ccf48cc1d936bc93efe028586f3e21b36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/AiQuotaRepositoryImpl.kt:470-482 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt:215-227 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt:343-354 \u2014 before extracting anything, compare \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 129 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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/AiQuotaRepositoryImpl.kt"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b18e6b3022e9551b50eefa4da9fa329488b93bfc9836b9a91d2a4ea53207737"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:110-122 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:232-244 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:351-363 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:110\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, \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:123\u0060 calls \u0060mutableStateOf\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:364\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"71219f6cc05a969ba412f48a4c0f364a057a174316260d464cca6163093ffe3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeDetailsUiMapper.kt:74-86 | shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeUiMapper.kt:51-63 \u2014 before extracting anything, compare \u0060shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeDetailsUiMapper.kt\u0060 and \u0060shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeUiMapper.kt\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeDetailsUiMapper.kt:74\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeDetailsUiMapper.kt:73\u0060 calls \u0060mapToDomain\u0060 and \u0060shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeUiMapper.kt:50\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":"shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeDetailsUiMapper.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"694d647a43993f2fe03b5bbaf2a0b5d1046bac153d044645a4e46a87e4540523"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:343-355 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:425-437 \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 \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt: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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e78f7b47c8692ca2adffe2e687fe903f54194fe5f6c547f4043f238fc10459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:379-391 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:537-549 \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 \u0060shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:379\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"892e5216506f18322ee375a6b6bf9c0cad05358678c8f9b726c1ffb45059404d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantWorkProcessor.kt:168-180 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantWorkProcessor.kt:184-196 \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 \u0060shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantWorkProcessor.kt:168\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantWorkProcessor.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9ecc148be51740428ce0a125a90ef251e23bcf4ee4e037e3107d2cc1fc014a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/views/AssistantChatBody.kt:342-354 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/views/AssistantChatBody.kt:539-551 \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 \u0060shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/views/AssistantChatBody.kt:342\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/views/AssistantChatBody.kt"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"2883732ed1548657b925d2f7234aed394149668690be0783fac70d66051c907b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:147-159 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt:131-143 \u2014 before extracting anything, compare \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt\u0060 and \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:147\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a03fe334cd0ef797fac5c2f8e814f72ac0112c22e2d493c20821b54cf34b837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:187-200 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt:168-180 \u2014 before extracting anything, compare \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt\u0060 and \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:187\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd13fc0fd32cdc6416b0aca494b456374264b09a7babeafa7efd05ce4d71c98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:243-255 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/views/ShortEmployeeView.kt:86-98 \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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:243\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"668d4e95439b6d2f814675c1aaf075ba17ef66e07325a675df4561a4ee6e5732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:317-328 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt:209-221 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 92 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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:317\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b94543e3b04a01c8a98bf375a1716287613f52579d3d7c28511055623d4458"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareWorkProcessor.kt:93-105 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareWorkProcessor.kt:122-134 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareWorkProcessor.kt:93\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareWorkProcessor.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20ac42f46e1c650faa88b318093a2161a8374999a7fb18a9ed39bceee6340f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:521-533 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:464-476 \u2014 before extracting anything, compare \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:521\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9fc4c783f86bad4bc2850fa18502daa5657829b16e070c64f5005dbfad4c0c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): androidApp/src/github/java/ru/aleshin/studyassistant/data/AnalyticsServiceImpl.kt:38-49 | androidApp/src/huawei/java/ru/aleshin/studyassistant/data/AnalyticsServiceImpl.kt:38-49 | androidApp/src/rustore/java/ru/aleshin/studyassistant/data/AnalyticsServiceImpl.kt:38-49 \u2014 before extracting anything, compare \u0060androidApp/src/github/java/ru/aleshin/studyassistant/data/AnalyticsServiceImpl.kt\u0060 and \u0060androidApp/src/huawei/java/ru/aleshin/studyassistant/data/AnalyticsServiceImpl.kt\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"androidApp/src/github/java/ru/aleshin/studyassistant/data/AnalyticsServiceImpl.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0301130bae82a3f0ca1d4594ca051b6cb462396980cf0944897d131db579f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareWorkProcessor.kt:180-190 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareWorkProcessor.kt:205-216 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareWorkProcessor.kt:226-237 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareWorkProcessor.kt:180\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareWorkProcessor.kt"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"9411cdb9634e67d3494ab7f5d67b93143cb8f73dfca25eac7c0f1cec81fa80a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:94-105 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:161-172 \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 \u0060element\u0060 to \u0060JsonElement): Any = when (element\u0060 in one and \u0060JsonElement): Any? = when (element\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":"shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0b279dda36ea96ad0e317d3094f11ea4eefd269cf9692789a062e59b02dda8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/files/InputFile.kt:29-40 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/models/InputFileUi.kt:33-44 \u2014 before extracting anything, compare \u0060shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/files/InputFile.kt\u0060 and \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/models/InputFileUi.kt\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/files/InputFile.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cd756e798e1b6f4507ff5a474f7d967cbd31e78d3aa3cffd6b22297cdaf090"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt:204-215 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsOrganizationsSection.kt:166-177 \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 \u0060shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt:204\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfce04e6bfaa8f85e69a992b9335521c3fae2234e9416f25aba2ce836f7e104"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:130-141 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:185-195 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:130\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5f61357f7a5d8db159e39b26d2113cf52912a30075767482e05e971d09515fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/common/EmployeeSubjectView.kt:48-59 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/common/EmployeeSubjectView.kt:80-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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/common/EmployeeSubjectView.kt:48\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/common/EmployeeSubjectView.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"517dcc12f1313110ef596289aeefeffc7746cb9dc34461d55546040a367c9697"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt:60-71 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/SubjectsContent.kt:60-71 \u2014 before extracting anything, compare \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt\u0060 and \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/SubjectsContent.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt: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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/EmployeeContent.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"00fd4079f2d9ef1b4707ad215ede8839838ad616bd61ee351684991dadb966b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:327-338 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:353-363 \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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:327\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfad64049432b9323f7fbcaa81c36eb9cefea90f794a28d3a9c2c18faf2f319a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:123-134 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:177-188 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:123\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3fb5150836ddc93b6a51635b6cb1b6def2f1668b3a1bf2e680f28f84330ae49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:137-148 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:191-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:137\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb99d2b8cb3890b50a01eca6885ab3831e21f04a4b0baa7650b0b88d327b3acc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:187-198 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:223-234 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:187\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e93da8fcfd413ff797cc562e5818b737ad44af0973be2b65a90ee27c1c3ecf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/root/ScheduleContentProvider.kt:43-54 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/root/TasksContentProvider.kt:43-54 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/root/ScheduleContentProvider.kt:43\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: \u0060Child\u0060 names \u0060ru.aleshin.studyassistant.schedule.impl.presentation.ui.root.ScheduleFeatureComponent.Child\u0060 in one and \u0060ru.aleshin.studyassistant.tasks.impl.presentation.ui.root.TasksFeatureComponent.Child\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/root/ScheduleContentProvider.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"82605f149931e334bb7b88b8af3e308e00a926587ae72328036e2dfe76e6a0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/store/ShareWorkProcessor.kt:83-94 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/store/ShareWorkProcessor.kt:147-158 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/store/ShareWorkProcessor.kt:83\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/store/ShareWorkProcessor.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d1ee34a022f9717f472bf5b5b7de5cda8e3b169631e9de85027fbc17f3679cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:161-171 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:156-166 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:176-186 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt:196-206 \u2014 before extracting anything, compare \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 177 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt:161\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ee28a08f6d73646d5ebfd0e78dca1b72fdda86a9f3929f37b2a18589e56b7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:108-118 | shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/StartClassesReminderWorker.kt:161-171 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/ScheduleInteractor.kt:57-67 \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 \u0060shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt:108\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":"shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/EndClassesReminderWorker.kt"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f5df1e300bca03603c256c8a994e15b22edbefa695e67faf532f997ec23730"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:127-137 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:202-212 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:351-361 \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 \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt:127\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/TextFields.kt"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e96934ab85a12efd12dfd027d413486443f5e99e98c31afa6385844dbfc5f51e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt:126-136 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedSubjectsView.kt:191-201 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/share/views/LinkDataSelectorDialogs.kt:83-93 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/SubjectSelectorBottomSheet.kt"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13e148bde6a2e6da92d0efa44bbfefe11fb1f3790c4ca2c1bec5a4bf88d5f3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:80-90 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:202-212 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:321-331 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt:80\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/OverviewTodosSections.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96bead57aee39d7be5c4ad82ecc659bc6fd51a23d91dd5264b2d2c2db399c61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt:101-111 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt:96-106 \u2014 before extracting anything, compare \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 129 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 \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt:101\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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55e4a3c7cf993eaf3f74682bc04d7427fac23b7a117199710dcd698f372bfd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/handlers/AiCompletionHandler.kt:56-66 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/ScheduleImportRepositoryImpl.kt:56-66 \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 \u0060shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/handlers/AiCompletionHandler.kt:56\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":"shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/handlers/AiCompletionHandler.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"acbb67cecdc4702d4589a8b521232079b46cb7fd2114c7faff751d9ed865b6a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/WarningAlertDialog.kt:57-66 | shared/features/settings/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/settings/impl/presentation/ui/general/views/DeleteScheduleDialog.kt:85-95 \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 \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/WarningAlertDialog.kt:57\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/views/dialog/WarningAlertDialog.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eafcf3c89a4833a7f120202dd7e39805d14c2b8878f9355a2a7300ea94277f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/AnalyticsMetricView.kt:51-61 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsInsightsSection.kt:81-91 \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 \u0060shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/AnalyticsMetricView.kt:51\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/AnalyticsMetricView.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"724764ba95a0bab80b61443679304ccc9938bd4412f9f958400da535a32feee3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:338-348 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt:347-357 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportNumberedDurations.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 153 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt:338\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/NumberedDurationView.kt"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"f904f86299a2a8244b26524eb3464827e980ee93f6626d083d4b5f0f2c64a252"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/SubjectAndEventTypeInfoField.kt:90-100 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/SubjectAndEventTypeInfoField.kt:172-182 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/SubjectAndEventTypeInfoField.kt:90\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, \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/SubjectAndEventTypeInfoField.kt:171\u0060 calls \u0060painterResource\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/SubjectAndEventTypeInfoField.kt:89\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/SubjectAndEventTypeInfoField.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"767921bc1a6c404db6b37b868e3a6b1ea82ec7060fc934b7300f58d62c850669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:66-76 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:76-86 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:66\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"b054cb591dae40c2bf37678d0d4fda5afe16c946f3b86d40b30b672694446f11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeNameInfoField.kt:78-88 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/views/OrganizationNameInfoField.kt:75-85 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeNameInfoField.kt:78\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, \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeNameInfoField.kt:91\u0060 calls \u0060MutableInteractionSource\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/views/OrganizationNameInfoField.kt:89\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeNameInfoField.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e494e4e9f2ba034918d36c0de227680ec0f5835dd6663edf330b25cf77fd948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/CityInfoField.kt:75-85 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/UsernameInfoField.kt:74-84 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/CityInfoField.kt:75\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/CityInfoField.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a2af180d37c7f678fd7453c1ff12b9c32a2f33cc4a2ff6373e5cdf96613db62"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:237-247 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsExpandedLayout.kt:244-251 \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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:237\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"842811b3ae29914a42fa8390818f590fdcee4b79bffcc91a4ad7670b977132ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:285-295 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:396-406 \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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:285\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d285f4f6f3e2f05e10440bb621307e3e049587dfebb01934cba7bebbd7d4f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/ClassDetailsUiMapper.kt:29-39 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/ClassUiMapper.kt:32-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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/ClassDetailsUiMapper.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7f13226747df20357aff2151182fc0602822a191f79818097cc555cdce151e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:204-214 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt:147-157 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 92 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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:204\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b58fc0c6b23fad604f4f2db49cf741bbfad30f868436f40d7bd23932a24487c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:232-242 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt:157-167 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 92 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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:232\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"911f468c8be6e769cfa25cb6052c46fb2fc2acc58c6e66a136510e1dfda72c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt:286-296 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt:278-289 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt:286\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/GoalsInteractor.kt"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"152e90aeb5aeec8a0db3c50bf2bebe5c1038611b2c4b2bc44ff060cce2769873"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/EmailInfoFields.kt:60-69 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationsInfoFields.kt:58-67 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/PhoneInfoFields.kt:56-65 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/WebInfoFields.kt: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 all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/EmailInfoFields.kt: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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/EmailInfoFields.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb17c9cb5081ec082b838170f762b9708dd2094ac286692473fa6ced19092300"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:224-233 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:359-368 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt:150-159 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt:134-143 \u2014 before extracting anything, compare \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/views/DetailsEmployeeView.kt\u0060 and \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt:224\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationInfoField.kt"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"026330a93b7002d27e699d57c709c05e14333a717bd806dc879ecc254158e22a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopSheet.kt:54-63 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopSheet.kt:97-106 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt:107-116 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopSheet.kt: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopSheet.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd466c12f8b6580b1e5d97980ac481e73954cae49ba2ffce98220dcf8228c7f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt:62-69 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt:104-113 \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 \u0060shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt: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. 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":"shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"0804300f729db9042cea854aced7f4932310298ced3925fac0a21a40426453b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeDetailsUiMapper.kt:37-46 | shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeUiMapper.kt:33-42 \u2014 before extracting anything, compare \u0060shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeDetailsUiMapper.kt\u0060 and \u0060shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeUiMapper.kt\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeDetailsUiMapper.kt:37\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeDetailsUiMapper.kt:36\u0060 calls \u0060mapToUi\u0060 and \u0060shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeUiMapper.kt:32\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":"shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeDetailsUiMapper.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"2100ca0de9a4527f6720cfef673c60ab9d8ac120ca76d50f4285519c3c38a4af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt:204-213 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsSubjectsSection.kt:227-236 \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 \u0060shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt:204\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/views/sections/AnalyticsEmployeesSection.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"562995bf59f74247a63e80d889fe1d3208ebd48f625a4075ff7e4cf3f23d1de0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/views/AssistantChatBody.kt:634-643 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/views/AssistantChatBody.kt:644-653 \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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/views/AssistantChatBody.kt"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c93c71c8d530d3730c8549a503e088f6ae3d3167e0c2a570c4c58612f9bd448"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseScheduleInteractor.kt:83-92 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/CustomScheduleInteractor.kt:221-230 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseScheduleInteractor.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2603e3657bfd314c8c21470374387e93d6723ffb907d002ebb790421eb003a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/models/classes/FastEditDurationMath.kt:48-57 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/models/importing/ImportFastEditDurationMath.kt:51-60 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/models/classes/FastEditDurationMath.kt:48\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/models/classes/FastEditDurationMath.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"95368dd2b2a8689cc3412255b3fbb568ae2ab86693a0f24f9d5f97f3fe3d487d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/ClassContent.kt:266-275 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/ClassContent.kt:344-353 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/ClassContent.kt:266\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/ClassContent.kt"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d21e31d6edceb805b035c53e35d0316b2d5bb41f2360744fdbc83387ccc969c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:288-297 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:292-301 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:288\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a2331735860ef4189ca3af4342d9997248faa45da9ba96c65c5745ac40e5a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt:179-188 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/views/EmployeeSubjectView.kt: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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt: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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/views/DetailsSubjectView.kt"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"822c469457567945042bb350e024ccee649750be1b0545314e754643d601f1b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/store/ImportComposeStore.kt:206-215 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/store/ImportComposeStore.kt:219-228 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/store/ImportComposeStore.kt:206\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/store/ImportComposeStore.kt"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"502b5772d7f38980bc96ca8a1374853421ae2a23e504faba0a60f6d413c16620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/AllHomeworksExecutionAnalysisView.kt:109-118 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/AllHomeworksExecutionAnalysisView.kt:163-172 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/AllHomeworksExecutionAnalysisView.kt:109\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/AllHomeworksExecutionAnalysisView.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"089ec1c612c9e735409da44c6cc0e2660953d4ec49eb3d08313edfeb7a4de611"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:203-212 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt:380-389 \u2014 before extracting anything, compare \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt\u0060 and \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/TaskErrorsBottomSheet.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 54 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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt:203\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/ShareHomeworksBottomSheet.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"a183909156ea4bf4d9a99f30e8f69192f2870d9257c00981b59f5d3278e840b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 9): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:68-76 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:119-127 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:174-182 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/profile/views/ProfileTopBar.kt:142-152 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/ScheduleIntervalsDialog.kt:88-96 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:78-86 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:126-134 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt:180-188 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSwapDaysDialog.kt:75-83 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditDialogs.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt:68\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/FastEditDialogs.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e503965f234b48529b796a1644eb68108d01d54650a43c16713cf6405a2208"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt:57-65 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt:72-80 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt:88-96 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt:104-112 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt:120-128 | shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt:136-144 \u2014 all 6 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 \u0060shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt:57\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":"shared/features/analytics/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/analytics/impl/presentation/ui/analytics/store/AnalyticsWorkProcessor.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02c329b7c928528f57bb5143e2585ebc86dda4169fa7812abafac68d98b42c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:64-72 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:129-137 \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 \u0060shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:64\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 \u0060value\u0060 to \u0060Any\u0060 in one and \u0060Any?\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":"shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ec943b1f265902da1fe9787a86d654775dd998b9ec8c85f97e138cd608b2fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): shared/core/data/src/iosMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/EndClassesReminderManagerImpl.ios.kt:101-109 | shared/core/data/src/iosMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/StartClassesReminderManagerImpl.ios.kt:152-160 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/data/src/iosMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/EndClassesReminderManagerImpl.ios.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8bc1b64f0b12bdb060df0bf370b57414a98b77fe8c918700c8f798ca30a509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:271-279 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:394-402 \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 \u0060shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:271\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5390aff88a26261047546cec418d0d76dd4905c991bd3e577b71094dcb95d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt:77-84 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt:91-99 \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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt:77\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 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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9215ef29224b052d1706eb1955fa4a7920382a8115cb809e8596c338a766919f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:437-445 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:460-468 \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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt:437\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/organizations/layouts/OrganizationsCompactLayout.kt"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa3b7c0262cc6f4e905566a5c15f40f5f35edebcdedc8b5bb2eeeef70b1785f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/store/SubjectsWorkProcessor.kt:86-99 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/store/SubjectsWorkProcessor.kt:112-120 \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 \u0060shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/store/SubjectsWorkProcessor.kt:86\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":"shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/subjects/store/SubjectsWorkProcessor.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3422419d1e603252bb5947a85a4b88551ad3cfd4742b86faab16223361c2e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/store/OverviewComposeStore.kt:125-133 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/store/OverviewComposeStore.kt:197-205 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: \u0060OverviewEvent\u0060 names \u0060ru.aleshin.studyassistant.schedule.impl.presentation.ui.overview.contract.OverviewEvent\u0060 in one and \u0060ru.aleshin.studyassistant.tasks.impl.presentation.ui.overview.contract.OverviewEvent\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/store/OverviewComposeStore.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3425732d99efd8fbae5b46fea84ea0c9ed63e33e745de23730ae0693ecd50e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:290-298 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/HomeworksOverview.kt:182-190 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt:290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/HomeworksContent.kt"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ccd65c19d7a5963b4abad462c78b3bcc03a81a3c15b8fa752883c1fa34bab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalBottomSheet.kt:303-311 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalView.kt:310-318 \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 \u0060shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalBottomSheet.kt:303\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalBottomSheet.kt"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dbbe2e8d97b1e9505c48dba94f563c4404477a4e945c9cfc77b067f8c71e470"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): androidApp/src/main/java/ru/aleshin/studyassistant/application/StudyAssistantApp.kt:122-129 | shared/core/common/src/androidMain/kotlin/ru/aleshin/studyassistant/core/common/notifications/NotificationCreator.kt:183-190 \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":"androidApp/src/main/java/ru/aleshin/studyassistant/application/StudyAssistantApp.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f918009871bbee8134c3eb4b54b770ef1a71dadaf8000607f968e901222f515"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredHomeworkShare.kt:54-61 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredScheduleShare.kt:60-67 \u2014 before extracting anything, compare \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredHomeworkShare.kt\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredScheduleShare.kt\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 after the matched lines, \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredScheduleShare.kt:68\u0060 calls \u0060contentHashCode\u0060, \u0060hashCode\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredHomeworkShare.kt:62\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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredHomeworkShare.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e657c79d53e669f3cd19a72ff66898993397091b5c7ad6733cae16a530309b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt:42-49 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt:83-90 \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 \u0060shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt:42\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":"shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/architecture/component/ComponentExt.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"24e347b3083cc2be07f89c20efe1e039b616a875611eb98f4bfa8f9adf0ac3c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:56-63 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:121-128 \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 \u0060shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:56\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 \u0060value\u0060 to \u0060Any\u0060 in one and \u0060Any?\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":"shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b520dd8acb1c3e6c29f47249933c83dbfdba384b56bb29d4a75f5b118923c2e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/WorkloadWarningWorker.kt:109-117 | shared/core/data/src/iosMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/WorkloadWarningManagerImpl.ios.kt:99-106 \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 \u0060shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/WorkloadWarningWorker.kt:109\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":"shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/WorkloadWarningWorker.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"746813e45d3879ddbe070f1f77139ed89268510004e4a8d6d5e7789ce31faef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/organizations/OrganizationDataMapper.kt:58-65 | shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/organizations/OrganizationUiMapper.kt:59-66 \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 \u0060shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/organizations/OrganizationDataMapper.kt:58\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":"shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/organizations/OrganizationDataMapper.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f3e0f04fe01102af28f11360d27033ebff1589a405716251cb32310f36559d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleImportInteractor.kt:237-244 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ShareSchedulesInteractor.kt:316-323 \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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleImportInteractor.kt"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c0882f193215f91843145cbf6163b838f93b362f53f1181b86650f9081deb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:337-344 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt:231-238 \u2014 before extracting anything, compare \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportSubjectEditorSheet.kt\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 92 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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:337\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"59021e882aee3f9ec074ceafe6ff7f0b23489611d6b9144844660e167ab18928"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 10): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/TImeInfoField.kt:72-78 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/EmailInfoFields.kt:63-69 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/LocationsInfoFields.kt:61-67 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/PhoneInfoFields.kt:59-65 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/SubjectAndEventTypeInfoField.kt:72-78 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/common/WebInfoFields.kt:63-69 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/EmployeeNameInfoField.kt:76-82 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/views/WorkTimeInfoField.kt:68-74 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/LinkedClassInfoField.kt:106-112 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/views/OrganizationNameInfoField.kt:73-79 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/TImeInfoField.kt:72\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, \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/TImeInfoField.kt:69\u0060 calls \u0060mutableStateOf\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/homework/views/LinkedClassInfoField.kt:104\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/classes/views/TImeInfoField.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b3cdcdaca3a359b02e74896de8677f5c246cfeab2345e7a2bb11933eab89df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/infrastructure/deepseek/mappers/DeepSeekScheduleExtractionMapper.kt:145-151 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/validation/ScheduleImportValidator.kt:96-102 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: \u0060LocalTime\u0060 names \u0060java.time.LocalTime\u0060 in one and \u0060kotlinx.datetime.LocalTime\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/infrastructure/deepseek/mappers/DeepSeekScheduleExtractionMapper.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52f4399bdc6f8ba919eb1f99ea741f323e4597a56538eaa66169400849ef703"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/StartClassesReminderWorker.kt:67-73 | shared/core/data/src/iosMain/kotlin/ru/aleshin/studyassistant/core/data/managers/reminders/StartClassesReminderManagerImpl.ios.kt:62-68 \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":"shared/core/data/src/androidMain/kotlin/ru/aleshin/studyassistant/core/data/workers/StartClassesReminderWorker.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54c60fe50af3a5e7305fc19c69cc49354052d2228c6b863517c35215627b989"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/goals/GoalDataMapper.kt:74-80 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/goals/GoalShortDataMapper.kt:33-39 \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 \u0060shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/goals/GoalDataMapper.kt:74\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":"shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/goals/GoalDataMapper.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf227b80e112141965ef3cbccf30b5737ed6b13be04119c59f559518a301ad8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:493-499 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:581-587 \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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e65c6bca341a3d4b087f3de0bfd338f90c5c704576feb2c26bf3366ac6cb7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:1131-1137 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:1141-1147 \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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"67f538c61d36cd11f8a4b097419e699676ed90fb17df1e9b82ba04bd8e0de6ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:159-170 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:215-221 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:159\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 before the matched lines, \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:157\u0060 calls \u0060padding\u0060 and \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt:213\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/DailyScheduleContent.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2d2bdac89b8bac0228dac30032c268c453f624700f338d5b911e6da5ea997e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt:409-415 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt:416-422 \u2014 before extracting anything, compare \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt\u0060 and \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/DetailsClassView.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/daily/views/DetailsClassView.kt"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8acc25a7a3eb6b6d0a43cf8070313cb2c5028d750f9847dce3ca586c975c0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/models/importing/ImportFastEditDurationMath.kt:84-90 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportClassEditorSheet.kt:471-477 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/models/importing/ImportFastEditDurationMath.kt:84\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/models/importing/ImportFastEditDurationMath.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca4fdc408b8fccd4505930776cf46fd6208b2cb90282e5b33bf6884bf10f916"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/EmployeeProfileContent.kt:233-239 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/EmployeeProfileContent.kt:314-320 \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 \u0060shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/EmployeeProfileContent.kt:233\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":"shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/EmployeeProfileContent.kt"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9623dd1fba2e41c1f47de3408c681f800867d5a5fd29643a9f3c886f24ef0cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:64-69 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:87-92 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:129-134 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:154-159 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:64\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 \u0060value\u0060 to \u0060Any\u0060 in one and \u0060Any?): JsonElement = when (value\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":"shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4839ea62985e7a21bf5285b6cf6a0de765baa6d4d0cab88bfde86fe24e2f27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:81-86 | shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:148-153 \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 \u0060shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt:81\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":"shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/functional/AnySerializer.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"79eb401210be6daa23561526d05cfff765c8c0432cf81d69f91d214bd0257b8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/FailuresMapper.kt:52-57 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/mappers/FailuresMapper.kt:38-43 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/FailuresMapper.kt:52\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: \u0060Res\u0060 names \u0060ru.aleshin.studyassistant.schedule.impl.resources.Res\u0060 in one and \u0060ru.aleshin.studyassistant.tasks.impl.resources.Res\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/mappers/FailuresMapper.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"26028d7d4761a1b7109e33739d3336e09148e36729d281dff993b02b95e6096a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/organizations/MediatedOrganizationDataMapper.kt:55-59 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/organizations/OrganizationDataMapper.kt:58-62 | shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/organizations/OrganizationUiMapper.kt:59-63 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/mappers/organizations/MediatedOrganizationDataMapper.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbec991995cd0e1827429e66257cede6de33b12ed77ca1adcbc5ed94d504258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileExpandedHeader.kt:68-73 | shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileInfoSection.kt:66-70 \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 \u0060shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileExpandedHeader.kt:68\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":"shared/features/profile/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/profile/impl/presentation/ui/views/ProfileExpandedHeader.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efd5103d61027896a7977b5ace4ffd99cca1b1077c5047aa708e9c1c489f873"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 3): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt:355-358 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt:388-392 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt:435-439 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt:355\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe3e97000199db7871cbc8bbe5063fc25c2599d25417ba9c379f3326c981ebf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt:94-125 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/organization/store/OrganizationWorkProcessor.kt:80-111 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt:94\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/store/EmployeeWorkProcessor.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db24488a4d70659b3f7c1b2a95fe7e50832a786656fb0782bb15e52195cfe6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/GeneralSettingsRepositoryImpl.kt:34-41 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/NotificationSettingsRepositoryImpl.kt:34-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":"shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/GeneralSettingsRepositoryImpl.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cf33571f7304583642fad08512637a6ae8f9e587a6469ea5836d2d7db0e686e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/BaseScheduleUiMapper.kt:27-33 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/CustomScheduleUiMapper.kt:27-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/mappers/BaseScheduleUiMapper.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3612d0d0e4a34d2fde3dd100d3465ac641d3b114e3389001fa60d9b51d5a524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): androidApp/src/github/java/ru/aleshin/studyassistant/application/BaseFlavorApplication.kt:34-45 | androidApp/src/huawei/java/ru/aleshin/studyassistant/application/BaseFlavorApplication.kt:34-45 \u2014 before extracting anything, compare \u0060androidApp/src/github/java/ru/aleshin/studyassistant/application/BaseFlavorApplication.kt\u0060 and \u0060androidApp/src/huawei/java/ru/aleshin/studyassistant/application/BaseFlavorApplication.kt\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"androidApp/src/github/java/ru/aleshin/studyassistant/application/BaseFlavorApplication.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"31541c464741476400909d6713bab85aa277ec1f3c8147765440a54f3a2702f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/AiQuotaRepositoryImpl.kt:487-499 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt:329-340 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt:453-464 \u2014 before extracting anything, compare \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 129 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 \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/AiQuotaRepositoryImpl.kt:487\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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/AiQuotaRepositoryImpl.kt"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ea30c7940ad6d19eca6169330923e35c726ddd87ecc66925d6279ef2cf9d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt:347-354 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt:361-368 \u2014 before extracting anything, compare \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/ScheduleSharingRepositoryImpl.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 129 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 \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt:347\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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/infrastructure/HomeworkSharingRepositoryImpl.kt"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca1fde0c10ac2ecfb853d6becb4d9f10690fc4963de149dddb134828c999b35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt:40-44 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/CustomScheduleRepositoryImpl.kt:39-43 \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. 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":"shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/BaseScheduleRepositoryImpl.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0354772171ac15ef7eea8534dff8cf7673c0f74bcc2799b3d5841a2318342a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:88-92 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/CustomScheduleLocalDataSource.kt:79-83 \u2014 before extracting anything, compare \u0060shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt\u0060 and \u0060shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/CustomScheduleLocalDataSource.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060item\u0060 to \u0060BaseScheduleEntity\u0060 in one and \u0060CustomScheduleEntity\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":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e404dd476f051df115324e358be809fcd6b0fa3aebd2b1744298e8e6fa79ee11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:147-151 | shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/CustomScheduleLocalDataSource.kt:111-115 \u2014 before extracting anything, compare \u0060shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt\u0060 and \u0060shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/CustomScheduleLocalDataSource.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 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 \u0060shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:147\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/CustomScheduleLocalDataSource.kt:117\u0060 calls \u0060deleteSchedulesByIds\u0060, \u0060deleteSchedulesById\u0060 and \u0060shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt:153\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":"shared/core/database/src/commonMain/kotlin/ru/aleshin/studyassistant/core/database/datasource/schedules/BaseScheduleLocalDataSource.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c5a51930785a90da7aeadc27c2af35c8c924b6179b3cd957fca184ed38acdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/files/InputFile.kt:42-48 | shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/models/InputFileUi.kt:46-52 \u2014 before extracting anything, compare \u0060shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/files/InputFile.kt\u0060 and \u0060shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/models/InputFileUi.kt\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. 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":"shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/files/InputFile.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccc24a65460ec46efeec7f69963ce343f9f31d2f70c731ee2598fed1f97a323"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/models/users/EmployeeDetailsUi.kt:50-54 | shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/models/users/EmployeeUi.kt:48-52 \u2014 before extracting anything, compare \u0060shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/models/users/EmployeeDetailsUi.kt\u0060 and \u0060shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/models/users/EmployeeUi.kt\u0060 as WHOLE FILES: 93% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/models/users/EmployeeDetailsUi.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"78930b9fdb229b3baf13174a6c5a3a6374828ac594b744ea3de4de6f2e7546cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseScheduleInteractor.kt:49-55 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/CustomScheduleInteractor.kt:87-93 \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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/BaseScheduleInteractor.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cdd75e28709e39344105eb5363e418c64796dbe42ef0da98daec9b641ff1184"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/CustomClassInteractor.kt:147-153 | shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/CustomScheduleInteractor.kt:212-218 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ScheduleImportInteractor.kt:248-254 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/ShareSchedulesInteractor.kt:327-333 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 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 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/domain/interactors/CustomClassInteractor.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d03d06cafe9912a88cb58012e5c346c25873c61cdc6271af47058e45139990"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/store/EmployeeComposeStore.kt:183-190 | shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/employee/store/EmployeeComposeStore.kt:139-146 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: \u0060EmployeeAction\u0060 names \u0060ru.aleshin.studyassistant.editor.impl.presentation.ui.employee.contract.EmployeeAction\u0060 in one and \u0060ru.aleshin.studyassistant.info.impl.presentation.ui.employee.contract.EmployeeAction\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/employee/store/EmployeeComposeStore.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"5623405c91cc29f3ff4bb894c6aa31a9332a5e628483c8aa0029d0289584225c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/WeekScheduleBottomSheet.kt:490-496 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/views/EmployeeSubjectView.kt:118-124 \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 \u0060shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/WeekScheduleBottomSheet.kt:490\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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/schedule/views/WeekScheduleBottomSheet.kt"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"852ba21c9e7891d4bd77bbb9321b80f7ee22db5b2bc875d231cc174c257daef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/store/TodoComposeStore.kt:134-141 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/todos/store/TodoComposeStore.kt:103-110 \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. Note first that the copies are not typed on the same thing: \u0060TodoAction\u0060 names \u0060ru.aleshin.studyassistant.editor.impl.presentation.ui.todo.contract.TodoAction\u0060 in one and \u0060ru.aleshin.studyassistant.tasks.impl.presentation.ui.todos.contract.TodoAction\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/todo/store/TodoComposeStore.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29386265580d10447d37c4151eaa2b36b44bea5ddb1b3ae18571371fdcf1d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt:654-658 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportTimeNormalizer.kt:282-286 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportFastEditBar.kt:203-207 \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. 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"69738f10e738f261302cac7025f0e3cc7282f4c6d94c8596f6731bb7a4b194a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/HomeworkInteractor.kt:39-43 | shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt:203-207 \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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/interactors/HomeworkInteractor.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f5114683d490ac63f18e309411fb105bca1c002e36f4c90604f3eec1dbf90e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedEmployeesView.kt:143-149 | shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedSubjectsView.kt:150-156 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedEmployeesView.kt: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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/LinkedEmployeesView.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"508e4260ed339ae7ae56f5898be5c7518acb8963490ec6839f58433e75e34423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SharedOrganizationView.kt:263-269 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/views/EmployeeContactInfoView.kt:99-105 \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 \u0060shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SharedOrganizationView.kt:263\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/views/SharedOrganizationView.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2a50fde6312ef86fa627a0ba4b7427273bbb73c97f547d64dc218b6161357f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/api/HomeworkSharingRoutes.kt:56-71 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/api/ScheduleSharingRoutes.kt:58-73 \u2014 before extracting anything, compare \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/api/HomeworkSharingRoutes.kt\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/api/ScheduleSharingRoutes.kt\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/api/HomeworkSharingRoutes.kt:56\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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/api/HomeworkSharingRoutes.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e66af4a5f8b5e362b877827981c6738362af85b9b2f7bc9674c307d7f45be38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/HomeworkShareRepositoryImpl.kt:49-59 | shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/ScheduleShareRepositoryImpl.kt:52-62 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/HomeworkShareRepositoryImpl.kt:49\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":"shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/HomeworkShareRepositoryImpl.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2698dda1fec857003afe9e3fc48f16036b43bd51dc2d515a37a261623eeb9cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/deepseek/DeepSeekConfig.kt:76-82 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/infrastructure/openrouter/OpenRouterConfig.kt:83-89 \u2014 before extracting anything, compare \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/deepseek/DeepSeekConfig.kt\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/infrastructure/openrouter/OpenRouterConfig.kt\u0060 as WHOLE FILES: 86% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/deepseek/DeepSeekConfig.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cbea6fe8b3347bfdbe329c3726fcd9690effd176c1e781caf182de85dbd731"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:239-244 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"708a456e4d917cdaa6b6d65d4f3460d5a60fb6bc5611231ed1029738a0aa9faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:937-941 | shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:968-972 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:942\u0060 calls \u0060fetchAllSubjectsByOrganization\u0060, \u0060first\u0060 and \u0060shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt:973\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"17c8e4f862a5b2f15942bd0274fbbde05f9295471ab5b70897b42edb2c31ebf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredHomeworkShare.kt:41-48 | backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredScheduleShare.kt:44-51 \u2014 before extracting anything, compare \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredHomeworkShare.kt\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredScheduleShare.kt\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredScheduleShare.kt:52\u0060 calls \u0060contentEquals\u0060 and \u0060backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredHomeworkShare.kt:50\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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/sharing/domain/model/StoredHomeworkShare.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"96da1884186812f8a5dcc61c4ed5459e28ae93fefed3c607f12899f0bc546a3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/EmployeeProfileContent.kt:190-194 | shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/EmployeeProfileContent.kt:215-219 \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 before the matched lines, \u0060shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/EmployeeProfileContent.kt:189\u0060 calls \u0060weight\u0060, \u0060fillMaxHeight\u0060, \u0060verticalScroll\u0060 and \u0060shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/EmployeeProfileContent.kt:214\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":"shared/features/users/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/users/impl/presentation/ui/employee/EmployeeProfileContent.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"5694b06513c374dc3d4f6de52ed6604592bfe1de9cb50ea573c4b8998f0b7bc1"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project StudyAssistant:shared:features:analytics:impl: StudyAssistant:shared:features:analytics:impl has instability 0.83 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9eab43e855b4a8fa4d045f1d8f1771b9cdb47211b8d3386ef968bb105aa6f9a1"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project StudyAssistant:shared:features:chat:impl: StudyAssistant:shared:features:chat:impl has instability 0.83 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"68c32433a1d4a991c485e148ed2ed4add88e27e4ad7b56d4eca8a9d2812c1d82"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project StudyAssistant:shared:features:editor:impl: StudyAssistant:shared:features:editor:impl has instability 0.88 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c1d20562bee93336b6a24597256cc402ffbe49385babdca83d0ca6427720e6c0"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project StudyAssistant:shared:features:info:impl: StudyAssistant:shared:features:info:impl has instability 0.88 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a28e5e3eb70506e209f5cccc5eeb5a06b6d905f5e6931ced420477fec2ea8f62"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project StudyAssistant:shared:features:profile:impl: StudyAssistant:shared:features:profile:impl has instability 0.88 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"027e8c7a4d239f9f42b8419c8ec8007be7c53e5cb73dd70c465281a313d59fd9"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project StudyAssistant:shared:features:schedule:impl: StudyAssistant:shared:features:schedule:impl has instability 0.88 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d11e5da6d7185774135428106d33cda33391020ea94fd67fc9d7b197b9ca0ee6"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project StudyAssistant:shared:features:settings:impl: StudyAssistant:shared:features:settings:impl has instability 0.83 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f5abaf014f4ad6035e0660d932114b84ce551903ccbbd6f2da2fdaa88f96c1eb"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project StudyAssistant:shared:features:tasks:impl: StudyAssistant:shared:features:tasks:impl has instability 0.88 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4e3e031034d856d1b1e16d6420bc0c37367967f482bce3c7dbccc70d5152415f"}},{"ruleId":"D5","level":"warning","message":{"text":"Unstable project StudyAssistant:shared:features:users:impl: StudyAssistant:shared:features:users:impl has instability 0.86 with 1 dependents."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bf458842d59db5580febf9a5c4c0f6b77673ce3dd552812ae4b6aa27eda3f522"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Base (LCOM4 11): Base\u0027s methods fall into 11 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 11 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5b34d7e52a27c6367bd0d7c4854d03a19ca9853dbd35d8c6f0f7a060c4e131"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/store/ImportComposeStore.kt: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/store/ImportComposeStore.kt changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in ImportComposeStore.handleEvent at line 69. 5 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/store/ImportComposeStore.kt\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/store/ImportComposeStore.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f039fb927cb3dff4655a8fdb5f3750278097469ee5dfa525f55ae310eb2a8d97"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantComposeStore.kt: shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantComposeStore.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in AssistantComposeStore.handleEvent at line 52. 2 of those changes were fix/bug commits, and the other 4 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantComposeStore.kt\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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/store/AssistantComposeStore.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0734c6a20b440e3a3391024e9a17b2474f08a56f9ccb0ce41d361c3e34a24c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareComposeStore.kt: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareComposeStore.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in ShareComposeStore.handleEvent at line 54. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareComposeStore.kt\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/share/store/ShareComposeStore.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7797f31f4269c0c1aedf0cd4726876e85df639b9a253272c7a7b835b5347d68"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/SetupContent.kt: shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/SetupContent.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in SetupContentKt.SetupPageInfoSection at line 235. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/SetupContent.kt\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":"shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/SetupContent.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7f1551592fcbabc5c48ba14c1f1021402b2cafa04620fcde37c73aae30c84f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/ads/YandexRewardedAdHost.kt: shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/ads/YandexRewardedAdHost.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in YandexRewardedAdHostKt.YandexRewardedAdHost at line 42. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/ads/YandexRewardedAdHost.kt\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":"shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/ads/YandexRewardedAdHost.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f80e2ad2a0fcc9c6d932ab0562c046bd2054773cb6051ba9044a31b5fbe009"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/AiQuotaRepositoryImpl.kt: backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/AiQuotaRepositoryImpl.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AiQuotaRepositoryImpl.reserve at line 54. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/AiQuotaRepositoryImpl.kt\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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/AiQuotaRepositoryImpl.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f981fbacb7ed0aff3c04263a958e44675bc3c212059d0deedda3e0e53c5f80b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in OverviewTopSheetKt.OverviewTopSheetAnalysis at line 314. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/overview/views/OverviewTopSheet.kt"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf0074f051b02cdf0187009901e2e0cfe72d2da2b1f96abfd5990e3fee6334a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/services/ScheduleExtractionService.kt: backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/services/ScheduleExtractionService.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in ScheduleExtractionService.extract at line 57. 2 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/services/ScheduleExtractionService.kt\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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/services/ScheduleExtractionService.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2db197891cb378bd9f610baec0e8b169f2653e269b5786a4539650224d8a4c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt: shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in HomeworksComposeStore.handleEvent at line 61. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0a627f4595fb323b4bf08798aa5e84b6fc61f191de12eaeb67d5d97953e93c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/store/SetupComposeStore.kt: shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/store/SetupComposeStore.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in SetupComposeStore.handleEvent at line 55. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/store/SetupComposeStore.kt\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":"shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/setup/store/SetupComposeStore.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ae17fde36c22318e4e2a72ec389ae480aa1092a81ca0341787a3e34ef3403d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt: shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in DailyHomeworksDetailsViewKt.ShortHomeworkViewContent at line 507. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt\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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2fa7f5a48ec328bbb49dd47dfdfc1fa407f189a0935b0c3c21c946e8b75231"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/mappers/BackendShareErrorMapper.kt: shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/mappers/BackendShareErrorMapper.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in BackendShareErrorMapperKt.mapBackendShareError at line 28. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/mappers/BackendShareErrorMapper.kt\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":"shared/core/remote/src/commonMain/kotlin/ru/aleshin/studyassistant/core/remote/mappers/BackendShareErrorMapper.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"405f4bbe670d09826c3c63277fdc5132d08ca0dcbb6f596938628a9293572911"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/services/AiCompletionService.kt: backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/services/AiCompletionService.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in AiCompletionService.complete at line 58. 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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/services/AiCompletionService.kt\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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/services/AiCompletionService.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3151143ecd5eeeb45823600e08c4d25ce207f5635ab1f8f642520999f0f9bf2e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/ImportLayout.kt: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/ImportLayout.kt changed 9 times in last 90 days and 5 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 ImportLayoutKt.ImportLayout at line 31), 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(backend): cap extraction reasoning at 4096 tokens and raise request timeout to 180s\u201D; \u201Cfix: schedule import weekdays, per-day fast-edit and swap days\u201D; \u201Cfix: AI chat recovery, schedule import, editor and banner bugs\u201D; \u201Cfix: schedule import screen\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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/ImportLayout.kt\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/ImportLayout.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fb9ec3c87ca55842023ac2e35e812b301756ff1c00dfbc69dd870678179463"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/handlers/AiConversationHandler.kt: shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/handlers/AiConversationHandler.kt changed 6 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is Base.retryLastMessage at line 51), 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: date time bug \u0026 chat logic\u201D; \u201Cfix: AI chat recovery, schedule import, editor and banner bugs\u201D; \u201Cfix: bugs in ui, business logic and backend\u201D; \u201Cfix: minor bugs\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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/handlers/AiConversationHandler.kt\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":"shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/handlers/AiConversationHandler.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fcaa1d3d91251a9aa4bf9179a6d10c8cc86504ab0f744de4940bb688ffbce17"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/layouts/ImportCompactLayout.kt: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/layouts/ImportCompactLayout.kt changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is ImportCompactLayoutKt.ImportCompactLayout at line 38), 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(backend): cap extraction reasoning at 4096 tokens and raise request timeout to 180s\u201D; \u201Cfix: schedule import weekdays, per-day fast-edit and swap days\u201D; \u201Cfix: AI chat recovery, schedule import, editor and banner bugs\u201D; \u201Cfix: minor bugs\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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/layouts/ImportCompactLayout.kt\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/layouts/ImportCompactLayout.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbefa3f6eebe239847079d4d064d68aa359cd49806141d785b4cea663bf8a65a"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/layouts/ImportExpandedLayout.kt: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/layouts/ImportExpandedLayout.kt changed 5 times in last 90 days and 4 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is ImportExpandedLayoutKt.ImportExpandedLayout at line 39), 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(backend): cap extraction reasoning at 4096 tokens and raise request timeout to 180s\u201D; \u201Cfix: schedule import weekdays, per-day fast-edit and swap days\u201D; \u201Cfix: AI chat recovery, schedule import, editor and banner bugs\u201D; \u201Cfix: minor bugs\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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/layouts/ImportExpandedLayout.kt\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/layouts/ImportExpandedLayout.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"720d75664511e0b1b43ae24c59a2a829431a9ae3c6a9ee8e93a0e691d274197c"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportDayColumn.kt: shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportDayColumn.kt changed 5 times in last 90 days and 4 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 ImportDayColumnKt.ImportDayColumn at line 54), 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: schedule import weekdays, per-day fast-edit and swap days\u201D; \u201Cfix: AI chat recovery, schedule import, editor and banner bugs\u201D; \u201Cfix: minor bugs\u201D; \u201Cfix: schedule import screen\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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportDayColumn.kt\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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/importer/views/ImportDayColumn.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"d09964890090e5460b198730bc8d066f7c9e6b983c7e6eab2b2803278302f5ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/ai/AiAssistantMessage.kt: shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/ai/AiAssistantMessage.kt 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 11 (its worst body is AiAssistantMessageKt.lastConfirmedTurnEndIndex at line 210), 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: date time bug \u0026 chat logic\u201D; \u201Cfix: AI chat recovery, schedule import, editor and banner bugs\u201D; \u201Cfix: bugs in ui, business logic and backend\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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/ai/AiAssistantMessage.kt\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":"shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/ai/AiAssistantMessage.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3ecd108fc1e4e60ff378e5a09a8934b8cdcd7fc9c4f08a96ddf5c96699ec81"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/infrastructure/deepseek/mappers/DeepSeekScheduleExtractionMapper.kt: backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/infrastructure/deepseek/mappers/DeepSeekScheduleExtractionMapper.kt changed 3 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 7 (its worst body is DeepSeekScheduleExtractionMapper.parseClocks at line 103), 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(backend): mapping schedule\u201D; \u201Cfix: AI chat recovery, schedule import, editor and banner bugs\u201D; \u201Cfix: bugs in ui, business logic and backend\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-06-08..2026-09-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-08 01:52:50 \u002B03:00\u0027 --until=\u00272026-09-06 01:52:50 \u002B03:00\u0027 --full-history --no-merges -- backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/infrastructure/deepseek/mappers/DeepSeekScheduleExtractionMapper.kt\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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/infrastructure/deepseek/mappers/DeepSeekScheduleExtractionMapper.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d025fe676324dc8eb792619fdf6e1c6150a0a3381a073484164b0d2cb772ac"}},{"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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 10 of 32 project(s) overshoot their size bounds, lowering Project Cohesion to 3.9/10. The most over is \u0060backend/ktor\u0060 (11648 LoC, 296 module-visible types across 63 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":"D28","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":"7ae526896485d9162a63c2181155fef7b75d275d1815c95fd2b5584bdcc16e50"},"properties":{"commitSha":"1805f1d1c7f1652572ad9e0d66c80a773c8ccdf2"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"a28595db57da307c0f0515d8cc02debef315f3ff5e6a70e03772444617662cc4"},"properties":{"commitSha":"77372200814739896200bfd3363d1d1030fec8e8"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-540","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D28","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":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"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":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"d8b1c3eae241e6bcb0877ee2ad4a8f892a78486bd3ab49506d433ff270a10742"},"properties":{"dependency":{"package":"io.netty:netty-handler","version":"4.2.16.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"a76934ef3e73f2efe560017eac9e6e2f7dfd4597cd181b742101d06d1675388d"},"properties":{"dependency":{"package":"tools.jackson.core:jackson-core","version":"3.1.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"18d1b669bff0079f76b3cbba7e71e25807c9aee2f327ad9288f1e43199daabef"},"properties":{"dependency":{"package":"tools.jackson.core:jackson-databind","version":"3.1.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"d5c14a78b0cce13736652b879e6669346d1f40f45454e21b5439d5d930703eba"},"properties":{"dependency":{"package":"org.apache.httpcomponents.core5:httpcore5","version":"5.3.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"d6bb63c3552ad13f604c361fc5f43e4242114efdfbff17dd24eac4ac1e7e9093"},"properties":{"dependency":{"package":"org.apache.httpcomponents.core5:httpcore5-h2","version":"5.3.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f1e32354b4c13e0b0bb20fa36e8b67269d147d89a9ef855de1999ca8416b02e4"},"properties":{"dependency":{"package":"io.netty:netty-codec-http","version":"4.2.16.Final","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d038fcc958acb31e23d73aad21877bca7006379c82003418eb6be04bf57586fc"},"properties":{"dependency":{"package":"org.apache.httpcomponents.client5:httpclient5","version":"5.5.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b0ce291e89b2892f826ef1e7648f95accdbf7737feab60902822536ad4cf52b7"},"properties":{"dependency":{"package":"org.jetbrains.kotlin:kotlin-gradle-plugin","version":"2.4.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D31","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":"0e8da579b5e865fa8f5fa64465dfa30012cb941dddf169f6b5a1b53c379edc08"}},{"ruleId":"D32","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":"c1704dbf7f310c0d79a8d20e201c19e53fcb96586c370f634dc8b8333cd2096e"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"C4","level":"note","message":{"text":"Partial data-retention evidence: A retention mechanism is present, but the data-lifecycle is not yet complete \u2014 missing: an expiry limit \u2014 a declared maximum age / TTL after which the data is no longer kept, a documented retention period / data-expiry."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e6c843eccaff7ffcfe5241125b74768c2364055ab6678b12b10d47f44086afa4"}},{"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":"P10","level":"note","message":{"text":"Large public API surface: 1776/2394 types (74%) declared in the published library are public. For a library, every public type is a stability contract \u2014 keep implementation types off the surface and expose only the intended API."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ed2ba843444ae377c17142f58f714e281e4bd3f183ab100ee1fbef389875d3e6"}},{"ruleId":"P12","level":"warning","message":{"text":"Test suite runs only after the merge: \u0060backend-container.yml\u0060 run(s) the test suite, but no workflow that runs tests is triggered by a pull request (or a merge queue) \u2014 so the suite reports on code that is already on the default branch. A red build there blocks nothing and the only remedy is a revert. Add the pull-request trigger to the workflow that runs your suite so the gate applies before the merge, not after it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"731ad560de6aa35d3e92103d5ad0fbec4c54f771b709281e852941847e03ef03"}},{"ruleId":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/2 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060iosApp\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (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 7028 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!isLoadingChat \u0026\u0026 responseStatus != ResponseStatus.LOADING \u0026\u0026 !isQuotaExpired \u0026\u0026 isInputEnabled \u0026\u0026 textFieldState.text.isNotBlank()\u0060 appears character-identically in 2 files \u2014 shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/views/AssistantBottomBar.kt, shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/views/AssistantInputIsland.kt. 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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/views/AssistantBottomBar.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9fc331cf8512c20369bdee299157516dc4522f8268fd453d6529a041765cd27"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(completedHomeworks.isNotEmpty() || runningHomeworks.isNotEmpty()) \u0026\u0026 errorHomeworks.isNotEmpty()\u0060 appears character-identically in 2 files \u2014 shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt, shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt. 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c4be884ebc462b9ed87da5ee628443d9e21ad3abe1a183d15c9082174a3e74"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060activeSchedule != null \u0026\u0026 activeSchedule.classes.isNotEmpty()\u0060 appears character-identically in 2 files \u2014 shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt, shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/store/OverviewComposeStore.kt. 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/store/HomeworksComposeStore.kt"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"d47c37c89a2b813c8655123c187b988669306b9b4e3f48c04c2233666ab6f8ab"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060baseUrl.startsWith(HTTPS_PREFIX) \u0026\u0026 !baseUrl.contains(\u0027?\u0027) \u0026\u0026 !baseUrl.contains(\u0027#\u0027)\u0060 appears character-identically in 2 files \u2014 backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/deepseek/DeepSeekConfig.kt, backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/infrastructure/openrouter/OpenRouterConfig.kt. 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":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/infrastructure/deepseek/DeepSeekConfig.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"39634b8a03c685781c45b8735be37a3167810ce3c96823b6c912d5c4d3ba3667"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060char == \u0027-\u0027 || char == \u0027\u2014\u0027 || char == \u0027\u2013\u0027 || char == \u0027.\u0027\u0060 appears character-identically in 2 files \u2014 shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt, shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/validation/ScheduleImportValidator.kt. 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/domain/common/ScheduleImportHandler.kt"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c3215f4c7a8c40efd34223c84f1ae2c6373bc5cb1713123d0055b4b53caac17"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060completedHomeworks.isNotEmpty() \u0026\u0026 runningHomeworks.isNotEmpty()\u0060 appears character-identically in 2 files \u2014 shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt, shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt. 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb51ce294a87306e4f7cddeed555ef3cdc8ed95ef61e1baf598a0ed807138b69"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dismissValue == EndToStart \u0026\u0026 status != HomeworkStatus.COMPLETE\u0060 appears character-identically in 2 files \u2014 shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt, shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt. 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"619d82e5a9849ed2e8be738c16f40e299a3cbe510be00164b16dcb146b7b913b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dismissValue == EndToStart \u0026\u0026 status == HomeworkStatus.COMPLETE\u0060 appears character-identically in 2 files \u2014 shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt, shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt. 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a696a9c760fd0be7c1aa679ccc2039416459932d76e9a8f480f467d0cfe53f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dismissValue == StartToEnd \u0026\u0026 status != HomeworkStatus.SKIPPED\u0060 appears character-identically in 2 files \u2014 shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt, shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt. 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b25594b1a37e74dd4276c37ff6e927f2c94f40a691badee4e38d62e2b829975"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060dismissValue == StartToEnd \u0026\u0026 status == HomeworkStatus.SKIPPED\u0060 appears character-identically in 2 files \u2014 shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt, shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/DailyHomeworksView.kt. 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":"shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/homeworks/views/DailyHomeworksDetailsView.kt"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e2f05fc1cbd25f8dd55a23ff8e75ebcc4f791e5ec12f39c6fba3bf23be0f8b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060durations.size \u003E 1 \u0026\u0026 grouped.size == 1 \u0026\u0026 mode \u003E= MEGA_DURATION_MS\u0060 appears character-identically in 2 files \u2014 shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/models/classes/FastEditDurationMath.kt, shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/models/importing/ImportFastEditDurationMath.kt. 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":"shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/models/classes/FastEditDurationMath.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e62acd75a4191d49459e5d958e315d61e600873054a1caf19852eed03a2446e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isCompactWidth || isCompactHeight || isTabletopPosture\u0060 appears character-identically in 9 files \u2014 shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/AssistantLayoutMode.kt, shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/EditorLayoutMode.kt, shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/InfoLayoutMode.kt, shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/PreviewLayoutMode.kt. 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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/AssistantLayoutMode.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"31fc41f8ba0fd23ee84f100a46dffbb47424cdd6bd2a44fe057735504eb71bed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060linkedGoal != null \u0026\u0026 !linkedGoal.isDone\u0060 appears character-identically in 3 files \u2014 shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/interactors/TodoCompletionInteractor.kt, shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt, shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/domain/interactors/HomeworksInteractor.kt. 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":"shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/interactors/TodoCompletionInteractor.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"816ce2c5c7308349545ddded74f57ec85015b8d9d7a38aa7c732e4deb3272b68"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060linkedGoal != null \u0026\u0026 linkedGoal.targetDate \u003E= currentTime.startThisDay()\u0060 appears character-identically in 2 files \u2014 shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/interactors/TodoCompletionInteractor.kt, shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/domain/tools/AiToolCallProcessor.kt. 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":"shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/interactors/TodoCompletionInteractor.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af2cf8e2d6d50b550c9c08f279af83da38a25e18fa893dc111348c537eb092a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060oldAvatarUrl != null \u0026\u0026 oldAvatarUrl != avatar\u0060 appears character-identically in 2 files \u2014 shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/EmployeeRepositoryImpl.kt, shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/OrganizationsRepositoryImpl.kt. 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":"shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/repositories/EmployeeRepositoryImpl.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfbe49e0be1ec63bffca3b84b270a17f031f1bba39607927030ddf0133405f6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060openClassBottomSheet \u0026\u0026 classModel != null\u0060 appears character-identically in 2 files \u2014 shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt, shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/layouts/DetailsExpandedWeekSection.kt. 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/details/DetailsContent.kt"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"044f0d8f3bd9c10322c6379f8f304b8a9620f24cfb57058cf5425989b7e9924b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060other == null || this::class != other::class\u0060 appears character-identically in 3 files \u2014 shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/files/InputFile.kt, shared/core/ui/src/commonMain/kotlin/ru/aleshin/studyassistant/core/ui/models/InputFileUi.kt, shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/platform/ImageCompressor.kt. 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":"shared/core/domain/src/commonMain/kotlin/ru/aleshin/studyassistant/core/domain/entities/files/InputFile.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f8f1dddfbc09ab61c969e951afea74f29269ed055fcd76c7b5e6ab3f652496"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060priority == TaskPriority.MEDIUM || priority == TaskPriority.HIGH\u0060 appears character-identically in 2 files \u2014 shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt, shared/features/tasks/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/tasks/impl/presentation/ui/overview/views/GoalHomeworkView.kt. 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":"shared/features/schedule/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/schedule/impl/presentation/ui/common/SheetHomeworkView.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb299cde6b9e1e9efa18677d28b00f8bda472a5bef33e19bb9f27d661e90897b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sizeClass.width == WidgetSizeClass.Width.COMPACT || sizeClass.height == WidgetSizeClass.Height.COMPACT\u0060 appears character-identically in 3 files \u2014 widget/src/androidMain/kotlin/ru/aleshin/studyassistant/widget/presentation/ui/goals/GoalWidgetRow.kt, widget/src/androidMain/kotlin/ru/aleshin/studyassistant/widget/presentation/ui/homeworks/HomeworkWidgetRow.kt, widget/src/androidMain/kotlin/ru/aleshin/studyassistant/widget/presentation/ui/todos/TodoWidgetRow.kt. 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":"widget/src/androidMain/kotlin/ru/aleshin/studyassistant/widget/presentation/ui/goals/GoalWidgetRow.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"465bd493e9ab3a1c870fb17977a6d6f5925851a4f57b065453d5211b62fcb81d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060useNavigationRail || useExpandedLayout || isBookPosture\u0060 appears character-identically in 9 files \u2014 shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/AssistantLayoutMode.kt, shared/features/editor/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/editor/impl/presentation/ui/EditorLayoutMode.kt, shared/features/info/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/info/impl/presentation/ui/InfoLayoutMode.kt, shared/features/preview/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/preview/impl/presentation/ui/PreviewLayoutMode.kt. 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":"shared/features/chat/impl/src/commonMain/kotlin/ru/aleshin/studyassistant/chat/impl/presentation/ui/assistant/AssistantLayoutMode.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"922100bf1a2db9e0d290f029871b88832d6ae5a106635eac02b0be1185245d86"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060workTimeStart != null \u0026\u0026 workTimeEnd != null\u0060 appears character-identically in 2 files \u2014 shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeDetailsUiMapper.kt, shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeUiMapper.kt. 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":"shared/core/presentation/src/commonMain/kotlin/ru/aleshin/studyassistant/core/presentation/mappers/users/EmployeeDetailsUiMapper.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f591806a2b1ddbfe76db7a3fdef75348bac1787b21fc9e132adc5bde5793c9a7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/ui/src/androidMain/kotlin/ru/aleshin/studyassistant/core/ui/views/ShareQrCode.android.kt"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4074cd6e16a9ba0877113dc13947442266ae69d8cb7cfeca2bb9e62575ff08"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/ui/src/androidMain/kotlin/ru/aleshin/studyassistant/core/ui/views/VoiceInputButton.android.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eec225417733ebbd301bd0b0486c603b34c742c53ffb85b5682981fb5367789"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/handlers/FunctionArgumentsHandler.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"001802262fff9fc941a6487d95715194cd902cc4380f6532e4315dc51739e372"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/common/src/commonMain/kotlin/ru/aleshin/studyassistant/core/common/extensions/Json.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c0cca3a7bb222c641ca21461189ed943e1ccee6678914e2b976e0052705e6c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/infrastructure/openrouter/ScheduleImageNormalizer.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe6c452e96676a85e3bbf8ff9bab92d4f1dd47740b641fc006f6ef8258dfa09"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"backend/ktor/src/main/kotlin/ru/aleshin/studyassistant/backend/ai/schedule/api/validation/ScheduleImageGuard.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f07422af3658cd8169f2821cd23da7a89a938cd2ad47429d2c6954704e4d8264"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060encode\u0060 swallows every exception into \u0060\u0022{}\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/handlers/FunctionArgumentsHandler.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7e517ffa39de00d41f246eaa57f5ccaf9a681c62bd2032b70d6c3b081f060f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060decode\u0060 swallows every exception into \u0060emptyMap()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"shared/core/data/src/commonMain/kotlin/ru/aleshin/studyassistant/core/data/handlers/FunctionArgumentsHandler.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f65a486296c768538816e30d72954c4361127ef1be469ccc501e04872e7c118"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.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-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.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-540","guid":"1a9db5db-e5bb-ae5d-935a-d1b4e9ee080b","name":"Inclusion of Sensitive Information in Source Code","shortDescription":{"text":"Inclusion of Sensitive Information in Source Code"},"helpUri":"https://cwe.mitre.org/data/definitions/540.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.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":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"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"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":15,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}