{"$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":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"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":"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":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX1","name":"Captive dependencies","shortDescription":{"text":"Captive dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/AX1"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"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":"DM5","name":"Encapsulated state","shortDescription":{"text":"Encapsulated state"},"helpUri":"https://codehealth.canine.dev/dimensions/DM5"},{"id":"DM6","name":"Domain \u2194 infrastructure boundary","shortDescription":{"text":"Domain \u2194 infrastructure boundary"},"helpUri":"https://codehealth.canine.dev/dimensions/DM6"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"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":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"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":"_MessageHolderState.build (cyclomatic 135): _MessageHolderState.build has cyclomatic complexity 135 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/message_holder.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"3185b7a80ca670792e321af7c686469c1d62fd6e36de1eb630ed84acfd59acc5"}},{"ruleId":"D1","level":"warning","message":{"text":"ThemesService.materialYouTheme (cyclomatic 125): ThemesService.materialYouTheme has cyclomatic complexity 125 (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":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d0273519a4e908da6a79feafb14934fdde2e6ef25fcc26233edb7b97472758"}},{"ruleId":"D1","level":"warning","message":{"text":"_ThemingPanelState.build (cyclomatic 89): _ThemingPanelState.build has cyclomatic complexity 89 (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":"lib/app/layouts/settings/pages/theming/theming_panel.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"460e1a6c56c8a4737f706a22d5be31d617382ae3f1998f56729313740ae425b9"}},{"ruleId":"D1","level":"warning","message":{"text":"_ConversationPanelState.build (cyclomatic 78): _ConversationPanelState.build has cyclomatic complexity 78 (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":"lib/app/layouts/settings/pages/message_view/conversation_panel.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d7b7d8a17d23eaed10de92563ab3f3c849ca1b9d1eb0906d87e80ab518894b"}},{"ruleId":"D1","level":"warning","message":{"text":"TextFieldComponentState.build (cyclomatic 73): TextFieldComponentState.build has cyclomatic complexity 73 (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":"lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70c2ae6b71992aa7b14a6fb4c58891912f8f129eb13951c966f89122b066174"}},{"ruleId":"D1","level":"warning","message":{"text":"_DesktopPanelState.build (cyclomatic 70): _DesktopPanelState.build has cyclomatic complexity 70 (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":"lib/app/layouts/settings/pages/desktop/desktop_panel.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfa3f3b797d2bac7854e6224d7686c8c97a429777d39a29ab4b41c69297a1b7"}},{"ruleId":"D1","level":"warning","message":{"text":"ContactV2Actions._syncContactsToHandlesInternal (cyclomatic 70): ContactV2Actions._syncContactsToHandlesInternal has cyclomatic complexity 70 (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":"lib/services/backend/actions/contact_v2_actions.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"527f4e736bee0b2c50b9454ed8f1f9a4d9170038c0e7d649297a91333502a47e"}},{"ruleId":"D1","level":"warning","message":{"text":"_MessagePopupState.build (cyclomatic 68): _MessagePopupState.build has cyclomatic complexity 68 (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":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1502cddd60700fc291043bfaad02e1ca209a5bf85e4776a1581997e9178737"}},{"ruleId":"D1","level":"warning","message":{"text":"Message.merge (cyclomatic 61): Message.merge has cyclomatic complexity 61 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/message.dart"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ac30d52f0a35b6c5e1cf04bbc8a307ec3b6884adb5f4f4bb8a22db495891e9"}},{"ruleId":"D1","level":"warning","message":{"text":"IncrementalSyncManager.syncMessages (cyclomatic 60): IncrementalSyncManager.syncMessages has cyclomatic complexity 60 (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":"lib/services/backend/sync/incremental_sync_manager.dart"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc46af17cbdb16eb4d705d3a8e4abb0011f8e51abb081e22dabc9460a2f1721b"}},{"ruleId":"D1","level":"warning","message":{"text":"_MessagePopupState._allActions (cyclomatic 58): _MessagePopupState._allActions has cyclomatic complexity 58 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"846ec8c2cab21081d370036a1a523528c42f699a16ba0ddb54b996744cec208f"}},{"ruleId":"D1","level":"warning","message":{"text":"_FirebasePanelState.build (cyclomatic 55): _FirebasePanelState.build has cyclomatic complexity 55 (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":"lib/app/layouts/settings/pages/advanced/firebase_panel.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e003d2ff875b6ba53827790f1146ba28d70ff27def122d8f4e0ca0775186deba"}},{"ruleId":"D1","level":"warning","message":{"text":"Message.merge (cyclomatic 54): Message.merge has cyclomatic complexity 54 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2800304b8567767c21c6b96b1f7ebe5bd0ba6059eee3b677aeecc8d6460431f"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationFullscreenHolderState.build (cyclomatic 53): ConversationFullscreenHolderState.build has cyclomatic complexity 53 (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":"lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"9671afab3dd36b0c031803f7a5876d42f1b790a4b2dfb7f7e9bf5b12dc47af28"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncService.startIncrementalSync (cyclomatic 51): SyncService.startIncrementalSync has cyclomatic complexity 51 (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":"lib/services/backend/sync/sync_service.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e686cf2fc2702740bd19534c769580a95f841feb2490624ce6d9cdf13559c51b"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatListPanelState.build (cyclomatic 49): _ChatListPanelState.build has cyclomatic complexity 49 (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":"lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb748360259b7b404a904d38de52c772fa39ec9b56abbd094292c49f304efc4c"}},{"ruleId":"D1","level":"warning","message":{"text":"_ContactAvatarWidgetState.build (cyclomatic 48): _ContactAvatarWidgetState.build has cyclomatic complexity 48 (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":"lib/app/components/avatars/contact_avatar_widget.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef93a744c903c73dd1cdeb594be589a8901ae713d72f9bc067d0700285ddb30"}},{"ruleId":"D1","level":"warning","message":{"text":"_MiscPanelState.build (cyclomatic 48): _MiscPanelState.build has cyclomatic complexity 48 (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":"lib/app/layouts/settings/pages/misc/misc_panel.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b949d6dc3bc4169d4d47c76f42c304e2c7855a805f26cbc0400c554fc2c25064"}},{"ruleId":"D1","level":"warning","message":{"text":"_ServerCredentialsState.build (cyclomatic 48): _ServerCredentialsState.build has cyclomatic complexity 48 (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":"lib/app/layouts/setup/pages/sync/server_credentials.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc0ad526c5149c708b9fe9cf58a480a2c39abfdc40794cf3146726f327d3a08"}},{"ruleId":"D1","level":"warning","message":{"text":"TextFieldComponentState.handleKey (cyclomatic 46): TextFieldComponentState.handleKey has cyclomatic complexity 46 (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":"lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae755a83996805d14d14b7b28e00f696199bb00162b9357d195643e1b320c2f"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatCreatorState.build (cyclomatic 42): ChatCreatorState.build has cyclomatic complexity 42 (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":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e8c2b815c2b4cc45b192740cb89903925c8d314a7d0c3ca78f87ec883922e36"}},{"ruleId":"D1","level":"warning","message":{"text":"_FullscreenVideoState.build (cyclomatic 42): _FullscreenVideoState.build has cyclomatic complexity 42 (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":"lib/app/layouts/fullscreen_media/fullscreen_video.dart"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"a21df71f1e826c719355e520621435ae82ca5bb82180e881bd7098685c93362a"}},{"ruleId":"D1","level":"warning","message":{"text":"_AdvancedThemingContentState.build (cyclomatic 42): _AdvancedThemingContentState.build has cyclomatic complexity 42 (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":"lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c354203b01ef53346fb33b29f811e852ba38726af544551408bf7c40c03da39e"}},{"ruleId":"D1","level":"warning","message":{"text":"FullSyncManager.start (cyclomatic 41): FullSyncManager.start has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/sync/full_sync_manager.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9edf24e91be51c4f39661ea1025cfd78304269bbf0feea54e1634a820e423bd7"}},{"ruleId":"D1","level":"warning","message":{"text":"_TroubleshootPanelState.build (cyclomatic 40): _TroubleshootPanelState.build has cyclomatic complexity 40 (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":"lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"87c1727d603e45afe9e120cf7b0b2a2116fa37134a6da71c2d17aeca5b32d235"}},{"ruleId":"D1","level":"warning","message":{"text":"_ImageViewerState._buildStandardImage (cyclomatic 39): _ImageViewerState._buildStandardImage has cyclomatic complexity 39 (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":"lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a0c44a028893dbc67cb19ec67c9d54011d2934cb42be0aee77ee861259762ac"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchViewState.build (cyclomatic 38): SearchViewState.build has cyclomatic complexity 38 (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":"lib/app/layouts/conversation_list/pages/search/search_view.dart"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"06fa1d7937d2681a37e9a9cb4532b11fecc79f05007b2bbd714941a001e6379f"}},{"ruleId":"D1","level":"warning","message":{"text":"StartupTasks.onAppResume (cyclomatic 38): StartupTasks.onAppResume has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/backend/startup_tasks.dart"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"d679bd8393e42a70653f9f4b88de72ac47c52fb2135e24ca9dc8066facfe42b3"}},{"ruleId":"D1","level":"warning","message":{"text":"Message.isNewerThan (cyclomatic 37): Message.isNewerThan has cyclomatic complexity 37 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/message.dart"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7f70c1e884d8961fd48a4c3bcdccf3bb574512317ee378c2f4d0663810a57a"}},{"ruleId":"D1","level":"warning","message":{"text":"DownloadingContent.build (cyclomatic 36): DownloadingContent.build has cyclomatic complexity 36 (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":"lib/app/layouts/conversation_view/widgets/message/attachment/parts/downloading_content.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"293363930d8ddf415091e1c745ce3e94c1d2286996f4feebbb8693e567c5fd10"}},{"ruleId":"D1","level":"warning","message":{"text":"_InteractiveHolderState.build (cyclomatic 36): _InteractiveHolderState.build has cyclomatic complexity 36 (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":"lib/app/layouts/conversation_view/widgets/message/interactive/interactive_holder.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd5792722a6b7ccb47ee0274688f0a658f8d284f603c08c0c1e5cc854030735"}},{"ruleId":"D1","level":"warning","message":{"text":"FindMyController.getLocations (cyclomatic 36): FindMyController.getLocations has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/findmy/findmy_controller.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"19af99bb9b5f23d44383e2fde54a3901231ccaa6191af6b46a599e79e9b3eef5"}},{"ruleId":"D1","level":"warning","message":{"text":"_FullscreenImageState.build (cyclomatic 36): _FullscreenImageState.build has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/fullscreen_media/fullscreen_image.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9624d657aa7e527ea6f80039330ca15b707c91d1b6483a07913b579abbd1562"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionPanelHelpersMixin.buildConnectionSyncSection (cyclomatic 36): ConnectionPanelHelpersMixin.buildConnectionSyncSection has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1d28763237ae34753b08ce6339db3cdec8d123ba499ba92949ea03ee2e28a03"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionPanelHelpersMixin.buildServerActionsSection (cyclomatic 36): ConnectionPanelHelpersMixin.buildServerActionsSection has cyclomatic complexity 36 (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":"lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9b50075e21c03f7c2b51e2273f866bd7785535e7b35648edb8ad3f71127210"}},{"ruleId":"D1","level":"warning","message":{"text":"_OauthPanelState.build (cyclomatic 36): _OauthPanelState.build has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a09b6c3b0d77c6aae5cf17576a2fbe5c0f2807c508e5e39556475020c2e48fc0"}},{"ruleId":"D1","level":"warning","message":{"text":"CupertinoConversationListState.build (cyclomatic 35): CupertinoConversationListState.build has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/pages/cupertino_conversation_list.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05528fef3dcc64bfd1a0b585b923a712f98f8d252a19743615f12a8b3196d24"}},{"ruleId":"D1","level":"warning","message":{"text":"_ProfilePanelState.build (cyclomatic 35): _ProfilePanelState.build has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/profile/profile_panel.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b14b7b103dbfcf753f8fa1a6b1fff92b6d6d731ad90b797a3db06be41476a83"}},{"ruleId":"D1","level":"warning","message":{"text":"_NotificationPanelState.build (cyclomatic 35): _NotificationPanelState.build has cyclomatic complexity 35 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/system/notification_panel.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8231b1c5692892e70e8c10d59e7583f4b7f0d5de17c9702b2f85b2731d0144e"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentsService.getContent (cyclomatic 35): AttachmentsService.getContent has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/attachments_service.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3446836a4184c165cf4d55e6891f09e1c4a33a8e75a40163e145ed25d8ac08a5"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatInfoState.build (cyclomatic 34): _ChatInfoState.build has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/chat_info.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"836f4ef3439e524f466cf50cfc39d4fcd08f25a2ffb70974aa067efb66db2497"}},{"ruleId":"D1","level":"warning","message":{"text":"KeyboardShortcutHandler.handleKeyEvent (cyclomatic 34): KeyboardShortcutHandler.handleKeyEvent has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/handlers/keyboard_shortcut_handler.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"91db0ae3cd6d55fee71161d2fb512d2c1755c9fd7ec8e8d0e93ba42e14a89326"}},{"ruleId":"D1","level":"warning","message":{"text":"_SettingsPageState.build (cyclomatic 33): _SettingsPageState.build has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/settings_page.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a590649dc89bd3405ea61e2aa6de6c6125a68810680ac9588d15b620681122"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsScaffold.build (cyclomatic 33): SettingsScaffold.build has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/widgets/layout/settings_scaffold.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebf082d4895834e93a34dfaf328394ce83aeb936a75a909b86f25c510bb85640"}},{"ruleId":"D1","level":"warning","message":{"text":"IncomingMessageHandler._processNewMessage (cyclomatic 33): IncomingMessageHandler._processNewMessage has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/incoming_message_handler.dart"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"85352cfe6f9bac3128e0a82fba448e464cc323ee1ba1c3f74d1e18a5ade1c822"}},{"ruleId":"D1","level":"warning","message":{"text":"RenderRunTextEffects.paint (cyclomatic 32): RenderRunTextEffects.paint has cyclomatic complexity 32 (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":"lib/app/layouts/conversation_view/widgets/message/text/run_text_effects.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"894f4a0606539de211878236731939df7e86f40071a0c1600d5c9a8c231832b7"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionPanelHelpersMixin.resolveValue (cyclomatic 32): ConnectionPanelHelpersMixin.resolveValue has cyclomatic complexity 32 (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":"lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"56a5a0a34c10835e588eb02601d9c92b894681ce924cc664e7cc6392c7c48960"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatActions.addMessageToChat (cyclomatic 32): ChatActions.addMessageToChat has cyclomatic complexity 32 (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":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"c547a84b142211d4a7e33330520d6d1e00015226af7d55c7deb848b610400fa9"}},{"ruleId":"D1","level":"warning","message":{"text":"_ConversationPeekViewState.buildDetailsMenu (cyclomatic 31): _ConversationPeekViewState.buildDetailsMenu has cyclomatic complexity 31 (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":"lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7456f98c71664c509e8f90c7022666a81bf7014581a827dec46f3db7b8556d9"}},{"ruleId":"D1","level":"warning","message":{"text":"Database._performDatabaseMigrations (cyclomatic 31): Database._performDatabaseMigrations has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/database.dart"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fcad7dd31e643c758b35c41aafc815f844cfb12f4fb3edeba6cbf17a08f56fc"}},{"ruleId":"D1","level":"warning","message":{"text":"_MaterialHeaderState.build (cyclomatic 30): _MaterialHeaderState.build has cyclomatic complexity 30 (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":"lib/app/layouts/conversation_list/widgets/header/material_header.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57e82ff7486d7eb579035f5eea97f77e570dbecd9e3a0a88ee269b01002019a"}},{"ruleId":"D1","level":"warning","message":{"text":"ManualMarkState.build (cyclomatic 30): ManualMarkState.build has cyclomatic complexity 30 (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":"lib/app/layouts/conversation_view/widgets/header/header_widgets.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bd2c2645a7af104724fca34296b9012a613fce52fc4310ebcc02f9e86c3667"}},{"ruleId":"D1","level":"warning","message":{"text":"SyncActions._syncMessagesInTx (cyclomatic 30): SyncActions._syncMessagesInTx has cyclomatic complexity 30 (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":"lib/services/backend/actions/sync_actions.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb85b8f6e9cf802c8a7d1cbb8a565679932b7cfe32068de72e87b7661a98ec7"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatCreatorController.sendMessage (cyclomatic 29): ChatCreatorController.sendMessage has cyclomatic complexity 29 (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":"lib/app/layouts/chat_creator/chat_creator_controller.dart"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"9254e64a33ccf53897f5a8d5257bae3c50d4854717abbcc4e3201a4b0ff5aeac"}},{"ruleId":"D1","level":"warning","message":{"text":"ExpressiveChatOptions._buildConversationGroup (cyclomatic 29): ExpressiveChatOptions._buildConversationGroup has cyclomatic complexity 29 (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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb9c689ad21d4c8fc17a5ce6f0599f78d05d23c6a692918aaf08f78b3ef7b29"}},{"ruleId":"D1","level":"warning","message":{"text":"_VideoPlayerState.build (cyclomatic 29): _VideoPlayerState.build has cyclomatic complexity 29 (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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"90dd1b78b621d4c121264193723e60adc46b30e8c6da202cf5fa63bcc67e653d"}},{"ruleId":"D1","level":"warning","message":{"text":"_AttachmentPanelState.build (cyclomatic 29): _AttachmentPanelState.build has cyclomatic complexity 29 (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":"lib/app/layouts/settings/pages/message_view/attachment_panel.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9664fd2a8dd18a02a78e5941ffdc2cfcf94f6da6e120b3a16f0753a6af50b1d2"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatActions.bulkSyncChats (cyclomatic 29): ChatActions.bulkSyncChats has cyclomatic complexity 29 (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":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8106004a8db41191ff658dab300df61eb7507ce67ad6fbe6beda8c7137ae39a"}},{"ruleId":"D1","level":"warning","message":{"text":"Share.location (cyclomatic 29): Share.location has cyclomatic complexity 29 (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":"lib/utils/share.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c3dce56792e8ca019b7e5d4e924c6b8d10f9709becee67a3cfab2b72c834010"}},{"ruleId":"D1","level":"warning","message":{"text":"LivePhotoMixin.handleLivePhotoTap (cyclomatic 28): LivePhotoMixin.handleLivePhotoTap has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/attachment/live_photo_mixin.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"12a99996224855908fbe243768d2c0d9a1e01c1916b49d6eb38cb285301f3505"}},{"ruleId":"D1","level":"warning","message":{"text":"_BubbleEffectsState.build (cyclomatic 28): _BubbleEffectsState.build has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/misc/bubble_effects.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23dabab2ca7768d92c9b31eecf819e9e346b247d61c044875c6b0f467b29e8e"}},{"ruleId":"D1","level":"warning","message":{"text":"IncomingMessageHandler._replaceAttachments (cyclomatic 28): IncomingMessageHandler._replaceAttachments has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/incoming_message_handler.dart"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74e19136a7cfcf4693bbe09ba0d23fa95c727a73ab8e17734ee46fbda37c227"}},{"ruleId":"D1","level":"warning","message":{"text":"HandleSyncManager.start (cyclomatic 28): HandleSyncManager.start has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/sync/handle_sync_manager.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecac8dd68f2f3b76e2904ec5405e2c929182720ee3c571184b27cbbaaed49e55"}},{"ruleId":"D1","level":"warning","message":{"text":"_MediaGalleryCardState.build (cyclomatic 27): _MediaGalleryCardState.build has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/media_gallery_card.dart"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af7e7049e063b12b19fd09f774f9620533e344b9c528ab7d73f98286f16df32"}},{"ruleId":"D1","level":"warning","message":{"text":"MaterialHeader.build (cyclomatic 27): MaterialHeader.build has cyclomatic complexity 27 (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":"lib/app/layouts/conversation_view/widgets/header/material_header.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c9eea1145a6efe17209e6f17214c9d9196f85f811a6c8107431d238fe5a93c"}},{"ruleId":"D1","level":"warning","message":{"text":"_ImageViewerState.build (cyclomatic 27): _ImageViewerState.build has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a6e5195a97bd423556bf4b04d067767539ed52da7868dbd14da3cabb03e062"}},{"ruleId":"D1","level":"warning","message":{"text":"_SendAnimationState.send (cyclomatic 27): _SendAnimationState.send has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/send_animation.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9ebf217d1dea47921ad8ad56eb9a9da69895f0adbc2b016816251f3644436a"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationTextFieldState.sendMessage (cyclomatic 27): ConversationTextFieldState.sendMessage has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"6829b50ab181d0b545842f3c59587dbfd8e4f5ba6c8ab4348199e04c587fce30"}},{"ruleId":"D1","level":"warning","message":{"text":"_PrivateAPIPanelState.build (cyclomatic 27): _PrivateAPIPanelState.build has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/advanced/private_api_panel.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d937f6fde181fb8d1a9acc9d3d3df75622406feee0abb8edc0b6d6604ec05cde"}},{"ruleId":"D1","level":"warning","message":{"text":"ActionHandler.handleEvent (cyclomatic 27): ActionHandler.handleEvent has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/action_handler.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"3800f37bdb1290691a92287bd3f982257e1398d09cd1fe77b9f29c6fabb9eb4b"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatActions.saveChat (cyclomatic 27): ChatActions.saveChat has cyclomatic complexity 27 (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":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"675eb369d70d669bbbdda6499e5687f3afad9a57fa79e35581279c397bf8d7f9"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatsService.getFilteredChats (cyclomatic 27): ChatsService.getFilteredChats has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9c1c2cb156420f324acf5f6f7b683ae7a79349b76f30acfaa0116ced2b7652"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatOptionsState._buildConversationGroup (cyclomatic 26): _ChatOptionsState._buildConversationGroup has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/chat_options.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b03c5bfbe014993a1594666b7729df6810ed21c0b1bdb40cfbed48c7852e241"}},{"ruleId":"D1","level":"warning","message":{"text":"_SupportedInteractiveState.build (cyclomatic 26): _SupportedInteractiveState.build has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0917c5c989c82c66ac85cd7a55e293c007876efef954eb3811c9b05ac0a00d6"}},{"ruleId":"D1","level":"warning","message":{"text":"_ReplyBubbleState.build (cyclomatic 26): _ReplyBubbleState.build has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0934aa30509025d69523f2432c645bc2da6f6e149fe36ae247e746c188d76478"}},{"ruleId":"D1","level":"warning","message":{"text":"_RecordingButton.build (cyclomatic 26): _RecordingButton.build has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/text_field_suffix.dart"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"2394ae4d235163dc87b77bff1013e0c5ea0108e49b400389749f202ec2ceff5d"}},{"ruleId":"D1","level":"warning","message":{"text":"Settings.updateFromMap (cyclomatic 26): Settings.updateFromMap has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/global/settings.dart"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"22a70d6cfafbfa6b7b680d1fc410b9787935037642e22ba602ae1d6b993d6217"}},{"ruleId":"D1","level":"warning","message":{"text":"ExpressiveChatHeader._buildActions (cyclomatic 25): ExpressiveChatHeader._buildActions has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/material/material_chat_header.dart"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f5bcc6d20aece8ebef4ea87056bc344789bfb75f140c73917395f34fc33c1a"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatSubtitleState.build (cyclomatic 25): _ChatSubtitleState.build has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/tile/conversation_tile.dart"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"538034ad929f7273ba31d5c44ef8799459289613485c69c35dd5498f9fbbef53"}},{"ruleId":"D1","level":"warning","message":{"text":"ListItem.slideBackground (cyclomatic 25): ListItem.slideBackground has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/tile/list_item.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5984b579eb2c8d8e1c85b3e960580a821117775d59d15d3791795059d13141b"}},{"ruleId":"D1","level":"warning","message":{"text":"MessagesViewState.initState (cyclomatic 25): MessagesViewState.initState has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/pages/messages_view.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6d66b9c6463618bd9eb8b2e189edfdba0fdcd396593e5c1d602eb697c68cc0"}},{"ruleId":"D1","level":"warning","message":{"text":"MessagesViewState.build (cyclomatic 25): MessagesViewState.build has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/pages/messages_view.dart"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"08094782551e6d6a6e4eacd276de20ecedceef6c3b79a13ef0aa7b470e7839ee"}},{"ruleId":"D1","level":"warning","message":{"text":"_EditModeTextField.build (cyclomatic 25): _EditModeTextField.build has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"749554d1616a29c4ac6c8f5e5501093bb9567d8fce294260edbf6d53e73efc83"}},{"ruleId":"D1","level":"warning","message":{"text":"ReactionWidgetState.build (cyclomatic 25): ReactionWidgetState.build has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/reaction/reaction.dart"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"797b3264f99ce2c3ce8c8f3618064dd3f7fc1ae70c505c8e4de71be9e5648564"}},{"ruleId":"D1","level":"warning","message":{"text":"_BackupRestorePanelState._createSettingsBackup (cyclomatic 25): _BackupRestorePanelState._createSettingsBackup has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"8580976e8197acd1a2abd20f86abea6be0876fbe9359e71081173aa7e73b4f67"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSyncManager.start (cyclomatic 25): ChatSyncManager.start has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"86bfe8f3ca7ddd9108a36a5a018c8f129504fa548c477f13a2ac755814674931"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentsService.saveAllToDisk (cyclomatic 25): AttachmentsService.saveAllToDisk has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/attachments_service.dart"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff5f23f00769573e8d18a300f0cb9aab0917355fee876dd8c1185bab3219cbb"}},{"ruleId":"D1","level":"warning","message":{"text":"MessagesService.loadChunk (cyclomatic 25): MessagesService.loadChunk has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"e179b3083913d59ab8e1ff98beb3c957d57779cd2205ae5692e53072aabd7d12"}},{"ruleId":"D1","level":"warning","message":{"text":"MentionTextEditingController.shiftRuns (cyclomatic 24): MentionTextEditingController.shiftRuns has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c2972c069c3365de3b7874242442943bc8c7d7ade07ca2ca170ec044e632d3"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatCreatorState.findExistingChat (cyclomatic 24): ChatCreatorState.findExistingChat has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"3186a4163e6bac64d83af36d62d43df3d0776a8654df65c77d0a26d50afdb65d"}},{"ruleId":"D1","level":"warning","message":{"text":"_AttachmentHolderState.build (cyclomatic 24): _AttachmentHolderState.build has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/attachment/attachment_holder.dart"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec3cb4c2ece37f5b6abd337e70fdb2b4c01debb2266885d138dd0d1b0f7eb28"}},{"ruleId":"D1","level":"warning","message":{"text":"_PhotoSlideshowState.build (cyclomatic 24): _PhotoSlideshowState.build has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/photo_slideshow.dart"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a0d7768dda63a8359081f9c47159877c0becad5e54f30c58f3a555abd43c8e"}},{"ruleId":"D1","level":"warning","message":{"text":"TextFieldMatchHelper.processMentionMatches (cyclomatic 24): TextFieldMatchHelper.processMentionMatches has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/helpers/text_field_match_helper.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bf99381cef65f6953ecb8433e1375eec4a396fe03f298961b0f20ad63b3d0e"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageState.buildMessageParts (cyclomatic 24): MessageState.buildMessageParts has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/state/message_state.dart"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62efe52691221bb50dc296a7702b2ab22aec3aabcc37dfc344e7082f227dc3a"}},{"ruleId":"D1","level":"warning","message":{"text":"NotificationsService._buildAndShowToast (cyclomatic 24): NotificationsService._buildAndShowToast 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":"lib/services/backend/notifications/notifications_service.dart"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd49592c64439c5d939c6a8728e98bc7cbcf880a4b3718dc82d3777f3f95c835"}},{"ruleId":"D1","level":"warning","message":{"text":"MentionTextEditingController.value (cyclomatic 23): MentionTextEditingController.value has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"7086ff13d450ae24c0df79d25065d988a1c381c50755904fcbf47eba6a518627"}},{"ruleId":"D1","level":"warning","message":{"text":"_TextBubbleState.build (cyclomatic 23): _TextBubbleState.build has cyclomatic complexity 23 (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":"lib/app/layouts/conversation_view/widgets/message/text/text_bubble.dart"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"4403bf63d01a11988cd92e828267ab27e5bdc16e79c5261217f22533450a24d1"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageState.attributedBodyToMessagePart (cyclomatic 23): MessageState.attributedBodyToMessagePart 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":"lib/app/state/message_state.dart"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fed415043de39b18dc22a7bdc7ac69e549191ab6f899d96240475a97d7e4fc"}},{"ruleId":"D1","level":"warning","message":{"text":"LifecycleService.close (cyclomatic 23): LifecycleService.close 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":"lib/services/backend/lifecycle/lifecycle_service.dart"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbd5a4d6b2cca77c2eb5b8d07938c856a885a4e7fed52ddfaf155fa48d9c22c"}},{"ruleId":"D1","level":"warning","message":{"text":"_HomeState.initState (cyclomatic 22): _HomeState.initState has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3a504ab1cb4f946697862eaebb24efbae937715f317cd94c8937fa75a3f781"}},{"ruleId":"D1","level":"warning","message":{"text":"_CupertinoScheduledMessagesPanelState.build (cyclomatic 22): _CupertinoScheduledMessagesPanelState.build has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd62b3ebdd8b9e322392e9df49a063e978cedb3ac4044745d63a2b6e5a3fefb5"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageActions.saveMessageAsync (cyclomatic 22): MessageActions.saveMessageAsync has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/message_actions.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0cfd1c23b0efc2b1b03ca4a7994d4ea2603bb43c78837f9e884d0b5691b8b02"}},{"ruleId":"D1","level":"warning","message":{"text":"MentionTextEditingController.buildTextSpan (cyclomatic 21): MentionTextEditingController.buildTextSpan 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":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d74eaa504ee6a46a106214414c5307f15f322ccc131316dc770dbe51b709bf"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatCreatorController.findExistingChat (cyclomatic 21): ChatCreatorController.findExistingChat 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":"lib/app/layouts/chat_creator/chat_creator_controller.dart"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8af0caa0a0aaee332220d9f4f1f3f402c948e27ceecf9e01c45c505010389f1"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatSelectorViewState.build (cyclomatic 21): ChatSelectorViewState.build 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":"lib/app/layouts/chat_selector_view/chat_selector_view.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"009d9abc4698e3c9c91f1363377c1054771e88af52531b251523ca789bb23047"}},{"ruleId":"D1","level":"warning","message":{"text":"_BalanceDriftSection._build (cyclomatic 21): _BalanceDriftSection._build 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":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd17df428c132fd98099f8b5f5fdbc7dd1a270f6a11ac87a035ef68b160fcb36"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatOptionsState._buildContentGroup (cyclomatic 21): _ChatOptionsState._buildContentGroup 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":"lib/app/layouts/conversation_details/widgets/chat_options.dart"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"625e386b0d28ba3ea0143d6962fc681094a2fc23888b9e3d2e1931f265476d91"}},{"ruleId":"D1","level":"warning","message":{"text":"_SamsungHeaderState.build (cyclomatic 21): _SamsungHeaderState.build has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/header/samsung_header.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc82911a8a6441c027119cc899d91c0974af37a8f6ce36ab0850fd4ba67e5e74"}},{"ruleId":"D1","level":"warning","message":{"text":"CupertinoUrlPreview._buildHero (cyclomatic 21): CupertinoUrlPreview._buildHero has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/cupertino_url_preview.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea742045f249d4e7f9de348c3bce5bac2867c975d74f6f1572edb8d24811da78"}},{"ruleId":"D1","level":"warning","message":{"text":"Message.save (cyclomatic 21): Message.save 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":"lib/database/io/message.dart"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3f50dc4b78b1ccaa0af9282823bad07190690c212c91fc5fe4c109e97ce619"}},{"ruleId":"D1","level":"warning","message":{"text":"SocketIOForegroundService.onCreate (cyclomatic 21): SocketIOForegroundService.onCreate has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/foreground/SocketIOForegroundService.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"146692d24f5e4f76a130974629353e86cb052518861298318312a5424d1ee726"}},{"ruleId":"D1","level":"warning","message":{"text":"Main.build (cyclomatic 20): Main.build has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5f3d28846b552ad1d43750a9b9f9359982d46c26d40d2eddbc144b01e9c1f0"}},{"ruleId":"D1","level":"warning","message":{"text":"ExpressiveChatOptions._downloadTranscript (cyclomatic 20): ExpressiveChatOptions._downloadTranscript has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb3c3ad39aec02661718909f07e58065b4e92fb97829aa3c2ff6f173d7f84bb9"}},{"ruleId":"D1","level":"warning","message":{"text":"_ParticipantsListState.build (cyclomatic 20): _ParticipantsListState.build has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/participants_list.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77107fe56d2af28d053435afbd5a3f4ede11a24f541c0f3eb4e3dca1e58ed47"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScreenEffectsWidgetState.initState (cyclomatic 20): _ScreenEffectsWidgetState.initState has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbd3ada37944e8dfc337744dcfe1266536464f9e11616455a299f4de8b49c65"}},{"ruleId":"D1","level":"warning","message":{"text":"UrlPreviewController._loadMessagePreview (cyclomatic 20): UrlPreviewController._loadMessagePreview has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/url_preview_controller.dart"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8d7ca475547ccd85c3e89c79a4661c4685c640d697046f5a8c9b514c01a7aa"}},{"ruleId":"D1","level":"warning","message":{"text":"MessagePartWrapper.build (cyclomatic 20): MessagePartWrapper.build 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":"lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"7be2d64c6d1efd3a11861ad6e405a80674e9f4043bcab2cf096fb181afd93d73"}},{"ruleId":"D1","level":"warning","message":{"text":"FindMyFriendListTile.build (cyclomatic 20): FindMyFriendListTile.build 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":"lib/app/layouts/findmy/widgets/findmy_friend_list_tile.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc3414db4706159215c74730411da279f85c1862f29730c3a3f229190fb9052"}},{"ruleId":"D1","level":"warning","message":{"text":"CupertinoContactsManagementPanel.build (cyclomatic 20): CupertinoContactsManagementPanel.build has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/contacts/cupertino_contacts_management_panel.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8b4005f2d245cf2cf811943751b30302783b53f463f8f2a209077959b76760"}},{"ruleId":"D1","level":"warning","message":{"text":"_MaterialScheduledMessagesPanelState.build (cyclomatic 20): _MaterialScheduledMessagesPanelState.build has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"3784897ada861f1bdc0e8c9c0938c9d29ee0a29573a71e91fe4671a1e0e300b2"}},{"ruleId":"D1","level":"warning","message":{"text":"_SamsungScheduledMessagesPanelState.build (cyclomatic 20): _SamsungScheduledMessagesPanelState.build has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b82fde76db72f6ebf0f83f8ad1328b6123d0462492f437736062d78a0770f78"}},{"ruleId":"D1","level":"warning","message":{"text":"_AdvancedThemingTileState.build (cyclomatic 20): _AdvancedThemingTileState.build has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/widgets/content/advanced_theming_tile.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9b8c5ac1fd51ec41a5333452e726f85c6715c22254778c68285b3be0380b34"}},{"ruleId":"D1","level":"warning","message":{"text":"UrlSafetyGuard._isPrivateV4 (cyclomatic 20): UrlSafetyGuard._isPrivateV4 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":"lib/helpers/network/metadata/network/url_safety_guard.dart"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b0e303036600b141a0a6ce232dbbf1dbd432aa81df658b362df73c32a43df91"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentDownloadController.fetchAttachment (cyclomatic 20): AttachmentDownloadController.fetchAttachment 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":"lib/services/network/downloads_service.dart"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdca744060e9a6237c5a6453e915fa25cbf50d71d39620930d07a05626a3eb32"}},{"ruleId":"D1","level":"warning","message":{"text":"MessagesService.loadAttachmentContent (cyclomatic 20): MessagesService.loadAttachmentContent has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95e6515dc694f0b12fbf5d7e76309494852c89c77d24e63580e9264b8e7f46d"}},{"ruleId":"D1","level":"warning","message":{"text":"ThemesService.materialYouDisplayName (cyclomatic 20): ThemesService.materialYouDisplayName 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":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"252f552467489bb1448f87cb2ee074649b7a749d1f2f1a977e654550bc9ff337"}},{"ruleId":"D1","level":"warning","message":{"text":"LaserController.update (cyclomatic 19): LaserController.update has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/laser_classes.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"de8d63a63e6938da622a2329ab9bb20cd750fa4f5d723fa4899305f5b52e34ea"}},{"ruleId":"D1","level":"warning","message":{"text":"_ConversationListState.initState (cyclomatic 19): _ConversationListState.initState has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/pages/conversation_list.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad0b4f4ed9b8bcb977ec29f597d6d294ac69d141ce613f53b384d41f7760a8e"}},{"ruleId":"D1","level":"warning","message":{"text":"_SamsungConversationListState.build (cyclomatic 19): _SamsungConversationListState.build 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":"lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"57baae25319167d2e2ee082c8cced788823e11ba4c44e768aa3e12f72bc0b714"}},{"ruleId":"D1","level":"warning","message":{"text":"CupertinoHeader.build (cyclomatic 19): CupertinoHeader.build has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/header/cupertino_header.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c01bf2d42693f27a98d4088005f279efaeb8f86e28b5a7b4e85152513017c9"}},{"ruleId":"D1","level":"warning","message":{"text":"PinnedTileTextBubbleState.build (cyclomatic 19): PinnedTileTextBubbleState.build 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":"lib/app/layouts/conversation_list/widgets/tile/pinned_tile_text_bubble.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc7884914aa2946d546a81d3d2bf34263ff122db646f021680c0665d4b5087c"}},{"ruleId":"D1","level":"warning","message":{"text":"_EmbeddedMediaState.build (cyclomatic 19): _EmbeddedMediaState.build has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/embedded_media.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ed3f63ca7e68409aa86a2242271de37191402b7291c997b645237801f5652d7"}},{"ruleId":"D1","level":"warning","message":{"text":"_PhotoSlideshowState._resolvePreviewImage (cyclomatic 19): _PhotoSlideshowState._resolvePreviewImage has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/photo_slideshow.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d71604b84359df9d066b55e0690be8ce96fec24794dafd8ead78002623c9b5"}},{"ruleId":"D1","level":"warning","message":{"text":"_TextBubbleState._scheduleRunVisibilityCheck (cyclomatic 19): _TextBubbleState._scheduleRunVisibilityCheck 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":"lib/app/layouts/conversation_view/widgets/message/text/text_bubble.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0993f6ed8bfcbbe04f3be81a2821f860564ff5901c2ae8139fd96d207c9114"}},{"ruleId":"D1","level":"warning","message":{"text":"_PickedAttachmentState.build (cyclomatic 19): _PickedAttachmentState.build has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/picked_attachment.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcbeeb6f0dd48ca16dafe2d9a44152ecce00be0f8927384f5ed7ec70a34ecb05"}},{"ruleId":"D1","level":"warning","message":{"text":"FindMyController.resolveFriendAddress (cyclomatic 19): FindMyController.resolveFriendAddress has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/findmy/findmy_controller.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb259b0a36e6921600a3336eaaedf186fc9022cb52b5de38758f9527d049572"}},{"ruleId":"D1","level":"warning","message":{"text":"ContactsExpressiveBody.build (cyclomatic 19): ContactsExpressiveBody.build 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":"lib/app/layouts/settings/pages/contacts/widgets/contacts_expressive_body.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad326c60151c04b432ef41da4a3431a2f3d1596d4af58b7f6b70f7ac1e517a5"}},{"ruleId":"D1","level":"warning","message":{"text":"_HandleAuditPanelState._remediateAll (cyclomatic 19): _HandleAuditPanelState._remediateAll has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/misc/handle_audit_panel.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aff22c331263d139c86547d104741753ee16c924311dc901d4692ddffbc1728"}},{"ruleId":"D1","level":"warning","message":{"text":"_HandleAuditPanelState.build (cyclomatic 19): _HandleAuditPanelState.build has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/misc/handle_audit_panel.dart"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e10f5e3dd004145e5e761cc02e8af4c47ef65bfda7b60fe37e65c5f42634cc6"}},{"ruleId":"D1","level":"warning","message":{"text":"Message.buildGroupEventText (cyclomatic 19): Message.buildGroupEventText 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":"lib/database/io/message.dart"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"f027b42d3b5f2bf9b35783492a92c6b259695a42d271078188d81228e54add49"}},{"ruleId":"D1","level":"warning","message":{"text":"HtmlStructureGuard.maxNestingDepth (cyclomatic 19): HtmlStructureGuard.maxNestingDepth has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/network/metadata/parsing/html_structure_guard.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c627c508b1d51c89cafdcc26ad0a5f7d6a46d92d14b6ed1d9602666f43538b"}},{"ruleId":"D1","level":"warning","message":{"text":"NotificationsService.createNotification (cyclomatic 19): NotificationsService.createNotification has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/notifications/notifications_service.dart"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b7b3ed3b5c31ceb387ca5397a5a4cf813d95b9adad4ac38bbd7e1c671f6d4d8"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentsService._loadImageProperties (cyclomatic 19): AttachmentsService._loadImageProperties has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/attachments_service.dart"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece1d1d5f0c6f08dd83e114ec1478f7ecb069b82dfc8bf4ebc0e2aa839ad614c"}},{"ruleId":"D1","level":"warning","message":{"text":"MessagesService._recomputeDeliveredIndicators (cyclomatic 19): MessagesService._recomputeDeliveredIndicators has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f3eb772e188313d47acd53befb19cc8e117ba68329e3d99b581e009aca04fb"}},{"ruleId":"D1","level":"warning","message":{"text":"ThemesService.materialYouSortOrder (cyclomatic 19): ThemesService.materialYouSortOrder has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"23274247ccfebb225b0600ac43b96120aad643137ee1058b57c6d948430cee45"}},{"ruleId":"D1","level":"warning","message":{"text":"MentionTextEditingController._restyleSelection (cyclomatic 18): MentionTextEditingController._restyleSelection has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9a0853c6c97dfeb9cf4d6eb7eb9aa7312a009aa5973e3fb0f915fa98af6788"}},{"ruleId":"D1","level":"warning","message":{"text":"ResolvedFileContent.build (cyclomatic 18): ResolvedFileContent.build 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":"lib/app/layouts/conversation_view/widgets/message/attachment/parts/resolved_file_content.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"823cb6cae52e284235b1280e0058273dba877f4fa6312db4eb6e3bfebadca252"}},{"ruleId":"D1","level":"warning","message":{"text":"MessagePartContent.build (cyclomatic 18): MessagePartContent.build 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":"lib/app/layouts/conversation_view/widgets/message/misc/message_part_content.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cadd32043c05a8d4e79a1a15bd7e073047dcfbe016968c8b3b4728f69185df1"}},{"ruleId":"D1","level":"warning","message":{"text":"FormattingBar.build (cyclomatic 18): FormattingBar.build has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/formatting_bar.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c157478be621683ae480eb2cfaf7a34a118c9eb1407021b628e50da554af88f6"}},{"ruleId":"D1","level":"warning","message":{"text":"MentionAutocompleteHandler.handleKeyEvent (cyclomatic 18): MentionAutocompleteHandler.handleKeyEvent 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":"lib/app/layouts/conversation_view/widgets/text_field/handlers/mention_autocomplete_handler.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc92aa09d47283a562f343d4aee3f2872251d47e9fda569b0a35462d823050e"}},{"ruleId":"D1","level":"warning","message":{"text":"_ReplyText.build (cyclomatic 18): _ReplyText.build has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/reply_holder.dart"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2c0d41f689f1b2acbd6141072c545e4b604013426f3792c19b014ce1807f2de"}},{"ruleId":"D1","level":"warning","message":{"text":"_RenderEffectGlyphs.paint (cyclomatic 18): _RenderEffectGlyphs.paint 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":"lib/app/layouts/conversation_view/widgets/text_field/text_effect_overlay.dart"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"b923dac91041109151becfd4e3afeb7adf0f1eabd8ada04af3aace822083d001"}},{"ruleId":"D1","level":"warning","message":{"text":"_TextFieldSuffixState.build (cyclomatic 18): _TextFieldSuffixState.build 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":"lib/app/layouts/conversation_view/widgets/text_field/text_field_suffix.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d616adecb9fa723f1718d9e9e004de3f8e6193fa65c181e1bb93751db36345b"}},{"ruleId":"D1","level":"warning","message":{"text":"Message.buildGroupEventText (cyclomatic 18): Message.buildGroupEventText has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"3468ffb26f1ef4d54e2a9cb5a4540c7b0818a1499d1e58b8d3170f7d7071a850"}},{"ruleId":"D1","level":"warning","message":{"text":"Message.fromMap (cyclomatic 18): Message.fromMap 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":"lib/database/io/message.dart"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5968a9c71a168d5eb2574714430dadcd570f2123ae329117192d1691822938"}},{"ruleId":"D1","level":"warning","message":{"text":"IncomingMessageHandler._processUpdatedMessage (cyclomatic 18): IncomingMessageHandler._processUpdatedMessage has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/incoming_message_handler.dart"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c12195dc5dbd3d723c5fcb636d28ee7a951e62b41b563fa27ae46c10c6c2d6b"}},{"ruleId":"D1","level":"warning","message":{"text":"AttachmentsService.ensureImageCompatibility (cyclomatic 18): AttachmentsService.ensureImageCompatibility 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":"lib/services/ui/attachments_service.dart"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e3a178bf09addac1463e8967206bde71c2f42c74724844513c7d8c478ed636"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationViewController.onInit (cyclomatic 18): ConversationViewController.onInit has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/chat/conversation_view_controller.dart"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eb2b1fff757d7b7e7639920dbd8a210c6641c4affb13f7a92c8aa01d1f0a79a"}},{"ruleId":"D1","level":"warning","message":{"text":"SpellCheckTextEditingController.value (cyclomatic 17): SpellCheckTextEditingController.value 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":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e66184be3b554019eb29bc529c48be6e520313ffdeb37a39b0135991738792a3"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchResultsList.build (cyclomatic 17): SearchResultsList.build 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":"lib/app/layouts/chat_creator/widgets/search_results_list.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"841baa5f81e27b4755bd95bcb4cb60ed28e3a82d75cce6184244d3afb8eb85e6"}},{"ruleId":"D1","level":"warning","message":{"text":"_VolumeSection._buildSeries (cyclomatic 17): _VolumeSection._buildSeries has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"59bb77e772330685aec8f3d329e514fb9ad881674ab069c76e3ae5e562257cc6"}},{"ruleId":"D1","level":"warning","message":{"text":"StatBarChart.build (cyclomatic 17): StatBarChart.build has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/widgets/charts/bar_chart.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"18fe7ce46ef8616048d4dc4af1013bbbb9f968ada1fa453832bac7df9628c32a"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationViewState.build (cyclomatic 17): ConversationViewState.build has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/pages/conversation_view.dart"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee9b47363bc221644fef9c3175ac4cfdfb4987f0a2c51758d9fc1703115b2b5a"}},{"ruleId":"D1","level":"warning","message":{"text":"_GamePigeonState.build (cyclomatic 17): _GamePigeonState.build 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":"lib/app/layouts/conversation_view/widgets/message/interactive/game_pigeon.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f126683fde8aefff1ace37eab753b08929bff2b07e9893e2539268f187ddf14b"}},{"ruleId":"D1","level":"warning","message":{"text":"_CacheTuningPanelState.build (cyclomatic 17): _CacheTuningPanelState.build 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":"lib/app/layouts/settings/pages/misc/cache_tuning_panel.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc817a68d790048ce47d2f6798c30f23974fbf82ed3e792b8627142de6232d4d"}},{"ruleId":"D1","level":"warning","message":{"text":"_BackupRestorePanelState._createThemeBackup (cyclomatic 17): _BackupRestorePanelState._createThemeBackup 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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fa5324b96d5ecb90ac9a50258a949d1296372c22ba80afc16877bfeb5f7433"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatBackupIdentifier.resolve (cyclomatic 17): ChatBackupIdentifier.resolve 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":"lib/app/layouts/settings/pages/server/chat_backup_identifier.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2a70d07e96ad6efc8e33aedfb0adfda2682b8da9682aaa0994608c9faaae62"}},{"ruleId":"D1","level":"warning","message":{"text":"_ServerCredentialsState.connect (cyclomatic 17): _ServerCredentialsState.connect has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/setup/pages/sync/server_credentials.dart"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"889d3d3b26f0a11145b82955144a43b23f755eea7d0dec01131dbf8da99bc19d"}},{"ruleId":"D1","level":"warning","message":{"text":"Chat.addMessage (cyclomatic 17): Chat.addMessage 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":"lib/database/html/chat.dart"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"35823bc4c423fd383de6f37a39a7471987783052638dc491079531e13036b234"}},{"ruleId":"D1","level":"warning","message":{"text":"Chat.sort (cyclomatic 17): Chat.sort has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/chat.dart"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb313d6c562050f315d58f8e8b34b6a0030dd736aa734a1b6d945dee653a363"}},{"ruleId":"D1","level":"warning","message":{"text":"Chat.sort (cyclomatic 17): Chat.sort has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/chat.dart"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37cb3f64ceace2849c2abfe62bf2151442a8a1f36d7d4d2c23770b137cba807"}},{"ruleId":"D1","level":"warning","message":{"text":"PreviewImageDownloader._download (cyclomatic 17): PreviewImageDownloader._download 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":"lib/helpers/network/metadata/network/preview_image_downloader.dart"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5078835f30c5824561d225805a78c1f7210397b8df2ef1c48640ff79b1cc6db"}},{"ruleId":"D1","level":"warning","message":{"text":"UrlSafetyGuard.isPrivateAddress (cyclomatic 17): UrlSafetyGuard.isPrivateAddress 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":"lib/helpers/network/metadata/network/url_safety_guard.dart"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa2f420909f94b364d18fc5c081d24e746fcdd9d2e406df6ecf6a25a2e2802c"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenPigeon.refresh (cyclomatic 17): OpenPigeon.refresh 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":"lib/services/backend/java_dart_interop/open_pigeon_service.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aea075d5b1b0b748109f3458b03a04d06f1ad1e6ed49383962a622851ef535a"}},{"ruleId":"D1","level":"warning","message":{"text":"OutgoingMessageHandler._matchMessageWithExisting (cyclomatic 17): OutgoingMessageHandler._matchMessageWithExisting 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":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"acee2cdfbeeecca909453f0506c44cbf89593c517313d6fe4884a994beb3010f"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsService.getAppUpdateDict (cyclomatic 17): SettingsService.getAppUpdateDict has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/settings/settings_service.dart"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"395d88794e35e016b94f40ec87a6c9ec0b61b450228bb1bed484644a646e4a0b"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatsService._sortCompare (cyclomatic 17): ChatsService._sortCompare has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88bb374678358feb6d9a5fcfd8d334cf0b254e41932c3ae3fd04cb06140c42a"}},{"ruleId":"D1","level":"warning","message":{"text":"InternalIntentReceiver.onReceive (cyclomatic 17): InternalIntentReceiver.onReceive 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":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/intents/InternalIntentReceiver.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"584c82bd6b3a27fd25f05683274de0e81282d0be59916ae5926c6ada0c9d02af"}},{"ruleId":"D1","level":"warning","message":{"text":"_ResponseTimeSection._build (cyclomatic 16): _ResponseTimeSection._build 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":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"b992375c06c788940e221a972c940da9339903c3095b8da7dd7ea20489cc79e7"}},{"ruleId":"D1","level":"warning","message":{"text":"StatLineChart.build (cyclomatic 16): StatLineChart.build has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/widgets/charts/line_chart.dart"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac816c059bab5b1e76938a893561cf15148bfe72d3b9aca02b61e1e6ed719ba"}},{"ruleId":"D1","level":"warning","message":{"text":"ContactTile._buildTrailing (cyclomatic 16): ContactTile._buildTrailing has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/contact_tile.dart"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc433a8e1bed366b80a9091c45d0e00d804ac272ccc28849e46a618b479bac9f"}},{"ruleId":"D1","level":"warning","message":{"text":"_MediaGridSectionState.build (cyclomatic 16): _MediaGridSectionState.build 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":"lib/app/layouts/conversation_details/widgets/sections/media/media_grid_section.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7443b50bf089e95cdbafa0e606493d417e83eb72abbab1d00ff9335ae2748f2"}},{"ruleId":"D1","level":"warning","message":{"text":"_SamsungFooterState.build (cyclomatic 16): _SamsungFooterState.build 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":"lib/app/layouts/conversation_list/widgets/footer/samsung_footer.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"13809cdcb9a601839173318b8baffdf6182d3dc3c52a227fe9f02488f38e23c0"}},{"ruleId":"D1","level":"warning","message":{"text":"_MaterialConversationTileState.build (cyclomatic 16): _MaterialConversationTileState.build has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e89384a92db7707fc8f6c29e27f5b771154a007d48646fc6a70eb879561e03e7"}},{"ruleId":"D1","level":"warning","message":{"text":"_MaterialTrailingState.build (cyclomatic 16): _MaterialTrailingState.build has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd89c551592fd048c8f8af00d1de6678cd66cbc2c7775df70a6d187d75f357ed"}},{"ruleId":"D1","level":"warning","message":{"text":"PinnedTileTextBubbleState._maybeDownloadPreview (cyclomatic 16): PinnedTileTextBubbleState._maybeDownloadPreview has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/tile/pinned_tile_text_bubble.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d599037ed595ff41f75c0bba124f4308a16da370afd839d2dcd5674adf2aebe"}},{"ruleId":"D1","level":"warning","message":{"text":"TailClipper.getClip (cyclomatic 16): TailClipper.getClip has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/misc/tail_clipper.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"254201a814527c4f3bcf9ad9893b47abaacf92c235c57a2c626f3559889a716c"}},{"ruleId":"D1","level":"warning","message":{"text":"_MessagePopupHolderState.build (cyclomatic 16): _MessagePopupHolderState.build has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup_holder.dart"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53adf3f27abaf629a91199db73522cbbb59d018caccb30e8afc22e69f94ae0e"}},{"ruleId":"D1","level":"warning","message":{"text":"EmojiAutocompleteHandler.handleKeyEvent (cyclomatic 16): EmojiAutocompleteHandler.handleKeyEvent 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":"lib/app/layouts/conversation_view/widgets/text_field/handlers/emoji_autocomplete_handler.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"d442384f80d9843233a61b34aaad9e363f799ce17b4b1864382836e3f42c1419"}},{"ruleId":"D1","level":"warning","message":{"text":"_PickedAttachmentState.load (cyclomatic 16): _PickedAttachmentState.load 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":"lib/app/layouts/conversation_view/widgets/text_field/picked_attachment.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d0f0acee34227b534b0b1d0f50536d61e3bb14b524e7195fd10bcb9f0568fa"}},{"ruleId":"D1","level":"warning","message":{"text":"NotificationSettingsDialog.build (cyclomatic 16): NotificationSettingsDialog.build 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":"lib/app/layouts/settings/dialogs/notification_settings_dialog.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd3bf016379778d87db8fc8f634729bc68f5e8e8a660827cc5aa889b0dce89dd"}},{"ruleId":"D1","level":"warning","message":{"text":"Settings.fromMap (cyclomatic 16): Settings.fromMap has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/global/settings.dart"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8b4645721ce8c188581453e0a6dfb9532f44949022fe8b09e9342b45ae8497"}},{"ruleId":"D1","level":"warning","message":{"text":"Chat.shouldMuteNotification (cyclomatic 16): Chat.shouldMuteNotification 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":"lib/database/io/chat.dart"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f52b2c9b45ae3225b361581629ce372de3399a47959b427b330d97dc133d1a"}},{"ruleId":"D1","level":"warning","message":{"text":"MessageHandleRelationshipMigration._migrateMessageHandleRelationships (cyclomatic 16): MessageHandleRelationshipMigration._migrateMessageHandleRelationships 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":"lib/database/migrations/message_handle_relationship_migration.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b28f6149fc84d14f2f63e1cd8fbac5bab13e215e5d4dd4eac17968a67e4c4da"}},{"ruleId":"D1","level":"warning","message":{"text":"StorageActions.deleteAttachments (cyclomatic 16): StorageActions.deleteAttachments 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":"lib/services/backend/actions/storage_actions.dart"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4610033a5deb0b1e3473fc2316e6f1fde87cf269dc61ab5ee5bb79c0593c73"}},{"ruleId":"D1","level":"warning","message":{"text":"OutgoingMessageHandler._prepItemWithRetry (cyclomatic 16): OutgoingMessageHandler._prepItemWithRetry 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":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"503dbd077d6032f3a4cd047c75663480e37c2614f3f8c0ec590282865dd1dc80"}},{"ruleId":"D1","level":"warning","message":{"text":"OutgoingMessageHandler.sendMultiAttachment (cyclomatic 16): OutgoingMessageHandler.sendMultiAttachment 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":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a2ec9df592b1b1047c6a53bbbcc19366e8e31b6e03a3008e2e7a8f7f85b286"}},{"ruleId":"D1","level":"warning","message":{"text":"DartWorker.runWork (cyclomatic 16): DartWorker.runWork has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/backend_ui_interop/DartWorker.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b577647ecd9c572d523643f1cc5ad1266a6b27afd98d7a7ff6107bb93a43f7bc"}},{"ruleId":"D2","level":"warning","message":{"text":"ContactV2Actions._syncContactsToHandlesInternal (cognitive 243): ContactV2Actions._syncContactsToHandlesInternal has cognitive complexity 243 (threshold 15). Drivers by points: if/else 42 (145 pts), loops 16 (61 pts), ternaries 5 (15 pts), error handling 4 (14 pts), boolean chains 8 (nesting depth added 168). 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":"lib/services/backend/actions/contact_v2_actions.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9296c67226406a68ef50cfd87795d2419be53be25a03570bc2058e360360b759"}},{"ruleId":"D2","level":"warning","message":{"text":"ThemesService.materialYouTheme (cognitive 161): ThemesService.materialYouTheme has cognitive complexity 161 (threshold 15). Drivers by points: ternaries 88 (149 pts), if/else 9, match/switch 3 (nesting depth added 61). 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":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"27bf4f4fc32e318bf18a4f7e14c4f540e14e7c3dc6facda56d02ac15e29b512f"}},{"ruleId":"D2","level":"warning","message":{"text":"_MessageHolderState.build (cognitive 154): _MessageHolderState.build has cognitive complexity 154 (threshold 15). Drivers by points: boolean chains 80, ternaries 33 (47 pts), if/else 21 (26 pts), loops 1 (nesting depth added 19). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/message_holder.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaea2d30e28325c5d9cbfda0e37483d78b75ed90d6bab1340b7a9ae532a52001"}},{"ruleId":"D2","level":"warning","message":{"text":"_ThemingPanelState.build (cognitive 143): _ThemingPanelState.build has cognitive complexity 143 (threshold 15). Drivers by points: if/else 50 (73 pts), ternaries 19 (41 pts), boolean chains 23, error handling 2 (6 pts) (nesting depth added 49). 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":"lib/app/layouts/settings/pages/theming/theming_panel.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"f663660667955540a5defd2c2d1ffba6bb375773394e73a345cb0d557a49da03"}},{"ruleId":"D2","level":"warning","message":{"text":"_ConversationPanelState.build (cognitive 120): _ConversationPanelState.build has cognitive complexity 120 (threshold 15). Drivers by points: if/else 45 (65 pts), ternaries 19 (36 pts), boolean chains 17, loops 1 (2 pts) (nesting depth added 38). 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":"lib/app/layouts/settings/pages/message_view/conversation_panel.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"99861d64509f58142b3206a13ff12ad100291f29a28e9e5b21eb6f8dd17613e2"}},{"ruleId":"D2","level":"warning","message":{"text":"FullSyncManager.start (cognitive 112): FullSyncManager.start has cognitive complexity 112 (threshold 15). Drivers by points: if/else 25 (85 pts), boolean chains 12, loops 3 (10 pts), error handling 2 (5 pts) (nesting depth added 70). 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":"lib/services/backend/sync/full_sync_manager.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"551949d148e3269062cc790eec8638c8361ba023b7947e172ca44c190711d9c0"}},{"ruleId":"D2","level":"warning","message":{"text":"IncrementalSyncManager.syncMessages (cognitive 109): IncrementalSyncManager.syncMessages has cognitive complexity 109 (threshold 15). Drivers by points: if/else 27 (69 pts), boolean chains 22, loops 8 (13 pts), error handling 1 (3 pts), ternaries 1 (2 pts) (nesting depth added 50). 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":"lib/services/backend/sync/incremental_sync_manager.dart"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"f669069b2fc8aa8b3ecb3233d8f7609542cc5b1b84197891d393a5eefb8224e8"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncService.startIncrementalSync (cognitive 104): SyncService.startIncrementalSync has cognitive complexity 104 (threshold 15). Drivers by points: if/else 31 (73 pts), loops 7 (16 pts), boolean chains 10, ternaries 3 (4 pts), error handling 1 (nesting depth added 52). 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":"lib/services/backend/sync/sync_service.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdd841738047189947b8c98964ae59caf97c0681cfb6c8253da8001e3a9b8ec"}},{"ruleId":"D2","level":"warning","message":{"text":"_MessagePopupState.build (cognitive 96): _MessagePopupState.build has cognitive complexity 96 (threshold 15). Drivers by points: ternaries 43 (67 pts), if/else 11 (15 pts), boolean chains 14 (nesting depth added 28). 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":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fa64df9538a0df3b93fec5ca68fe82236c59a72ff7a090759c04cc6cb4608e"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentsService.getContent (cognitive 95): AttachmentsService.getContent has cognitive complexity 95 (threshold 15). Drivers by points: if/else 24 (70 pts), boolean chains 10, error handling 2 (9 pts), loops 1 (6 pts) (nesting depth added 58). 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":"lib/services/ui/attachments_service.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3c292303c06ecffe25b1eea7ac611f5612b543ed3be50ebc3211ab19a77cf4"}},{"ruleId":"D2","level":"warning","message":{"text":"_MiscPanelState.build (cognitive 91): _MiscPanelState.build has cognitive complexity 91 (threshold 15). Drivers by points: if/else 36 (67 pts), ternaries 7 (14 pts), boolean chains 10 (nesting depth added 38). 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":"lib/app/layouts/settings/pages/misc/misc_panel.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"069ecdeb57a267f3b67c993e253fd669e5fb7109fc810ff1207434181ecd0e21"}},{"ruleId":"D2","level":"warning","message":{"text":"_DesktopPanelState.build (cognitive 90): _DesktopPanelState.build has cognitive complexity 90 (threshold 15). Drivers by points: ternaries 35 (49 pts), if/else 21 (26 pts), boolean chains 13, loops 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/desktop/desktop_panel.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e429ddd83ca9d59c0ad20a59878fc02025010b9c4f6a2cdbee17d994918c6e3"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFieldComponentState.build (cognitive 87): TextFieldComponentState.build has cognitive complexity 87 (threshold 15). Drivers by points: boolean chains 33, if/else 25 (33 pts), ternaries 16 (20 pts), loops 1 (nesting depth added 12). 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":"lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa4cd764a24db11d19280b476ee3d76ec3a7d18431f999b5076461b60a8a7e4"}},{"ruleId":"D2","level":"warning","message":{"text":"_ImageViewerState._buildStandardImage (cognitive 85): _ImageViewerState._buildStandardImage has cognitive complexity 85 (threshold 15). Drivers by points: if/else 24 (46 pts), ternaries 15 (36 pts), boolean chains 3 (nesting depth added 43). 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":"lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"f819c4b96afd298abfb8dc24f6eee034e3816ec84fff56e546c4614a86a2b4a1"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationFullscreenHolderState.build (cognitive 85): ConversationFullscreenHolderState.build has cognitive complexity 85 (threshold 15). Drivers by points: if/else 32 (44 pts), ternaries 20 (36 pts), boolean chains 5 (nesting depth added 28). 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":"lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f680f8b74e9db86edfe80fbcd115d221d0ae470e7c561eb62a90f5479c8dda"}},{"ruleId":"D2","level":"warning","message":{"text":"_ServerCredentialsState.build (cognitive 74): _ServerCredentialsState.build has cognitive complexity 74 (threshold 15). Drivers by points: if/else 20 (29 pts), ternaries 14 (29 pts), boolean chains 12, error handling 1 (4 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/setup/pages/sync/server_credentials.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"47be41a1ce0f9856935c7541fcef5fa49071215b18b7e14caaa7e31e7e6c7d46"}},{"ruleId":"D2","level":"warning","message":{"text":"_FirebasePanelState.build (cognitive 71): _FirebasePanelState.build has cognitive complexity 71 (threshold 15). Drivers by points: ternaries 14 (23 pts), boolean chains 22, if/else 17 (21 pts), error handling 3 (5 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/advanced/firebase_panel.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a102dd34b550e83573e5b14c8898e57c0dc5c16a513790872539a1579f32b581"}},{"ruleId":"D2","level":"warning","message":{"text":"_FullscreenImageState.build (cognitive 68): _FullscreenImageState.build has cognitive complexity 68 (threshold 15). Drivers by points: ternaries 16 (39 pts), if/else 14 (24 pts), boolean chains 5 (nesting depth added 33). 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":"lib/app/layouts/fullscreen_media/fullscreen_image.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"942035f24d473faf4f1a3014055b93a9d793cb2f60338d21d0d85e54aedfde38"}},{"ruleId":"D2","level":"warning","message":{"text":"_FullscreenVideoState.build (cognitive 66): _FullscreenVideoState.build has cognitive complexity 66 (threshold 15). Drivers by points: ternaries 25 (46 pts), if/else 8 (11 pts), boolean chains 9 (nesting depth added 24). 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":"lib/app/layouts/fullscreen_media/fullscreen_video.dart"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"2489158cb7db7fee76c7f82b33bba289bd88ab2203ebd738e491ba1b517b9144"}},{"ruleId":"D2","level":"warning","message":{"text":"_SettingsPageState.build (cognitive 65): _SettingsPageState.build has cognitive complexity 65 (threshold 15). Drivers by points: if/else 16 (34 pts), loops 4 (17 pts), boolean chains 12, ternaries 2 (nesting depth added 31). 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":"lib/app/layouts/settings/settings_page.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f5df62e88d6821402233e3332c62cf5707a2d1a5d5bcb25fa3e4c99d2ee7f7"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCreatorState.build (cognitive 64): ChatCreatorState.build has cognitive complexity 64 (threshold 15). Drivers by points: if/else 25 (43 pts), ternaries 10 (13 pts), boolean chains 8 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fedb6c8503c780f2d57d5493f3c01e914c2f9e57c7135a72a5098acb79c18458"}},{"ruleId":"D2","level":"warning","message":{"text":"FindMyController.getLocations (cognitive 64): FindMyController.getLocations has cognitive complexity 64 (threshold 15). Drivers by points: if/else 23 (41 pts), loops 3 (9 pts), boolean chains 8, error handling 2 (4 pts), ternaries 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/findmy/findmy_controller.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e41e2224958e3582e6d328dc7bce3ff87f25619223eb1e62356ab811790c2d"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatListPanelState.build (cognitive 64): _ChatListPanelState.build has cognitive complexity 64 (threshold 15). Drivers by points: if/else 28 (41 pts), boolean chains 17, ternaries 3 (6 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"602cf1c1e50e97ed7843c88d47f5176ab6becb2f429863b5e108cb7b6d3eb96a"}},{"ruleId":"D2","level":"warning","message":{"text":"_OauthPanelState.build (cognitive 64): _OauthPanelState.build has cognitive complexity 64 (threshold 15). Drivers by points: if/else 20 (31 pts), ternaries 10 (25 pts), boolean chains 4, error handling 1 (4 pts) (nesting depth added 29). 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":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"76524afba202a4be27a70bacba2a9c93c12f1097615b54b0706dbf34f92fb498"}},{"ruleId":"D2","level":"warning","message":{"text":"_TroubleshootPanelState.build (cognitive 62): _TroubleshootPanelState.build has cognitive complexity 62 (threshold 15). Drivers by points: if/else 24 (35 pts), error handling 5 (12 pts), ternaries 7 (12 pts), boolean chains 3 (nesting depth added 23). 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":"lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49d3f71aabfc385fa9ec70f8a2982d068783015aadbec882fe2ea1b8d959b1f"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesService.loadChunk (cognitive 62): MessagesService.loadChunk has cognitive complexity 62 (threshold 15). Drivers by points: if/else 13 (41 pts), loops 5 (13 pts), boolean chains 7, error handling 1 (nesting depth added 36). 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":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"34c25bd9fdb7f58d9eca5cfd5ecb0a39be5d48dc0d75f6d8db11d2b82db7e879"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatActions.addMessageToChat (cognitive 61): ChatActions.addMessageToChat has cognitive complexity 61 (threshold 15). Drivers by points: if/else 20 (37 pts), error handling 4 (12 pts), boolean chains 8, loops 1 (4 pts) (nesting depth added 28). 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":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c52792a21e4bbc87eb8bdfa05e89e843baeb23916bb58077086d9441467507"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.merge (cognitive 60): Message.merge has cognitive complexity 60 (threshold 15). Drivers by points: boolean chains 39, if/else 21. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/message.dart"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"515de7a313af7ccc431271147f2ecf2f9230d298e2ea231e52e23536bb490fa0"}},{"ruleId":"D2","level":"warning","message":{"text":"_MessagePopupState._allActions (cognitive 59): _MessagePopupState._allActions has cognitive complexity 59 (threshold 15). Drivers by points: boolean chains 33, if/else 21, ternaries 3 (5 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"27938be6f5cada150bf55a19fb4ffd221cf84f929ea5bdc9e2400aefe18d2dc8"}},{"ruleId":"D2","level":"warning","message":{"text":"LivePhotoMixin.handleLivePhotoTap (cognitive 57): LivePhotoMixin.handleLivePhotoTap has cognitive complexity 57 (threshold 15). Drivers by points: if/else 19 (46 pts), boolean chains 5, error handling 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 30). 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":"lib/app/layouts/conversation_view/widgets/message/attachment/live_photo_mixin.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"db83f925979c9c66ac4ab3045e98c3f75d972d33c880f8483e258d92c1209a1e"}},{"ruleId":"D2","level":"warning","message":{"text":"StartupTasks.onAppResume (cognitive 56): StartupTasks.onAppResume has cognitive complexity 56 (threshold 15). Drivers by points: if/else 18 (35 pts), boolean chains 17, ternaries 2 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/backend/startup_tasks.dart"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b1b9542ffc23bce06c5b0337ef98b9c89adc31dda48b8ab34fec59a3c13474"}},{"ruleId":"D2","level":"warning","message":{"text":"IncomingMessageHandler._replaceAttachments (cognitive 56): IncomingMessageHandler._replaceAttachments has cognitive complexity 56 (threshold 15). Drivers by points: if/else 15 (34 pts), boolean chains 10, ternaries 3 (9 pts), error handling 1 (2 pts), loops 1 (nesting depth added 26). 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":"lib/services/backend/incoming_message_handler.dart"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e830826826269529b58add90d0ede720ec07db1bfc2fa14fac91e0ea0639ec"}},{"ruleId":"D2","level":"warning","message":{"text":"_AdvancedThemingContentState.build (cognitive 55): _AdvancedThemingContentState.build has cognitive complexity 55 (threshold 15). Drivers by points: if/else 27 (30 pts), ternaries 12 (13 pts), boolean chains 6, loops 2 (4 pts), error handling 1 (2 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"38ece3a59edd0f85947f0809c18944139f913f592d72d00916a80c1467a96b65"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.merge (cognitive 55): Message.merge has cognitive complexity 55 (threshold 15). Drivers by points: boolean chains 35, if/else 18 (20 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2810c6cedc6dd967be3b21455b6a1867d95d32c499419e0c9170d5eedd5a52"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatActions.bulkSyncChats (cognitive 55): ChatActions.bulkSyncChats has cognitive complexity 55 (threshold 15). Drivers by points: if/else 15 (37 pts), loops 12 (16 pts), boolean chains 2 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"8450c97aa3118eaec154a4a6933ab268fff88fc2144734b291954fad94cff10d"}},{"ruleId":"D2","level":"warning","message":{"text":"HandleSyncManager.start (cognitive 54): HandleSyncManager.start has cognitive complexity 54 (threshold 15). Drivers by points: if/else 17 (37 pts), boolean chains 8, loops 3 (8 pts), error handling 1 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/sync/handle_sync_manager.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b042db6e763ba97ae0ae8ae1cd338c7f34eec2055c812882fdd20202f19483cb"}},{"ruleId":"D2","level":"warning","message":{"text":"_ContactAvatarWidgetState.build (cognitive 53): _ContactAvatarWidgetState.build has cognitive complexity 53 (threshold 15). Drivers by points: boolean chains 23, ternaries 13 (15 pts), if/else 11 (13 pts), error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/avatars/contact_avatar_widget.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b86753dcdd62b94c88164cf831816a5e0b7629362f9232e247e48c0967d8b7"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyboardShortcutHandler.handleKeyEvent (cognitive 53): KeyboardShortcutHandler.handleKeyEvent has cognitive complexity 53 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 17, ternaries 1 (6 pts) (nesting depth added 19). 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":"lib/app/layouts/conversation_view/widgets/text_field/handlers/keyboard_shortcut_handler.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"59318c4a186851590efc1232784c2431693102f7be6a38b4de23f9f140602bdf"}},{"ruleId":"D2","level":"warning","message":{"text":"Database._performDatabaseMigrations (cognitive 53): Database._performDatabaseMigrations has cognitive complexity 53 (threshold 15). Drivers by points: if/else 11 (32 pts), loops 4 (11 pts), boolean chains 7, match/switch 1 (2 pts), ternaries 1 (nesting depth added 29). 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":"lib/database/database.dart"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb7011e5152e223774c62277d75f9ffb9ca0c27820f47ca5412ebbff5a69582"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCreatorController.sendMessage (cognitive 52): ChatCreatorController.sendMessage has cognitive complexity 52 (threshold 15). Drivers by points: if/else 14 (29 pts), ternaries 5 (10 pts), boolean chains 7, error handling 2 (6 pts) (nesting depth added 24). 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":"lib/app/layouts/chat_creator/chat_creator_controller.dart"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78f78963315cf346346e512a6e9f00052b27c26091397ef35cb0328e973086c"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFieldComponentState.handleKey (cognitive 52): TextFieldComponentState.handleKey has cognitive complexity 52 (threshold 15). Drivers by points: if/else 19 (29 pts), boolean chains 21, match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"0517bfdb22f89755247a488870200021a12d7ef142541cde6ea5e7b4c8b40df7"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionPanelHelpersMixin.buildConnectionSyncSection (cognitive 50): ConnectionPanelHelpersMixin.buildConnectionSyncSection has cognitive complexity 50 (threshold 15). Drivers by points: if/else 19 (27 pts), ternaries 8 (10 pts), boolean chains 9, error handling 2 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8d50c56d1a8514584f4a932b088289d0b60b1835d9315e60a3a391455d91ee"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncActions._syncMessagesInTx (cognitive 50): SyncActions._syncMessagesInTx has cognitive complexity 50 (threshold 15). Drivers by points: if/else 14 (30 pts), loops 7 (10 pts), boolean chains 5, ternaries 2 (3 pts), error handling 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/sync_actions.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd47724b0ea2b79320d9fa84f40845dd2b2c4a3f7bc393b1c4f1c7a85270c2ae"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCreatorController.findExistingChat (cognitive 49): ChatCreatorController.findExistingChat has cognitive complexity 49 (threshold 15). Drivers by points: if/else 14 (33 pts), loops 3 (9 pts), boolean chains 3, error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/chat_creator/chat_creator_controller.dart"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c60af52367906a59459dc5b104a15da95297384742efca60c41c20fd5cab65f"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchViewState.build (cognitive 49): SearchViewState.build has cognitive complexity 49 (threshold 15). Drivers by points: if/else 22 (24 pts), ternaries 12 (19 pts), boolean chains 6 (nesting depth added 9). 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":"lib/app/layouts/conversation_list/pages/search/search_view.dart"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b62c9b21325dd90c0e206eec1639f0f360e7774251dbb236aff63003fe83ee"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSyncManager.start (cognitive 49): ChatSyncManager.start has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 7, error handling 2 (5 pts), loops 2 (5 pts) (nesting depth added 23). 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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9cf4502c2c5d7082915d96f9e610cd04dc1d61fde77ba8441e86c08541cc18"}},{"ruleId":"D2","level":"warning","message":{"text":"_ImageViewerState.build (cognitive 48): _ImageViewerState.build has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (20 pts), ternaries 8 (20 pts), boolean chains 8 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"425ffb2bb7fd6d2d73f3634b9210b0f3f7eaf814feff515f2bd6623ee96e6ae1"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatInfoState.build (cognitive 47): _ChatInfoState.build has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 14, ternaries 5 (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":"lib/app/layouts/conversation_details/widgets/chat_info.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c596ac29ed3c4e37dbec08ae1247d9247c4ef2594961bbcc6a780f341a03eba6"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderRunTextEffects.paint (cognitive 47): RenderRunTextEffects.paint has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (23 pts), loops 6 (10 pts), boolean chains 7, ternaries 3 (7 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/text/run_text_effects.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3fbb87332b22cfdc9a3116b8f3b66a992e6f238d961dd659aca04e6720cca1"}},{"ruleId":"D2","level":"warning","message":{"text":"_HandleAuditPanelState._remediateAll (cognitive 47): _HandleAuditPanelState._remediateAll has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (42 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 28). 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":"lib/app/layouts/settings/pages/misc/handle_audit_panel.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"64b0804fa77d6e411ffa19e859b51d998505ad640948c02c5b88519191a02b5e"}},{"ruleId":"D2","level":"warning","message":{"text":"IncomingMessageHandler._processNewMessage (cognitive 47): IncomingMessageHandler._processNewMessage has cognitive complexity 47 (threshold 15). Drivers by points: if/else 24 (35 pts), boolean chains 10, ternaries 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/incoming_message_handler.dart"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fb18f2a2a9296d91370be7902fce5165e01eb4ab404905caa733af697fe9a04"}},{"ruleId":"D2","level":"warning","message":{"text":"_BubbleEffectsState.build (cognitive 46): _BubbleEffectsState.build has cognitive complexity 46 (threshold 15). Drivers by points: if/else 16 (27 pts), ternaries 10 (18 pts), boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/misc/bubble_effects.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9bce9aabe3f0e34bbfbe93bcdecf033ff46d42a426658fb89321650db952734"}},{"ruleId":"D2","level":"warning","message":{"text":"DownloadingContent.build (cognitive 45): DownloadingContent.build has cognitive complexity 45 (threshold 15). Drivers by points: ternaries 32 (42 pts), if/else 2, boolean chains 1 (nesting depth added 10). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/attachment/parts/downloading_content.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e484e4e247077a38a10706faec2801e5afbf9b086fb725f6213bad2effd2b2a"}},{"ruleId":"D2","level":"warning","message":{"text":"_ProfilePanelState.build (cognitive 44): _ProfilePanelState.build has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 17 (26 pts), if/else 13 (14 pts), boolean chains 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/profile/profile_panel.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a0622ccb634b588132a92ec1f89e5417cc9320f0eb1f96482073c587d124bd0"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageState.attributedBodyToMessagePart (cognitive 44): MessageState.attributedBodyToMessagePart has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 7 (18 pts), if/else 7 (17 pts), boolean chains 8, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/state/message_state.dart"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"6504aef9d838a606f91507646519c4a7ea7db7745de2823ebadb8a682c88c52c"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsScaffold.build (cognitive 43): SettingsScaffold.build has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 13 (22 pts), if/else 10 (12 pts), boolean chains 9 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/widgets/layout/settings_scaffold.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5c778ecb03736857de9fd1038151ad7b84b5988b730c7b70b65b7aa63ffec1"}},{"ruleId":"D2","level":"warning","message":{"text":"MentionTextEditingController.shiftRuns (cognitive 42): MentionTextEditingController.shiftRuns has cognitive complexity 42 (threshold 15). Drivers by points: if/else 10 (24 pts), boolean chains 9, ternaries 2 (6 pts), loops 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a253db15b3c1f48d6c872554ccd002b6731bf1243c7186dc7f31283b4d312b"}},{"ruleId":"D2","level":"warning","message":{"text":"_MediaGalleryCardState.build (cognitive 42): _MediaGalleryCardState.build has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 11 (20 pts), if/else 14 (18 pts), boolean chains 4 (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":"lib/app/layouts/conversation_details/widgets/media_gallery_card.dart"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"177bc52bba5bea5bae81212384ef642dd2f5f72da9720f102a4396e107d86379"}},{"ruleId":"D2","level":"warning","message":{"text":"_MaterialHeaderState.build (cognitive 42): _MaterialHeaderState.build has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (15 pts), ternaries 10 (14 pts), loops 5 (8 pts), boolean chains 5 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/header/material_header.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f7494ba8ecb768f87f46dcbee72d70a459da3f8089875f99441642fff0969a"}},{"ruleId":"D2","level":"warning","message":{"text":"ManualMarkState.build (cognitive 42): ManualMarkState.build has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 14 (16 pts), if/else 9 (14 pts), loops 3 (7 pts), boolean chains 5 (nesting depth added 11). 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":"lib/app/layouts/conversation_view/widgets/header/header_widgets.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"14324ca4e120a5ef725709caf6adcb174935ccd7249438a405803f4cd7a01acb"}},{"ruleId":"D2","level":"warning","message":{"text":"_VideoPlayerState.build (cognitive 42): _VideoPlayerState.build has cognitive complexity 42 (threshold 15). Drivers by points: if/else 11 (19 pts), ternaries 9 (14 pts), boolean chains 9 (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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29998375704cadcd3d959f398996ed3ba261608801f76239637d76291df5745"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionPanelHelpersMixin.buildServerActionsSection (cognitive 42): ConnectionPanelHelpersMixin.buildServerActionsSection has cognitive complexity 42 (threshold 15). Drivers by points: if/else 15 (18 pts), ternaries 11, boolean chains 9, error handling 2 (4 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf45c83efc5ec8a9c252b71e2e18033174eedb304ad8e427ab8d1a3a82d1ddf"}},{"ruleId":"D2","level":"warning","message":{"text":"_NotificationPanelState.build (cognitive 42): _NotificationPanelState.build has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (19 pts), ternaries 10 (15 pts), boolean chains 8 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/system/notification_panel.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"64452b790b4885fca6aa8225780968fa9a5f83392dc8d67c36a0704632b790c2"}},{"ruleId":"D2","level":"warning","message":{"text":"_AttachmentPanelState.build (cognitive 41): _AttachmentPanelState.build has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (22 pts), ternaries 4 (10 pts), boolean chains 9 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/message_view/attachment_panel.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b15ba6767e97e46fe2ff61744deb327de6b342ae83d47edd0afaedf34d45de"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCreatorState.findExistingChat (cognitive 40): ChatCreatorState.findExistingChat has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (29 pts), boolean chains 5, error handling 1 (2 pts), loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"abe9adfa770f48ffc91e3270f66a421181d2c574881612e9b9a33392cc910cc4"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionPanelHelpersMixin.resolveValue (cognitive 40): ConnectionPanelHelpersMixin.resolveValue has cognitive complexity 40 (threshold 15). Drivers by points: if/else 11 (21 pts), ternaries 9 (18 pts), match/switch 1 (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"68561d1e27f488297ade311dd673966fc50cde71e2bada473797ab564e75550a"}},{"ruleId":"D2","level":"warning","message":{"text":"Share.location (cognitive 40): Share.location has cognitive complexity 40 (threshold 15). Drivers by points: if/else 19 (28 pts), boolean chains 8, ternaries 2 (4 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/share.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d185f73c5bac68aab9702a9284eb22de7b7162866cb8da9db13e8f9e7e4f579f"}},{"ruleId":"D2","level":"warning","message":{"text":"_HomeState.initState (cognitive 39): _HomeState.initState has cognitive complexity 39 (threshold 15). Drivers by points: if/else 16 (30 pts), boolean chains 6, error handling 1 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fb9e50135b30503ad958201ff293a142405590cfa63ce302fc0dc65926b486"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpressiveChatOptions._buildConversationGroup (cognitive 39): ExpressiveChatOptions._buildConversationGroup has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14, ternaries 9 (13 pts), boolean chains 12 (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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e1ee07d46e8343bb15a3649127d51c356dab34f3c9fe1d9fc5fb64e1f20bd4"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpressiveChatHeader._buildActions (cognitive 38): ExpressiveChatHeader._buildActions has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (20 pts), ternaries 5 (9 pts), boolean chains 6, error handling 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/material/material_chat_header.dart"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"e414d7c8f4b7b319923b3ae007b5baa9410061231b53160a4c407b44ddfb2d15"}},{"ruleId":"D2","level":"warning","message":{"text":"_InteractiveHolderState.build (cognitive 38): _InteractiveHolderState.build has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 9, ternaries 9, match/switch 2 (4 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/interactive_holder.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"278162d914e1700632d70b9d5a97ce6a565c22a70644b17110d21901bd378ac1"}},{"ruleId":"D2","level":"warning","message":{"text":"_RecordingButton.build (cognitive 38): _RecordingButton.build has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 9, boolean chains 6, error handling 2 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/text_field_suffix.dart"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"48747afe3b2204b6930402d576b26e36d746d44a6bcb0e5143f41fd372b1a760"}},{"ruleId":"D2","level":"warning","message":{"text":"HtmlStructureGuard.maxNestingDepth (cognitive 38): HtmlStructureGuard.maxNestingDepth has cognitive complexity 38 (threshold 15). Drivers by points: if/else 12 (30 pts), boolean chains 4, ternaries 1 (3 pts), loops 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/network/metadata/parsing/html_structure_guard.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4221cab7ad22d2d8a11bd7e972d418ec6d65e1ae5eda98a4925bd38189f74664"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentsService.saveAllToDisk (cognitive 38): AttachmentsService.saveAllToDisk has cognitive complexity 38 (threshold 15). Drivers by points: if/else 14 (24 pts), ternaries 5, boolean chains 4, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/attachments_service.dart"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b2104f8805ac12487d35f495667f645f087913b51527fc667d1b9e83f541c2"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatsService.getFilteredChats (cognitive 38): ChatsService.getFilteredChats has cognitive complexity 38 (threshold 15). Drivers by points: if/else 21 (31 pts), boolean chains 7 (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":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f56a322fd7147d22dda745e34da8de7bbeb57178a981a6803c111ed382a5dc"}},{"ruleId":"D2","level":"warning","message":{"text":"CupertinoConversationListState.build (cognitive 37): CupertinoConversationListState.build has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 14 (16 pts), boolean chains 10, if/else 8, loops 2 (3 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/pages/cupertino_conversation_list.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbf3c5799030568e49111874ceb96c14320037458458d98f104418e968b7182"}},{"ruleId":"D2","level":"warning","message":{"text":"_RenderEffectGlyphs.paint (cognitive 37): _RenderEffectGlyphs.paint has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 3 (6 pts), boolean chains 4, ternaries 1 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/text_effect_overlay.dart"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a3abddd35b533f34a8a084c64658e8943370c71d93b2bd607c0f66747f3a110"}},{"ruleId":"D2","level":"warning","message":{"text":"_BackupRestorePanelState._createSettingsBackup (cognitive 37): _BackupRestorePanelState._createSettingsBackup has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (23 pts), ternaries 4 (8 pts), boolean chains 6 (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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb4493068a4251f69b00bf6c4b2c44a9adf182e18ff78b83ce1541ff5879587"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionHandler.handleEvent (cognitive 37): ActionHandler.handleEvent has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (30 pts), boolean chains 4, error handling 1 (2 pts), match/switch 1 (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/action_handler.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab19934f60a8608b03e9857706c2cc468651d1640ab3309fe59f087150fb791"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatOptionsState._buildConversationGroup (cognitive 36): _ChatOptionsState._buildConversationGroup has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14, ternaries 8 (12 pts), boolean chains 10 (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":"lib/app/layouts/conversation_details/widgets/chat_options.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9067373402e185957e86014112fde4f7c2b8b70fb24e2d191fd10acbc9fc8b0"}},{"ruleId":"D2","level":"warning","message":{"text":"_SendAnimationState.send (cognitive 36): _SendAnimationState.send has cognitive complexity 36 (threshold 15). Drivers by points: ternaries 7 (14 pts), boolean chains 11, if/else 8 (10 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/send_animation.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"34229cd58b7621f4a9df697f70f98ced9e6a6e48865dce75cd93defac3da68ff"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.isNewerThan (cognitive 36): Message.isNewerThan has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 18, if/else 18. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/message.dart"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"80849af70b3f24afa1a3268391d1ed770df565cccbc6c5d7d4cd967955a4bef8"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpressiveChatOptions._downloadTranscript (cognitive 35): ExpressiveChatOptions._downloadTranscript has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 6 (12 pts), loops 3 (7 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dec076c6c10cf61360297ad4776aa92b955888c9a5513ac9b5be824de7ac489"}},{"ruleId":"D2","level":"warning","message":{"text":"_ConversationPeekViewState.buildDetailsMenu (cognitive 35): _ConversationPeekViewState.buildDetailsMenu has cognitive complexity 35 (threshold 15). Drivers by points: ternaries 18 (19 pts), if/else 8 (10 pts), boolean chains 6 (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":"lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccc53f3d7da17d0b1d1770318237295895a8516973b9cb9de4333abea86394c"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesViewState.initState (cognitive 35): MessagesViewState.initState has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 5, error handling 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/pages/messages_view.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"171a6ae65925e081a5d9a5129d4b0a1d76b8eea6f8592bf3863a9c7b4e1cecfd"}},{"ruleId":"D2","level":"warning","message":{"text":"_SupportedInteractiveState.build (cognitive 35): _SupportedInteractiveState.build has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 6, ternaries 2 (4 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":"lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea503018481e8b9243256238de5b25669f1e756d82f7b3bc0efb1213431fe393"}},{"ruleId":"D2","level":"warning","message":{"text":"_PrivateAPIPanelState.build (cognitive 35): _PrivateAPIPanelState.build has cognitive complexity 35 (threshold 15). Drivers by points: if/else 15 (24 pts), ternaries 6, boolean chains 5 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/advanced/private_api_panel.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1648bf935ceb4f59424c78d5ca0c8277e85caf827f0d711902c387e91420d4"}},{"ruleId":"D2","level":"warning","message":{"text":"OutgoingMessageHandler._matchMessageWithExisting (cognitive 35): OutgoingMessageHandler._matchMessageWithExisting has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (25 pts), error handling 3 (7 pts), boolean chains 3 (nesting depth added 17). 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":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0033c0b7b9e433b54cf4a036ed611e095d0aab634df44ff4cc789fc0fc895a"}},{"ruleId":"D2","level":"warning","message":{"text":"SpellCheckTextEditingController.buildMistakeTextSpans (cognitive 34): SpellCheckTextEditingController.buildMistakeTextSpans has cognitive complexity 34 (threshold 15). Drivers by points: if/else 6 (20 pts), ternaries 2 (9 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 23). 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":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"734131c15f577add3333b6070787f68abc427a73e6046c9d67090897660a0d8a"}},{"ruleId":"D2","level":"warning","message":{"text":"_LinksSectionState.build (cognitive 34): _LinksSectionState.build has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (21 pts), ternaries 3 (10 pts), boolean chains 3 (nesting depth added 17). 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":"lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5f89605a05b9d755d49c19636a288e8ea167ef9cebef5a92689fbf8a88045f"}},{"ruleId":"D2","level":"warning","message":{"text":"_MediaGridSectionState.build (cognitive 34): _MediaGridSectionState.build has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (21 pts), ternaries 2 (8 pts), boolean chains 5 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/sections/media/media_grid_section.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ace530101ec88b07914a1284a254d11c690b4692f456c993950cbdda9b9800"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesViewState.build (cognitive 34): MessagesViewState.build has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 8, ternaries 2, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/pages/messages_view.dart"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"135b2f1a8fa780c0679fe3468817ebc1b607f73314266a009cabb7a1f32fde7a"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageState.buildMessageParts (cognitive 34): MessageState.buildMessageParts has cognitive complexity 34 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 8, loops 3 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/state/message_state.dart"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef7ffb9b150b6efc9546c3dec4320f55bcf9759176f5424c86a55f35ac0782c"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageHandleRelationshipMigration._migrateMessageHandleRelationships (cognitive 34): MessageHandleRelationshipMigration._migrateMessageHandleRelationships has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (21 pts), loops 3 (7 pts), boolean chains 5, error handling 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/migrations/message_handle_relationship_migration.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab4eb284aea81b4ab945d34614982ade73bfb3a0898c630269d3bb13c3fc671"}},{"ruleId":"D2","level":"warning","message":{"text":"MentionTextEditingController.buildTextSpan (cognitive 33): MentionTextEditingController.buildTextSpan has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 10 (19 pts), if/else 5 (8 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0726581354cdfce7b2914ba2e29068ef1f3f4918067e7753b60698f3bf23154"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationTextFieldState.sendMessage (cognitive 33): ConversationTextFieldState.sendMessage has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 7, match/switch 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0597ce7e38ddce2be52f5e8c3d565e6e6b49403879ad656cbb1240f4850e22e"}},{"ruleId":"D2","level":"warning","message":{"text":"OutgoingMessageHandler._stageAttachment (cognitive 33): OutgoingMessageHandler._stageAttachment has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (29 pts), error handling 1 (3 pts), boolean chains 1 (nesting depth added 19). 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":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b757e40b072a99b21c3533640ad23af63d1a0fa376ce909d98226db261da83"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentsService._loadImageProperties (cognitive 33): AttachmentsService._loadImageProperties has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 6, error handling 3 (6 pts), ternaries 1 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/attachments_service.dart"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b5a4e1d83bd8a8787bb2db1c56d78f0810d11738529fbde262c354057f13a7"}},{"ruleId":"D2","level":"warning","message":{"text":"_BalanceDriftSection._build (cognitive 32): _BalanceDriftSection._build has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 7 (15 pts), loops 8 (12 pts), if/else 4, boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec1c68cbafc4cf9ec4b334345f3df1ca272fb9b96d04ed2f45ac444f84602fa"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatOptionsState._buildContentGroup (cognitive 32): _ChatOptionsState._buildContentGroup has cognitive complexity 32 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 6 (10 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/chat_options.dart"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"9364b546ebe0064eed241f3189bc5e876b88d55c6cecb669501ca839d056449e"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatSubtitleState.build (cognitive 32): _ChatSubtitleState.build has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 11 (17 pts), boolean chains 11, if/else 3 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/tile/conversation_tile.dart"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"d498d927590f9aca556e98c5b61e1c3d3ed5200bb7f981c491702f04d416bcd6"}},{"ruleId":"D2","level":"warning","message":{"text":"ReactionWidgetState.build (cognitive 32): ReactionWidgetState.build has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 14 (18 pts), if/else 8 (12 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/reaction/reaction.dart"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a795baff3b48255d975b032867214c2ffa60e42f7ff19502549a68db574f04"}},{"ruleId":"D2","level":"warning","message":{"text":"_BackupRestorePanelState._createThemeBackup (cognitive 32): _BackupRestorePanelState._createThemeBackup has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (19 pts), ternaries 4 (8 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46af1f65d8d1065d97b120c7fba8e1ea8652ae0f95a0985c4a9e39e1a846b31"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationsService.createNotification (cognitive 32): NotificationsService.createNotification has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 5 (11 pts), boolean chains 5 (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":"lib/services/backend/notifications/notifications_service.dart"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"89974ab78cdac218b3e7edc9042a247a624476c3079eccb54309933d09df857b"}},{"ruleId":"D2","level":"warning","message":{"text":"_ResponseTimeSection._build (cognitive 31): _ResponseTimeSection._build has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 9 (20 pts), if/else 5 (8 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4244edc0ba818f4de7735fbf00293f2042488549a2e5434668751d458078b4"}},{"ruleId":"D2","level":"warning","message":{"text":"_LocationsSectionState.build (cognitive 31): _LocationsSectionState.build has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 2 (8 pts), boolean chains 3 (nesting depth added 16). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/sections/locations/locations_section.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"f795aa9ebc3a30a532a5789fbe461c1e0337ea23e2a4fdfeaaee111abad0e539"}},{"ruleId":"D2","level":"warning","message":{"text":"_AdvancedThemingTileState.build (cognitive 31): _AdvancedThemingTileState.build has cognitive complexity 31 (threshold 15). Drivers by points: if/else 14 (22 pts), ternaries 8, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/widgets/content/advanced_theming_tile.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b20d636e98039f3a97da6f1192b5a593350a2553258fec218298f9e5d758a75"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatSelectorViewState.build (cognitive 30): ChatSelectorViewState.build has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 9 (15 pts), if/else 9 (12 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/chat_selector_view/chat_selector_view.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"634fb79ffca8ac8697dba6b9cac1bc57dd824de6196fc769a06e0524f694cea0"}},{"ruleId":"D2","level":"warning","message":{"text":"_DocumentsSectionState.build (cognitive 30): _DocumentsSectionState.build has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (21 pts), ternaries 2 (6 pts), boolean chains 3 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fb8a9c58aa7b31803f0985a7af11b8d6207f0da8e2759d050047a2c0e4501b0"}},{"ruleId":"D2","level":"warning","message":{"text":"MaterialHeader.build (cognitive 30): MaterialHeader.build has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (16 pts), ternaries 8 (9 pts), boolean chains 5 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/header/material_header.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5b5749103fdc856aefcb685bdc75c1565603a8d4d026ed6ac8b525badecdea"}},{"ruleId":"D2","level":"warning","message":{"text":"_PhotoSlideshowState.build (cognitive 30): _PhotoSlideshowState.build has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (17 pts), ternaries 4 (8 pts), boolean chains 5 (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":"lib/app/layouts/conversation_view/widgets/message/interactive/photo_slideshow.dart"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ea8696a31c03b89729a0dfee9bbdea5e3a6bff48700c6394706f599c13e598"}},{"ruleId":"D2","level":"warning","message":{"text":"CupertinoContactsManagementPanel.build (cognitive 30): CupertinoContactsManagementPanel.build has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 11 (20 pts), if/else 5 (6 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/contacts/cupertino_contacts_management_panel.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8c5fde040c7819f8492aca3f6218e5be55ab6993ebd24eb7070038d1f51d2d"}},{"ruleId":"D2","level":"warning","message":{"text":"_CupertinoScheduledMessagesPanelState.build (cognitive 30): _CupertinoScheduledMessagesPanelState.build has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 7 (14 pts), if/else 11 (13 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4241048c559fea2df1ab89dba5142dac9b89ceffa33d3c0de2a0c18728688ad"}},{"ruleId":"D2","level":"warning","message":{"text":"_ParticipantsListState.build (cognitive 29): _ParticipantsListState.build has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (12 pts), if/else 8 (10 pts), boolean chains 7 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/participants_list.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dcc1b5f4f7b4c3312bc1c3272315c89730a96a81adc9f848c9b681c285c29eb"}},{"ruleId":"D2","level":"warning","message":{"text":"_HandleAuditPanelState.build (cognitive 29): _HandleAuditPanelState.build has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 9 (16 pts), if/else 7 (10 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/misc/handle_audit_panel.dart"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"9596513210d4a4f15a9f0162adf11ee301bc15dd8f7738736d3bb0344f355f91"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.save (cognitive 29): Message.save has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 4, error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/message.dart"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"1989a7aba690a86b31c1541b922fb2fb449bceef948a85439b5417c866487fc8"}},{"ruleId":"D2","level":"warning","message":{"text":"IntentsService.handleIntent (cognitive 29): IntentsService.handleIntent has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 1 (4 pts), match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/java_dart_interop/intents_service.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82fbd27549c1238ebbd5c7fb0c877a6bf75b96c3be04cf590a35cd90b5d855e"}},{"ruleId":"D2","level":"warning","message":{"text":"GlobalIsolate._handleIsolateMessage (cognitive 29): GlobalIsolate._handleIsolateMessage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 3, error handling 1 (3 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/isolates/global_isolate.dart"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c79b5afd32e16866cc91ba5abde6760f0ca37cbab7a8aac4d8d7b481bf01d2"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalIntentReceiver.onReceive (cognitive 29): InternalIntentReceiver.onReceive has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (23 pts), error handling 1 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/intents/InternalIntentReceiver.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"01703698c60eaa8a47aa58a417149cfb8919f29bdaec57ba7ee56fad841ab0ed"}},{"ruleId":"D2","level":"warning","message":{"text":"Main.build (cognitive 28): Main.build has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 3, ternaries 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5b470f4b5bf998d034a897efb9340c0b42310dca454686b7fe4a3208f421f8"}},{"ruleId":"D2","level":"warning","message":{"text":"_PhotoSlideshowState._resolvePreviewImage (cognitive 28): _PhotoSlideshowState._resolvePreviewImage has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/photo_slideshow.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d67172487b7ea342f5a3338a0d4405cd39593ed8c69680a04d59c22afb4b381e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatActions.saveChat (cognitive 28): ChatActions.saveChat has cognitive complexity 28 (threshold 15). Drivers by points: if/else 24 (26 pts), boolean chains 1, error handling 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1d58ff5a4a6300e60eb0f9a9cdade7a6e2866351e33e6116e3e767fcbada5d"}},{"ruleId":"D2","level":"warning","message":{"text":"LifecycleService.close (cognitive 28): LifecycleService.close has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 10, error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/lifecycle/lifecycle_service.dart"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce42734361eedfa759e5dec956f39419804aa865ea6b0316b35bbb9ddf18b26"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerV2Migrations._backfillStickerPlacement (cognitive 28): ServerV2Migrations._backfillStickerPlacement has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (19 pts), loops 2 (4 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/sync/server_v2_migrations.dart"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe0cd89973c992a7bae1b8153b1b076f16f17c0ba645f1d7a59f885e387e0a5"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentsService.ensureImageCompatibility (cognitive 28): AttachmentsService.ensureImageCompatibility has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5, error handling 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/attachments_service.dart"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"a78fb654080ec31004d14a47f48080827d8d1b3c1284b4c4fc554406d6ec2885"}},{"ruleId":"D2","level":"warning","message":{"text":"ContactServiceV2.fetchNetworkContacts (cognitive 28): ContactServiceV2.fetchNetworkContacts has cognitive complexity 28 (threshold 15). Drivers by points: if/else 5 (17 pts), error handling 2 (6 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/contact_service_v2.dart"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"359933f576bd5262434c1773fcbc6b6e287cc17008954a467b2518c4a37bd5fe"}},{"ruleId":"D2","level":"warning","message":{"text":"LaserController.update (cognitive 27): LaserController.update has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 5 (6 pts), boolean chains 3, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/laser_classes.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76613974fb87ea43bb30138ce2be2b5d4bc105af3764fa8ad6df03a5014e18b"}},{"ruleId":"D2","level":"warning","message":{"text":"_ConversationListState.initState (cognitive 27): _ConversationListState.initState has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 7, ternaries 4 (7 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/pages/conversation_list.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6493fb2d20e6fd1300719bc6e9fb7726d03d257d0e923d93f54b615ea7ae9a00"}},{"ruleId":"D2","level":"warning","message":{"text":"_SamsungFooterState.build (cognitive 27): _SamsungFooterState.build has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 5 (8 pts), ternaries 5 (8 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/footer/samsung_footer.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c74c08023c3aaf916e39b056e515caecb35644f1455e41904ea69bd1de2459a4"}},{"ruleId":"D2","level":"warning","message":{"text":"ListItem.build (cognitive 27): ListItem.build has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (21 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/tile/list_item.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb3dfd86266f959be3429bbbea1a9681eaafcaa7efd0d8079c411714b43f77a"}},{"ruleId":"D2","level":"warning","message":{"text":"_EditModeTextField.build (cognitive 27): _EditModeTextField.build has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 12, if/else 7 (9 pts), boolean chains 6 (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":"lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"54049490332f691d6113fbffa4a8a9c5bca10928f245d5544f6bfa6ae0bc0f8a"}},{"ruleId":"D2","level":"warning","message":{"text":"MentionAutocompleteHandler.handleKeyEvent (cognitive 27): MentionAutocompleteHandler.handleKeyEvent has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 5 (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":"lib/app/layouts/conversation_view/widgets/text_field/handlers/mention_autocomplete_handler.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee3fd6a96c2c50c11a4bc5715b5eaab1d8f2ab6fa2b150e0076300dffc066eb"}},{"ruleId":"D2","level":"warning","message":{"text":"_PickedAttachmentState.build (cognitive 27): _PickedAttachmentState.build has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 5 (6 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":"lib/app/layouts/conversation_view/widgets/text_field/picked_attachment.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"0838bf97a6100804c43c8a8f2efebd43cd1a96a43f598cdac40ebd027fadaad0"}},{"ruleId":"D2","level":"warning","message":{"text":"MessageActions.saveMessageAsync (cognitive 27): MessageActions.saveMessageAsync has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 7, error handling 1, ternaries 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":"lib/services/backend/actions/message_actions.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"00554ad5f7ebe33c23f2a5a3005db11e69316146aa954b2cc90f2f88e907e83a"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageActions.deleteAttachments (cognitive 27): StorageActions.deleteAttachments has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/storage_actions.dart"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5eb637a9cb636bae086166e0c76ceb9f96989ac0aaf430d8688f7d3bb7b99f"}},{"ruleId":"D2","level":"warning","message":{"text":"MentionTextEditingController.value (cognitive 26): MentionTextEditingController.value has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 12, ternaries 4 (7 pts), if/else 5, loops 1 (2 pts) (nesting depth added 4). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ddb8e110f0ef598dd0702abcf4e4434812443ba37edddd2fad1000c2a3758e"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatSyncDialogState.syncMessages (cognitive 26): _ChatSyncDialogState.syncMessages has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (17 pts), ternaries 1 (4 pts), boolean chains 2, loops 1 (2 pts), error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/dialogs/chat_sync_dialog.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"486f482e01ef4e11e44a587a831091c2509af532e34e03d934a0acfd0954d203"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScreenEffectsWidgetState.initState (cognitive 26): _ScreenEffectsWidgetState.initState has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 8 (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":"lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"99010ba6bfb19fc3c072136dfbcd37bfea0ec34d9f9d814fcbb8dc2ec30a7f84"}},{"ruleId":"D2","level":"warning","message":{"text":"_EmbeddedMediaState.build (cognitive 26): _EmbeddedMediaState.build has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 4 (10 pts), boolean chains 8, if/else 6 (8 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/embedded_media.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34a96c8932d1716e23f7c49a07d599757cf52459b9deef2a4909ea15475ded1"}},{"ruleId":"D2","level":"warning","message":{"text":"_ReplyBubbleState.build (cognitive 26): _ReplyBubbleState.build has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 19 (20 pts), boolean chains 3, if/else 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"999ed4153f3cd833a8d7018b0e90c4455193ce3dc34840b2958993e7c47127bb"}},{"ruleId":"D2","level":"warning","message":{"text":"_TextBubbleState.build (cognitive 26): _TextBubbleState.build has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 12 (13 pts), boolean chains 7, if/else 3 (6 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/text/text_bubble.dart"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de1c99dbf46b7419870a527449d1f80bef64297c94671d7262de42b19b132cd"}},{"ruleId":"D2","level":"warning","message":{"text":"TextFieldMatchHelper.processMentionMatches (cognitive 26): TextFieldMatchHelper.processMentionMatches has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 15, if/else 9 (11 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/helpers/text_field_match_helper.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf7b6222b1ffd199347b8a9a9925aceed2f1f9d695665b452b19289077c1e9a"}},{"ruleId":"D2","level":"warning","message":{"text":"_MaterialScheduledMessagesPanelState.build (cognitive 26): _MaterialScheduledMessagesPanelState.build has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 5 (10 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca76c02e9c633dda5cf0b1547c385314c49f224f6eef4f83666322360952946c"}},{"ruleId":"D2","level":"warning","message":{"text":"_SamsungScheduledMessagesPanelState.build (cognitive 26): _SamsungScheduledMessagesPanelState.build has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 5 (10 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e01d964b13614f8027a0283e0a3a745359c86c9286928090e5ba1431d271152"}},{"ruleId":"D2","level":"warning","message":{"text":"PreviewImageDownloader._download (cognitive 26): PreviewImageDownloader._download has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 4, ternaries 2 (4 pts), error handling 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/network/metadata/network/preview_image_downloader.dart"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14b39c869ba238894ad4db6332a5ada11f4fce3c428239f548451b83a0b6037"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationsService._buildAndShowToast (cognitive 26): NotificationsService._buildAndShowToast has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 10 (11 pts), if/else 8 (9 pts), boolean chains 5, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/notifications/notifications_service.dart"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"77910721a0945418ac0600673a475b894da515d54d89ba124226f34c99296e4f"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesService._recomputeDeliveredIndicators (cognitive 26): MessagesService._recomputeDeliveredIndicators has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 6, ternaries 2 (4 pts), loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"260eec4f236b31ab5ed3dd3a8e1301a55b4864b4aebfdf531d9c752895de33fb"}},{"ruleId":"D2","level":"warning","message":{"text":"SpellCheckTextEditingController.value (cognitive 25): SpellCheckTextEditingController.value has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 5, loops 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d8d5bf147be40a1ca65ffd33b76f133b34266b4d2ddbc28977886408ed78f8"}},{"ruleId":"D2","level":"warning","message":{"text":"_VolumeSection._buildSeries (cognitive 25): _VolumeSection._buildSeries has cognitive complexity 25 (threshold 15). Drivers by points: loops 10 (18 pts), if/else 5, ternaries 1 (2 pts) (nesting depth added 9). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eec71285ab20f54a54eb17374d91c58fbfe6649e2b8e58a51cec4214f760ec3"}},{"ruleId":"D2","level":"warning","message":{"text":"ListItem.slideBackground (cognitive 25): ListItem.slideBackground has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 23, if/else 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":"lib/app/layouts/conversation_list/widgets/tile/list_item.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e424ebb986b55a7ca1b7e00bebbc51956f34a2d640d103616855e6e23d7682"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagePartContent.build (cognitive 25): MessagePartContent.build has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 5 (7 pts), boolean chains 5, 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":"lib/app/layouts/conversation_view/widgets/message/misc/message_part_content.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e67acaf06736a3db0cd577dd67c0d86cca05823a24ef1da63cc026fd5d236aa"}},{"ruleId":"D2","level":"warning","message":{"text":"EmojiAutocompleteHandler.handleKeyEvent (cognitive 25): EmojiAutocompleteHandler.handleKeyEvent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/handlers/emoji_autocomplete_handler.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"f10a42a12f0e14b2db49de91003886a8dc725f790c7f25143830e10e3174504f"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationSettingsDialog.build (cognitive 25): NotificationSettingsDialog.build has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 6 (9 pts), boolean chains 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/dialogs/notification_settings_dialog.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62db0f6e78d43fe30adee59c74c7e5b711770b39d6d87050348491965f2af43"}},{"ruleId":"D2","level":"warning","message":{"text":"Settings.updateFromMap (cognitive 25): Settings.updateFromMap has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 14, if/else 7, boolean chains 4. 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":"lib/database/global/settings.dart"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"1427fdbb94cd52d1c40504b262488604d41232e415b67cb5a6138472ba3c27dc"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.fromMap (cognitive 25): Message.fromMap has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 4 (7 pts), ternaries 4 (6 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/message.dart"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0111c43017c0d52376866bf43aaf833f20710b3f7052ec0f71d8bd04c109af3"}},{"ruleId":"D2","level":"warning","message":{"text":"ImageActions.readExifOrientation (cognitive 25): ImageActions.readExifOrientation has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (17 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/image_actions.dart"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef014a54d1e7c8ed02115b337f8cbab635c4a96dd71235e42a45a02a26f08bbb"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageActions._walkFilesystem (cognitive 25): StorageActions._walkFilesystem has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 6 (9 pts), boolean chains 1, ternaries 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/storage_actions.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe61e761bf5efa27008cb48e9ed4ec9c46de8ab6e03ad45c35bf5c0a0af349d5"}},{"ruleId":"D2","level":"warning","message":{"text":"OutgoingMessageHandler._prepItemWithRetry (cognitive 25): OutgoingMessageHandler._prepItemWithRetry has cognitive complexity 25 (threshold 15). Drivers by points: if/else 5 (10 pts), match/switch 1 (4 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (2 pts), loops 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"1daf9e594b20103163d84aadc233fab54613fac64dc7b68e2419fc613618ef70"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentDownloadController._processDownloadedFile (cognitive 25): AttachmentDownloadController._processDownloadedFile has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 2 (5 pts), boolean chains 3, ternaries 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network/downloads_service.dart"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd97efa2f58c5f9ac0d2696318720426662ff4630ed7d9feb8d1e5f8ef14bf2"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesService.loadAttachmentContent (cognitive 25): MessagesService.loadAttachmentContent has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (22 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"b678ea6e7a81a12b62db784fc29dabe4f8ada3003448c1b76a6310bf40be81e8"}},{"ruleId":"D2","level":"warning","message":{"text":"_AttachmentPickerState.getAttachments (cognitive 24): _AttachmentPickerState.getAttachments has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 4, error handling 1 (nesting depth added 11). 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":"lib/app/layouts/conversation_view/widgets/media_picker/text_field_attachment_picker.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64facecb2df0a2796ac39f6305550b513ac76c73c1cb0e1c6337017f5252637"}},{"ruleId":"D2","level":"warning","message":{"text":"_AttachmentHolderState.build (cognitive 24): _AttachmentHolderState.build has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 15, ternaries 7 (8 pts), if/else 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/attachment/attachment_holder.dart"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"960a3f3e674298e7e3bec0578247d85d38e0aea682f625b2e065a4c11b42560b"}},{"ruleId":"D2","level":"warning","message":{"text":"TailClipper.getClip (cognitive 24): TailClipper.getClip has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 7, ternaries 2 (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":"lib/app/layouts/conversation_view/widgets/message/misc/tail_clipper.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"deeceac4d79e8700106c8c198227f31cec38f7509a944d9288c1681a5a24c3df"}},{"ruleId":"D2","level":"warning","message":{"text":"_PickedAttachmentState.load (cognitive 24): _PickedAttachmentState.load has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6, error handling 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/picked_attachment.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0757ef789dd7379e8ca6be08510648169a195fee97b089fd651d4c633821b285"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentsService.saveToDisk (cognitive 24): AttachmentsService.saveToDisk has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/attachments_service.dart"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"6272981f70ece279bdc8e05de5589eb8d67a23682237ed749ea75b5ad1c95b08"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentPreview.attachmentsFor (cognitive 23): AttachmentPreview.attachmentsFor has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/attachment_preview.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c244aadd4bacb82b6c740899493b99ddf9ceeae11080bb8dc2266c3dec69f6c"}},{"ruleId":"D2","level":"warning","message":{"text":"MentionTextEditingController.pastedRuns (cognitive 23): MentionTextEditingController.pastedRuns has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 6 (10 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7b3a8999c23b0a001cb7a423930b2ce6b00c1847787fb6be145a65e6b767e4"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.buildGroupEventText (cognitive 23): Message.buildGroupEventText has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 3, ternaries 1 (2 pts) (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":"lib/database/io/message.dart"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c81e38eb4d5ce371a369df8384645a7e0c2baf302b95fdf40970d05cc78e74"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncActions._syncChatsInTx (cognitive 23): SyncActions._syncChatsInTx has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 5 (6 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/sync_actions.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bb0ff41a86529afdcee4cc21b85da81ef8f3ac0b2dfb98de14170af0044fcea"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationsService.init (cognitive 23): NotificationsService.init has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/notifications/notifications_service.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"850d0269b5e88dafab7892153b0221843a0252d1737d97aa1e20f2de0f5c41df"}},{"ruleId":"D2","level":"warning","message":{"text":"NavigatorService.backConversationView (cognitive 23): NavigatorService.backConversationView has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 4 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/navigator/navigator_service.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4784d0b93913c1e85d54d6d5ac45ec39a37db4c557da4b1b9d6f17a4d0869b"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseLogger._findTailStartOffset (cognitive 23): BaseLogger._findTailStartOffset has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (18 pts), loops 2 (5 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/logger/logger.dart"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"8741edbb58be234c4c193a42a0de2699911359d6ad513de1a658ca9dd050773f"}},{"ruleId":"D2","level":"warning","message":{"text":"DartWorker.runWork (cognitive 23): DartWorker.runWork has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 2, error handling 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/backend_ui_interop/DartWorker.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a21eb32c623e47b298f5f2c0a8dc0240a9176757d4f5287a43acd11eeec191"}},{"ruleId":"D2","level":"warning","message":{"text":"MentionTextEditingController._restyleSelection (cognitive 22): MentionTextEditingController._restyleSelection has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 2 (4 pts), ternaries 2 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ed5362226cda295fdaee75ec2c499edabfefd391e0a19ab01fa90b2610f0ac"}},{"ruleId":"D2","level":"warning","message":{"text":"CupertinoHeader.build (cognitive 22): CupertinoHeader.build has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 8, ternaries 3 (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":"lib/app/layouts/conversation_list/widgets/header/cupertino_header.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f91db86ace6fac11a0634ba239a2343fa48e814701642a7ffa0dc91065e2cb4"}},{"ruleId":"D2","level":"warning","message":{"text":"ResolvedFileContent.build (cognitive 22): ResolvedFileContent.build has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8 (13 pts), if/else 6, 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":"lib/app/layouts/conversation_view/widgets/message/attachment/parts/resolved_file_content.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"925f9b6e12ef78109edb04f9219fbf1da4efaceb52c9cdf3c831ac867414d963"}},{"ruleId":"D2","level":"warning","message":{"text":"_GamePigeonState.build (cognitive 22): _GamePigeonState.build has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, ternaries 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":"lib/app/layouts/conversation_view/widgets/message/interactive/game_pigeon.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6d110aedc7dc940c21b99c4bf6fc505476760c7d4cbabbe55e2e7637ba14fc"}},{"ruleId":"D2","level":"warning","message":{"text":"UrlPreviewController._loadMessagePreview (cognitive 22): UrlPreviewController._loadMessagePreview has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 13, if/else 6 (9 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/url_preview_controller.dart"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"77d286afd40e99c35c49a6b1bb75911a0feb2f807ce288c8a14884f89ece7865"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagePartWrapper.build (cognitive 22): MessagePartWrapper.build has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10, ternaries 5 (7 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8387d1a53fa5401af69956db6d344a39b308275576ffdf3730499afcd62e496a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatBackupIdentifier.resolve (cognitive 22): ChatBackupIdentifier.resolve has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 4 (7 pts), boolean chains 5, 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":"lib/app/layouts/settings/pages/server/chat_backup_identifier.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad92bdb0ed40d174963704da55192cecd1c51f1db04f0dcc7e4e5a2102fc35e"}},{"ruleId":"D2","level":"warning","message":{"text":"Chat.shouldMuteNotification (cognitive 22): Chat.shouldMuteNotification has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/chat.dart"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"680e7a7cdc1c97cdabfcc3782cb94978e9472b2ea070c0a0d9d9d53f927501b9"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatActions.getMessagesAsync (cognitive 22): ChatActions.getMessagesAsync has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 4 (7 pts), boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a611bd20589b4b5abdf9ad8cd62c33df6ab160d9dd1e7b9dc00d2ad07367af1"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncActions._syncAttachmentsInTx (cognitive 22): SyncActions._syncAttachmentsInTx has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/sync_actions.dart"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea10dbb481b26375eb68ba2923b47467a415e1dbd8a6859d23278b359f86253a"}},{"ruleId":"D2","level":"warning","message":{"text":"SocketService.handleStatusUpdate (cognitive 22): SocketService.handleStatusUpdate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (21 pts), match/switch 1 (nesting depth added 11). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network/socket_service.dart"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a8539a2d24450a8919b54265e5ba20d8399b90ba1a19e22833e0aaa65f81cd"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseLogger._writeMergedLog (cognitive 22): BaseLogger._writeMergedLog has cognitive complexity 22 (threshold 15). Drivers by points: if/else 3 (10 pts), loops 5 (10 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/logger/logger.dart"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"13917501f7085eba057d323f1bf6c4a4f8c37a3f06af2c67e7ae00be48b8026f"}},{"ruleId":"D2","level":"warning","message":{"text":"SocketIOForegroundService.onCreate (cognitive 22): SocketIOForegroundService.onCreate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4, error handling 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":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/foreground/SocketIOForegroundService.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b00330d22cee3106be5187244d5a2c66dddc6ead65b39da2f38b80d8cc5156"}},{"ruleId":"D2","level":"warning","message":{"text":"_SamsungConversationListState.build (cognitive 21): _SamsungConversationListState.build has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9, boolean chains 7, ternaries 3 (5 pts) (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":"lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d43c3fc59e113b9baf1cdb1c1bff8ebcfa177679401670fdd337b554256a502"}},{"ruleId":"D2","level":"warning","message":{"text":"_ReplyText.build (cognitive 21): _ReplyText.build has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 9 (13 pts), if/else 5, boolean chains 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/reply_holder.dart"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"148c8931e90628e6fe5c07ddf5ea7f7ff711153769d0385780652958906292a5"}},{"ruleId":"D2","level":"warning","message":{"text":"_TextFieldSuffixState.build (cognitive 21): _TextFieldSuffixState.build has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (9 pts), ternaries 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/text_field_suffix.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6526f7beeb41f50b6b84ec8171cf3be7d52b4770da26dc39e3b7cf18f32f7f"}},{"ruleId":"D2","level":"warning","message":{"text":"FindMyController.resolveFriendAddress (cognitive 21): FindMyController.resolveFriendAddress has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 8, error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/findmy/findmy_controller.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ee29ac628d6795f1c930d08723e8881e2be1819d6b78a7c5c116c359848e3d"}},{"ruleId":"D2","level":"warning","message":{"text":"_CacheTuningPanelState.build (cognitive 21): _CacheTuningPanelState.build has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 7 (10 pts), if/else 6 (8 pts), loops 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":"lib/app/layouts/settings/pages/misc/cache_tuning_panel.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"24686aa757a8f1b6022cbc0b55029e6f13d26586fcfc59e13ce0b6d309fbfcc0"}},{"ruleId":"D2","level":"warning","message":{"text":"StorageResultsSection.build (cognitive 21): StorageResultsSection.build has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 5 (6 pts), loops 2 (4 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/storage/widgets/storage_results_section.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ebac6506dd9c91394749848429f8b2917143ef2ad0aaf1a6ef83cdded910e7"}},{"ruleId":"D2","level":"warning","message":{"text":"Chat.shouldMuteNotification (cognitive 21): Chat.shouldMuteNotification has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/chat.dart"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04eb6f6517b13c1b4bfafc749004762a1c2df3bc52f243ee1dcfc7cd9a815e1"}},{"ruleId":"D2","level":"warning","message":{"text":"BodyImageParser.parse (cognitive 21): BodyImageParser.parse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/network/metadata/parsing/body_image_parser.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d1c9645553001ae5af9f1b196d6520a30d19ace50ed44497a567cf2b30e73f"}},{"ruleId":"D2","level":"warning","message":{"text":"JsonLdParser.parse (cognitive 21): JsonLdParser.parse has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/network/metadata/parsing/json_ld_parser.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc12d8b7015c4a494104671feeefc15755283aefe221532e21e5440cd6352be"}},{"ruleId":"D2","level":"warning","message":{"text":"OutgoingMessageHandler.sendMultiAttachment (cognitive 21): OutgoingMessageHandler.sendMultiAttachment has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 3 (5 pts), ternaries 3, boolean chains 2, error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"3facb145c9c2a3cd4d881a0f75372f7abc4b8839e3758849ae730b1a1e7782c0"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentDownloadController.fetchAttachment (cognitive 21): AttachmentDownloadController.fetchAttachment has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (9 pts), error handling 3 (4 pts), ternaries 4, boolean chains 3, loops 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":"lib/services/network/downloads_service.dart"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77b59d3b53275d0124126a5107eda364a246d63e78dc8b3200e11e1de75a1aa"}},{"ruleId":"D2","level":"warning","message":{"text":"CloudMessagingService._registerDevice (cognitive 21): CloudMessagingService._registerDevice has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), error handling 2 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network/firebase/cloud_messaging_service.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0430277de611b7648b8ce468448ffd8fa8f786c098189928eb822c5d878cc66"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatsService.init (cognitive 21): ChatsService.init has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, loops 2 (3 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":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff77d37da31e3a2d921acd942b0db864272280652bfe2118736aba523fd65b8"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesService.retryFailedMessage (cognitive 21): MessagesService.retryFailedMessage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c2e69b4edbf1441ed38c45235a6e40b791377e6a0f99aabf9a6c6531640aaf"}},{"ruleId":"D2","level":"warning","message":{"text":"_SamsungHeaderState.build (cognitive 20): _SamsungHeaderState.build has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 6. 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":"lib/app/layouts/conversation_list/widgets/header/samsung_header.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d05bcfa67ecee599afbd7b9bb0116a56fc9a0cae9fbdd7ef916a932895040f5"}},{"ruleId":"D2","level":"warning","message":{"text":"_StickerHolderState.loadStickers (cognitive 20): _StickerHolderState.loadStickers has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, loops 3 (4 pts), ternaries 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":"lib/app/layouts/conversation_view/widgets/message/attachment/sticker_holder.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2401db2bcc651790c7311cad1469f5e9236d9e70a6a19473a9793b9482bc1a3"}},{"ruleId":"D2","level":"warning","message":{"text":"CupertinoUrlPreview._buildHero (cognitive 20): CupertinoUrlPreview._buildHero has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, boolean chains 9, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/cupertino_url_preview.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"46cef7b9dc760e56bc2780d45442bdad5ad634881fba38b33ef1b705787b8a8d"}},{"ruleId":"D2","level":"warning","message":{"text":"_ServerCredentialsState.connect (cognitive 20): _ServerCredentialsState.connect has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/setup/pages/sync/server_credentials.dart"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45564b19f229dbf4bf906195a9e65ac04a6795a67dc6aad284f1d506b9e11ab"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.fromMap (cognitive 20): Message.fromMap has cognitive complexity 20 (threshold 15). Drivers by points: error handling 4 (7 pts), if/else 5 (7 pts), ternaries 3 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"446a9d4231a27ec882bef9a2b9e6675e840ae918fb685dcccfe8aada6b7b9657"}},{"ruleId":"D2","level":"warning","message":{"text":"Chat.getChatCreatorSubtitle (cognitive 20): Chat.getChatCreatorSubtitle has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 2 (4 pts), ternaries 1 (4 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":"lib/database/io/chat.dart"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"8120fcb8b69bab3065b1987a7ba78b089d408e8494ca885af2cc3375fee7317a"}},{"ruleId":"D2","level":"warning","message":{"text":"UrlSafetyGuard.isPrivateAddress (cognitive 20): UrlSafetyGuard.isPrivateAddress has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 9 (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":"lib/helpers/network/metadata/network/url_safety_guard.dart"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a368e28573bf0daa4d09f244895b6d5ac6d3e0c8aac76547b12f2b0cc39e246"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentsService.redownloadAttachment (cognitive 20): AttachmentsService.redownloadAttachment has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, loops 1 (3 pts), error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/attachments_service.dart"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b58ca045ee7e939d11a502e6632ddc466d7796aa79895a18fb9dde998dc74d"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchResultsList.build (cognitive 19): SearchResultsList.build has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, ternaries 4 (7 pts), if/else 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/chat_creator/widgets/search_results_list.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea47cf93c1cd0ae3faf2f98fec1a07d7a78b4d8e935791e509678940457a62c1"}},{"ruleId":"D2","level":"warning","message":{"text":"_AttachmentPickerState._buildImageGrid (cognitive 19): _AttachmentPickerState._buildImageGrid has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 2 (4 pts), boolean chains 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":"lib/app/layouts/conversation_view/widgets/media_picker/text_field_attachment_picker.dart"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"63f63fe9f8f01fae27c6d1022ac78b404eaddefef6fa6e39c74d83de1eab22d9"}},{"ruleId":"D2","level":"warning","message":{"text":"_UnsupportedInteractiveState.build (cognitive 19): _UnsupportedInteractiveState.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4 (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":"lib/app/layouts/conversation_view/widgets/message/interactive/unsupported_interactive.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"263de9f34ecbcdd4a467776b06c7f5cceef6f5c4aff75680db2567e73368fefa"}},{"ruleId":"D2","level":"warning","message":{"text":"_TextBubbleState._scheduleRunVisibilityCheck (cognitive 19): _TextBubbleState._scheduleRunVisibilityCheck has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts), ternaries 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/text/text_bubble.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dab8188e6f0cc4921aee3aab6cdc3ffde4dfaccdfe7fc0374d9886d940561ad"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationTextFieldState.textListener (cognitive 19): ConversationTextFieldState.textListener has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 4, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6493aed27d48b100a9953ee77f62a552fa9864e169d255edb04b92358c2d40e"}},{"ruleId":"D2","level":"warning","message":{"text":"FormattingBar.build (cognitive 19): FormattingBar.build has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (8 pts), boolean chains 5, if/else 5, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/formatting_bar.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b48695bd6a2c0040c650b4a190ccc599d44d73f6d204015df83e151ea397ae2"}},{"ruleId":"D2","level":"warning","message":{"text":"_PickedAttachmentState._buildImage (cognitive 19): _PickedAttachmentState._buildImage has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 8 (16 pts), if/else 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/picked_attachment.dart"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a9fd74389c7f42ec840ad1ec35ecdef4984f1aea752945d2b2795a2f2513a5"}},{"ruleId":"D2","level":"warning","message":{"text":"FindMyController._handleNewFindMyLocation (cognitive 19): FindMyController._handleNewFindMyLocation has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 7, ternaries 1 (2 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/findmy/findmy_controller.dart"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8868577a14ffd0c0ce75a09bbc3d7eea6a9482e2a0fbc8af10b732bd8fac8a2b"}},{"ruleId":"D2","level":"warning","message":{"text":"FindMyFriendListTile.build (cognitive 19): FindMyFriendListTile.build has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 10, if/else 5, boolean chains 4. 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":"lib/app/layouts/findmy/widgets/findmy_friend_list_tile.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9475d41bbc4ddff5932778c40ec2e11eadc250b9881863ef6a8f0bb7d40c38"}},{"ruleId":"D2","level":"warning","message":{"text":"ContactsExpressiveBody.build (cognitive 19): ContactsExpressiveBody.build has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 11 (12 pts), if/else 4, boolean chains 2, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/contacts/widgets/contacts_expressive_body.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8147303e50decd705f69327560ff975b41a7fa6c456186f9f8caac5a15a8ac42"}},{"ruleId":"D2","level":"warning","message":{"text":"Chat.addMessage (cognitive 19): Chat.addMessage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, error handling 1, loops 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/chat.dart"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d2ec5832a484c51058caa3cc84396b799ac7136295f717d7611c8cb2f44c96"}},{"ruleId":"D2","level":"warning","message":{"text":"StartupTasks._repairChatlessMessages (cognitive 19): StartupTasks._repairChatlessMessages has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, ternaries 1 (3 pts), error handling 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/backend/startup_tasks.dart"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"058e145a23e4adc064603c68480a95791258826a6a73ef2316f56aff57f1007a"}},{"ruleId":"D2","level":"warning","message":{"text":"UrlSafetyGuard._isPrivateV4 (cognitive 19): UrlSafetyGuard._isPrivateV4 has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, 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":"lib/helpers/network/metadata/network/url_safety_guard.dart"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07f9bfdd885c28d205790d9eb584b3fba9d1e1ffab8951d33d08ba16ca58278"}},{"ruleId":"D2","level":"warning","message":{"text":"LifecycleService.didChangeAppLifecycleState (cognitive 19): LifecycleService.didChangeAppLifecycleState has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/lifecycle/lifecycle_service.dart"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee320885d588630d9a000b0dc4b65425d7dbe6e7585cb42f526ea5e45979da98"}},{"ruleId":"D2","level":"warning","message":{"text":"OutgoingMessageHandler._matchAttachmentWithExisting (cognitive 19): OutgoingMessageHandler._matchAttachmentWithExisting has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf562a1968f4565f6e2e3b0432a99114b77eab02383e2a1789f57f65731f4c8"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsService.init (cognitive 19): SettingsService.init has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (11 pts), error handling 2 (5 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/settings/settings_service.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"009910ce0cfaf69b520be3ca1bd36bb08aa40e1a29a7c56576c2ded345dd52cb"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsService.getAppUpdateDict (cognitive 19): SettingsService.getAppUpdateDict has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (8 pts) (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/settings/settings_service.dart"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c2df8dc986f9f40371ba59605b4a501f479cfbc0db1a790a03ede4d414b142"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerV2Migrations._backfillAppPayloads (cognitive 19): ServerV2Migrations._backfillAppPayloads has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (15 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/sync/server_v2_migrations.dart"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"582e0d0104f08741b2dc224f7723674d4a5f1d733a34c820336feec3291ee309"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerV2Migrations._backfillTapbackEmoji (cognitive 19): ServerV2Migrations._backfillTapbackEmoji has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/sync/server_v2_migrations.dart"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc5af922800c876e683448886d9315f55b51006f8f5adbc72f959327a12db51"}},{"ruleId":"D2","level":"warning","message":{"text":"FirebaseDatabaseService.fetchNewUrl (cognitive 19): FirebaseDatabaseService.fetchNewUrl has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 1, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network/firebase/firebase_database_service.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee717187ede891b7d5f79dfff8e7cf1ccc02db94995635abd4868f237f331554"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesService._restoreInFlightAttachmentStates (cognitive 19): MessagesService._restoreInFlightAttachmentStates has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"5653c2530e16ef33cdba838d62280a98a3f226cf201ef895eb1ddb9845ddbd64"}},{"ruleId":"D2","level":"warning","message":{"text":"ThemesService.materialYouDisplayName (cognitive 19): ThemesService.materialYouDisplayName has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, 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":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fa2aa196b2abe205ed069220e46e382846ab21bd6592791742174b631def32"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpService.sendMessage (cognitive 19): HttpService.sendMessage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 6. 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":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/network/HttpService.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d3c288ad1fbe85ed7dc3fca6c2024ddfc6307862342546278731ce60175d0a9"}},{"ruleId":"D2","level":"warning","message":{"text":"FilesystemUtils.getAbsolutePath (cognitive 19): FilesystemUtils.getAbsolutePath has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 1 (3 pts), match/switch 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/bluebubbles/messaging/utils/FilesystemUtils.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97684e7ddb4403ef257d417c528885974f3bf3ba7b932a1d4736aeff3b48d11"}},{"ruleId":"D2","level":"warning","message":{"text":"_HeatmapGridState.build (cognitive 18): _HeatmapGridState.build has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (8 pts), loops 4 (7 pts), if/else 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/widgets/heatmap_grid.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ed638047ed163c0f4cd93c67c2da03bbf563f05299edd15f4f7e4ef9d9a038"}},{"ruleId":"D2","level":"warning","message":{"text":"_MaterialConversationListState.build (cognitive 18): _MaterialConversationListState.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 4 (5 pts), boolean chains 4 (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":"lib/app/layouts/conversation_list/pages/material_conversation_list.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3823611f52d0333a468857c14a14497f212ad8317c38c29c508050153cf8c36c"}},{"ruleId":"D2","level":"warning","message":{"text":"PinnedTileTextBubbleState.build (cognitive 18): PinnedTileTextBubbleState.build has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 13, boolean chains 4, if/else 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/tile/pinned_tile_text_bubble.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7e1c78c3e5311b859a1144d784c44739efbf3042781bb487b1e058eb034696"}},{"ruleId":"D2","level":"warning","message":{"text":"_GenmojiLibraryPopoverState._buildBody (cognitive 18): _GenmojiLibraryPopoverState._buildBody has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 5 (8 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/media_picker/genmoji_library_popover.dart"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"311f0ce9bff8073d2eb643d6672fdb7fa729ef2c9d9792b861bac438d50eff1f"}},{"ruleId":"D2","level":"warning","message":{"text":"UrlPreviewController.attach (cognitive 18): UrlPreviewController.attach has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 3 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/url_preview_controller.dart"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e1bdb06556413630cd6c46480295e2f2599f7695271d49bcfc0b368d6e748a"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderRunTextEffects._hiddenPainter (cognitive 18): RenderRunTextEffects._hiddenPainter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (5 pts), ternaries 3 (5 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/text/run_text_effects.dart"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f711a326f80ad1e69e8c12dfa91d7bddeaab7a52cfe8830934249fdda0f555c0"}},{"ruleId":"D2","level":"warning","message":{"text":"ClipboardPasteHandler._pasteAttachments (cognitive 18): ClipboardPasteHandler._pasteAttachments has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/handlers/clipboard_paste_handler.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c0e0b46466406dfa7ca669d77f69212367174173ee327c7c0dc72611e8f1e7"}},{"ruleId":"D2","level":"warning","message":{"text":"_ServerCredentialsState.scanQRCode (cognitive 18): _ServerCredentialsState.scanQRCode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, error handling 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":"lib/app/layouts/setup/pages/sync/server_credentials.dart"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"5903008595af1d01e749a00d3f5c2134a9645977e029000ed627337148ef11bb"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.buildGroupEventText (cognitive 18): Message.buildGroupEventText has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, boolean chains 7, ternaries 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0dba869e6ad1d6bb8ae1f6bfba514cae740b04b2fdab7b70a3592b54774bd05"}},{"ruleId":"D2","level":"warning","message":{"text":"Chat.addMessage (cognitive 18): Chat.addMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 5, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/chat.dart"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7482b6c865bf1baec238af1e951dcfef92eea150f78b324d7ba743550ce43a"}},{"ruleId":"D2","level":"warning","message":{"text":"OEmbedResolver._discoverEndpoint (cognitive 18): OEmbedResolver._discoverEndpoint has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/network/metadata/network/oembed_resolver.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5762c42a1afecb40daef0c1a17c6a5a25cf63f16acb8e15ab8e163b0850610c"}},{"ruleId":"D2","level":"warning","message":{"text":"UrlMetadataFetcher._fetchUncached (cognitive 18): UrlMetadataFetcher._fetchUncached has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (15 pts), error handling 2, boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/network/metadata/url_metadata_fetcher.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0b2f7906ef6ea1548b4f9f783aed4f32c11f846ed6f1d2581d1d920ff962ae3"}},{"ruleId":"D2","level":"warning","message":{"text":"IncomingMessageHandler._processUpdatedMessage (cognitive 18): IncomingMessageHandler._processUpdatedMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/incoming_message_handler.dart"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63dfd7c7c1e722c585a5bc271dbca66bdd646ce45e94e176aae88e850229454"}},{"ruleId":"D2","level":"warning","message":{"text":"IntentsService.openChat (cognitive 18): IntentsService.openChat has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/java_dart_interop/intents_service.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b8714a044cea3593e9d9edad0238e51d64a79b664f64e6389004009c59a96c"}},{"ruleId":"D2","level":"warning","message":{"text":"MethodChannelService.init (cognitive 18): MethodChannelService.init has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, error handling 1 (2 pts), ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/java_dart_interop/method_channel_service.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"905ae111773328d03a153fc22eab9bb8594a112527ec038f0b4338fc2045149b"}},{"ruleId":"D2","level":"warning","message":{"text":"IncrementalSyncManager.complete (cognitive 18): IncrementalSyncManager.complete has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/sync/incremental_sync_manager.dart"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4981e58b4f59d7a0fe80bc4aced44de8087e4603dde57b148d5c2275be20f9f"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentsService.getVideoThumbnail (cognitive 18): AttachmentsService.getVideoThumbnail has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, error handling 1, ternaries 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":"lib/services/ui/attachments_service.dart"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"121398401d069072f90157ecb70b5756feec198bab2b0f36d718b0e63a13220b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatsService._setupRedactedModeListeners (cognitive 18): ChatsService._setupRedactedModeListeners has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 5, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1c03b37104e3b9faf41b3ae86594969f49103d89102a6772071762abf7d233"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationViewController.onInit (cognitive 18): ConversationViewController.onInit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/chat/conversation_view_controller.dart"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"54defa7eb3a157908cf27d87c268c463ff63da5be51c9ad9d144f065fddf9d47"}},{"ruleId":"D2","level":"warning","message":{"text":"ThemesService.materialYouSortOrder (cognitive 18): ThemesService.materialYouSortOrder has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"f284eb2c357aee196d9fe961ff79387d6d1b9891c9fb6142ed315ef6790e1598"}},{"ruleId":"D2","level":"warning","message":{"text":"_AttachmentPreviewState._resolve (cognitive 17): _AttachmentPreviewState._resolve has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/attachment_preview.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"36da6d727c013e521e553b65d68620b6fe3ac74a70a6976a7bcfb50132f0ddf2"}},{"ruleId":"D2","level":"warning","message":{"text":"_RenderCupertinoDialogActions._computeLayout (cognitive 17): _RenderCupertinoDialogActions._computeLayout has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 1 (2 pts), ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_cupertino_alert_dialog.dart"},"region":{"startLine":1515}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eda7f61ba0b9f80290549b23eef6ca6832833aa1ccda8dad85cd94b9d2fe3dd"}},{"ruleId":"D2","level":"warning","message":{"text":"StatBarChart.build (cognitive 17): StatBarChart.build has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7, boolean chains 4, if/else 3, loops 2 (3 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/widgets/charts/bar_chart.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fba239245734d21142bba65c24e7fdb2cd4e7867761d0e597670cf1476671b5a"}},{"ruleId":"D2","level":"warning","message":{"text":"_MaterialTrailingState.build (cognitive 17): _MaterialTrailingState.build has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (8 pts), if/else 5 (6 pts), boolean chains 3 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a60405be7b7da51df20b211a8288aa07749ada7503ea2ab3d7f2d34fb936206"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesViewState._applyNewMessage (cognitive 17): MessagesViewState._applyNewMessage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/pages/messages_view.dart"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4b7ae5a527a203a6ed092d7b20e5313de73137ae24104c1985321cd3f8e18d"}},{"ruleId":"D2","level":"warning","message":{"text":"_AttachmentPickerFileState.loadFilePath (cognitive 17): _AttachmentPickerFileState.loadFilePath has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/media_picker/attachment_picker_file.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4c838122d4ff97c9d39a6ef99bf29843e4cfe69d2e5e1af4f2ef03729c3612"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsOptions.build (cognitive 17): SettingsOptions.build has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 6, boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/widgets/content/settings_dropdown.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4aa88f93a1327bcb9e2a084747b5810d8af5c04c4d4a9c172e749120f8ddeed"}},{"ruleId":"D2","level":"warning","message":{"text":"_ManualEntryDialogState.build (cognitive 17): _ManualEntryDialogState.build has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, ternaries 1 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/setup/dialogs/manual_entry_dialog.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cee595788b532552b801b8140c77f9a20700f83c0cc6ab1b2772f0cdc772249"}},{"ruleId":"D2","level":"warning","message":{"text":"IconParser.parse (cognitive 17): IconParser.parse has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 5, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/network/metadata/parsing/icon_parser.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a3bebc6c47ba2ffe7e62c9509dcc895a9f193cbfebf2204ae2fec383ca252f"}},{"ruleId":"D2","level":"warning","message":{"text":"MetadataHelper.resolveCachedImage (cognitive 17): MetadataHelper.resolveCachedImage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 3 (4 pts), boolean chains 2 (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":"lib/helpers/network/metadata_helper.dart"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55d384d3a94ba60aa0c4c4645bb60e98dfb66a41b985daf5d994b36a1404c07"}},{"ruleId":"D2","level":"warning","message":{"text":"FilesystemService.init (cognitive 17): FilesystemService.init has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 8). 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":"lib/services/backend/filesystem/filesystem_service.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e09ab205e7459803251c68dfeb0847efacff07bf8029a635909ba088c2203e"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenPigeon.refresh (cognitive 17): OpenPigeon.refresh has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 6, if/else 4 (5 pts), error handling 4, match/switch 1 (2 pts) (nesting depth added 2). 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":"lib/services/backend/java_dart_interop/open_pigeon_service.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"705b3ca8ede9e2ab21e560dd2f3789af133a23d673d870173c3740a47581b6e2"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationsService.tryCreateNewMessageNotification (cognitive 17): NotificationsService.tryCreateNewMessageNotification has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6 (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":"lib/services/backend/notifications/notifications_service.dart"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"604f4852eefd5125c03c4965ab3057a0466b01df933cfcc05a060bfb8e28b3ed"}},{"ruleId":"D2","level":"warning","message":{"text":"IncrementalSyncManager.syncV2MessagePages (cognitive 17): IncrementalSyncManager.syncV2MessagePages has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 1 (2 pts), loops 1, match/switch 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/sync/incremental_sync_manager.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"2555774f7c109b0b3e2d600fb3f1d267c0f2f41c28f8af303b13711b90aebb83"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesService.updateMessage (cognitive 17): MessagesService.updateMessage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad3025a0b8a724a8f41d4b27dfe8a5495ffd12ad3cd2013fd48e3322d74eac0"}},{"ruleId":"D2","level":"warning","message":{"text":"NameAndPhotoSharingService.sharedWithYouIn (cognitive 17): NameAndPhotoSharingService.sharedWithYouIn has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 5, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/name_and_photo_sharing_service.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5a4f6c165a080ee7a6f01f2aeeb14252fa4ec5edc981638de23d4cca775174"}},{"ruleId":"D2","level":"warning","message":{"text":"MentionTextEditingController.restyle (cognitive 16): MentionTextEditingController.restyle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f002b11f035088a856a4387472118fa32fbeaf3a3a6a1e5e70b0175be79fb84"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchContactTile.build (cognitive 16): SearchContactTile.build has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (9 pts), if/else 4 (5 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/chat_creator/widgets/search_contact_tile.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d97da110a8f3cd23ca81df34f1ec12ab47a378370eaa5b6ccb65f7d331be66d"}},{"ruleId":"D2","level":"warning","message":{"text":"_MediaGridSectionState.didUpdateWidget (cognitive 16): _MediaGridSectionState.didUpdateWidget has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 6 (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":"lib/app/layouts/conversation_details/widgets/sections/media/media_grid_section.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e6275447480d92ee7b9bd55809b1b0d7826158b9b4484c1cb8cbef378d40b0"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationViewState.build (cognitive 16): ConversationViewState.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, ternaries 7, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/pages/conversation_view.dart"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"86856744b5289415ad4218fcbf02feb56febd743ee0f286dbbc9f6eb5f302bfc"}},{"ruleId":"D2","level":"warning","message":{"text":"_ContactCardState.init (cognitive 16): _ContactCardState.init has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 3, error handling 2 (3 pts), loops 2 (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":"lib/app/layouts/conversation_view/widgets/message/attachment/contact_card.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"29277b77959a89906f8547509c4cc649e22b862e31fe061472f90d90e6392592"}},{"ruleId":"D2","level":"warning","message":{"text":"OtherFile.build (cognitive 16): OtherFile.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/attachment/other_file.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"3811a4767945c422461c8115ce2cc264c2e0c5f201f644dbb1de6ee317bc33f6"}},{"ruleId":"D2","level":"warning","message":{"text":"_VideoPlayerState.initState (cognitive 16): _VideoPlayerState.initState has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4 (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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61783b31344bb8df1992e60a787c31bb290dbb3ffe591a33c8dedd53e5a281b"}},{"ruleId":"D2","level":"warning","message":{"text":"_MessagePopupHolderState.openPopup (cognitive 16): _MessagePopupHolderState.openPopup has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 5, boolean chains 3 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup_holder.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"43274a0ecd0ac6378e2bd171927de355a05f4869bf0278a107382c62c6fb32dc"}},{"ruleId":"D2","level":"warning","message":{"text":"ReactionWidgetState._buildStatic (cognitive 16): ReactionWidgetState._buildStatic has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 9 (10 pts), if/else 4 (6 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/reaction/reaction.dart"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bc07e2e50eb79ef14af06821aa30d77d250f1a483d2266fb03481131ec8899"}},{"ruleId":"D2","level":"warning","message":{"text":"_DeliveredIndicatorState.getText (cognitive 16): _DeliveredIndicatorState.getText has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 5, ternaries 2 (4 pts) (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/timestamp/delivered_indicator.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8179595da811c8f720e8de6a2c096d232b15cfc61e153fdcc2d67c26287f4b"}},{"ruleId":"D2","level":"warning","message":{"text":"ClipboardPasteHandler.handlePasteEvent (cognitive 16): ClipboardPasteHandler.handlePasteEvent has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 2 (8 pts), if/else 3 (7 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/handlers/clipboard_paste_handler.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c2713b750c56ff5ab9c4d796f93cbd3d339078589136640e3666cbdd88d405"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateScheduledMixin.saveScheduledMessage (cognitive 16): CreateScheduledMixin.saveScheduledMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), loops 1 (3 pts), ternaries 2 (3 pts), boolean chains 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":"lib/app/layouts/settings/pages/scheduling/create_scheduled_mixin.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf9c20997d82847dc3c97758b1a852cbf1c8086b7c8e0348c67a668ee9d871b"}},{"ruleId":"D2","level":"warning","message":{"text":"_MessageRemindersPanelState.build (cognitive 16): _MessageRemindersPanelState.build has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (8 pts), if/else 4 (6 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/scheduling/message_reminders_panel.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b00a192c2040c9028a3046ca2ab78dbbc10d9549f3dafbfc8569fa5839d854d"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsSection.build (cognitive 16): SettingsSection.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 7, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/widgets/layout/settings_section.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"690297b204a4d35c536a3389dd05e2308fec619e2f25c8e01d6a4131d6dd22e4"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatState._computeCreatorSubtitle (cognitive 16): ChatState._computeCreatorSubtitle has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 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":"lib/app/state/chat_state.dart"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"804bf0095a8fcfe881ba76ec1f3190cd18a5f7b81e515c0f1c6e99943a720517"}},{"ruleId":"D2","level":"warning","message":{"text":"Chat.sort (cognitive 16): Chat.sort has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 11, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/chat.dart"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2beabd1054edf97b212e912ce5bc36d83499d7d86e749102c7b8a4c06716e6d"}},{"ruleId":"D2","level":"warning","message":{"text":"Chat.sort (cognitive 16): Chat.sort has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 11, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/chat.dart"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6c93ed27987fda4b1a44623cded02ae4e14f092b3181eda883e0a29bd12cdd"}},{"ruleId":"D2","level":"warning","message":{"text":"UrlSafetyGuard.looksNumeric (cognitive 16): UrlSafetyGuard.looksNumeric has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 3, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/network/metadata/network/url_safety_guard.dart"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4f68fd375ede82a549971f4cf72f595282b4f398f1f7f3086fd784d60dd90c"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentActions.adoptRekeyedGuids (cognitive 16): AttachmentActions.adoptRekeyedGuids has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (11 pts), boolean chains 3, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/attachment_actions.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf606c925221dd62d11df67f8e207853a064539005ca7754f0535bf19146f4bd"}},{"ruleId":"D2","level":"warning","message":{"text":"SyncActions.bulkSyncData (cognitive 16): SyncActions.bulkSyncData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 6 (8 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/sync_actions.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e906bc461532eaba07652ae3d643d999d1ea2eca260b94d79d055f44db95f3"}},{"ruleId":"D2","level":"warning","message":{"text":"IncomingMessageHandler._replaceMessage (cognitive 16): IncomingMessageHandler._replaceMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/incoming_message_handler.dart"},"region":{"startLine":634}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc64f73069cd7f9cc149e2186f7547d663f61a0db036fb870c38f1778c340d4c"}},{"ruleId":"D2","level":"warning","message":{"text":"AttachmentsService._writeOnMobile (cognitive 16): AttachmentsService._writeOnMobile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), error handling 1 (3 pts), boolean chains 2, ternaries 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":"lib/services/ui/attachments_service.dart"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c49894e9cb0addb81a556e22f84d6cc5b21546298c50ca36f41811a40c31ef"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatsService._sortCompare (cognitive 16): ChatsService._sortCompare has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 11, if/else 5. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbf5c5418ddd528d9ff06d840c7afcf5a435377ed99cd0aac77fbe245eac6ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatsService.markAllAsRead (cognitive 16): ChatsService.markAllAsRead has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (9 pts), boolean chains 4, loops 1 (2 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ed12b2d43f1fe5117c6074dca91512f1e37b5e88fc9c8a83289ebefd9290aa"}},{"ruleId":"D2","level":"warning","message":{"text":"HandleService._setupRedactedModeListeners (cognitive 16): HandleService._setupRedactedModeListeners has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 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":"lib/services/ui/handle_service.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"826ca7c53266a09666f47f0f09a0bbf5d7f3d84aeda4aa1e002a468b6298565a"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesService._handleNewMessage (cognitive 16): MessagesService._handleNewMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (16 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"e072ec12eb49278f0de36c4a3980d29aadd6c12cd0f81fe1e8368736f4f49536"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesService._updateIndicatorsForMessage (cognitive 16): MessagesService._updateIndicatorsForMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48a105699e00df873239d6c3cd93f08665a9322c43dc90d1e27ba7db5df4825"}},{"ruleId":"D2","level":"warning","message":{"text":"MessagesService.editMessage (cognitive 16): MessagesService.editMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 1, error handling 1, ternaries 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":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57b7f154520a5f8a7a231fbd56060f74d67b208829bb72a7f2d656a4932acc8"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerUrlRequestHandler.handleMethodCall (cognitive 16): ServerUrlRequestHandler.handleMethodCall has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), error handling 4 (7 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/firebase/ServerUrlRequestHandler.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c80cb31a02ce509570af00597c8a99b598131c8e6b82e2244e6ad2bf858cfdb"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalIntentReceiver.updateReactionButton (cognitive 16): InternalIntentReceiver.updateReactionButton has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 4, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/intents/InternalIntentReceiver.kt"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cab0ca4a2e4e2e1707d3e7826eb895bd253bbb8e9587398734e717e5ebf4fe0"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateIncomingMessageNotification.handleMethodCall (cognitive 16): CreateIncomingMessageNotification.handleMethodCall has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14, boolean chains 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":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/notifications/CreateIncomingMessageNotification.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e961e7d763ca45352cb43565764bbdb6051370778d965b1f2be55a48ce1ff5a9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _DesktopPanelState.build: MethodTooLong \u2014 build runs 565 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 465 over it, 5.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":"lib/app/layouts/settings/pages/desktop/desktop_panel.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d710d23d9c55c3305df1279da4dba469d9df4ca410acce9867766e0cc0235b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ThemingPanelState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/settings/pages/theming/theming_panel.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab4846761e2bfe46cfa3264f59c5a8d14a00b46cae006651fbd7cf113e02684"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatListPanelState.build: MethodTooLong \u2014 build runs 406 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 306 over it, 4.06\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":"lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec401d5479e6a40981b666fbf7b0d1742a084ee73ad5cd6c4e13edcf5888e77"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ConversationPanelState.build: MethodTooLong \u2014 build runs 389 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 289 over it, 3.89\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":"lib/app/layouts/settings/pages/message_view/conversation_panel.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"255c6eb2522a7699d54d974e93fd32251b1faf26fad1ef0527d73a1ca9fbc525"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SearchViewState.build: MethodTooLong \u2014 build runs 383 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 283 over it, 3.83\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":"lib/app/layouts/conversation_list/pages/search/search_view.dart"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71fb5afc52687d37289bf29663ac3f6c6ab28cbffbcb585e4f1a740049e0e5f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ServerCredentialsState.build: MethodTooLong \u2014 build runs 378 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 278 over it, 3.78\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":"lib/app/layouts/setup/pages/sync/server_credentials.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec060c3272a6c8efc90f9c102f7ca8114ad6dd80c707bd0a717f2b7a8eb1070"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _MessageHolderState.build: MethodTooLong \u2014 build runs 365 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 265 over it, 3.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":"lib/app/layouts/conversation_view/widgets/message/message_holder.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e11ad39dd550063a5d95f88cd9bb69b66d4bf4c4fdffa7500d5a41c91da1c2b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _MiscPanelState.build: MethodTooLong \u2014 build runs 363 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 263 over it, 3.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":"lib/app/layouts/settings/pages/misc/misc_panel.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55be744141509f3b396decf4beb3d96f79fd23bc6cee5f84e6de751345a69fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AdvancedThemingContentState.build: MethodTooLong \u2014 build runs 337 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 237 over it, 3.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":"lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0af3a5a6e26a7af4be4b157cde42d6941be631ba27c3bdcc70fe6aeef6ca2a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _TroubleshootPanelState.build: MethodTooLong \u2014 build runs 332 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 232 over it, 3.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":"lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1e5caeb6882e8cfeab09b83037e1b2072830f28ab9c798a3ad497c678d56e7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextFieldComponentState.build: MethodTooLong \u2014 build runs 302 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 202 over it, 3.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":"lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce216d9d5792fc87d85e5281930dfcef093039498cd50a7528f9a7152b7163ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _FirebasePanelState.build: MethodTooLong \u2014 build runs 290 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 190 over it, 2.90\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":"lib/app/layouts/settings/pages/advanced/firebase_panel.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b71b44ecaf681ff781c3691fd4735ce6f27bf15b79d5594e6e876bf0cf0c74"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Message: TooManyMethods \u2014 86 methods. The bar is 30 methods; this is 56 over it, 2.87\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":"lib/database/io/message.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"380a00cba6fcd499ba4b8c1d8758ed03817957ab38b0202eff3f7eaac2f92548"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatCreatorState.build: MethodTooLong \u2014 build runs 282 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 182 over it, 2.82\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":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"d068ff7d903739ae2351c47e85c360689a860d436c4711a9161488aaae0d51f9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatsService: TooManyMethods \u2014 84 methods. The bar is 30 methods; this is 54 over it, 2.80\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":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be576e01850bfc37f65a537638b80af7ce96462b501c2e83255c06efa201c61"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ProfilePanelState.build: MethodTooLong \u2014 build runs 264 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 164 over it, 2.64\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":"lib/app/layouts/settings/pages/profile/profile_panel.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"de2b825a4f0004aa12939ea22256d9183653b707385e5c71ac9a15e4c697e9ed"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Settings.updateFromMap: MethodTooLong \u2014 updateFromMap runs 263 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 163 over it, 2.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":"lib/database/global/settings.dart"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6564af828e4a349b88614fcced5e47ace4e60bb0c627bbf6e3ebcc26404dce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _MessagePopupState.build: MethodTooLong \u2014 build runs 262 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 162 over it, 2.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":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4c501781ba79f1b9ff7be0fcf7919a1b5082a03820d2a75943320e17bf8684"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PrivateAPIPanelState.build: MethodTooLong \u2014 build runs 255 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 155 over it, 2.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":"lib/app/layouts/settings/pages/advanced/private_api_panel.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e252c6a536da226a0136b9c90eca3742a7b7bdce7a72723d3a7026bea7c3d0c2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContactV2Actions._syncContactsToHandlesInternal: MethodTooLong \u2014 _syncContactsToHandlesInternal runs 249 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 149 over it, 2.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/contact_v2_actions.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76d57ad9c09f579b61154b067c68349ee36d1bdae21cb1f4136c2925c425cbd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AboutPanelState.build: MethodTooLong \u2014 build runs 244 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 144 over it, 2.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":"lib/app/layouts/settings/pages/misc/about_panel.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ab5a254e4f0e50900def3f31faa6a77cc706c5d578c687ab839eca7203d5fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _NotificationPanelState.build: MethodTooLong \u2014 build runs 243 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 143 over it, 2.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":"lib/app/layouts/settings/pages/system/notification_panel.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9c9e2e82628c610813aedd8c7a11c67e773d9c6ce4ec6da0d4851821fa4745"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConversationFullscreenHolderState.build: MethodTooLong \u2014 build runs 241 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 141 over it, 2.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":"lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3aae7dad99660566d55f959b8c58f0004d3ee1d8c545774af9f5b390b03fccf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConnectionPanelHelpersMixin.buildConnectionSyncSection: MethodTooLong \u2014 buildConnectionSyncSection runs 225 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 125 over it, 2.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":"lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce39aea13057ac28039c46065d8c4eb889cc1b10c752feb5d198218e224cccb6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MessagesService: ClassTooLong \u2014 892 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 400 significant lines; this is 492 over it, 2.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f46e1cc9cb8bb0780dc676880678bbecadfa01e5077e4bcd43153215a3a8439b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatOptionsState._buildContentGroup: MethodTooLong \u2014 _buildContentGroup runs 218 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 118 over it, 2.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":"lib/app/layouts/conversation_details/widgets/chat_options.dart"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e07b547ee9909c3ba39fd1dad6f03ce5012b6e39794f575515901ab2892399"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AttachmentPanelState.build: MethodTooLong \u2014 build runs 218 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 118 over it, 2.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":"lib/app/layouts/settings/pages/message_view/attachment_panel.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e806bba4d226d837080eb12e35919fd4f20b0e2ef3a5018ca04972610106eea"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatsService: ClassTooLong \u2014 870 significant lines (blank, comment-only and punctuation-only lines excluded), 84 methods. The bar is 400 significant lines; this is 470 over it, 2.18\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":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d8aeb7b3d74210ac37f25479fdc2cd95502c1e15b38c08be51f743d5faf7e0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CupertinoConversationListState.build: MethodTooLong \u2014 build runs 216 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 116 over it, 2.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":"lib/app/layouts/conversation_list/pages/cupertino_conversation_list.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"6751e4248e759c3b63b3cacf52ce97bad19bceab2ca3b385b99eb2632e6121ab"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _OauthPanelState.build: MethodTooLong \u2014 build runs 214 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 114 over it, 2.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"82dd651de101f6c1337b45f316b32a09fcaba74e374fa911974930a00786a8d5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MessageState: TooManyMethods \u2014 64 methods. The bar is 30 methods; this is 34 over it, 2.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":"lib/app/state/message_state.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6011f88b022e8f2aadcfb503567347764e6ebc3d28304b057a632414a6a94e4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Settings: ClassTooLong \u2014 812 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 412 over it, 2.03\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":"lib/database/global/settings.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1fc01f59c421d9a748025c57b3b14633cfa156aeabeeaeba5a5aaeb0c8fba94"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _MediaGalleryCardState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_details/widgets/media_gallery_card.dart"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffab7f3f3314f42940d5566a2435285176ccf3f7065aa9bdbf78870d36e1e22d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OutgoingMessageHandler: ClassTooLong \u2014 763 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 363 over it, 1.91\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":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"74433e2182c94b4646fa343514afc542a1fc90f664d9d36adb4fbbaba4bde24a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConnectionPanelHelpersMixin.buildServerActionsSection: MethodTooLong \u2014 buildServerActionsSection runs 188 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 88 over it, 1.88\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":"lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"479bf8c8167bfe37da17b848f56e286229e567ec9bd8eabda4fe4b02957fe346"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: custom/custom_cupertino_alert_dialog.dart: FileTooLong \u2014 938 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 438 over it, 1.88\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_cupertino_alert_dialog.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"848f5a856c7b4a42d734d1079118d436378ca1d378a02472e04c5d1265144229"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MessagesService: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\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":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3223cc18c676afbcba4a287220bc309a5fbbfbbd363b85d831bbefc75974da5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: message/messages_service.dart: FileTooLong \u2014 932 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: MessagesService (54-1763). The bar is 500 significant lines; this is 432 over it, 1.86\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":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"741298730fdca5cfe5caa8e8060e2766540d059e409097a710bc7d998843bd24"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ThemesService.materialYouTheme: MethodTooLong \u2014 materialYouTheme runs 184 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 84 over it, 1.84\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":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc7e541f9a8661cf4860ecc760741af20eeac21746219c508372dca1f69796b9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Message: ClassTooLong \u2014 721 significant lines (blank, comment-only and punctuation-only lines excluded), 86 methods. The bar is 400 significant lines; this is 321 over it, 1.80\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":"lib/database/io/message.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd47bef699ac7cbce035ac3860f3f6654c1289dd803c75611b58f54c9e5adfc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat/chats_service.dart: FileTooLong \u2014 897 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: ChatsService (32-1719). The bar is 500 significant lines; this is 397 over it, 1.79\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":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"51004b53ce624130fc57e4a2bc4e662e7432e9f8467bfa860e215640e8678027"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: global/settings.dart: FileTooLong \u2014 896 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: Settings (38-986). The bar is 500 significant lines; this is 396 over it, 1.79\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":"lib/database/global/settings.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ba19a819a2268d948ab8fe6712fee4725c5958fd98b7d3680cf46329bed62a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _FullscreenVideoState.build: MethodTooLong \u2014 build runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\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":"lib/app/layouts/fullscreen_media/fullscreen_video.dart"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"d384c74485bfc5d5e4b385d71c9bb156c4702880ddbfb97c1acda601ce550ac0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Message: TooManyMethods \u2014 53 methods. The bar is 30 methods; this is 23 over it, 1.77\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":"lib/database/html/message.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9dafab145c8df5016c21c78ad48346f43fff529823a3af6f6690530845fea8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CreateIncomingMessageNotification.handleMethodCall: MethodTooLong \u2014 handleMethodCall 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":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/notifications/CreateIncomingMessageNotification.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"604688e4530a8e7bb982dec4e7969889b5aaeb6adb3c48150f42564cf28bedeb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _MaterialHeaderState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_list/widgets/header/material_header.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"737c498b9f20ba5115ca0190411b0a4847774c6857b7839568d472af0be67e4f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _MessagePopupState: ClassTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 267 over it, 1.67\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":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcfa545bace7cb4906ebf75ec4e1a29a7540445ef449e3f0beb25458806d91ee"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Chat: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\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":"lib/database/html/chat.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa26728f60e3f5f158a362ce0cc52748d0208e7a6221bb3437df2a88cf8e5274"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Settings.fromMap: MethodTooLong \u2014 fromMap 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":"lib/database/global/settings.dart"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"5060ecf350f13bc4dcd02ea36194b812382cf08955aaa631eacf7d67723e037f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _MaterialCreateScheduledMessageState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"199dd9dd0b43387ecf22e164e1f1e66a5606a388ec8cd8fc8b8a7002d3b1026e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsScaffold.build: MethodTooLong \u2014 build 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":"lib/app/layouts/settings/widgets/layout/settings_scaffold.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb1227850b2230c0c022874563053f58268f92a0c88965fa3168421b27d500bd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatOptionsState._buildConversationGroup: MethodTooLong \u2014 _buildConversationGroup 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":"lib/app/layouts/conversation_details/widgets/chat_options.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a19f6f765b2fabe326bfa68ab0c23ac5c6b204253f0ef0dfada750bd499f78"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _FullscreenImageState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/fullscreen_media/fullscreen_image.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"2254d63f614ba9d37eac8faebeb67a3122a1f34564a78823689a4e76007489bf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CupertinoCreateScheduledMessageState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5427f1ce4b7f4433587c8cb4f3596d8db8186ab03036cc5c6401701413aa57e7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatState: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\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":"lib/app/state/chat_state.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"687fe1aa094ac675a7307fa590e7fe04dacc51e1dd1184f08ce67ea16ed63e98"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _RedactedModePanelState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"22af613f8ca1fc0c2b35b8b8441de57c809c2fa7e3ccb24a4f9cf38cbc44ef7f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AttachmentsService: ClassTooLong \u2014 638 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 238 over it, 1.60\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":"lib/services/ui/attachments_service.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"917b7da06748d96358c8e30b3f7cbd7e34711141127fc62329aeda112dae40b3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: backend/outgoing_message_handler.dart: FileTooLong \u2014 791 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: OutgoingMessageHandler (70-1414). The bar is 500 significant lines; this is 291 over it, 1.58\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6975c9703a74952a1428ede81c91dfa506620643673361663e9e6e0c51f53804"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _VideoPlayerState.build: MethodTooLong \u2014 build runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a33cfbcfc98ef6ab105fef497088d3f754e47a5a24c9825046de1abde81b13f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ImageViewerState._buildStandardImage: MethodTooLong \u2014 _buildStandardImage 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":"lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8648aec5a6f0373bd46ce6d20d1e64a3ed7f543d5f6d48845a944e3288f4d0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Chat: ClassTooLong \u2014 618 significant lines (blank, comment-only and punctuation-only lines excluded), 46 methods. The bar is 400 significant lines; this is 218 over it, 1.55\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":"lib/database/io/chat.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf69e896539ff91b477c2efb544f7646a33af536044118a5249cd8fedbc468c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SamsungCreateScheduledMessageState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/settings/pages/scheduling/samsung_create_scheduled_panel.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f30dd5838844acd45c66575de00d09cf94418a762e54f5283b49adb24f61abc6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Chat: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\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":"lib/database/io/chat.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e151000cb4a5e3e697e064b413a52aef39ce95e0b8579e04df7d5a588dd7bc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NotificationSettingsDialog.build: MethodTooLong \u2014 build runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/dialogs/notification_settings_dialog.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eda30e6c03bce09d887d78b78788b01ff00fcd020bb8f5146e860e0ed0a0e88"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Share.location: MethodTooLong \u2014 location runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/share.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"494bd39f3c1a617da8859a3a85adcec27e3fdf193eb81be2374d79270a423548"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/ui_helpers.dart: FileTooLong \u2014 749 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 249 over it, 1.50\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":"lib/helpers/ui/ui_helpers.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34600d477e0cd444a3f7793f1ade00cacc10d2d1b6dc135b6e20ed0effa77c5a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Settings.toMap: MethodTooLong \u2014 toMap runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/global/settings.dart"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"084347a71cde27b7e3df8b76bc88349efdb4eda93c247ea9e288380520f6d8be"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExpressiveChatOptions._buildConversationGroup: MethodTooLong \u2014 _buildConversationGroup runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"c022fdb44c8160f80224f285ce707f3e46feabc67b8938fea9a9b9ff3ff14748"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: io/message.dart: FileTooLong \u2014 737 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Message (21-1139). The bar is 500 significant lines; this is 237 over it, 1.47\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":"lib/database/io/message.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fade2fa1fed36991ddde1fb223327125ac41571997c57b118eedcc133c21c33"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ConversationPeekViewState.buildDetailsMenu: MethodTooLong \u2014 buildDetailsMenu 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":"lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ce61a5dfb370c6ef1ea14885d899288d14df6456a39e6154ee779de998b865"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReactionWidgetState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_view/widgets/message/reaction/reaction.dart"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cb2253483af111bb853780d45a05498d4277a8620c34cd531b6aaee3d5b1828"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ModeGroupState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab875eabc0e84fe23b7f485a7ec78b2fdf972984a953db54f53a0bce3408ad0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: popup/message_popup.dart: FileTooLong \u2014 734 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: _MessagePopupState (70-974). The bar is 500 significant lines; this is 234 over it, 1.47\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":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a5e48b9914774820f33f8e8bed33ff57faabe0aca85c046f28b6b6127049de"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _DesktopPanelState: ClassTooLong \u2014 577 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 177 over it, 1.44\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":"lib/app/layouts/settings/pages/desktop/desktop_panel.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e85efd587c362be592f427d7af69a6578ea2eb2ead5b9375be9f185fa995207"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ReplyBubbleState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2634baaa88a20b3dc818a8e592b318c98e53205785919e4b99380049568dda2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SyncProgressState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/setup/pages/sync/sync_progress.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d12148d1e389e631b82c2d7372f5e982e329ec3abfd769afef12641eb766a6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ThemesService: ClassTooLong \u2014 573 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 173 over it, 1.43\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":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdbb0ad263d516f4b981f78f5497040b4558928a1f1aa25907dc05dbffb64d0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ChatOptionsState: ClassTooLong \u2014 571 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods. The bar is 400 significant lines; this is 171 over it, 1.43\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":"lib/app/layouts/conversation_details/widgets/chat_options.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ee6ef87afcd69423bc948550d64f9ed07f43e8ec8ab6434d51cb477e2b1455"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatSelectorViewState.build: MethodTooLong \u2014 build runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\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":"lib/app/layouts/chat_selector_view/chat_selector_view.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd69e21beb6a9a09b24c4bf91d0bfac8365a33d666654bdc6ddebd43ff42b6c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ThemeStruct.fromMap: MethodTooLong \u2014 fromMap 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":"lib/database/io/theme.dart"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"445b175e2cfee07cb6f111bc7fdd557053a18c36f4c5bdce6b704ffef2f8abf6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DownloadingContent.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_view/widgets/message/attachment/parts/downloading_content.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf14145f620ca98b2ddb9a7d7a07de3e1a5dad748bb6dfb3786230f90191f832"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatActions.addMessageToChat: MethodTooLong \u2014 addMessageToChat 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":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"426fddc2ea4161a1b1bf56a3b50a15c1d82b69c0e569997effaac3a12c0ed337"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: components/custom_text_editing_controllers.dart: FileTooLong \u2014 677 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 177 over it, 1.35\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":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a081d108be0d0f4a68c6200ed63fc9a5fe866621bfedbe608552beadce79cad1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MaterialHeader.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_view/widgets/header/material_header.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"03bfee3af1b25a33e00dc15ca5b4c31cc7491a3ec788ccddd477a7aa5ee40cbe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: connection_panel/connection_panel_helpers.dart: FileTooLong \u2014 671 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 171 over it, 1.34\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":"lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"213b822882d75b447ddb44526e1877e5e13bc2bdebcd4880a6fde34fb9e8b32f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: ui/attachments_service.dart: FileTooLong \u2014 671 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: AttachmentsService (42-1141). The bar is 500 significant lines; this is 171 over it, 1.34\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":"lib/services/ui/attachments_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d5866ee5beefa6bee24bc7127d3ad3df1dae0759e5b75f88b2e7a42ee68f25"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ServerDetails: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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":"lib/models/server_details.dart"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"556e4bd700b90c3a5dd3bd3f600f8f66d20cd9fdf3c766ef4461aaee27eae293"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseLogger: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\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":"lib/utils/logger/logger.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"794fe329caeaba1d7999e6f2511cfb5ccebddecd109fbcc072b93db40d0aa3ba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _MessagePopupState._allActions: MethodTooLong \u2014 _allActions 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":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e33b1593f829b392b35c55bf88bdba2059237e60c3c626fbd99a8ef53d1a521"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _BackupRestorePanelState: ClassTooLong \u2014 526 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 126 over it, 1.32\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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1fa8fa51eac807b6f560ce52a48146fdbdda80da29f2ea451c38dbe7ee515e9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatActions: ClassTooLong \u2014 524 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 124 over it, 1.31\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":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"711332a4ebb4a5130b293bdba79cc46d13cf9fa7339ed12a6165d18ec8732881"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _EditModeTextField.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c2bacf7715fefee1ed17c62bc8078a8e8a2569d2dd1830e9bdebe2ffeddc4b3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NotificationsService: ClassTooLong \u2014 523 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 123 over it, 1.31\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":"lib/services/backend/notifications/notifications_service.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8afc73ee0d2418dfcd11bed5120e63b03ad107fc24a725f3e756c25253a57354"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/preset_theme_strip.dart: FileTooLong \u2014 650 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 150 over it, 1.30\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":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"317eafbbdaba1c0e581625b90f255884f11b2436f211f9e2e24cbbeedf98d540"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _BackupRestorePanelState._createSettingsBackup: MethodTooLong \u2014 _createSettingsBackup 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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22bd507bbad14ed0a793e828da10dd5be8cffc3dc9d99abde4837ee7c9b7421"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SocketService: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network/socket_service.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e963147459427c0f94f2680d789c07ff2cddbf89f224cdc3746def58b7285806"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: io/chat.dart: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Chat (20-976). The bar is 500 significant lines; this is 133 over it, 1.27\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":"lib/database/io/chat.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bda9bb41ace8214fa8ccba561c25ab493b1fe3cc074764428c6a5b979bee22"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ServerCredentialsState: ClassTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 104 over it, 1.26\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":"lib/app/layouts/setup/pages/sync/server_credentials.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8319cadffc5e49bdd11a71516642c09bbf8ad2650ed8f9caceb012a56c098e52"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PhotoSlideshowState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_view/widgets/message/interactive/photo_slideshow.dart"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fe6c16e0d718698e876a25093ab49cae3b39e85e3e2f95d6c1007aa898ca43"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SearchResultsList.build: MethodTooLong \u2014 build 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":"lib/app/layouts/chat_creator/widgets/search_results_list.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a82d1ee821d611391ef7c24bd40671eefec15cba5d7961abb86b1ebca0aeb6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _RecordingButton.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_view/widgets/text_field/text_field_suffix.dart"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c65dbfba4c4d0050653cf09661295fad260469521018ee4af9546aef0b16c40"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Attachment: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/attachment.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d709e2ae751e92218b4482b4b6b8002e4770162016ae208571ed5f35ca4713"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MessageState: ClassTooLong \u2014 492 significant lines (blank, comment-only and punctuation-only lines excluded), 64 methods. The bar is 400 significant lines; this is 92 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/state/message_state.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"910bf72e42b57b158ae4468363ee9c45bc4a9bb356f5a527360f4e271ffc693b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingsPageState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/settings/settings_page.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"6694329175a3f800bfd7f398a33df82dcf8f30a0e6a6a6d438f12c40a209ea99"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _WelcomePageState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/setup/pages/welcome/welcome_page.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd1f499205e3655b82c717bfb82c90ee908c246442a5d67f07df1b046a7136b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ThemingPanelState: ClassTooLong \u2014 488 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods. The bar is 400 significant lines; this is 88 over it, 1.22\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":"lib/app/layouts/settings/pages/theming/theming_panel.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d294f448a0ec3439daf7f2768025a76417195671bdbe7a3ccfa6c50eed8d607"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: InternalIntentReceiver.onReceive: MethodTooLong \u2014 onReceive 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":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/intents/InternalIntentReceiver.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b81f23ccaafb6987b095f0e67d2cec1c231f58104f883b5d131177cb686fa7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncSettings.build: MethodTooLong \u2014 build 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":"lib/app/layouts/setup/pages/sync/sync_settings.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"27dd2c3d4523ce7b6a77bf80da67a0efa007c227fed8c8eeb3ea789b445a5232"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatCreatorController.sendMessage: MethodTooLong \u2014 sendMessage 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":"lib/app/layouts/chat_creator/chat_creator_controller.dart"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"966334b1203a5585ed3593d2fab532c179f7d50414412e9c7163c62a3addb1ce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CupertinoContactsManagementPanel.build: MethodTooLong \u2014 build 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":"lib/app/layouts/settings/pages/contacts/cupertino_contacts_management_panel.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07135bd07c4950466264ae48642201a0cf6fec1cf0037673adf6f79186539f6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/chat_options.dart: FileTooLong \u2014 604 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: _ChatOptionsState (47-811). The bar is 500 significant lines; this is 104 over it, 1.21\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":"lib/app/layouts/conversation_details/widgets/chat_options.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea461a05105b8c664b620aeb62193ea64581b54fa2dfb090002743a33637343"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UrlPreviewController: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"lib/app/layouts/conversation_view/widgets/message/interactive/url_preview_controller.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e22901c5ab5233fff378e4793a762b19134fb91a92afe8971fd6d6a6ffc4394"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ThemesService: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\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":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a356f7870ecb779c8a940c5e2df8ccbbc79b3d8d7cd5d71c508a747fd0f566"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ExpressiveChatOptions: ClassTooLong \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded), 11 methods. The bar is 400 significant lines; this is 80 over it, 1.20\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"65162189d976031108e79e8800ada7a29528f46cf1b1160a76992181fe10f4ae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: theme/themes_service.dart: FileTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: ThemesService (33-796). The bar is 500 significant lines; this is 100 over it, 1.20\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":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f23166779cb6d07d2cb3f324f74445da014e5190aadd566e1eaa9f1d0ef6310"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContactsExpressiveBody.build: MethodTooLong \u2014 build runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\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":"lib/app/layouts/settings/pages/contacts/widgets/contacts_expressive_body.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a07401c43cfe3992236699ae3fad309be7905f509f44e114b860281902d2106b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: desktop/desktop_panel.dart: FileTooLong \u2014 597 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: _DesktopPanelState (26-762). The bar is 500 significant lines; this is 97 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/desktop/desktop_panel.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0ba64951ca86ba07a39b19500b512dfa283e2c408068e3f3f33b12d308f4af"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatInfoState.build: MethodTooLong \u2014 build runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\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":"lib/app/layouts/conversation_details/widgets/chat_info.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"4859eeee172a9d9dd3208b97a0e3524b78412e7548b4a7fd5dd36a50fc14a6fd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextFieldComponentState: ClassTooLong \u2014 474 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 74 over it, 1.19\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":"lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"3662cfdcec7754a1caca504814bea57400dd3475f2c523d2730dc5190353aebe"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MentionTextEditingController: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1907c094bd537c2c9ea6041301c6ce79928d38aa2d6f802db4c0a0becdede2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _MessagePopupState: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\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":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02f419d6737e16d8c846aa92c70ab517dc4a15f008d6a7059d83f06bb4198a3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MessagesViewState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_view/pages/messages_view.dart"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb54a73ec989d0d54c54edd27918b7e9a0c7dcd716694825c4c42b98bbd8ca02"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Main.build: MethodTooLong \u2014 build 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":"lib/main.dart"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8941e53228becac7d93ee0eda723fadec3b55043630f4ac7eef34cd9be64bfd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AttachmentsService: 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":"lib/services/ui/attachments_service.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53ec6c85220ba5c76b93ca6f3fec24f072ea6e177b69c4f4336988efc9b70e6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SyncService.startIncrementalSync: MethodTooLong \u2014 startIncrementalSync 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":"lib/services/backend/sync/sync_service.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91ab11deb64902cc5072ce65affaa13f585f2fac299bafba39d72d4571ce8f3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SearchViewState: ClassTooLong \u2014 448 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 48 over it, 1.12\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":"lib/app/layouts/conversation_list/pages/search/search_view.dart"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec788175a176ec76a31475b37c21f7518cecbe472e8d5e6ac4bd40bd17da100"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MaterialAvatarMenu.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_list/widgets/header/header_widgets.dart"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e06cc238443fef3cb14b916ffbfed73cb31f12aa2a642f8d954683e1b4f2a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PickedAttachmentState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_view/widgets/text_field/picked_attachment.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f31cc3b04f4be4f2664c502d137040fc1d3c74b6a86231628e83f72f0baf45"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Message: ClassTooLong \u2014 447 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 47 over it, 1.12\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":"lib/database/html/message.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67f3c144973ba917379668a7865510b1c44eead4eb94a623fa4db876e71aa21"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MessagesViewState: ClassTooLong \u2014 447 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 47 over it, 1.12\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":"lib/app/layouts/conversation_view/pages/messages_view.dart"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"53aad2991e3c7380256c7a5c40197170c9e51b184744e15f3614776aed743b8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: notifications/notifications_service.dart: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: NotificationsService (43-797). The bar is 500 significant lines; this is 57 over it, 1.11\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":"lib/services/backend/notifications/notifications_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef261b96153f8e3cde700e897677ad4b1ba75ecf1ccc110321f50706ad74aab"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: server/backup_restore_panel.dart: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: _BackupRestorePanelState (35-762). The bar is 500 significant lines; this is 55 over it, 1.11\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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba259a374fd76b8c971deb03a0332e744aafb28e876cdb29eaae513594e1f1e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CacheTuningPanelState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/settings/pages/misc/cache_tuning_panel.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a94f45b7f5f242a223279d5d95b8d25ecbdd644376090a01b644a909d9ad53"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sync/server_credentials.dart: FileTooLong \u2014 553 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: _ServerCredentialsState (29-721). The bar is 500 significant lines; this is 53 over it, 1.11\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":"lib/app/layouts/setup/pages/sync/server_credentials.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45058c758bf19f866936ad385569d081f2b3514cda0c5264210592dbea336cb0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ConversationPeekViewState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d509a4a7eca1adadc5ffd43c2207f99fd8d9b1e3b1c6f83cb2c234e6de75dc16"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: theme_studio/theme_studio_panel.dart: FileTooLong \u2014 548 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 48 over it, 1.10\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":"lib/app/layouts/settings/pages/theming/theme_studio/theme_studio_panel.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"391dbac31096b813ab1ce2e6358222cbc75932e7296b123988a2a3fa3e4e95f9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsService: ClassTooLong \u2014 428 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods. The bar is 400 significant lines; this is 28 over it, 1.07\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":"lib/services/backend/settings/settings_service.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2e0f3afb6d65c187eaf622409a888c149439bd2286ac52649a8fa67d7685e0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: actions/chat_actions.dart: FileTooLong \u2014 534 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ChatActions (12-873). The bar is 500 significant lines; this is 34 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":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54cdb0df63b6d116c257e0cd76a25d02b0c9ecfa30a1a2390b10df21c8572198"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OutgoingMessageHandler: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"048e99f083fc5b4e7483443de42e0963d02a8ed8811953b873e6a459a7bd3644"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatStatsQueries: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"lib/services/ui/chat/chat_stats/chat_stats_queries.dart"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"effe794adf7f40d193168fca737c20786fbea4440546ccf7aaa41144196b5377"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatCreatorState: ClassTooLong \u2014 425 significant lines (blank, comment-only and punctuation-only lines excluded), 7 methods. The bar is 400 significant lines; this is 25 over it, 1.06\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":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"82f883b09f60b4a665c5d75880324157499319f78f7912fc0a7ecd495244889e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: text_field/text_field_component.dart: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: TextFieldComponentState (71-727). The bar is 500 significant lines; this is 31 over it, 1.06\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":"lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3626e40bca4938d3b2620ec77ec8fec417502ff3ea731f348f158fbe14823b96"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IncomingMessageHandler: ClassTooLong \u2014 424 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 24 over it, 1.06\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":"lib/services/backend/incoming_message_handler.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"1313bc9f6b19a56f32709818a402b377ff93ebf3a653339677ae74417714408e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _MessageHolderState: ClassTooLong \u2014 424 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 24 over it, 1.06\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":"lib/app/layouts/conversation_view/widgets/message/message_holder.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"615660ae68c017375c4c1afe85488f07f1afaf465332ee8e99118bb594ce8632"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ThemeManagementSection.build: MethodTooLong \u2014 build runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\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":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_management_section.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0f92d2d267206374e0b0a15f15a3009fd007fb145a543e1de72c19d69802fc"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ConversationPanelState: ClassTooLong \u2014 423 significant lines (blank, comment-only and punctuation-only lines excluded), 3 methods. The bar is 400 significant lines; this is 23 over it, 1.06\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":"lib/app/layouts/settings/pages/message_view/conversation_panel.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"538cafd3305c78a598d7e635692c50fcd5e5fa6c0cfda96582d940c5de780856"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: theming/theming_panel.dart: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: _ThemingPanelState (50-674). The bar is 500 significant lines; this is 27 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":"lib/app/layouts/settings/pages/theming/theming_panel.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"345fea65cfdece79d8143c615c785d209a75651d29ade3a99727fc9c39b695a2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContactAvatarGroupWidget.build: MethodTooLong \u2014 build 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":"lib/app/components/avatars/contact_avatar_group_widget.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"8313b2708986471df3cee7f9a1840c4e2c6dc0c3e16827d92ad47c45d602c410"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsOptions.build: MethodTooLong \u2014 build 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":"lib/app/layouts/settings/widgets/content/settings_dropdown.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce25790e1fe2e64b2087575d478dccd64ab76a5592a857cabf760c7993c3e0b2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GlobalIsolate: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\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":"lib/services/isolates/global_isolate.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"b320ab574b93cc8edea65ee513e78f1d71a13099f7aacd6e23756c322fc7bb77"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _BubbleEffectsState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_view/widgets/message/misc/bubble_effects.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa4ab5650436a3aff1399ad32bd50a12a14abd58964a8a346aa5cfa2b528833"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SamsungConnectionPanelState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"c946ad2f827a840a3f1c1ad2fe1d2429d49a5745c6b5a5bba095c51fb96acf78"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: attachment/video_player.dart: FileTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 12 over it, 1.02\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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf66c3acb2a947bd45bae7260e64a470dc008f997d5985bf56f45ef3d30cfb4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ContactV2Actions: ClassTooLong \u2014 408 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 8 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/contact_v2_actions.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac44d849f70cc37e58e8dedea53514046642d8043ef30c48fcf404536cd758a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _InteractiveHolderState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_view/widgets/message/interactive/interactive_holder.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a93abaf133a07769772bf5bd6d516cb5a273a6d6f692d6fc1266ecd7999266"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FullSyncManager.start: MethodTooLong \u2014 start 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":"lib/services/backend/sync/full_sync_manager.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e801f5af16e05b5835d0871f104f4033c786a9b2eef8ef33811c7083c6807541"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ChatListPanelState: ClassTooLong \u2014 407 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 7 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"0530ec83f3f39f4127377dfb98047d3f67b4b883e94ae97f0aa1a5ece27a3b95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: material/material_chat_options.dart: FileTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: ExpressiveChatOptions (38-682). The bar is 500 significant lines; this is 6 over it, 1.01\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a35be837e9073f9ec169654ae940d6e49811505058f39232c1849b5dd658e8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ContactTile.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_details/widgets/contact_tile.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd86d39cfcec1a0179a628864e0185bd1ad7ef350f906022595f93394449e8ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SamsungConversationListState.build: MethodTooLong \u2014 build 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":"lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fbce2a81ba7a8be4c279ed9b01622b8532bc3e9af013a5b041118047383580"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pages/messages_view.dart: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: MessagesViewState (46-802). The bar is 500 significant lines; this is 4 over it, 1.01\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":"lib/app/layouts/conversation_view/pages/messages_view.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"15560a0ff67dfdeae33b77bbfc61ddd22964585d44c3b2b90c99e140b4254364"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: state/message_state.dart: FileTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: MessageState (23-981). The bar is 500 significant lines; this is 3 over it, 1.01\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":"lib/app/state/message_state.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22db3af775d7a544da29d09d686a82246833690e3ef6a69b37206e631656223"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 28 shared lines): lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart:99-193 | lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart:158-252 | lib/app/layouts/conversation_details/widgets/sections/locations/locations_section.dart:112-197 | lib/app/layouts/conversation_details/widgets/sections/media/media_grid_section.dart:225-324 \u2014 These 4 members are variants of one another: a block of 28 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 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":"lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc52da4e2de7edf6e2d10f11b88a2ae47de23e324c803b43d20c325054f3093"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 141 shared lines): lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:35-267 | lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart:36-270 | lib/app/layouts/settings/pages/scheduling/samsung_create_scheduled_panel.dart:77-298 \u2014 These 3 members are variants of one another: a block of 141 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":"lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8eeb77bd68fc56bfa74f139ce3ae8ab8f25fa4144c2d11cedc2448846f8aea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 51 shared lines): lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart:111-217 | lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:120-208 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:126-220 \u2014 These 3 members are variants of one another: a block of 51 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":"lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"9959b9ee0ecfc71414000fabfe73e9328c58d1ac0aa43a57c71c74ee4827c424"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 35 shared lines): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:236-368 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:254-387 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:263-402 \u2014 These 3 members are variants of one another: a block of 35 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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"48342d82b0310b022d76ef36b896e65d7db00d8b05808917b26e5c9b1b752481"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 26 shared lines): lib/services/backend/sync/chat_sync_manager.dart:25-115 | lib/services/backend/sync/full_sync_manager.dart:40-196 | lib/services/backend/sync/handle_sync_manager.dart:35-158 \u2014 These 3 members are variants of one another: a block of 26 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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4fd7b69bc5b409da1fac69b5764e41fb75a126117e1f7551812e008d7feb28"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (69 shared lines): lib/database/html/message.dart:515-628 | lib/database/io/message.dart:869-1009 \u2014 These two members are variants of one another: 69 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":"lib/database/html/message.dart"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c796f2632faf53d9bd91fbd42ce11d5e995671984a1f6dd910a845f14efd74"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (63 shared lines): lib/app/layouts/conversation_details/material/material_chat_options.dart:576-681 | lib/app/layouts/conversation_details/widgets/chat_options.dart:413-693 \u2014 These two members are variants of one another: 63 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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"47943ac7d229b4fc73a2d56119e1ffe07bb4ea9282c5a60881b095ce8d2a2e4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (50 shared lines): lib/database/html/message.dart:130-213 | lib/database/io/message.dart:232-337 \u2014 These two members are variants of one another: 50 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":"lib/database/html/message.dart"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed49209595c20b5f23072e3894fd084dcd8eb577c32ae320497bbc1691b6990"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): lib/app/layouts/conversation_list/widgets/footer/samsung_footer.dart:19-115 | lib/app/layouts/conversation_list/widgets/header/material_header.dart:24-254 \u2014 These two members are one piece of code written twice and then edited apart: 87 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":"lib/app/layouts/conversation_list/widgets/footer/samsung_footer.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c4398f2b14a0cb3b0e4717bbcfaac714314fdaf6aab64883e9d0fc93fa3bf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (74 corresponding lines): lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:133-206 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:142-215 \u2014 These two members are one piece of code written twice and then edited apart: 74 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":"lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"59eaa3d6e0e2fee969a3569e8f2cd9c4a14643865ee79c272444c259b961373e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): lib/app/layouts/conversation_view/widgets/media_picker/text_field_attachment_picker.dart:124-155 | lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart:405-435 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/media_picker/text_field_attachment_picker.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6699c83b22916f6317a84d65273ed079b86aa6af091488209c08344fee9fafbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): lib/app/layouts/settings/pages/server/oauth_panel.dart:87-368 | lib/app/layouts/setup/pages/page_template.dart:176-280 | lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart:45-154 | lib/app/layouts/setup/pages/setup_checks/mac_setup_check.dart:11-64 | lib/app/layouts/setup/pages/sync/server_credentials.dart:49-551 | lib/app/layouts/setup/pages/sync/sync_progress.dart:62-256 | lib/app/layouts/setup/pages/sync/sync_settings.dart:17-187 \u2014 These 7 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 7 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 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e452fc6d72b74cde681b14d3f8ad19062bcda60876cb3a62a8f124f9bb33975"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/app/layouts/chat_creator/chat_creator.dart:271-667 | lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart:106-255 | lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart:358-704 | lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart:62-278 | lib/app/layouts/setup/pages/welcome/welcome_page.dart:62-234 \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":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"89a388ab9e1d17c24f78fb922ce0717acb8f8b0426ca0c705267235b589b82d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/app/layouts/chat_creator/widgets/chat_list_section.dart:28-139 | lib/app/layouts/chat_creator/widgets/search_results_list.dart:50-244 | lib/app/layouts/chat_selector_view/chat_selector_view.dart:89-280 | lib/app/layouts/contact_selector_view/contact_selector_view.dart:67-186 | lib/app/layouts/handle_selector_view/handle_selector_view.dart:107-239 \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":"lib/app/layouts/chat_creator/widgets/chat_list_section.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"079150ae86c66f73645da090937d4f7cb3e9fff878c57cec3e3a484bb2229c3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/app/components/wallpaper/floating_wallpaper.dart:68-144 | lib/app/components/wallpaper/moving_background_wallpaper.dart:61-122 | lib/app/components/wallpaper/particles_wallpaper.dart:96-142 | lib/app/components/wallpaper/wave_wallpaper.dart:46-110 \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":"lib/app/components/wallpaper/floating_wallpaper.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d471c38d35d66bced61f833f9e24a05abc96011043a7b107091dd8372d404361"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/app/layouts/chat_creator/chat_creator_dialogs.dart:38-55 | lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart:290-403 | lib/app/layouts/settings/pages/scheduling/create_scheduled_mixin.dart:64-135 | lib/services/backend/java_dart_interop/intents_service.dart:134-178 \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":"lib/app/layouts/chat_creator/chat_creator_dialogs.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a164aa0a89c7906447aeb0063764209d7795fbc9ea47a09c72b87811c4269c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart:435-450 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:659-674 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart:634-649 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_overview_tab.dart:278-293 \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":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b44d762bf16ad8d42defb71b407423196274e291ebb18e209def3ee362fa23"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/app/layouts/conversation_details/widgets/chat_info.dart:272-304 | lib/app/layouts/conversation_details/widgets/chat_info.dart:319-352 | lib/app/layouts/conversation_details/widgets/chat_info.dart:367-393 | lib/app/layouts/conversation_details/widgets/chat_info.dart:408-440 \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":"lib/app/layouts/conversation_details/widgets/chat_info.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"487974af6890d6a6be7e7eb4b767014575411a9ae67d12f900b6d05c33cafb41"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/services/backend/sync/chat_sync_manager.dart:127-156 | lib/services/backend/sync/full_sync_manager.dart:198-249 | lib/services/backend/sync/full_sync_manager.dart:251-284 | lib/services/backend/sync/handle_sync_manager.dart:224-251 \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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"dacd292cd4a52123bdaa4b7b6896804629ac5c7564bb743cf61b8477d18d5dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (201 corresponding lines): lib/app/layouts/conversation_details/material/material_chat_options.dart:175-375 | lib/app/layouts/conversation_details/widgets/chat_options.dart:196-411 \u2014 These two members are one piece of code written twice and then edited apart: 201 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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcedf8c2bbb9319c78ebbf4b920d8d76c306ad548f3f14a87453501933fa1f9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (73 corresponding lines): lib/database/html/theme.dart:88-160 | lib/database/io/theme.dart:138-218 \u2014 These two members are one piece of code written twice and then edited apart: 73 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":"lib/database/html/theme.dart"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"09fac52a0c464e8564594e6ee5c08342152700b09fbce8cc464408ea73987ffb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (96 corresponding lines): lib/app/layouts/conversation_details/material/material_chat_options.dart:78-173 | lib/app/layouts/conversation_details/widgets/chat_options.dart:86-194 \u2014 These two members are one piece of code written twice and then edited apart: 96 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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5476aad07cd6d914ae36b17776f646a02986721397d5cf11d1e1bcd6a239536e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (79 corresponding lines): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:26-104 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:53-140 \u2014 These two members are one piece of code written twice and then edited apart: 79 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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"66cefefa9fb0c8bcd8cf6f491d6c3614aa6de71256a40a19bcf6dc27e901aef0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/app/layouts/conversation_view/widgets/message/reaction/reaction_clipper.dart:19-43 | lib/app/layouts/conversation_view/widgets/message/reaction/reaction_clipper.dart:60-93 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/reaction/reaction_clipper.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"192864e6cc2837b79d8a45d3947eda4750a755c18e852b9a077b279776e36312"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart:203-253 | lib/app/layouts/conversation_view/widgets/header/shared/header_components.dart:65-118 \u2014 These two members are one piece of code written twice and then edited apart: 51 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":"lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5811ef808b9dcb672d3537a9463b201be452a70e9b898c06ab5a8d4c0faddad1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 66\u002B corresponding lines): lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart:13-84 | lib/app/layouts/findmy/widgets/findmy_friends_tab_view.dart:13-78 | lib/app/layouts/findmy/widgets/findmy_items_tab_view.dart:13-85 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 66 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53ea2ae154f84ef3a2c65e6d0b2ebab179fa9b06dd1cf5045a02576b06f0d01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:308-382 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_overview_tab.dart:214-270 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bceebdfe665890d27689ae5b55be86e5012a4d662b8a7ba23efc122bc484e46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): lib/database/html/message.dart:77-128 | lib/database/io/message.dart:177-230 \u2014 These two members are one piece of code written twice and then edited apart: 52 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":"lib/database/html/message.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef97f41432b93178e8121b22a59207ab66d2cb2f071765ff118374c5fa27332"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): lib/app/layouts/conversation_details/material/material_chat_options.dart:464-523 | lib/app/layouts/conversation_details/widgets/chat_options.dart:695-761 \u2014 These two members are one piece of code written twice and then edited apart: 60 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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f494a240f4d0e4610874ed7504274d72c411d1b934b72d90681abdade052fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): lib/app/layouts/settings/pages/server/backup_restore_panel.dart:347-387 | lib/app/layouts/settings/pages/server/backup_restore_panel.dart:555-601 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2642833707317db84b570a49ddc6fa3a3caa16f8e363d5b67b535ab01007cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): lib/app/layouts/conversation_view/widgets/header/material_header.dart:232-281 | lib/app/layouts/conversation_view/widgets/header/shared/header_components.dart:223-275 \u2014 These two members are one piece of code written twice and then edited apart: 50 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":"lib/app/layouts/conversation_view/widgets/header/material_header.dart"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"063769e08e9e39e6c27baf28cbf6f45722abb7399458f587ab107beb5a3cdd77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): lib/database/html/message.dart:630-673 | lib/database/io/message.dart:1093-1138 \u2014 These two members are one piece of code written twice and then edited apart: 44 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":"lib/database/html/message.dart"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"0773d00ce0811dcdcb312b140dfb0b368d6655dcca2f560dc780b181ff36a2f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): lib/app/layouts/conversation_view/pages/messages_view.dart:570-623 | lib/app/layouts/conversation_view/widgets/messages_view_components.dart:180-226 \u2014 These two members are one piece of code written twice and then edited apart: 47 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":"lib/app/layouts/conversation_view/pages/messages_view.dart"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c3868fdfbdd91c48e5b44197bb98d58d37959f767580b78be4fdc3a51bceb2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_preview_card.dart:395-444 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_preview_card.dart:446-487 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_preview_card.dart"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dbea84f70339748db98d766327a0b3d21e8a63d9aec80a7cde9aa708e88051"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart:273-332 | lib/app/layouts/conversation_view/widgets/header/shared/header_components.dart:165-221 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a502ec4048089c6505dc454a633ee4b2d0b58ef88d0616dc5c51753e69fb06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): lib/services/ui/chat/chats_service.dart:958-990 | lib/services/ui/message/messages_service.dart:1714-1762 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb66a7c89f9aa5d42a0c098adbbd60d8e74321c242ca16d089679445e577789"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): lib/app/layouts/conversation_view/widgets/message/reply/reply_line_painter.dart:111-145 | lib/app/layouts/conversation_view/widgets/message/reply/reply_line_painter.dart:147-181 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/reply/reply_line_painter.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44835e41d38cca0bdaf68516f381847901db37562af61795c6b3f0a6d33bc1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 41\u002B corresponding lines): lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart:28-76 | lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart:26-68 | lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:26-71 | lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart:37-83 | lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:48-88 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:48-91 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 41 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a13b58740227ffa42b0c63d1b0f370f570ed0b44b75bbcc676d207d07f7d8f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:200-234 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:208-242 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:217-251 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 35 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f5811c26f64b74079d906a3863945640565ffd6512fe433856a12f9167de7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 36\u002B corresponding lines): lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart:47-87 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart:40-75 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_overview_tab.dart:34-72 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 36 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f64be8219e4b9216ce6ff2a767582dc90ea174d21e489870a7777ed47edaa2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:90-124 | lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:90-118 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:93-124 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dec9f94adfb6483dc1ad86809c4643dfa8bb1119de21495bc6e77be4c29a546"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): lib/app/layouts/conversation_details/material/material_chat_options.dart:548-574 | lib/app/layouts/conversation_details/widgets/chat_options.dart:763-790 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda8bd4ddb25c08a897c1e49e655222acc50d089c060ff80098f9cfe778adf24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/database/html/chat.dart:546-564 | lib/database/io/chat.dart:888-915 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/chat.dart"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b7e43c3b69122d2f5ea05b5c59911ea243aab2187865188e84f3beaa563dd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): lib/app/layouts/settings/widgets/tiles/private_api_tile.dart:16-54 | lib/app/layouts/settings/widgets/tiles/redacted_mode_tile.dart:16-46 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/widgets/tiles/private_api_tile.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c842da62902c2ffc4e38b59327ba31e0762411365577e7d24bc6116267727c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): lib/app/layouts/chat_selector_view/chat_selector_view.dart:52-87 | lib/app/layouts/handle_selector_view/handle_selector_view.dart:42-82 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/chat_selector_view/chat_selector_view.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a1f75d9548e9ce0495e5bf1754cc56b3928d32013ee95a1a96cd3356f880a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): lib/database/html/chat.dart:514-544 | lib/database/io/chat.dart:853-886 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/chat.dart"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b9e4eb2d322f172e2edf7bb8e21bbd51f73dd77acfe635b7ecffc28aea35a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/services/ui/theme/themes_service.dart:186-198 | lib/services/ui/theme/themes_service.dart:200-211 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e4d01d6af9f1d7ee1d2a57c6c09974cac75ac078533b18a5a6de5340a8f9f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 35\u002B corresponding lines): lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:78-112 | lib/app/layouts/settings/pages/storage/widgets/storage_analyze_prompt.dart:14-54 | lib/app/layouts/settings/pages/storage/widgets/storage_expressive_analyze_prompt.dart:14-54 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 35 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c7c5852c9afc0c7a84785c279047d591e7627ba89342c347b3eddbe7fe72b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 28\u002B corresponding lines): lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart:82-109 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart:111-139 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart:165-193 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_management_section.dart:170-197 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb97a80f037ffc6f38bd97d8e0c83ccaea9cc27d67cc567f0aedb34afd8ef61b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): lib/database/html/chat.dart:105-139 | lib/database/io/chat.dart:148-186 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/chat.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"952e354430c32de83d417cd343f29330514c9e706445c74c774a04621b3c381d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): lib/app/layouts/settings/pages/storage/widgets/storage_expressive_progress_section.dart:14-49 | lib/app/layouts/settings/pages/storage/widgets/storage_progress_section.dart:15-43 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/storage/widgets/storage_expressive_progress_section.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b9b698138391420fc94d06a88176139a1d9ad543e567511385ad45d12e7708"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 28\u002B corresponding lines): lib/app/layouts/findmy/findmy_page.dart:125-152 | lib/app/layouts/findmy/findmy_page.dart:154-181 | lib/app/layouts/findmy/findmy_page.dart:183-210 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/findmy/findmy_page.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"e786d9619d9a3cb42a5fabd4776c81005e0baf78ae9c19ffd2b460c94ecf2100"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/app/layouts/conversation_view/widgets/header/header_widgets.dart:230-254 | lib/app/layouts/conversation_view/widgets/header/shared/header_components.dart:22-52 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/header/header_widgets.dart"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"4008ecc7b232ee154b29bd7350e80b5874712aceac04668bcd2a6a1673dbb10d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/database/html/attachment.dart:151-169 | lib/database/io/attachment.dart:390-416 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/attachment.dart"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d52f0e2c26ae3294960520beb8e24377ef58cb78dc0aa4617ac2d1752fdd3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart:506-526 | lib/app/layouts/settings/pages/server/backup_restore_dialogs.dart:75-107 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"1504360be99ae9157516ba471d4eb1a921e750aba83a367097da97b2fd438192"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/app/layouts/conversation_list/widgets/tile/pinned_conversation_tile.dart:199-219 | lib/app/layouts/conversation_list/widgets/tile/pinned_conversation_tile.dart:241-270 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/tile/pinned_conversation_tile.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a853069fb1dc5df0174293c45c659748980665ec373fc2ca574abc6fe9061bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:207-235 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:409-443 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:575-606 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"545abb4a84e00b7ed74970a6a82757af6ef3c732f1c69da7e8a64af3edaa6830"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart:98-125 | lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart:87-109 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbbfdc8c76bf68e7a788978c6c0420c10f62f7cad52dc80e474bfb71e7436310"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/services/backend/actions/custom_group_actions.dart:6-25 | lib/services/backend/actions/custom_group_actions.dart:42-58 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/custom_group_actions.dart"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"10bdcfc91a4ea098bb754be34ee76e10f6ff26085ada305b29f30242f0f91e21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/database/io/handle.dart:53-72 | lib/database/io/handle.dart:74-95 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/handle.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"a249f6a26c123428dd9ad382ae6af2b6a9b7859d75873ca2b08586c84b9f4e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/app/layouts/chat_creator/chat_creator.dart:250-269 | lib/app/layouts/chat_creator/chat_creator_controller.dart:458-475 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bbfe01a470c43b2f2328599e089c2595a8b4ea382f285673d28570369129ca5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart:78-96 | lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart:70-85 | lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:73-88 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbd0c3a33472e8046c03d41647f67bf6940714daf89751c53001bfbe1557cd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): lib/app/animations/love_classes.dart:61-94 | lib/app/animations/spotlight_classes.dart:64-96 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/love_classes.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb7d662c3cc3c83bbdb37bc68bfe668788f777572e31266d89c4bbdb4416c47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/services/network/api/facetime_api.dart:81-92 | lib/services/network/api/genmoji_api.dart:199-213 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network/api/facetime_api.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"db072c0f68ee6aa3b77995cab8c522033dd7d772026cac6413765719732a3805"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): lib/services/backend/java_dart_interop/method_channel_handlers.dart:100-120 | lib/services/backend/java_dart_interop/method_channel_handlers.dart:156-177 | lib/services/backend/java_dart_interop/method_channel_handlers.dart:179-203 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/java_dart_interop/method_channel_handlers.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba0c5754c5d3fd88bdec494c43a751b41aa930c763d412e90c1d959fbc3982b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/app/layouts/conversation_details/material/material_chat_options.dart:525-546 | lib/app/layouts/conversation_details/widgets/chat_options.dart:792-810 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"6510e9a584177aa4146e133a69f024a8dffd67fc6f4743582fe5543166442e6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/services/backend/java_dart_interop/method_channel_handlers.dart:355-369 | lib/services/backend/java_dart_interop/method_channel_handlers.dart:371-387 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/java_dart_interop/method_channel_handlers.dart"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"73eaead9f0879dbc50f16e95887d825d46994a5f0a75816cc7718a6fc065b3bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): lib/services/backend/actions/chat_actions.dart:190-213 | lib/services/backend/actions/chat_actions.dart:215-233 | lib/services/backend/actions/message_actions.dart:120-136 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"d300f04fe467bae8cef011c399b88d4cd4554af2a78f0deabbe4aba0b9bcd898"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/database/html/handle.dart:61-71 | lib/database/io/handle.dart:142-157 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/handle.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c62cd96871b0b1b5f8e348b9632b94bf4833d6d1a912f43010d53272d7d343"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/services/backend/actions/chat_actions.dart:807-820 | lib/services/backend/actions/chat_actions.dart:822-838 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":807}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c530805a5d256232cc70b27a51f5f629efe23cd6726872ea43a255b67bafed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 22\u002B corresponding lines): lib/services/backend/interfaces/attachment_interface.dart:10-34 | lib/services/backend/interfaces/attachment_interface.dart:50-74 | lib/services/backend/interfaces/handle_interface.dart:9-34 | lib/services/backend/interfaces/message_interface.dart:24-45 | lib/services/backend/interfaces/message_interface.dart:94-115 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/interfaces/attachment_interface.dart"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"300ad47061943750c1795145799ba24a4488e00ce60e59ed7b79a672b21d811c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart:228-244 | lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart:246-261 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"fecd6ff60f670f10589cdcc224632960db5f52f41171c59b489a0e1579d83c99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 16\u002B corresponding lines): lib/services/backend/interfaces/attachment_interface.dart:98-117 | lib/services/backend/interfaces/chat_interface.dart:281-299 | lib/services/backend/interfaces/chat_interface.dart:317-337 | lib/services/backend/interfaces/handle_interface.dart:36-54 | lib/services/backend/interfaces/message_interface.dart:137-152 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/interfaces/attachment_interface.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"efae4a90dcb5d8ba6c850839469903ed594444ae150d8b59a209caea0c0fd763"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:106-119 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:38-51 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"56fcfa93d941070e44cd464936750d0e513d2cd05bdbc53e20b999b2d09754d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/database/io/theme.dart:83-93 | lib/database/io/theme.dart:95-105 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/theme.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b318a9162fb53c6674558603299d7fe3c2ea4497ed381ca40ee4ca1785c54ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/services/backend/actions/attachment_actions.dart:281-293 | lib/services/backend/actions/message_actions.dart:105-118 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/attachment_actions.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"7022d2f95ccbb7340b08662e49bde8ba9287ef90382d79490e44428d86f6789f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): lib/services/backend/interfaces/attachment_interface.dart:76-96 | lib/services/backend/interfaces/handle_interface.dart:56-80 | lib/services/backend/interfaces/message_interface.dart:117-135 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/interfaces/attachment_interface.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"278101184180c9dc6fad8c03df7af2e4a820578817abef1677b5b1908f0bb7bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): lib/app/components/wallpaper/moving_background_wallpaper.dart:38-54 | lib/app/components/wallpaper/particles_wallpaper.dart:78-89 | lib/app/components/wallpaper/wave_wallpaper.dart:25-39 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/wallpaper/moving_background_wallpaper.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7592f339fc5045491a4e5fbd3a84e5f09ec3ca1af8deb800ceb3aa5c3fb1c086"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/database/html/message.dart:455-469 | lib/database/io/message.dart:756-772 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"befd4bf6e6afa78cff38dd35ec699f27f6230897f40329909ea0878b2455dde7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): lib/services/backend/interfaces/custom_group_interface.dart:17-24 | lib/services/backend/interfaces/custom_group_interface.dart:26-33 | lib/services/backend/interfaces/custom_group_interface.dart:35-42 | lib/services/backend/interfaces/custom_group_interface.dart:44-51 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/interfaces/custom_group_interface.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ca8c9f9ab9e7b79dd83084543a6c033b8859fac6444c3ed672d291c054334a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 5\u002B corresponding lines): lib/app/components/wallpaper/floating_wallpaper.dart:39-43 | lib/app/components/wallpaper/moving_background_wallpaper.dart:32-36 | lib/app/components/wallpaper/particles_wallpaper.dart:72-76 | lib/app/components/wallpaper/wave_wallpaper.dart:19-23 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/wallpaper/floating_wallpaper.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb295a6e9696802d0e8bfd4ead0653f04bcd0cfe8c75e0761949add0b6b2662"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:27-35 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:27-35 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"272e2ced49ebe2a921b4e078b5b0d759757862f6570778b9099b3669e25580a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/database/html/handle.dart:41-59 | lib/database/io/handle.dart:122-140 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/handle.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c4f1302dbe83b5f5b59e865c59e644bdd6ed67e19c43170b646b933a396b51b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/services/ui/theme/themes_service.dart:687-698 | lib/services/ui/theme/themes_service.dart:700-711 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62664b2475a09bf8eaa8c4c42b00611c585086fbc59e087db95a85bdfdf31ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/services/backend/sync/incremental_sync_manager.dart:275-289 | lib/services/backend/sync/incremental_sync_manager.dart:291-322 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/sync/incremental_sync_manager.dart"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c12bdb53837fc7e2295bf6aeefc61dc9cba04436488200fa8d9c1c4eadb2c10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/app/layouts/settings/pages/theming/avatar/avatar_crop.dart:198-213 | lib/app/layouts/settings/pages/theming/background/background_crop.dart:393-406 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/theming/avatar/avatar_crop.dart"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c19b16549f2080668767b9f19870a2154d2df54b83572bd4085cd65a392605b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/services/backend/actions/custom_group_actions.dart:27-40 | lib/services/backend/actions/custom_group_actions.dart:60-68 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/custom_group_actions.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5cf9cb2bed5a56478840f42aa60cb0ba1fdcef15b0cde6cc31ca640d7a07673"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/services/backend/interfaces/chat_interface.dart:31-44 | lib/services/backend/interfaces/chat_interface.dart:301-315 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/interfaces/chat_interface.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad74a322e97f1cf2f5336703b0c3601cd92cc7b65e5dacf4a0eae1864313780"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/services/backend_ui_interop/intents.dart:127-143 | lib/services/backend_ui_interop/intents.dart:155-171 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend_ui_interop/intents.dart"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8d67bd6df8f3444ab7808a566a87442a6719f828a72b4ba78b7cf77b4c2c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/app/components/custom/custom_cupertino_alert_dialog.dart:588-599 | lib/app/components/custom/custom_cupertino_alert_dialog.dart:601-612 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_cupertino_alert_dialog.dart"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b54491d0afd53f6c3f8327aaf0bd49c92eba9dff982a57fa4d2347076770f21"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 13\u002B corresponding lines): lib/services/backend/interfaces/chat_interface.dart:13-29 | lib/services/backend/interfaces/chat_interface.dart:46-62 | lib/services/backend/interfaces/chat_interface.dart:82-98 | lib/services/backend/interfaces/chat_interface.dart:100-116 | lib/services/backend/interfaces/message_interface.dart:75-92 | lib/services/backend/interfaces/prefs_interface.dart:10-22 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/interfaces/chat_interface.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e774324ab2d86383ed05209fdfbc28bbead16e631535717872dba8cef12d3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): android/app/src/main/kotlin/com/bluebubbles/messaging/services/firebase/FirebaseCloudMessagingTokenHandler.kt:15-29 | android/app/src/main/kotlin/com/bluebubbles/messaging/services/firebase/FirebaseCloudMessagingTokenHandler.kt:31-44 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/firebase/FirebaseCloudMessagingTokenHandler.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6566103329ad21341abc0ac87aac942f94829c29d675f1b52ca1116f07f875d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/app/layouts/conversation_view/widgets/message/message_holder.dart:131-137 | lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart:59-65 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/message_holder.dart"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"069fba28f07dd2e8e4f1c6596150d95d0eb3a5f1319b8df79fb6c1e1d3c65fa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/database/html/attachment.dart:171-185 | lib/database/io/attachment.dart:418-435 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/attachment.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e5fa4a157ca8f4b54cdd439b5604a1ab2589d288cc47f40de339cd68e5e2ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/database/html/fcm_data.dart:55-64 | lib/database/io/fcm_data.dart:72-85 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/fcm_data.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"438e41fc7c99f866c445c341daf422ff33e60f73f9efc9e37cb97c7be5b6273d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/services/backend/interfaces/custom_group_interface.dart:53-61 | lib/services/backend/interfaces/custom_group_interface.dart:63-71 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/interfaces/custom_group_interface.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b2c08a5c4e35ac367802b1d9fbb7d507582b9d150f0cc653cfcec6bcc9f64a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/app/layouts/conversation_view/widgets/message/interactive/embedded_media.dart:94-104 | lib/app/layouts/conversation_view/widgets/message/interactive/unsupported_interactive.dart:30-40 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/embedded_media.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f71ffa1cb4d16cb665c6613617e6cdd8fc688a053a5e255ee2daf65be82641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/database/html/theme.dart:75-82 | lib/database/io/theme.dart:118-127 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/theme.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"988e2da17474e347700c95638f95a9b44ba5d1368103d69bfb25f187bfa8e112"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/services/backend/java_dart_interop/method_channel_handlers.dart:419-430 | lib/services/backend/java_dart_interop/method_channel_handlers.dart:432-443 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/java_dart_interop/method_channel_handlers.dart"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e49ca8b707d648b468e579b8e92f69e713e3363cd75c7fb38fe18e2e935f1c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/app/animations/laser_classes.dart:38-45 | lib/app/animations/spotlight_classes.dart:29-37 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/laser_classes.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"97739796fff175185efddc9976200ee91586edbde549ff4eaf5e9fa35d9222a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart:71-80 | lib/app/layouts/conversation_details/widgets/sections/locations/locations_section.dart:54-63 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88b47c3d7e55c195d7cf36f8481edec5fb62cdea784316d8bf1500898348800"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/app/layouts/conversation_list/widgets/tile/conversation_tile.dart:132-147 | lib/app/layouts/conversation_list/widgets/tile/pinned_conversation_tile.dart:49-63 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/tile/conversation_tile.dart"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b10a0664c14bb24938d0c7af3dc958508d399eec85cbce6e330fede099c9e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart:195-203 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart:211-219 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"6799365fac828844478dbe4303a93c200c7363e9d8553c7d7ead0c42f00465d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/app/layouts/settings/pages/server/backup_restore_panel.dart:335-345 | lib/app/layouts/settings/pages/server/backup_restore_panel.dart:607-617 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"39181976cd0b716ac2a162794e505665f850d1ebcca5831d3c928d96ee8fc645"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): lib/services/backend/actions/custom_group_actions.dart:70-76 | lib/services/backend/actions/handle_actions.dart:117-128 | lib/services/backend/actions/message_actions.dart:292-305 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/custom_group_actions.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"556ba2e30136fdddc9cf8e9e90fb8450f60fe72810ef75120d196dd36f686b6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/services/backend/interfaces/chat_interface.dart:64-71 | lib/services/backend/interfaces/chat_interface.dart:73-80 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/interfaces/chat_interface.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c601d55a4f4bb124813dbe30c9e0d607e0f6c55e5745a0617dde5ae7f83fd9ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 13\u002B corresponding lines): lib/services/backend/interfaces/attachment_interface.dart:36-48 | lib/services/backend/interfaces/attachment_interface.dart:119-131 | lib/services/backend/interfaces/chat_interface.dart:118-130 | lib/services/backend/interfaces/chat_interface.dart:132-144 | lib/services/backend/interfaces/message_interface.dart:47-59 | lib/services/backend/interfaces/message_interface.dart:61-73 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/interfaces/attachment_interface.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0d8d215fbdc5b01f58fd15f8d278e7291b63e59d2a7f5570813c2393442142c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/database/html/message.dart:225-235 | lib/database/html/message.dart:237-247 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd5d9215d5125dbaab709487853569adb0288cdb6ae97dd909288719916026e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/app/layouts/settings/pages/theming/theme_studio/widgets/color_editor_section.dart:146-160 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/color_editor_tile.dart:128-142 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/color_editor_section.dart"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b199b53ef3f5b2a0c397fbd22c11219edc373282258e5210c7e46e99f7fe077"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/helpers/network/metadata/parsing/metadata_document_pipeline.dart:67-79 | lib/helpers/network/metadata/url_metadata_fetcher.dart:187-195 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/network/metadata/parsing/metadata_document_pipeline.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"241782ac107df069e096eb660243680269736bf0cd51520b93976d051a88e2b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 3\u002B corresponding lines): lib/utils/logger/logger.dart:548-550 | lib/utils/logger/logger.dart:552-554 | lib/utils/logger/logger.dart:556-558 | lib/utils/logger/logger.dart:560-562 | lib/utils/logger/logger.dart:564-566 | lib/utils/logger/logger.dart:568-570 | lib/utils/logger/logger.dart:572-574 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 3 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/logger/logger.dart"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a710da2143fce0b583567ce9dfcff900f40d66a03d5a1c842e175da1331e4f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/database/html/chat.dart:463-471 | lib/database/io/chat.dart:738-746 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/chat.dart"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"5327ee7f343dc74d8fe9d528c69097885977a5b5882845a0bbf994af126d7bae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): lib/services/network/api/firebase_api.dart:29-37 | lib/services/network/api/firebase_api.dart:39-47 | lib/services/network/api/firebase_api.dart:49-61 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network/api/firebase_api.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"bee6e0baa9a97ec08400fd9d61abfa65136fb69993334c9fd8316b2fb613f92f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/app/layouts/settings/pages/theming/theme_studio/theme_studio_panel.dart:192-199 | lib/app/layouts/settings/pages/theming/theme_studio/theme_studio_panel.dart:203-213 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/theming/theme_studio/theme_studio_panel.dart"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f7561e58162e794a9fe030496133fbfc595d72254bb253f4d33b0d30ad4e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/app/layouts/conversation_details/pages/chat_stats/chat_stats_controller.dart:444-456 | lib/app/layouts/conversation_details/pages/chat_stats/chat_stats_controller.dart:520-532 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/chat_stats_controller.dart"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d913dd2393ff98d21f4ffb9498c0b75ea9a6b89b82d051e12f9eaa0be05b86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/database/io/chat.dart:728-736 | lib/database/html/chat.dart:453-461 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/chat.dart"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31f8c292273bfa5c7b38795ba5dfffb63c6e529741ce09a3efda1a305b555bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/database/io/message.dart:684-691 | lib/database/html/message.dart:388-394 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/message.dart"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d3e0c0bdacaa54c49f9834b8fefd9babce4f85a1623eb9bbcf7f8096535f8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/app/components/custom/custom_cupertino_alert_dialog.dart:1350-1360 | lib/app/components/custom/custom_cupertino_alert_dialog.dart:1362-1373 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_cupertino_alert_dialog.dart"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5a1d594b720f84b67b665b95aee5b807fb17f411a5d6027239125d7ab73284"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/app/layouts/conversation_details/conversation_attachments.dart:108-118 | lib/app/layouts/conversation_details/conversation_details.dart:54-67 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/conversation_attachments.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64e8f36543f4105724f3c6bb33f8647b6c0aa108f404e8f1ae1c328fd761135"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/app/components/wallpaper/floating_wallpaper.dart:34-37 | lib/app/components/wallpaper/moving_background_wallpaper.dart:22-25 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/wallpaper/floating_wallpaper.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d404a69c2feea4f9fb08fc5f11b159bbe89a9fc8618a3da0c1ab321164ac3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/app/layouts/conversation_view/widgets/message/attachment/collections/collection_group_grid.dart:103-108 | lib/app/layouts/conversation_view/widgets/message/attachment/collections/collection_group_stack.dart:296-305 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/attachment/collections/collection_group_grid.dart"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0164c6071c1a11c0c2bc167f1c59093eb594946cf59c88c40830db3a83768a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/database/html/message.dart:396-401 | lib/database/io/message.dart:695-700 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"215b7a8e3b0b0c67a7a995702da186e5aff4859cde690aaf07dd988c6b064ea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/services/backend/sync/chat_sync_manager.dart:158-166 | lib/services/backend/sync/handle_sync_manager.dart:259-268 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"185d66078cd65209d5448721f0fc73655fb3a032f333716b20f6d4b172ce9287"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart:46-54 | lib/app/layouts/conversation_details/widgets/sections/locations/locations_section.dart:44-52 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9cc5e46b64917f1ba4c08f82a0b605d921cb5889ac80c395d4ad0e64e5df65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 6\u002B corresponding lines): lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart:92-97 | lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart:123-128 | lib/app/layouts/conversation_details/widgets/sections/locations/locations_section.dart:70-75 | lib/app/layouts/conversation_details/widgets/sections/media/media_grid_section.dart:147-152 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75a968620eeaffa6d83f4a8d96f763c5e09b1cec66d7ac5d87dc8ca17fce666"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/database/html/message.dart:403-406 | lib/database/io/message.dart:702-705 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dbce5b27df5fb1cf395635b34de876115359fc1a77d5379bae0b373a9910b2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/app/components/wallpaper/moving_background_wallpaper.dart:28-28 | lib/app/components/wallpaper/wave_wallpaper.dart:17-17 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"lib/app/components/wallpaper/moving_background_wallpaper.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"579d22026333f6e6234568f4fcd836b3bd01cfd33c597f813f2876ed03e22271"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/database/io/contact_v2.dart:274-282 | lib/models/html/contact_v2.dart:79-85 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/contact_v2.dart"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"19687a16e8e8b7a965f55812458300de7823adcd9981ea5b8123cace0f1eece8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/app/layouts/conversation_view/widgets/message/message_holder.dart:98-101 | lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart:54-57 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/message_holder.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"edabed4d457879d7eb688131881e917506234b5d8f71d939c0246e68a8c9c543"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/app/animations/celebration_class.dart:12-18 | lib/app/animations/love_classes.dart:28-34 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/celebration_class.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"829e55d559b83164d1286dacaf82c1eba3ba391553c927f9e2b24cebe3e16b8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/services/backend/notifications/desktop_notification.dart:304-311 | lib/services/ui/chat/message_list_gate.dart:109-115 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/notifications/desktop_notification.dart"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ad15127d0a7a520c59b973f4ff983fe0049ac8d6f79ffce2705bfab7d804e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/app/layouts/conversation_details/pages/chat_stats/chat_stats_page.dart:238-246 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart:28-34 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/chat_stats_page.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"e817a7cc20f79e398a4231a47829457d5f3538ee9de1792f523423d7640f929c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/database/html/message.dart:373-374 | lib/database/io/message.dart:671-672 \u2014 These two members are one piece of code written twice and then edited apart: 2 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":"lib/database/html/message.dart"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf5e2b32051c2630e08e77e826d2164c1a10aa99e96fd57bd81c7b65c608f5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/app/components/attachment_preview.dart:141-148 | lib/app/layouts/conversation_details/widgets/media_gallery_card.dart:61-68 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/attachment_preview.dart"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"27485b17d88b26c1d50ec16d11d2b440b02416115168278201544ccf7ce77421"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/database/html/theme.dart:21-24 | lib/database/io/theme.dart:31-34 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/theme.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e996ebf051d6daa91f5c8513ca28ae2391977b31956cfb672ce634690b82d38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:244-247 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:253-256 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"3474f084647edd619f16d7b2151d9fefba2679ebddb97a923961f9b0e6ba044b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/database/html/theme_object.dart:114-116 | lib/database/io/theme_object.dart:145-147 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/theme_object.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c39da72bebbcda7ebbbca85885078e061a68770a3b6ca79f5e25abf3ec97d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/app/components/custom/custom_cupertino_page_transition.dart:169-175 | lib/helpers/ui/theme_helpers.dart:24-30 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_cupertino_page_transition.dart"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"212a934177df719a5e5956089a9db7534226034ce098019724274d24da78e5a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): lib/database/global/message_part.dart:171-171 | lib/database/html/message.dart:311-311 | lib/database/io/message.dart:580-580 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/global/message_part.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c2a8b83c414e6e740e102f0531345d487e2569b0f09ac34cc2c34bdb038b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 1\u002B corresponding lines): lib/database/global/message_part.dart:172-172 | lib/database/html/message.dart:304-304 | lib/database/io/message.dart:573-573 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 1 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/global/message_part.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc411b4f6f3deb95ec2d3ce2ec7aa079e7b7ab4c73a1e4e7d8fd177c7c30dcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/database/html/theme.dart:36-38 | lib/database/io/theme.dart:46-48 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/theme.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fad1d96cece6cbfdd0222ad251a9a2cc4e19c288ec7cc1e6bd2e3528a36491"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (85\u201390 lines \u00D7 2): lib/app/layouts/conversation_list/widgets/footer/samsung_footer.dart:28-112 | lib/app/layouts/conversation_list/widgets/header/material_header.dart:157-246 \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 \u0060lib/app/layouts/conversation_list/widgets/header/material_header.dart:157\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":"lib/app/layouts/conversation_list/widgets/footer/samsung_footer.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb5280d3114749e2cad9a95d9dcd2488b2189dafd1f614d7571d3ce765e2fc2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (72 lines \u00D7 2): lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart:175-246 | lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart:175-246 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 225 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. 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":"lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e1c9d5e09c1fd750972360a6f4b525c46b09ce3ca11dd4e74b5ed8a47a4e38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 2): lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart:109-173 | lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart:109-173 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 225 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ff863d852e7415626823f0baf7e6ac535812df87ff8b7d66a2b9b2a330669a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): lib/database/html/theme.dart:94-156 | lib/database/io/theme.dart:145-207 \u2014 \u0060lib/database/html/theme.dart\u0060 and \u0060lib/database/io/theme.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 111 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/database/html/theme.dart: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":"lib/database/html/theme.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8f063f08c3f3c893a5f4979ee2583140a9b49634e0f2fc85eaffe63d0be1a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (57 lines \u00D7 3): lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:52-108 | lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart:53-109 | lib/app/layouts/settings/pages/scheduling/samsung_create_scheduled_panel.dart:95-151 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 160 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:52\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 before the matched lines, \u0060lib/app/layouts/settings/pages/scheduling/samsung_create_scheduled_panel.dart:93\u0060 calls \u0060RoundedRectangleBorder\u0060, \u0060all\u0060, \u0060circular\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:50\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":"lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9374e872bcd631e2ee4c3ba0c9d7899b092f4f78f448163ceb80391327296580"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:210-265 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:222-277 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 204 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"2964489cc8bb305930323b22e108da9d53eb17236497841b7ef06d0c67e10f70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 3): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:121-172 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:133-184 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:142-193 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 211 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:121\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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"15057c3f4958da74682d47d9bc0f31154d62044c82a457cc5e54b8a9c0a25701"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 2): lib/database/html/theme_object.dart:70-112 | lib/database/io/theme_object.dart:101-143 \u2014 \u0060lib/database/html/theme_object.dart\u0060 and \u0060lib/database/io/theme_object.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 66 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"lib/database/html/theme_object.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca7aab101ff8fcc87b872c001e93b181b5c926bbb33e93020258a6ea2725d06c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (56 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart:215-270 | lib/app/layouts/settings/pages/scheduling/samsung_create_scheduled_panel.dart:243-298 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/samsung_create_scheduled_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 199 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 \u0060lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart:215\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":"lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bed8956236fb8254ef162370be7243f2f43109893320017e11e554777fb2d21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:128-165 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:134-171 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 204 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 \u0060lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:128\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":"lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"88cfef8a7a254f7a47ccdea1462c7a1b7c91ec1966758af1a5479048947df6db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 3): lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:184-218 | lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart:187-221 | lib/app/layouts/settings/pages/scheduling/samsung_create_scheduled_panel.dart:215-249 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 160 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:184\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":"lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b934901ff82186d92a4c04f0280d2431f23d3bb58e365cd851406599d546b95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): lib/app/layouts/settings/pages/system/notification_panel.dart:401-435 | lib/app/layouts/settings/pages/theming/avatar/custom_avatar_panel.dart:28-62 \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 \u0060lib/app/layouts/settings/pages/system/notification_panel.dart:401\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":"lib/app/layouts/settings/pages/system/notification_panel.dart"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0519c96dd6d96775c5e99ca5c9c129502496bde78ef6b996677b9f55a21b7cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart:21-54 | lib/app/layouts/findmy/widgets/findmy_items_tab_view.dart:20-53 \u2014 before extracting anything, compare \u0060lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart\u0060 and \u0060lib/app/layouts/findmy/widgets/findmy_items_tab_view.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 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 \u0060lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart:21\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f47e0b8091c2a7f840d5229ab4f0dfc416953c19b849b386e7bd506c603ec0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201334 lines \u00D7 2): lib/app/layouts/settings/pages/advanced/firebase_panel.dart:219-252 | lib/app/layouts/settings/pages/advanced/notification_providers_panel.dart:68-99 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060context\u0060 to \u0060context\u0060 in one and \u0060BuildContext\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":"lib/app/layouts/settings/pages/advanced/firebase_panel.dart"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba87d5e30eafc2ee5539ea860d8b6ddf32d661d0517913d29f0594d921ddfd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:96-128 | lib/app/layouts/conversation_details/widgets/chat_options.dart:106-137 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:96\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"950e1f75094acd040ad28b91c6c9d49cf1dbc6f1a47db2f627be50a7f2d636ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201333 lines \u00D7 2): lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart:135-164 | lib/app/layouts/fullscreen_media/single_attachment_fullscreen_viewer.dart:48-80 \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 \u0060lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart:135\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":"lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"70dbbecaf2860fd1a44a3848b4fe473f1050f179dcde123ac6742cc726f5a59f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3): lib/app/layouts/chat_selector_view/chat_selector_view.dart:110-141 | lib/app/layouts/contact_selector_view/contact_selector_view.dart:75-106 | lib/app/layouts/handle_selector_view/handle_selector_view.dart:115-146 \u2014 \u0060lib/app/layouts/chat_selector_view/chat_selector_view.dart\u0060 and \u0060lib/app/layouts/contact_selector_view/contact_selector_view.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 56 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/chat_selector_view/chat_selector_view.dart:110\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":"lib/app/layouts/chat_selector_view/chat_selector_view.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92a5cc78c320bbcd00a92517ad5ec1ce0d3ecb768a47c4380bd5b82f814c120"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart:181-212 | lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart:177-208 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 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 \u0060lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart:181\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":"lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6c1716054313eee0a7e544eeb795ef8de9734bf95740b3ae68776796a9fb3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:144-173 | lib/app/layouts/conversation_details/widgets/chat_options.dart:164-194 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:144\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d107565cc30a9ea7c9bccbec6260741704b34caee246834afa14da37b47cb26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:328-358 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_overview_tab.dart:225-255 \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 \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:328\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":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef23984f2454835615bbd5a5a0f31532af03483b20c7de6adde82e186612c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): lib/app/layouts/settings/pages/server/backup_restore_panel.dart:357-387 | lib/app/layouts/settings/pages/server/backup_restore_panel.dart:571-601 \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 \u0060lib/app/layouts/settings/pages/server/backup_restore_panel.dart:357\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, \u0060lib/app/layouts/settings/pages/server/backup_restore_panel.dart:569\u0060 calls \u0060Utf8Decoder\u0060, \u0060convert\u0060, \u0060jsonDecode\u0060 and \u0060lib/app/layouts/settings/pages/server/backup_restore_panel.dart:356\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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"b070131abf009bd52237a0264688a0b6391d6a63e53ce192d849158bf547a2d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/attachment/parts/downloading_content.dart:89-117 | lib/app/layouts/conversation_view/widgets/message/attachment/parts/downloading_content.dart:227-254 \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 \u0060lib/app/layouts/conversation_view/widgets/message/attachment/parts/downloading_content.dart:227\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":"lib/app/layouts/conversation_view/widgets/message/attachment/parts/downloading_content.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"2542598ece40351052d9e13743d18d1e91986b3d438fd2e03fae21ff39b50762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:266-294 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:276-304 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 213 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 \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:266\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 before the matched lines, \u0060lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:275\u0060 calls \u0060RoundedRectangleBorder\u0060, \u0060all\u0060, \u0060circular\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:265\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":"lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3e2a05b4e1367b115fac6b274ef880ecdeb42af91d22a47ff30ce79cd8324f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): lib/app/layouts/settings/pages/storage/material_storage_analyzer_panel.dart:24-52 | lib/app/layouts/settings/pages/storage/samsung_storage_analyzer_panel.dart:25-53 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/storage/material_storage_analyzer_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/storage/samsung_storage_analyzer_panel.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/storage/material_storage_analyzer_panel.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aeb69d762ff14c48d9b45bd2a61372c6b3e1ce75b58aa2359786f1fb3d887e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/media_picker/text_field_attachment_picker.dart:124-151 | lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart:405-431 \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 \u0060lib/app/layouts/conversation_view/widgets/media_picker/text_field_attachment_picker.dart:124\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":"lib/app/layouts/conversation_view/widgets/media_picker/text_field_attachment_picker.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fc0118658835a29836415b580f10188037e0d397e81d7decc660c075aa8812"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 3): lib/app/layouts/conversation_view/widgets/message/attachment/live_photo_mixin.dart:61-87 | lib/app/layouts/conversation_view/widgets/message/attachment/live_photo_mixin.dart:112-136 | lib/app/layouts/conversation_view/widgets/message/attachment/live_photo_mixin.dart:178-202 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/attachment/live_photo_mixin.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1b5c4a9b372a80e5cf5ea455276c0d0d92310696030fd04b63347b36eaf881"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/interactive/cupertino_url_preview.dart:30-56 | lib/app/layouts/conversation_view/widgets/message/interactive/expressive_url_preview.dart:52-78 \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":"lib/app/layouts/conversation_view/widgets/message/interactive/cupertino_url_preview.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa4b893823a8b4a49cf951305d8b84d50d7e24249db36c7317e5421ff01f170"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/database/html/message.dart:575-601 | lib/database/io/message.dart:940-966 \u2014 \u0060lib/database/html/message.dart\u0060 and \u0060lib/database/io/message.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 159 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/database/io/message.dart:935\u0060 calls \u0060isNullOrEmpty\u0060 and \u0060lib/database/html/message.dart:571\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":"lib/database/html/message.dart"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8c8c9665eda24af059cbdf842f6d42ee98601e9ac1c72881d1cce19b5bbbce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201326 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:306-331 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:327-349 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 213 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 \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:306\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":"lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"e31ea0ac10f22a02a0a0cccc2fde8a418dff5a5e284430eef6e1267d4f15d615"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart:139-163 | lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:170-195 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 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 \u0060lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart:139\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":"lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df38d1b91d30a1b011651426fef7a75f9ab31463b3cd216899e430336d2aabd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart:504-529 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart:639-662 \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 \u0060lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart:504\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":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"396b658ba017dbc3864f9a4a3c42f378ef578291cdb260c2856c9a2124b9e694"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/app/layouts/conversation_details/widgets/chat_options.dart:523-547 | lib/app/layouts/conversation_details/widgets/chat_options.dart:569-593 \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":"lib/app/layouts/conversation_details/widgets/chat_options.dart"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb594f752b16bb3deb1cb692599e234a48e283580b0d36a74105ee7d9efdeec2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/interactive/photo_slideshow.dart:226-250 | lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart:74-98 \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 \u0060lib/app/layouts/conversation_view/widgets/message/interactive/photo_slideshow.dart:226\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":"lib/app/layouts/conversation_view/widgets/message/interactive/photo_slideshow.dart"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1284023051ebfd66f9559cc8bec2de57b0bfc84aadf2a8548de1255f3aa3cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:212-234 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:220-242 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:229-251 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 211 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:212\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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb040fd8d1979db9c1b21a5cbdab0abbc9df22348d75e2b7c26c554136edb023"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart:162-184 | lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:154-176 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:160-182 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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 \u0060lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart:162\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":"lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7ab05b6e99c7c87c9f9723d5c551d22b7f19fd9396dc16adb7df935bcd705c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:625-649 | lib/app/layouts/conversation_details/widgets/chat_options.dart:609-635 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:625\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeebc1593a40bf94299ca2eacde5c1b30236e2ca3a9ef2f373b6426dc42a6a06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart:86-108 | lib/app/layouts/findmy/widgets/findmy_items_tab_view.dart:87-109 \u2014 before extracting anything, compare \u0060lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart\u0060 and \u0060lib/app/layouts/findmy/widgets/findmy_items_tab_view.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 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. 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":"lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"030ad418b4dac51f0cf177fdf390805f0c9f357ecc27ce81e717186ca1ed2a98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/app/layouts/settings/pages/advanced/notification_providers_panel.dart:21-43 | lib/app/layouts/settings/pages/advanced/unified_push.dart:27-49 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/advanced/notification_providers_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/advanced/unified_push.dart\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. 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 \u0060lib/app/layouts/settings/pages/advanced/notification_providers_panel.dart:21\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"lib/app/layouts/settings/pages/advanced/notification_providers_panel.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e331ec03b257aa4c0ed64aecddf60784dfa4c66168498c81175752002f98b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:554-574 | lib/app/layouts/conversation_details/widgets/chat_options.dart:769-790 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:554\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce461fe78e5f842975d5cf8392b3d9838343ee35fcd28c45dc44e2d91adecff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/app/layouts/findmy/findmy_page.dart:447-468 | lib/app/layouts/settings/pages/system/notification_panel.dart:250-271 \u2014 before extracting anything, compare \u0060lib/app/layouts/findmy/findmy_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/system/notification_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 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 \u0060lib/app/layouts/findmy/findmy_page.dart:447\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":"lib/app/layouts/findmy/findmy_page.dart"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d743b723ce264fd1e3e5d56d94ef411745e674e9e2b50c01e556de94b4a34f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): lib/app/layouts/settings/pages/server/backup_restore_panel.dart:452-473 | lib/app/layouts/settings/pages/server/backup_restore_panel.dart:689-709 \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 \u0060lib/app/layouts/settings/pages/server/backup_restore_panel.dart:452\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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c1fa8c4b83d4aa7b5f9ad8b0d0cea9b3528d05d99b09103a66f61e68a544549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart:111-130 | lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:126-147 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 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 \u0060lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart:111\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. 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":"lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b90e2fa727fe6fe8bf013023a59339d0839a77816093a5dfc88a20bffa203e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (99\u2013101 lines \u00D7 2): lib/app/layouts/settings/pages/server/oauth_panel.dart:123-223 | lib/app/layouts/setup/pages/sync/server_credentials.dart:64-162 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart\u0060 and \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 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 \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart:123\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":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"15d8b157d2edd782b3db5ed91185ecb6d6563be4270a637c0a679be21f423f9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart:227-246 | lib/app/layouts/conversation_view/widgets/header/shared/header_components.dart:88-108 \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 \u0060lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart:227\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":"lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2ebb0cefbbac33318b76e9e7ad6cf3615df2dc13d3e9c2cb0f93c9fb93f317"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:144-160 | lib/app/layouts/fullscreen_media/fullscreen_video.dart:350-370 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart\u0060 and \u0060lib/app/layouts/fullscreen_media/fullscreen_video.dart\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 \u0060lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:144\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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6cd05e881fe4b15ace8279952eaf9f9de1cb72912c0d59469583e35986772f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart:55-75 | lib/app/layouts/conversation_view/widgets/message/interactive/unsupported_interactive.dart:79-99 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart\u0060 and \u0060lib/app/layouts/conversation_view/widgets/message/interactive/unsupported_interactive.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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 \u0060lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart:55\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":"lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76b8723edc578c5055c019826ecae06b9b2dcc2750cde57335feb6907b18628"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/text_field/picked_attachments_holder.dart:172-192 | lib/app/layouts/conversation_view/widgets/text_field/picked_attachments_holder.dart:266-286 \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 \u0060lib/app/layouts/conversation_view/widgets/text_field/picked_attachments_holder.dart:172\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":"lib/app/layouts/conversation_view/widgets/text_field/picked_attachments_holder.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87c5006b8688eb46fb0adc452252172f00c20e10e2619d38022d32afbbdfcc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/database/html/message.dart:537-558 | lib/database/io/message.dart:896-917 \u2014 \u0060lib/database/html/message.dart\u0060 and \u0060lib/database/io/message.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 159 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"d072106245baf4f4c2b2332ec9f96ff42054c4d4b650d1004e3cf3159e606c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:158-176 | lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart:152-170 | lib/app/layouts/settings/pages/scheduling/samsung_create_scheduled_panel.dart:177-196 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 160 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:158\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":"lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"790ee7a1f71daf59f77580616de9094ea6bd1de6ab94fe0ec4bcb42578f8fbb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/app/layouts/fullscreen_media/fullscreen_image.dart:301-320 | lib/app/layouts/fullscreen_media/fullscreen_video.dart:443-462 \u2014 before extracting anything, compare \u0060lib/app/layouts/fullscreen_media/fullscreen_image.dart\u0060 and \u0060lib/app/layouts/fullscreen_media/fullscreen_video.dart\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 \u0060lib/app/layouts/fullscreen_media/fullscreen_image.dart:301\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":"lib/app/layouts/fullscreen_media/fullscreen_image.dart"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"61149c83bb8bee579f46f1b96ae364dd7d71befce8ff5e1dfaac6cb862c51681"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:178-197 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:187-206 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 204 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 \u0060lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:178\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":"lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2c75b515feffe097388cfc7399ddddebbcaca34afc5a71e4d900531203c5c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/database/html/message.dart:515-534 | lib/database/io/message.dart:869-888 \u2014 \u0060lib/database/html/message.dart\u0060 and \u0060lib/database/io/message.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 159 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/database/html/message.dart:515\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":"lib/database/html/message.dart"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a1b156b68261eeefb04eaae9ab3fc08d5d84b06c5d3f708a1d3f958ebb508fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/services/backend/actions/chat_actions.dart:327-346 | lib/services/backend/actions/message_actions.dart:228-247 \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":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb808756f3f3a8ab9530d88eacb599909faf2f32eca4a3d54c1d6e73e8251516"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/app/layouts/conversation_list/pages/material_conversation_list.dart:100-118 | lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart:117-135 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_list/pages/material_conversation_list.dart\u0060 and \u0060lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart\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. 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":"lib/app/layouts/conversation_list/pages/material_conversation_list.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfd1bad4ad98f2fce3e192b7b83574eeb4d5a8dc191e155e040e3f940365984"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/app/layouts/settings/dialogs/notification_settings_dialog.dart:47-65 | lib/app/layouts/settings/dialogs/old_themes_dialog.dart:18-36 \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 \u0060lib/app/layouts/settings/dialogs/notification_settings_dialog.dart:47\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":"lib/app/layouts/settings/dialogs/notification_settings_dialog.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc356e91fdd8f50deb64f67b9448e58342b85865871c3d8598ff11ca4389eb85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart:62-80 | lib/app/layouts/settings/pages/advanced/tasker_panel.dart:17-35 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart: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. 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":"lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7c3c5ca1c4fbda0d9a5037479ae77587380b7976211bae38606bdedbd80dd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart:132-150 | lib/app/layouts/setup/pages/setup_checks/mac_setup_check.dart:45-62 \u2014 before extracting anything, compare \u0060lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart\u0060 and \u0060lib/app/layouts/setup/pages/setup_checks/mac_setup_check.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 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 \u0060lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart:132\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":"lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"5320acc11e9ae0dae6ee40afb0335d0fcd606d7c587d6d6b80b6a4edab0fe518"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 5): lib/app/layouts/setup/pages/page_template.dart:221-238 | lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart:105-121 | lib/app/layouts/setup/pages/setup_checks/mac_setup_check.dart:22-38 | lib/app/layouts/setup/pages/sync/sync_progress.dart:184-201 | lib/app/layouts/setup/pages/sync/sync_settings.dart:134-150 \u2014 before extracting anything, compare \u0060lib/app/layouts/setup/pages/page_template.dart\u0060 and \u0060lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 \u0060lib/app/layouts/setup/pages/page_template.dart:221\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/app/layouts/setup/pages/sync/sync_progress.dart:183\u0060 calls \u0060SizedBox\u0060 and \u0060lib/app/layouts/setup/pages/page_template.dart:220\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":"lib/app/layouts/setup/pages/page_template.dart"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f470956338fbe169f776586b64ad5756d44c754720c3da5f2e3516e25b039b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart:21-38 | lib/app/layouts/settings/pages/message_view/attachment_panel.dart:41-58 | lib/app/layouts/settings/pages/message_view/conversation_panel.dart:55-72 \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 \u0060lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart:21\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f695070b78817a45f798d27170bb47780d95f765c4909f744f5a33b8e5434d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart:57-74 | lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart:48-65 | lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:51-68 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 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 \u0060lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart: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":"lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e77c9979de4f85b2b1d8ade4e56ff654b412ce9eb7f240cdd5022ea9858a16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): lib/services/backend/sync/chat_sync_manager.dart:98-115 | lib/services/backend/sync/full_sync_manager.dart:179-196 | lib/services/backend/sync/handle_sync_manager.dart:141-158 \u2014 before extracting anything, compare \u0060lib/services/backend/sync/chat_sync_manager.dart\u0060 and \u0060lib/services/backend/sync/full_sync_manager.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 83 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 \u0060lib/services/backend/sync/chat_sync_manager.dart:98\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/services/backend/sync/handle_sync_manager.dart:137\u0060 calls \u0060restoreOriginalHandles\u0060 and \u0060lib/services/backend/sync/chat_sync_manager.dart:94\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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f44bd0b698ecfec9bdfd97e8111bcdc1dc36ebdcae2380ff482abc6a5c20d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): lib/app/layouts/conversation_details/pages/chat_stats/widgets/charts/bar_chart.dart:76-93 | lib/app/layouts/conversation_details/pages/chat_stats/widgets/charts/line_chart.dart:82-98 \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 \u0060lib/app/layouts/conversation_details/pages/chat_stats/widgets/charts/bar_chart.dart:76\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":"lib/app/layouts/conversation_details/pages/chat_stats/widgets/charts/bar_chart.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec74b9e243a2c65ef419bbda6a9611b5b9123d6f424d1924d1e5d03b75d1b437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/app/layouts/conversation_details/widgets/participants_list.dart:74-91 | lib/app/layouts/conversation_details/widgets/participants_list.dart:124-141 \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 \u0060lib/app/layouts/conversation_details/widgets/participants_list.dart:74\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":"lib/app/layouts/conversation_details/widgets/participants_list.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"411079df57e29f6aa2aa5fb3fa8530914fb67c34eb3fef98f49ea5e6d8fa2e12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:378-395 | lib/app/layouts/fullscreen_media/fullscreen_video.dart:120-137 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart\u0060 and \u0060lib/app/layouts/fullscreen_media/fullscreen_video.dart\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. 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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc4660050d27c234922c4340ac4283691935af9627d769d1ac7f6ac679d679c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/app/layouts/setup/dialogs/manual_entry_dialog.dart:104-121 | lib/app/layouts/setup/pages/sync/server_credentials.dart:408-425 \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 \u0060lib/app/layouts/setup/dialogs/manual_entry_dialog.dart:104\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":"lib/app/layouts/setup/dialogs/manual_entry_dialog.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"e490939a5d5ae8eb2159fe0c54014a66a20f4747bac04bc118564b518800cd90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/database/html/message.dart:106-123 | lib/database/io/message.dart:208-225 \u2014 \u0060lib/database/html/message.dart\u0060 and \u0060lib/database/io/message.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 159 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/database/html/message.dart:106\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":"lib/database/html/message.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bbc488988177d57c8dc8e59aa9392f9fb10f34aff5320fd160482930f7d5d30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201318 lines \u00D7 2): lib/services/backend/sync/chat_sync_manager.dart:127-139 | lib/services/backend/sync/full_sync_manager.dart:198-215 \u2014 before extracting anything, compare \u0060lib/services/backend/sync/chat_sync_manager.dart\u0060 and \u0060lib/services/backend/sync/full_sync_manager.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 83 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 \u0060lib/services/backend/sync/chat_sync_manager.dart:127\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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"7472320eb127944ec5484dded846912d3faa7cabbb41512229ea48d70bfca76c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart:65-81 | lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:69-85 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:72-88 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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 \u0060lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart:65\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":"lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccd90acd9990260ec6efa7500d6c796c9b3469b93e08f512f91e3b93967af97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/app/animations/celebration_class.dart:66-82 | lib/app/animations/fireworks_classes.dart:116-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 \u0060lib/app/animations/celebration_class.dart:66\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":"lib/app/animations/celebration_class.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"c538edfbb59a1d83f4953060e8518a15ca76d72a9829388a85a89efedbbfeca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): lib/app/layouts/conversation_details/widgets/chat_info.dart:66-81 | lib/app/layouts/settings/pages/profile/profile_panel.dart:154-170 \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 \u0060lib/app/layouts/conversation_details/widgets/chat_info.dart:66\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":"lib/app/layouts/conversation_details/widgets/chat_info.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ce26d7141fcc1beb04dbfdee68c5764c1d02be446cf5ad426523098e3b67668"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/app/layouts/conversation_details/widgets/media_gallery_card.dart:190-206 | lib/app/layouts/conversation_details/widgets/media_gallery_card.dart:239-255 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/widgets/media_gallery_card.dart:190\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":"lib/app/layouts/conversation_details/widgets/media_gallery_card.dart"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84db2228c1b6f902afbb8b40faf4f1230e7fc40f152b2b4085c233e1e38c452"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/app/layouts/conversation_list/pages/material_conversation_list.dart:45-61 | lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart:49-65 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_list/pages/material_conversation_list.dart\u0060 and \u0060lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart\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. 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 \u0060lib/app/layouts/conversation_list/pages/material_conversation_list.dart:45\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":"lib/app/layouts/conversation_list/pages/material_conversation_list.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16606ab63d62a251a1b682c8c953bbc9c93aca096e5313f81386c09429181d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart:139-155 | lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart:159-175 \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 \u0060lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart: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":"lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca6d4af5b8109c4338cb316db65821465ed7c534342ee798367c299576c16d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/app/layouts/findmy/findmy_page.dart:470-486 | lib/app/layouts/settings/pages/system/notification_panel.dart:273-289 \u2014 before extracting anything, compare \u0060lib/app/layouts/findmy/findmy_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/system/notification_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 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 \u0060lib/app/layouts/findmy/findmy_page.dart:470\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":"lib/app/layouts/findmy/findmy_page.dart"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9759c3b3a4992171f24028bc43c069b940e5c00e60ea26c50e311da51d00d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart:58-74 | lib/app/layouts/findmy/widgets/findmy_items_tab_view.dart:58-74 \u2014 before extracting anything, compare \u0060lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart\u0060 and \u0060lib/app/layouts/findmy/widgets/findmy_items_tab_view.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 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 \u0060lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart: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":"lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ad75564609dd8ecbb6af9fe2304cc226142655de7e828ad787494325bc2eb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart:91-107 | lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart:91-107 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 225 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"2684ddbe25dd265e42490e1fcf617cf80a0829ea9ba1a1dc6e2aec06eaf8c7a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart:407-423 | lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart:459-475 \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 \u0060lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart:407\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":"lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec777b2c0f02ab2a90f5bf2eb075766adebf8d33444b3340466de1db0b4bf18a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:111-127 | lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart:112-128 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 160 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:111\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":"lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"485a9a7a64c476d626ef007feedf8d1d32beb2139d53919ad078b2580d926040"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/app/layouts/settings/pages/server/backup_restore_panel.dart:505-521 | lib/app/layouts/setup/dialogs/manual_entry_dialog.dart:117-133 \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 \u0060lib/app/layouts/settings/pages/server/backup_restore_panel.dart:505\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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a4111cfd781b77d8e52f10f60f0a9912f1d02bb7c7cb5b2927739781d539b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): lib/app/layouts/settings/pages/storage/widgets/storage_analyze_prompt.dart:24-39 | lib/app/layouts/settings/pages/storage/widgets/storage_expressive_analyze_prompt.dart:24-40 \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 \u0060lib/app/layouts/settings/pages/storage/widgets/storage_analyze_prompt.dart:24\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":"lib/app/layouts/settings/pages/storage/widgets/storage_analyze_prompt.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3fec130a0ddfcd4f99f213ca11f7edc1ad1bc34fed05e9edc3f4dc9f316c66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/app/layouts/settings/pages/storage/widgets/storage_expressive_results_section.dart:87-103 | lib/app/layouts/settings/pages/storage/widgets/storage_results_section.dart:120-136 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/settings/pages/storage/widgets/storage_expressive_results_section.dart:87\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":"lib/app/layouts/settings/pages/storage/widgets/storage_expressive_results_section.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"30db3fd62c3a6cc972916ebacbe9efff56c41da0d3e78059c9618bba8415fa9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/app/layouts/setup/pages/sync/server_credentials.dart:310-326 | lib/app/layouts/setup/pages/sync/server_credentials.dart:505-521 \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 \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart:310\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, \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart:308\u0060 calls \u0060SizedBox\u0060 and \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart:504\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":"lib/app/layouts/setup/pages/sync/server_credentials.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"58049f6eafa78c3ec1fea26bee5dfec12a63d059173d18a13a3fe48fe6b5ae66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart:435-450 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:659-674 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart:634-649 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_overview_tab.dart:278-293 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart\u0060 and \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 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. 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":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"3adbf15b58dc89bf8e1711f074da7fdac243b09b249efd6f5bbed636d109fc66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lib/app/layouts/conversation_view/widgets/message/interactive/game_pigeon.dart:41-56 | lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart:33-48 | lib/app/layouts/conversation_view/widgets/message/interactive/unsupported_interactive.dart:61-76 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart\u0060 and \u0060lib/app/layouts/conversation_view/widgets/message/interactive/unsupported_interactive.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/app/layouts/conversation_view/widgets/message/interactive/game_pigeon.dart:38\u0060 calls \u0060PlatformFile\u0060 and \u0060lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart:32\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":"lib/app/layouts/conversation_view/widgets/message/interactive/game_pigeon.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f9468b40ab5ef54b03340a5b27e5178d2621f5b4f84009e66a8d26c93713e6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:35-50 | lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart:36-51 | lib/app/layouts/settings/pages/scheduling/samsung_create_scheduled_panel.dart:77-92 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 160 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:35\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/app/layouts/settings/pages/scheduling/samsung_create_scheduled_panel.dart:93\u0060 calls \u0060RoundedRectangleBorder\u0060, \u0060all\u0060, \u0060circular\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:51\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":"lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f9d7a8b9410a21a1dcba19dbd7d5db27adb6156e68d9327123edd85c18caac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart:193-208 | lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:181-196 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:190-205 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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 \u0060lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart:193\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":"lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ef5fb5f522632e176c7eb63ae389fc141a497ab6e6d073eacc32f9e15c09ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart:259-274 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart:289-304 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart:318-333 \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 \u0060lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart:259\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":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"27880df0873e04934c13016775ab719cb2b89573752474df3003ca9728f984ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/app/layouts/contact_selector_view/contact_selector_view.dart:150-165 | lib/app/layouts/handle_selector_view/handle_selector_view.dart:190-205 \u2014 \u0060lib/app/layouts/contact_selector_view/contact_selector_view.dart\u0060 and \u0060lib/app/layouts/handle_selector_view/handle_selector_view.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 72 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/contact_selector_view/contact_selector_view.dart:150\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":"lib/app/layouts/contact_selector_view/contact_selector_view.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"78769535c69ca85b6fb6f881311368b9418e0b2aadd2cc6f7f8601e668172e1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/app/layouts/conversation_list/pages/conversation_list.dart:268-283 | lib/services/ui/navigator/navigator_service.dart:167-182 \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 \u0060lib/app/layouts/conversation_list/pages/conversation_list.dart:268\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":"lib/app/layouts/conversation_list/pages/conversation_list.dart"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee96ac6cc463354d629bbf51782c73ab14657a333121bf5424abf694d5668239"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/app/layouts/findmy/findmy_page.dart:491-506 | lib/app/layouts/settings/pages/system/notification_panel.dart:294-309 \u2014 before extracting anything, compare \u0060lib/app/layouts/findmy/findmy_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/system/notification_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 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 \u0060lib/app/layouts/findmy/findmy_page.dart:491\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":"lib/app/layouts/findmy/findmy_page.dart"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"a29d594da5f76f991065d05a1bf59556726ded9425063eaef5b262294cd19673"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:337-352 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:357-372 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 211 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:337\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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"92230f7d003342b3d369d7c24f21779bfcb93050409a4d5dbeb5e50512c86f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:95-110 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:98-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 \u0060lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:95\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 \u0060item\u0060 to \u0060InfoItemConfig\u0060 in one and \u0060StatItemConfig\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":"lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"c581035deb856256753560825ee9dcd82a0ae9ec627037ca5ea16801e054de33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201315 lines \u00D7 4): lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart:140-154 | lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart:167-181 | lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart:194-208 | lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart:213-222 \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 \u0060lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart:140\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. 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":"lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0d31794372dfb564f73aa1e2ed0e1d60fcc67b351e4ed15e3cb656d01278f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart:25-39 | lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart:23-37 | lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart:23-37 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 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. 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":"lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"14327e01e84baf52de7b9db136fe50902a770d4d054df653472d77e5f20f3f4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_preview_card.dart:403-417 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_preview_card.dart:451-465 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_preview_card.dart:494-508 \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 \u0060lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_preview_card.dart:403\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":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_preview_card.dart"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bfec5fe7587617858958a84d17439e4768a52376b94b05536a106478ca88cdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/app/layouts/chat_creator/chat_creator.dart:403-416 | lib/app/layouts/chat_creator/chat_creator.dart:452-466 \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 \u0060lib/app/layouts/chat_creator/chat_creator.dart:403\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":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c1baf7e3c6c1332e2b869507c66788810cf9daa9b471b5cd0bd8b47fc3cb8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/app/layouts/chat_creator/widgets/search_results_list.dart:119-133 | lib/app/layouts/chat_creator/widgets/search_results_list.dart:190-204 \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 \u0060lib/app/layouts/chat_creator/widgets/search_results_list.dart:119\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":"lib/app/layouts/chat_creator/widgets/search_results_list.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ee3600fc26c9273b4fa80f60ed0f864b7c80a8fcc1fcf75822cbb14d83966a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:45-59 | lib/app/layouts/conversation_details/widgets/chat_options.dart:50-64 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6f516d7eb55f7ce29e652a87d6a8033a61f0096f5ecdbcb7e02941b3d3bb0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:415-428 | lib/app/layouts/conversation_details/widgets/chat_options.dart:474-488 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:415\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ce8c6242a9c95c06d2742e79370fc5595f7b3c7a31f46c3f9add3c22177fc3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:483-497 | lib/app/layouts/conversation_details/widgets/chat_options.dart:715-728 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:483\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"b011f79d8789e76bb741c56456ffd1669177df793c3fcf9a5d4fd773d215d7cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:473-487 | lib/app/layouts/settings/pages/advanced/firebase_panel.dart:353-367 \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 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:473\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"4013ebd84772c85910194e2d9859aed85e10e87b35c361ba837bb9f4a5d917d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart:215-229 | lib/app/layouts/conversation_details/widgets/sections/locations/locations_section.dart:160-174 \u2014 \u0060lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/sections/locations/locations_section.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 53 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart:215\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":"lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"649e03cabd66149847b288405764cfa7369f9df5e3cd9d6e59a4f130aea09d0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart:85-99 | lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart:104-118 \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 \u0060lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart:104\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":"lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11c434eef95fc69a929c310c1c350df6cd20484da79cc54d430ad7b5bd69de8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:502-516 | lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:575-588 \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 \u0060lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:502\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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"30a10896f01c531dc14c420becb0ef9ad3d82a79e860b11b6975720df2523216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/chat_event/chat_event.dart:53-67 | lib/app/layouts/findmy/widgets/findmy_raw_data_dialog.dart:25-38 \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 \u0060lib/app/layouts/conversation_view/widgets/message/chat_event/chat_event.dart:53\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/chat_event/chat_event.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b57bcdff9908fce8dc52f30c040bf5f18992e63b309e9b6fc1feef2d25d49f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/interactive/photo_slideshow.dart:294-308 | lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart:143-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 \u0060lib/app/layouts/conversation_view/widgets/message/interactive/photo_slideshow.dart:294\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":"lib/app/layouts/conversation_view/widgets/message/interactive/photo_slideshow.dart"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"d74c7c3a1422d4808c0d7a783f00badb143675dffaad9d74bae3ac4ed5d2ef72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/app/layouts/fullscreen_media/fullscreen_image.dart:332-346 | lib/app/layouts/fullscreen_media/fullscreen_video.dart:462-476 \u2014 before extracting anything, compare \u0060lib/app/layouts/fullscreen_media/fullscreen_image.dart\u0060 and \u0060lib/app/layouts/fullscreen_media/fullscreen_video.dart\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 \u0060lib/app/layouts/fullscreen_media/fullscreen_image.dart:332\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":"lib/app/layouts/fullscreen_media/fullscreen_image.dart"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"f11cd76da448fcb90ce30cacdb3323a4103a427a4f3b5ebed962c2e246d28a40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:321-335 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:341-355 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 211 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:321\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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd480753a70e0167e43047908506a8468550f8647efda81fa87585040357243"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart:105-119 | lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart:92-106 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d20757f004eee974439bdcd4e0a575fc2468f64a11726c4e08cf3a4dda56c04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_management_section.dart:27-41 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/typography_editor.dart:38-52 \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 \u0060lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_management_section.dart:27\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":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_management_section.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e84519e64dc534f772f89ab7addb8ea7d9805ea579668838abe7789bdf7e9fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/app/layouts/setup/dialogs/connecting_dialog.dart:57-71 | lib/app/layouts/setup/pages/sync/server_credentials.dart:643-656 \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 \u0060lib/app/layouts/setup/dialogs/connecting_dialog.dart: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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060context\u0060 to \u0060BuildContext\u0060 in one and \u0060context\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":"lib/app/layouts/setup/dialogs/connecting_dialog.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8720ebeef5fc28ad05605b9d6b37fa1d05fb5d1aa0ff17af57e35c41cb299cf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/app/layouts/setup/pages/page_template.dart:186-200 | lib/app/layouts/setup/pages/sync/sync_progress.dart:131-145 \u2014 before extracting anything, compare \u0060lib/app/layouts/setup/pages/page_template.dart\u0060 and \u0060lib/app/layouts/setup/pages/sync/sync_progress.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 80 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 \u0060lib/app/layouts/setup/pages/page_template.dart:186\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":"lib/app/layouts/setup/pages/page_template.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e803798a1a17f65232202418d51e456503e8daeef510817fb9caa711a778f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/app/layouts/setup/pages/sync/server_credentials.dart:352-366 | lib/app/layouts/setup/pages/sync/server_credentials.dart:470-484 \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 \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart:352\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":"lib/app/layouts/setup/pages/sync/server_credentials.dart"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58589ff536eb1b924d4bfa9f81a86d882380299d187ec7a571eb66f1cb36320"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/database/html/chat.dart:517-531 | lib/database/io/chat.dart:857-871 \u2014 \u0060lib/database/html/chat.dart\u0060 and \u0060lib/database/io/chat.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/database/html/chat.dart:533\u0060 calls \u0060addAll\u0060 and \u0060lib/database/io/chat.dart:872\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":"lib/database/html/chat.dart"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cff9d91be33023114eaf83f4984bfe636f2bfc2691b2531b8d3b21521741227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/database/html/handle.dart:110-124 | lib/database/io/handle.dart:337-351 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/handle.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5dcc9ba68468fbba3459fbec3fa5523c7d62a12ae414e6883b3924f6a5df785"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/database/html/message.dart:199-213 | lib/database/io/message.dart:323-337 \u2014 \u0060lib/database/html/message.dart\u0060 and \u0060lib/database/io/message.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 159 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/database/html/message.dart:199\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":"lib/database/html/message.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8223782f720e2dd80d85af1e60afb35ad1561a79d2f4ed724e052c0551c564"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): lib/app/layouts/chat_creator/widgets/chat_list_section.dart:36-49 | lib/app/layouts/chat_creator/widgets/search_results_list.dart:136-149 | lib/app/layouts/chat_selector_view/chat_selector_view.dart:197-210 | lib/app/layouts/contact_selector_view/contact_selector_view.dart:120-133 | lib/app/layouts/handle_selector_view/handle_selector_view.dart:160-173 \u2014 \u0060lib/app/layouts/chat_selector_view/chat_selector_view.dart\u0060 and \u0060lib/app/layouts/contact_selector_view/contact_selector_view.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 56 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/chat_creator/widgets/chat_list_section.dart:36\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":"lib/app/layouts/chat_creator/widgets/chat_list_section.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c0fbfd11e885aceeb10b3d4d8df4b9e4ecaa7d185e81ca7a6d3abce4053740"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart:132-145 | lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart:190-203 | lib/app/layouts/conversation_details/widgets/sections/locations/locations_section.dart:135-148 | lib/app/layouts/conversation_details/widgets/sections/media/media_grid_section.dart:257-270 \u2014 \u0060lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 41 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060child\u0060 to \u0060Obx((\u0060 in one and \u0060AttachmentSectionHeader( title: AttachmentSectionType.media.expressiveSectionLabel, onShowMore: (\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":"lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c53cb2f69da06b151af013b4ccef6a3c18b92903507177fec834033f925fb73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart:177-190 | lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart:236-249 | lib/app/layouts/conversation_details/widgets/sections/locations/locations_section.dart:181-194 | lib/app/layouts/conversation_details/widgets/sections/media/media_grid_section.dart:307-320 \u2014 \u0060lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 41 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart:177\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":"lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26cf1ff7a4ba56dd5550f044b62800419661667023dcca205c3a5c0fb92f458"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:415-428 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:480-493 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:578-591 \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 \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:415\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:413\u0060 calls \u0060_emptyText\u0060 and \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart:577\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":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_content_tab.dart"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0382800c0b87a485904ae90c0e3a73e68710df4adc5004b19c9cce1b5fe00f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart:320-333 | lib/app/layouts/settings/pages/scheduling/create_scheduled_mixin.dart:73-86 | lib/services/backend/java_dart_interop/intents_service.dart:138-151 \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 \u0060lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart:320\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060context\u0060 to \u0060context\u0060 in one and \u0060Get.context!\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":"lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"440defa15e6be53832849b0488e12eb522c982a6977a22f8ad2b5c2fbd2bd288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart:78-91 | lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart:70-83 | lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:73-86 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 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 \u0060lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart:78\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":"lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac00887cd36986f8bb83a3c8bdfcb8c326303920c701e59f22c98fe496625b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_header.dart:151-164 | lib/app/layouts/conversation_details/widgets/chat_info.dart:116-129 \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 \u0060lib/app/layouts/conversation_details/material/material_chat_header.dart:151\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":"lib/app/layouts/conversation_details/material/material_chat_header.dart"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"58526dd595ff9b2a9736881f85313129c39cc185449ddc853c7ecb987b9ee5c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:651-660 | lib/app/layouts/conversation_details/widgets/chat_options.dart:638-651 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:651\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"41b598c60039ddda64e0d52c7136654ff2f9bac79b49d174cea3924293ae3ae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:484-497 | lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:707-720 \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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e5e7b250ece18b35f3a19dee29ca0ac68156f3536721e1503e6cc4f96dc480"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/app/layouts/fullscreen_media/fullscreen_image.dart:191-204 | lib/app/layouts/fullscreen_media/fullscreen_video.dart:389-402 \u2014 before extracting anything, compare \u0060lib/app/layouts/fullscreen_media/fullscreen_image.dart\u0060 and \u0060lib/app/layouts/fullscreen_media/fullscreen_video.dart\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 \u0060lib/app/layouts/fullscreen_media/fullscreen_image.dart:191\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, \u0060lib/app/layouts/fullscreen_media/fullscreen_image.dart:205\u0060 calls \u0060Row\u0060 and \u0060lib/app/layouts/fullscreen_media/fullscreen_video.dart:403\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":"lib/app/layouts/fullscreen_media/fullscreen_image.dart"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"64941f2f7466929883dea32125cef55059664c04d59b579d134dbbb3e5da1ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/app/layouts/settings/pages/advanced/firebase_panel.dart:294-306 | lib/app/layouts/settings/pages/advanced/firebase_panel.dart:323-336 \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 \u0060lib/app/layouts/settings/pages/advanced/firebase_panel.dart:294\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":"lib/app/layouts/settings/pages/advanced/firebase_panel.dart"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2184ea174b3105475d49a382246deac22593c0e1629aefd541fdb36737c105"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/app/layouts/settings/pages/contacts/material_contacts_management_panel.dart:15-28 | lib/app/layouts/settings/pages/contacts/samsung_contacts_management_panel.dart:15-28 \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":"lib/app/layouts/settings/pages/contacts/material_contacts_management_panel.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0011fd92a48a8762f02b84756fb619e6447a1eb88396b32f0a397309fbe0f06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/app/layouts/settings/pages/theming/avatar/avatar_crop.dart:55-68 | lib/app/layouts/settings/pages/theming/avatar/avatar_crop.dart:199-212 \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":"lib/app/layouts/settings/pages/theming/avatar/avatar_crop.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e996d802767c616d18002c14e11593757fc1d25f4d6594dd2dd5e0cdc19338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart:126-139 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/theme_management_section.dart:184-197 \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 \u0060lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart:126\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":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"43dec4d107cb2fbb01a4363ff7ddb50d934589a01176e0a1f6fbabe01e7066f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/database/html/attachment.dart:151-164 | lib/database/io/attachment.dart:390-403 \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 \u0060lib/database/html/attachment.dart:151\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":"lib/database/html/attachment.dart"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6215c78159c55c3a928cf1ab53638e7049371451368e5f25bcb46923507a39e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201314 lines \u00D7 2): lib/services/backend/actions/attachment_actions.dart:195-204 | lib/services/backend/actions/attachment_actions.dart:216-229 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/services/backend/actions/attachment_actions.dart:205\u0060 calls \u0060remove\u0060 and \u0060lib/services/backend/actions/attachment_actions.dart:232\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":"lib/services/backend/actions/attachment_actions.dart"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f65a34f92b511c48beafff227600bb518ceec650bb80efd51dae4c389ab4c1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/services/backend/sync/chat_sync_manager.dart:42-55 | lib/services/backend/sync/handle_sync_manager.dart:58-71 \u2014 before extracting anything, compare \u0060lib/services/backend/sync/chat_sync_manager.dart\u0060 and \u0060lib/services/backend/sync/handle_sync_manager.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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 \u0060lib/services/backend/sync/chat_sync_manager.dart: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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0932d7a0feb8fbcfeec11d142efd5f03ccd37f2a92adb5c673aa4d1eba296a6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): lib/app/layouts/chat_creator/chat_creator_dialogs.dart:43-55 | lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart:324-336 | lib/app/layouts/settings/pages/scheduling/create_scheduled_mixin.dart:77-89 | lib/services/backend/java_dart_interop/intents_service.dart:142-154 \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 \u0060lib/app/layouts/chat_creator/chat_creator_dialogs.dart:43\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060context\u0060 to \u0060BuildContext\u0060 in one and \u0060context\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":"lib/app/layouts/chat_creator/chat_creator_dialogs.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f1bceb406c2b64e64121e294c95cbde7cdc51c164bd93371b43cee74d709c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/app/components/wallpaper/floating_wallpaper.dart:106-118 | lib/app/components/wallpaper/moving_background_wallpaper.dart:76-88 | lib/app/components/wallpaper/wave_wallpaper.dart:73-85 \u2014 before extracting anything, compare \u0060lib/app/components/wallpaper/moving_background_wallpaper.dart\u0060 and \u0060lib/app/components/wallpaper/wave_wallpaper.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 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 \u0060lib/app/components/wallpaper/floating_wallpaper.dart:106\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":"lib/app/components/wallpaper/floating_wallpaper.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a199b569629aa3790d65248b83502d66110971a3bbe8831b45f6e6cfeeebce9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): lib/app/layouts/conversation_view/widgets/message/attachment/parts/not_loaded_content.dart:41-51 | lib/app/layouts/conversation_view/widgets/message/attachment/parts/not_loaded_content.dart:77-87 | lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart:347-359 \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 \u0060lib/app/layouts/conversation_view/widgets/message/attachment/parts/not_loaded_content.dart:41\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":"lib/app/layouts/conversation_view/widgets/message/attachment/parts/not_loaded_content.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf75fb3bac0e6329ae6ba2e6958f69974dbc041e2a5b7ad8e38ad4ab6d580904"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart:41-53 | lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart:39-51 | lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart:39-51 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 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. 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":"lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1362ddc84b7765df5164017c40be4510b7666201dda559351ebad9d8d2b65eb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): lib/app/layouts/setup/pages/sync/sync_settings.dart:46-57 | lib/app/layouts/setup/pages/sync/sync_settings.dart:71-83 | lib/app/layouts/setup/pages/sync/sync_settings.dart:104-115 \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 \u0060lib/app/layouts/setup/pages/sync/sync_settings.dart:46\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":"lib/app/layouts/setup/pages/sync/sync_settings.dart"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"be25f6402640002b1d6ffed6b34bf15889b1b12ce8daf859acf1393b55a4777e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:534-546 | lib/app/layouts/conversation_details/widgets/chat_options.dart:799-810 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:534\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be5696289f3dab80462a704e3c8cba9680f9f2fdd4c02ae6fbbaaaf92e95c91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart:159-171 | lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart:655-667 \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 \u0060lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart:159\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":"lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a1fd42d4c9f1bac978aba0cfaf566de678531462a712d1c2d3a030d710f111"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart:357-369 | lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart:383-395 \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, \u0060lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart:396\u0060 calls \u0060buildOriginalFallback\u0060 and \u0060lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart:370\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":"lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"19743810ee9ceaefc0530d21e8db98cf8ffc9ae5e71633a0964d9fce71218b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/misc/bubble_effects.dart:125-137 | lib/app/layouts/conversation_view/widgets/message/text/text_bubble.dart:105-117 \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":"lib/app/layouts/conversation_view/widgets/message/misc/bubble_effects.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"246cd3c6d5600a183522781b4b32085170a54781f2cf44205e2ed91c1cc8f723"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:90-102 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:116-128 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 211 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:90\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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e720631b007f17e5c819b387e4a199826c255088fd63f50562e6f7aa2f4a50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:286-298 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:303-315 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 211 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart: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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"cccc501898b99c43b559217adcbb78440d590fd613706f9dff6955b53f34c67b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:356-368 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:375-387 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 211 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:356\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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a1bdb9213733d32ba8874bdc9f114cded121344ecbc80b01443e02a53f5ae90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:92-104 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:114-126 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:92\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":"lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a99809e0b5cd87d0a556ac93dc7483812e7b6e5c5a7d3c4fb187c44f161a06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/app/layouts/settings/pages/server/backup_restore_panel.dart:480-492 | lib/app/layouts/setup/dialogs/manual_entry_dialog.dart:91-103 \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 \u0060lib/app/layouts/settings/pages/server/backup_restore_panel.dart:480\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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b193fafde12c09827a8e69f3beeaf126591bd4ba169d5467309796fd114cbd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart:40-52 | lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart:48-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 \u0060lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart:40\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":"lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d6a0c27f1a9187cb0ecdeef8cd51bc0d149dc0576da96781dec3dfe99aa83e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/app/layouts/settings/pages/server/oauth_panel.dart:322-334 | lib/app/layouts/setup/pages/sync/server_credentials.dart:268-280 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart\u0060 and \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 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 \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart:322\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":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9d21ae4a6f755949a5dc67d9f046d7aa0442fc9edb89667b73d2df42496eb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/app/layouts/settings/settings_page.dart:155-167 | lib/app/layouts/settings/settings_page.dart:194-206 \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 \u0060lib/app/layouts/settings/settings_page.dart:155\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":"lib/app/layouts/settings/settings_page.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a059d1d8c8a53d62fb03500216424e53ea710b13dd8a5de99a9ce07120d55b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): lib/app/layouts/settings/widgets/content/advanced_theming_tile.dart:53-67 | lib/app/layouts/settings/widgets/content/advanced_theming_tile.dart:77-92 \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 \u0060lib/app/layouts/settings/widgets/content/advanced_theming_tile.dart:53\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":"lib/app/layouts/settings/widgets/content/advanced_theming_tile.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"64c1e8101dc1fcf908cbfff62a38dc9a6cb37aac7ead511701d8cf9c6e82d7c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/database/html/fcm_data.dart:22-34 | lib/database/io/fcm_data.dart:27-39 \u2014 \u0060lib/database/html/fcm_data.dart\u0060 and \u0060lib/database/io/fcm_data.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"lib/database/html/fcm_data.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f970889bc5c2b79f7ef1e06d6b2a334464fc6051592587b901cf1a482957146"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/database/html/message.dart:183-195 | lib/database/io/message.dart:308-320 \u2014 \u0060lib/database/html/message.dart\u0060 and \u0060lib/database/io/message.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 159 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f6cb7a935b9b551538b951bea1c099f2f4f13fdf152b87d51d47a7a7bd0aae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/services/backend/actions/chat_actions.dart:191-203 | lib/services/backend/actions/chat_actions.dart:216-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 \u0060lib/services/backend/actions/chat_actions.dart:191\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":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"27664561a2889e1bdac76f9294c9d2997f9f3705f1bee6157f259a0ce86bee0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): lib/app/layouts/setup/pages/page_template.dart:231-242 | lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart:114-125 | lib/app/layouts/setup/pages/setup_checks/mac_setup_check.dart:31-42 | lib/app/layouts/setup/pages/sync/server_credentials.dart:515-526 \u2014 before extracting anything, compare \u0060lib/app/layouts/setup/pages/page_template.dart\u0060 and \u0060lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 \u0060lib/app/layouts/setup/pages/page_template.dart:231\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":"lib/app/layouts/setup/pages/page_template.dart"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f10dd77e2447433a95908a93d027278316055a2aea50f0124e55e80d2aaea4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/app/layouts/chat_creator/widgets/search_results_list.dart:68-79 | lib/app/layouts/chat_creator/widgets/search_results_list.dart:119-130 | lib/app/layouts/chat_creator/widgets/search_results_list.dart:190-201 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/chat_creator/widgets/search_results_list.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4de5a5d2111b15169557d9bfebb8409649317373c2d110a00879c94a081327"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:268-279 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:285-296 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:295-306 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 211 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:268\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, \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:267\u0060 calls \u0060Icon\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:284\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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d33e3d278843353d19dcf81c49b1954db681db2809bf0cd3b01682feecae37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:288-299 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:305-316 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:326-337 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 211 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:288\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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"af66cfdd1467cd4cdeb89dc46698bb90a90680c2957a3ba681138c6b5ccbb9ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart:111-122 | lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:120-131 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:126-137 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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 \u0060lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart:111\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":"lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b161ea45ba334db809c5ae54b5149a156ab1a8b984091f0fb2a5899afd45a1c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): lib/app/layouts/settings/pages/server/oauth_panel.dart:266-276 | lib/app/layouts/setup/pages/page_template.dart:190-201 | lib/app/layouts/setup/pages/sync/sync_progress.dart:135-146 \u2014 before extracting anything, compare \u0060lib/app/layouts/setup/pages/page_template.dart\u0060 and \u0060lib/app/layouts/setup/pages/sync/sync_progress.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 80 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 \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart:266\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, \u0060lib/app/layouts/setup/pages/page_template.dart:187\u0060 calls \u0060LinearGradient\u0060, \u0060HexColor\u0060, \u0060darkenPercent\u0060 and \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart:265\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":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c655a74103e7bf2fb3798651b2abf889e22ad65f19944655a86752181fd431d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/app/layouts/settings/pages/storage/cupertino_storage_analyzer_panel.dart:21-32 | lib/app/layouts/settings/pages/storage/material_storage_analyzer_panel.dart:23-34 | lib/app/layouts/settings/pages/storage/samsung_storage_analyzer_panel.dart:24-35 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/storage/material_storage_analyzer_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/storage/samsung_storage_analyzer_panel.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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 \u0060lib/app/layouts/settings/pages/storage/cupertino_storage_analyzer_panel.dart:21\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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, \u0060lib/app/layouts/settings/pages/storage/material_storage_analyzer_panel.dart:35\u0060 calls \u0060Padding\u0060, \u0060symmetric\u0060 and \u0060lib/app/layouts/settings/pages/storage/cupertino_storage_analyzer_panel.dart:33\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":"lib/app/layouts/settings/pages/storage/cupertino_storage_analyzer_panel.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf148f1bba04739f5e336bd38d821333dc3bcb37dc5336671c9c6f12a985d68c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): lib/app/layouts/setup/pages/sync/server_credentials.dart:213-223 | lib/app/layouts/setup/pages/sync/server_credentials.dart:356-367 | lib/app/layouts/setup/pages/sync/server_credentials.dart:474-485 \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 \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart:213\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, \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart:353\u0060 calls \u0060LinearGradient\u0060, \u0060HexColor\u0060, \u0060darkenPercent\u0060 and \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart:212\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":"lib/app/layouts/setup/pages/sync/server_credentials.dart"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"bedd38040551b1fdd64d011389893bd42cc914ac6687e3b8821710df42c83f6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): lib/app/layouts/setup/pages/sync/server_credentials.dart:263-273 | lib/app/layouts/setup/pages/sync/server_credentials.dart:316-327 | lib/app/layouts/setup/pages/sync/server_credentials.dart:511-522 \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 \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart: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":"lib/app/layouts/setup/pages/sync/server_credentials.dart"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"6415ea97eb08192b8b80b67b076f444b1f394f1f0064e233e496af8ad46e9482"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/app/animations/balloon_rendering.dart:157-168 | lib/app/animations/balloon_rendering.dart:185-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/balloon_rendering.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"55eae4b0ee4e332c2ea7422d7aa8c05f5febcbeba74fd0f6f395d258eaf439b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:315-326 | lib/app/layouts/conversation_details/widgets/chat_options.dart:351-362 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:315\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a2190a31eb1fb08b6ebe598f7075fe0c84deb65b0d019d45a915c1d73786f41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:359-370 | lib/app/layouts/conversation_details/widgets/chat_options.dart:396-407 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart: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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"0882753b28b07b14cc42b7907b5602dfbab192ce3a9147f72e06a9c62a97596c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart:212-223 | lib/app/layouts/conversation_view/widgets/header/shared/header_components.dart:74-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 \u0060lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart:212\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":"lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"53d7ec94d33336ab9c674615bf12f2a43ea07c783a288393d4a77ad29604f6e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:124-134 | lib/app/layouts/fullscreen_media/fullscreen_video.dart:329-340 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart\u0060 and \u0060lib/app/layouts/fullscreen_media/fullscreen_video.dart\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 \u0060lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:124\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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a493e80660926ef44ee9bd46d18bf4d52f5b01e90b7fcf67dbe04cde172750"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart:115-126 | lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart:321-332 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart\u0060 and \u0060lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 \u0060lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart: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":"lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26292b0b8f28933652e7398a9e48779cf8a41dfd95dc499255fd385a1016be4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/popup/message_popup_holder.dart:80-90 | lib/app/layouts/conversation_view/widgets/message/reaction/reaction.dart:177-188 \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 \u0060lib/app/layouts/conversation_view/widgets/message/popup/message_popup_holder.dart: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":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup_holder.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a077e1f30c67ac98a2e53fdc819739a81eff9215a00677916a7734daf559f28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/text_field/text_field_suffix.dart:284-294 | lib/app/layouts/conversation_view/widgets/text_field/text_field_suffix.dart:297-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 \u0060lib/app/layouts/conversation_view/widgets/text_field/text_field_suffix.dart:297\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":"lib/app/layouts/conversation_view/widgets/text_field/text_field_suffix.dart"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d0667c769ceb1c8d7243b4929effc922e7c695248716c82187a1fce4deb5d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/app/layouts/findmy/widgets/findmy_map_widget.dart:92-103 | lib/app/layouts/findmy/widgets/findmy_map_widget.dart:126-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 \u0060lib/app/layouts/findmy/widgets/findmy_map_widget.dart:92\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":"lib/app/layouts/findmy/widgets/findmy_map_widget.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2f4241b46abbb712fdac3f665d690816191e50a3ec2174ca1db7d1cb9d236f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart:59-70 | lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart:59-70 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 225 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"41c14e6c4315f9d7ee102150ea36bfcfa52fa7bee6f745f3875f96b219fbaf6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/app/layouts/settings/pages/misc/about_panel.dart:64-74 | lib/app/layouts/settings/pages/misc/about_panel.dart:78-89 \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 \u0060lib/app/layouts/settings/pages/misc/about_panel.dart:64\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/misc/about_panel.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"badd997f68b4c2875a138816b16130e9075e57d796473897ba181b337b8d6c4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:236-247 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:254-265 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 211 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart: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. 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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4675987e150e357efa3ea3003886159bd79441dc6a004277fa6888da372c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:107-118 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:113-124 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 204 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 \u0060lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:107\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":"lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b22ff14c3ab39fd05a415250b279f27314d80856e525e44229262336059fc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/database/html/message.dart:140-151 | lib/database/io/message.dart:241-252 \u2014 \u0060lib/database/html/message.dart\u0060 and \u0060lib/database/io/message.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 159 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/database/html/message.dart:140\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":"lib/database/html/message.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"60dfa92995e20e6cf6b0af45b13af829ba9e3293330b6fc45a6a9e8c3cd7119d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/database/html/message.dart:471-482 | lib/database/io/message.dart:774-785 \u2014 \u0060lib/database/html/message.dart\u0060 and \u0060lib/database/io/message.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 159 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"lib/database/html/message.dart"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ebe3fc5ba17b1027d660ff2af27121a4ff0b685cef2fa7df33dc6e196a650f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/services/backend/java_dart_interop/method_channel_handlers.dart:76-87 | lib/services/backend/java_dart_interop/method_channel_handlers.dart:101-112 \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 \u0060lib/services/backend/java_dart_interop/method_channel_handlers.dart:76\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":"lib/services/backend/java_dart_interop/method_channel_handlers.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c83fa491eb5922e40d6e71caa2a4d1cb3378aeddc0498caeef064eaad216ca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/services/backend/sync/chat_sync_manager.dart:25-36 | lib/services/backend/sync/full_sync_manager.dart:40-51 \u2014 before extracting anything, compare \u0060lib/services/backend/sync/chat_sync_manager.dart\u0060 and \u0060lib/services/backend/sync/full_sync_manager.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 83 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 \u0060lib/services/backend/sync/chat_sync_manager.dart:25\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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f03fecf8d0b0349c43d5002f65c1607fb65dde1f28210d741d7cd026887d896"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/services/backend/sync/chat_sync_manager.dart:83-94 | lib/services/backend/sync/handle_sync_manager.dart:125-136 \u2014 before extracting anything, compare \u0060lib/services/backend/sync/chat_sync_manager.dart\u0060 and \u0060lib/services/backend/sync/handle_sync_manager.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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 \u0060lib/services/backend/sync/chat_sync_manager.dart:83\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, \u0060lib/services/backend/sync/handle_sync_manager.dart:137\u0060 calls \u0060restoreOriginalHandles\u0060 and \u0060lib/services/backend/sync/chat_sync_manager.dart:95\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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"6020898355faffa714cf0b65e889e677ef3523002c4a85c23e897ec4d4736534"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): lib/app/layouts/conversation_details/widgets/chat_info.dart:295-304 | lib/app/layouts/conversation_details/widgets/chat_info.dart:342-352 | lib/app/layouts/conversation_details/widgets/chat_info.dart:383-393 | lib/app/layouts/conversation_details/widgets/chat_info.dart:431-440 \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 \u0060lib/app/layouts/conversation_details/widgets/chat_info.dart: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/chat_info.dart"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf8299b610be8a2565bccfc2038e4aa0300306af5cb13837ba7e8462ce4b143"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): lib/services/backend/sync/chat_sync_manager.dart:129-139 | lib/services/backend/sync/full_sync_manager.dart:200-210 | lib/services/backend/sync/full_sync_manager.dart:253-263 | lib/services/backend/sync/handle_sync_manager.dart:226-236 \u2014 before extracting anything, compare \u0060lib/services/backend/sync/chat_sync_manager.dart\u0060 and \u0060lib/services/backend/sync/full_sync_manager.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 83 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 \u0060lib/services/backend/sync/chat_sync_manager.dart:129\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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"55766aa4bfddfcdcfc6cf1ae6daa104e710a94da53c6d83428cb78a2ff046841"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/app/components/wallpaper/moving_background_wallpaper.dart:112-122 | lib/app/components/wallpaper/particles_wallpaper.dart:132-142 | lib/app/components/wallpaper/wave_wallpaper.dart:100-110 \u2014 before extracting anything, compare \u0060lib/app/components/wallpaper/moving_background_wallpaper.dart\u0060 and \u0060lib/app/components/wallpaper/wave_wallpaper.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 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 \u0060lib/app/components/wallpaper/moving_background_wallpaper.dart: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/wallpaper/moving_background_wallpaper.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"2facaa1f6f4701e7b3e56694f6f7fb768d72020be34d39c3ea7e72344adb11f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart:31-41 | lib/app/layouts/findmy/widgets/findmy_friends_tab_view.dart:23-33 | lib/app/layouts/findmy/widgets/findmy_items_tab_view.dart:30-40 \u2014 before extracting anything, compare \u0060lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart\u0060 and \u0060lib/app/layouts/findmy/widgets/findmy_items_tab_view.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/findmy/widgets/findmy_devices_tab_view.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfa695c2fcf99febb9f5d8706e00d8452d7fd76f0a20103393330c923a6bdb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:249-259 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:267-277 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:277-287 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 211 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:249\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 before the matched lines, \u0060lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:275\u0060 calls \u0060RoundedRectangleBorder\u0060, \u0060all\u0060, \u0060circular\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:247\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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b2dc2fb2b9677d5a556c3b2cdd5f8241133fab6fa54f2787b490cb39290bce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/app/layouts/settings/pages/server/oauth_panel.dart:320-330 | lib/app/layouts/setup/pages/sync/server_credentials.dart:266-276 | lib/app/layouts/setup/pages/sync/server_credentials.dart:320-330 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart\u0060 and \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b206826465c96df27bcac32e0d1993b316cc87329502439ca551f47e7a3fd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart:137-147 | lib/app/layouts/setup/pages/setup_checks/mac_setup_check.dart:50-59 | lib/app/layouts/setup/pages/sync/server_credentials.dart:530-540 \u2014 before extracting anything, compare \u0060lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart\u0060 and \u0060lib/app/layouts/setup/pages/setup_checks/mac_setup_check.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 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 \u0060lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba2ae2d1798b3db94320d61fc36c7ba1abcb82711ca49fa76fe94a3909381c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/app/components/wallpaper/moving_background_wallpaper.dart:85-95 | lib/app/components/wallpaper/wave_wallpaper.dart:91-101 \u2014 before extracting anything, compare \u0060lib/app/components/wallpaper/moving_background_wallpaper.dart\u0060 and \u0060lib/app/components/wallpaper/wave_wallpaper.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 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 \u0060lib/app/components/wallpaper/moving_background_wallpaper.dart:85\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":"lib/app/components/wallpaper/moving_background_wallpaper.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa871da6875ebf60fecdc81d273b231a0e417be659880be2936134214304313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/app/layouts/chat_creator/chat_creator.dart:184-193 | lib/app/layouts/chat_creator/chat_creator_controller.dart:333-343 \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 \u0060lib/app/layouts/chat_creator/chat_creator.dart:184\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":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1dce2cbdd26a852b47d1259d809801dd83b3026a2c6cc33b2bac00cfac1694"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart:41-51 | lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart:112-122 \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":"lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e04b4be690fbc485755eef44db6a7d965d46d8c5d05e32d29005a0693f81897"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart:234-244 | lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart:251-261 \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 \u0060lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart:234\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":"lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fb2e8f53a17340d7c21ebd969187cedbc08ba74269a3138937ccb251c35355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:197-206 | lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:720-730 \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 \u0060lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:197\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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73395e83ea7e5e3df09b9e738af0fecb3a7c940d8df6053e966ad2fbc3992f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart:101-111 | lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart:307-317 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart\u0060 and \u0060lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 \u0060lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart:101\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":"lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5c2c99c3713a2a9b92319e370e19383130b9b1bd66d45d3cfa8db366296c40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:114-124 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:123-133 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 213 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 \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:114\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":"lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"079d9b0ce37921a08064ce2b6f7fe842296202e240df4fffe0e5eff984a12096"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:371-381 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:386-395 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 213 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 \u0060lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:386\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":"lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f665787636207ee154df622f385b62b81b33a8eb7d5e6cdb5ece516efb74f52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/app/layouts/settings/pages/server/backup_restore_panel.dart:498-508 | lib/app/layouts/settings/pages/server/backup_restore_panel.dart:528-538 \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 \u0060lib/app/layouts/settings/pages/server/backup_restore_panel.dart:498\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, \u0060lib/app/layouts/settings/pages/server/backup_restore_panel.dart:527\u0060 calls \u0060call\u0060 and \u0060lib/app/layouts/settings/pages/server/backup_restore_panel.dart:497\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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d68b6cf26b11742b02b27944513730bb4016caaa42b72fb35c9f50339b87263"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/app/layouts/settings/pages/server/backup_restore_panel.dart:556-565 | lib/app/layouts/settings/pages/server/backup_restore_panel.dart:712-722 \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 \u0060lib/app/layouts/settings/pages/server/backup_restore_panel.dart:556\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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3ad7e97afec1ad6ab87db24da1b93f4836c748bbe439cdf9cf0fa903cc23d5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart:428-438 | lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart:459-469 \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 \u0060lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart:428\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":"lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0855362ff2c5fb1b42bf898540b06d04afc2d3bb1f3e6ff5f3981b315fd9e29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/database/html/message.dart:159-168 | lib/database/io/message.dart:261-271 \u2014 \u0060lib/database/html/message.dart\u0060 and \u0060lib/database/io/message.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 159 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/database/html/message.dart:159\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":"lib/database/html/message.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b109823fed4920a04b1f3217002d2e8e51561ad4e858dfa21dba6046b9d4b02f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/database/html/theme_object.dart:55-65 | lib/database/io/theme_object.dart:70-80 \u2014 \u0060lib/database/html/theme_object.dart\u0060 and \u0060lib/database/io/theme_object.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 66 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/database/html/theme_object.dart:55\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":"lib/database/html/theme_object.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"31923a165c32a9ba351f6487af887132a5e2a05eb818ef310a00e8f68856fe0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/services/backend/action_handler.dart:108-120 | lib/services/backend/action_handler.dart:128-140 \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 \u0060lib/services/backend/action_handler.dart:108\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":"lib/services/backend/action_handler.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"17706da1de6c115eafdf2e209523689dfeae4350a4050afac2725f29af81f7a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/services/backend/actions/handle_actions.dart:17-27 | lib/services/backend/actions/handle_actions.dart:56-66 \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":"lib/services/backend/actions/handle_actions.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e9523d9da8e3e3f6f251661e8f10f61bb20b0e8244181a63b9377b84b64854"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6): lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:144-153 | lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:205-214 | lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:221-230 | lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:241-250 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:179-188 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:206-215 \u2014 there are 6 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060child\u0060 to \u0060Column( children: ConnectionPanelHelpersMixin.kInfoItems.map((item\u0060 in one and \u0060LayoutBuilder( builder: (context, constraints\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:204\u0060 calls \u0060SizedBox\u0060 and \u0060lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:178\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":"lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85635ca8ce39b447213b27791bc8b2b9db76e6cda6387dac990ddad319ca1ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): lib/app/layouts/setup/pages/page_template.dart:185-193 | lib/app/layouts/setup/pages/sync/server_credentials.dart:350-359 | lib/app/layouts/setup/pages/sync/server_credentials.dart:468-477 | lib/app/layouts/setup/pages/sync/sync_progress.dart:129-138 \u2014 before extracting anything, compare \u0060lib/app/layouts/setup/pages/page_template.dart\u0060 and \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 48 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 \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart:350\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":"lib/app/layouts/setup/pages/page_template.dart"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77472a0d6a12e53bfe3a3857d2a535121aa6174b8b811245d8e2e123ba81f86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/app/layouts/chat_selector_view/chat_selector_view.dart:52-61 | lib/app/layouts/contact_selector_view/contact_selector_view.dart:36-45 | lib/app/layouts/handle_selector_view/handle_selector_view.dart:42-51 \u2014 \u0060lib/app/layouts/chat_selector_view/chat_selector_view.dart\u0060 and \u0060lib/app/layouts/contact_selector_view/contact_selector_view.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 56 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/chat_selector_view/chat_selector_view.dart:52\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, \u0060lib/app/layouts/chat_selector_view/chat_selector_view.dart:49\u0060 calls \u0060toSet\u0060 and \u0060lib/app/layouts/contact_selector_view/contact_selector_view.dart:34\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":"lib/app/layouts/chat_selector_view/chat_selector_view.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39835b7a46bf372d68fecf09a4e378218ee113d1c851561ccfc0e33cf190e57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/app/layouts/conversation_list/pages/search/search_view.dart:470-479 | lib/app/layouts/conversation_list/pages/search/search_view.dart:520-529 | lib/app/layouts/conversation_list/pages/search/search_view.dart:562-571 \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 \u0060lib/app/layouts/conversation_list/pages/search/search_view.dart:470\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":"lib/app/layouts/conversation_list/pages/search/search_view.dart"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e3a16267b37c7c624475a27e58b816cf6b04defe215a0630492d6eb4e053ff9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): lib/app/layouts/conversation_view/widgets/message/interactive/embedded_media.dart:116-125 | lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart:57-65 | lib/app/layouts/conversation_view/widgets/message/interactive/unsupported_interactive.dart:81-89 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart\u0060 and \u0060lib/app/layouts/conversation_view/widgets/message/interactive/unsupported_interactive.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 47 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 \u0060lib/app/layouts/conversation_view/widgets/message/interactive/embedded_media.dart: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. 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":"lib/app/layouts/conversation_view/widgets/message/interactive/embedded_media.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e2f9929958ee4ca217e33ddb0ef23f691a7fff0f0d8040898fb7d647551380"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/app/layouts/findmy/findmy_page.dart:456-465 | lib/app/layouts/settings/pages/system/notification_panel.dart:259-268 | lib/app/layouts/settings/widgets/layout/settings_scaffold.dart:142-151 \u2014 before extracting anything, compare \u0060lib/app/layouts/findmy/findmy_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/system/notification_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 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 \u0060lib/app/layouts/findmy/findmy_page.dart:456\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":"lib/app/layouts/findmy/findmy_page.dart"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"1640c5832b874ccd07f77903a7826a7934d1c9e14460e493e437c37b6f0dcc5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart:88-97 | lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart:72-81 | lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart:72-81 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 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. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b6596a48668d7a03b456173da1e07695851cd0ee6ae48d32af6f8d5712ecea0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:176-185 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:187-196 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:196-205 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 211 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:186\u0060 calls \u0060Icon\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:197\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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3223964ec701005ae358496ad27fb9666e33a35a632815079c09f971a78715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart:111-120 | lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart:98-107 | lib/app/layouts/settings/pages/server/connection_panel/samsung_connection_panel.dart:112-121 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 89 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart:122\u0060 calls \u0060SettingsDivider\u0060 and \u0060lib/app/layouts/settings/pages/server/connection_panel/material_connection_panel.dart:108\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":"lib/app/layouts/settings/pages/server/connection_panel/cupertino_connection_panel.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c59a4ef073b12775d677732dc0702266847388a729cb1bd61a976205e4b67c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/app/layouts/settings/pages/server/oauth_panel.dart:272-281 | lib/app/layouts/setup/pages/sync/server_credentials.dart:219-228 | lib/app/layouts/setup/pages/sync/server_credentials.dart:363-372 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart\u0060 and \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 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 \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart:272\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":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d12c14671b3b8df0752ef10f93c01036b3e5d550d06c101bf64d21ac65495d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:433-442 | lib/app/layouts/conversation_details/widgets/chat_options.dart:497-503 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:433\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6cb0124d00fe3060346be93cc16cdd594b22828c0f148b9fab6137060f40ddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart:132-141 | lib/app/layouts/conversation_details/widgets/sections/locations/locations_section.dart:79-88 \u2014 \u0060lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/sections/locations/locations_section.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 53 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart:132\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":"lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"48e62cbdb2dff41de743f575271a09eae93ad93003e3d9240dc0c184005cafd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart:379-388 | lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart:419-427 \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 \u0060lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart:379\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":"lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea72597c4971674366994dc64af9674789f2b873e9bfbcefb7d74bc023213bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/app/layouts/conversation_list/pages/cupertino_conversation_list.dart:317-326 | lib/app/layouts/conversation_list/pages/cupertino_conversation_list.dart:331-340 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_list/pages/cupertino_conversation_list.dart:317\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":"lib/app/layouts/conversation_list/pages/cupertino_conversation_list.dart"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"a116e28d8eb196febc7c8a1d87b9028881808584bad77ef34ea372a2c778be7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/header/header_widgets.dart:243-252 | lib/app/layouts/conversation_view/widgets/header/shared/header_components.dart:39-48 \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 \u0060lib/app/layouts/conversation_view/widgets/header/header_widgets.dart:243\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":"lib/app/layouts/conversation_view/widgets/header/header_widgets.dart"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e4f2e123cfa86d2cba19a15c3355fd275cae49adb4e79fb5fa555f961226e3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart:282-291 | lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart:311-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 \u0060lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart:282\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":"lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fc886ba409abd305f3cc66f8d7445c54b3fdd4e5bf50065e44c47d9666937cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart:507-516 | lib/app/layouts/conversation_view/widgets/message/chat_event/chat_event.dart:48-57 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart:507\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":"lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"62873830085f46e66c046220e6fd72e3207bb7a18a12964f1e022ebd892227e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/app/layouts/settings/dialogs/notification_settings_dialog.dart:157-166 | lib/app/layouts/settings/dialogs/notification_settings_dialog.dart:179-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 \u0060lib/app/layouts/settings/dialogs/notification_settings_dialog.dart:157\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":"lib/app/layouts/settings/dialogs/notification_settings_dialog.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"939981046766865c2057ffc12a775ea315b12dd1965bc973316a98c7d52985e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart:88-98 | lib/app/layouts/setup/pages/welcome/welcome_page.dart:83-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe8a52acaedb9ed705775728daeda1e166da324a0325b07d457857195843366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart:444-453 | lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart:459-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 \u0060lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart:444\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":"lib/app/layouts/settings/pages/conversation_list/chat_list_panel.dart"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccfe8a0fea0da93285cfcefc5f2177e66677be8ca651c0c660ed4f19a6dd831f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/app/layouts/settings/pages/desktop/desktop_panel.dart:170-179 | lib/app/layouts/settings/pages/desktop/desktop_panel.dart:202-211 \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 \u0060lib/app/layouts/settings/pages/desktop/desktop_panel.dart:170\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":"lib/app/layouts/settings/pages/desktop/desktop_panel.dart"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb2c8062cc8cb45770f2cc46866f643754641b98a2950ca0842b79d92655d398"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/app/layouts/settings/pages/server/oauth_panel.dart:286-295 | lib/app/layouts/setup/pages/sync/server_credentials.dart:233-242 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart\u0060 and \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 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 \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart: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":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"894f538f12f763930c7ab621d4a2dabf4014bd58359d3595c112ba4c63bdfc21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart:201-210 | lib/app/layouts/settings/pages/theming/theming_panel.dart:383-392 \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":"lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"401cb9b6d912109b5a88ef744f50e25969987ecef8d8296f36cc2b5bbbc6593d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/app/layouts/setup/pages/page_template.dart:197-206 | lib/app/layouts/setup/pages/sync/server_credentials.dart:481-490 \u2014 before extracting anything, compare \u0060lib/app/layouts/setup/pages/page_template.dart\u0060 and \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 48 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 \u0060lib/app/layouts/setup/pages/page_template.dart:197\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":"lib/app/layouts/setup/pages/page_template.dart"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d6f3f67fb6d4a07df98c2a704d1939d4dd03a46311bcebcd104b3d7b0f7d96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/database/html/chat.dart:147-156 | lib/database/io/chat.dart:196-205 \u2014 \u0060lib/database/html/chat.dart\u0060 and \u0060lib/database/io/chat.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/chat.dart"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffecbb9ea26df8ee0cb9fd7065784c5f09db811bcc847f2b04de184f6c0582f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): lib/services/backend/sync/chat_sync_manager.dart:144-153 | lib/services/backend/sync/full_sync_manager.dart:219-227 \u2014 before extracting anything, compare \u0060lib/services/backend/sync/chat_sync_manager.dart\u0060 and \u0060lib/services/backend/sync/full_sync_manager.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 83 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 \u0060lib/services/backend/sync/chat_sync_manager.dart:144\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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0ab2ff3876388e67a3bfb1a5aa658fbffe2693d489f07a6a80c6609703ee92"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): lib/app/layouts/settings/pages/server/oauth_panel.dart:319-327 | lib/app/layouts/setup/pages/page_template.dart:230-238 | lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart:113-121 | lib/app/layouts/setup/pages/setup_checks/mac_setup_check.dart:30-38 | lib/app/layouts/setup/pages/sync/sync_progress.dart:193-201 | lib/app/layouts/setup/pages/sync/sync_settings.dart:142-150 \u2014 before extracting anything, compare \u0060lib/app/layouts/setup/pages/page_template.dart\u0060 and \u0060lib/app/layouts/setup/pages/setup_checks/battery_optimization.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart:319\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":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbe95452153f4c6cf31ca4afa3b8730609cbf292c1b054cdd14b74ba9fec4273"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart:262-270 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart:292-300 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart:321-329 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart:344-352 \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 \u0060lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart:262\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":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_strip.dart"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee00f2287ec8fc8429795482219b953f12a902c3b1822c2f75fefdf4357f17f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/app/layouts/conversation_details/widgets/chat_info.dart:272-280 | lib/app/layouts/conversation_details/widgets/chat_info.dart:319-327 | lib/app/layouts/conversation_details/widgets/chat_info.dart:408-416 \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 \u0060lib/app/layouts/conversation_details/widgets/chat_info.dart:272\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":"lib/app/layouts/conversation_details/widgets/chat_info.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d60061d1fdb854bc70ea506f016a5495514540a485a4241bb8475d1b7d5ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): lib/app/layouts/conversation_list/widgets/header/samsung_header.dart:56-63 | lib/app/layouts/findmy/findmy_page.dart:460-468 | lib/app/layouts/settings/pages/system/notification_panel.dart:263-271 \u2014 before extracting anything, compare \u0060lib/app/layouts/findmy/findmy_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/system/notification_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 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 \u0060lib/app/layouts/conversation_list/widgets/header/samsung_header.dart: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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/header/samsung_header.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7236cb1ef09eb07a71a2a7d0efdc2cef960c073a13c1128f34030cb4e8c1831"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/app/layouts/conversation_list/widgets/header/samsung_header.dart:65-73 | lib/app/layouts/findmy/findmy_page.dart:473-481 | lib/app/layouts/settings/pages/system/notification_panel.dart:276-284 \u2014 before extracting anything, compare \u0060lib/app/layouts/findmy/findmy_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/system/notification_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 83 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 \u0060lib/app/layouts/conversation_list/widgets/header/samsung_header.dart:65\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":"lib/app/layouts/conversation_list/widgets/header/samsung_header.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6dd950e36c8c6aad19be242f435d25ad691e132125aad0d2e493e412abf5ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/app/layouts/findmy/findmy_page.dart:135-143 | lib/app/layouts/findmy/findmy_page.dart:164-172 | lib/app/layouts/findmy/findmy_page.dart:193-201 \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 \u0060lib/app/layouts/findmy/findmy_page.dart:135\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":"lib/app/layouts/findmy/findmy_page.dart"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6a615dfde26b64117a6e6491496786fd236d11921386ddcb755598caa79e16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/app/layouts/settings/pages/advanced/firebase_panel.dart:33-44 | lib/app/layouts/settings/pages/advanced/notification_providers_panel.dart:30-38 | lib/app/layouts/settings/pages/advanced/unified_push.dart:36-44 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/advanced/notification_providers_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/advanced/unified_push.dart\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. 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 \u0060lib/app/layouts/settings/pages/advanced/firebase_panel.dart:33\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":"lib/app/layouts/settings/pages/advanced/firebase_panel.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02f6f176ba646201bb90886d4536d84b959184c43303fc4c26bade6cfe69af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart:56-64 | lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart:94-101 | lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart:94-101 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 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. 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 \u0060lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b24205d0e42617668901455d7c541f2d88a1776f744b0df3e2f621ec9b8fec63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:76-84 | lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:102-110 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:103-111 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 211 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart:76\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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b531f6e5f968de7bbfd4b6c33344230fd85e23bc1d7162ed7615d3b649c57dbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/app/layouts/chat_creator/chat_creator.dart:256-264 | lib/app/layouts/chat_creator/chat_creator_controller.dart:463-470 \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 \u0060lib/app/layouts/chat_creator/chat_creator.dart:256\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":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8cc68bb1681ea2db272a34446440a99d206d87fef01297fa221b0c46729549"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:302-310 | lib/app/layouts/conversation_details/material/material_chat_options.dart:344-354 \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 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:302\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"e77eee475c908d898b6a2c261a36b5b2efba81996f03e77eb094a4e783d5de9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20139 lines \u00D7 2): lib/app/layouts/conversation_details/material/material_chat_options.dart:662-667 | lib/app/layouts/conversation_details/widgets/chat_options.dart:653-661 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:662\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8e79e61a12ab167f5e194c127ae9835d233bfe1d676dee6bc88a06760f0462"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart:145-153 | lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart:149-157 \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 \u0060lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart:145\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":"lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ef002775af0996ffba8cec2d6ca721a1e3dc88a3c902c4764798101906df82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/app/layouts/conversation_list/widgets/tile/pinned_conversation_tile.dart:204-211 | lib/app/layouts/conversation_list/widgets/tile/pinned_conversation_tile.dart:248-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 \u0060lib/app/layouts/conversation_list/widgets/tile/pinned_conversation_tile.dart:204\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":"lib/app/layouts/conversation_list/widgets/tile/pinned_conversation_tile.dart"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef894cd1b2b9fbde3bed8474fbbf6e536d2044753c859f296619bc161503dcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/chat_event/chat_event.dart:95-102 | lib/app/layouts/conversation_view/widgets/message/timestamp/timestamp_separator.dart:72-80 \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 \u0060lib/app/layouts/conversation_view/widgets/message/timestamp/timestamp_separator.dart:72\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":"lib/app/layouts/conversation_view/widgets/message/chat_event/chat_event.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8332ae19911141325526de8cf2a024792c0e84b27241e69ed17ba9b5cacc28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/interactive/embedded_media.dart:96-104 | lib/app/layouts/conversation_view/widgets/message/interactive/unsupported_interactive.dart:32-40 \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 \u0060lib/app/layouts/conversation_view/widgets/message/interactive/embedded_media.dart:96\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/embedded_media.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7329cfdef07f1ef0cdd15d84823bcf228b02d6ab0aec95073cebf7c4d9f0cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart:548-555 | lib/app/layouts/conversation_view/widgets/text_field/text_field_icon_bar.dart:58-66 \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 \u0060lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart:548\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":"lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cdb1a06971f08c8b5be7ba151b5186a3feced7a427400948000e537dcd53e29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/app/layouts/findmy/findmy_page.dart:405-413 | lib/app/layouts/findmy/findmy_page.dart:523-531 \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 \u0060lib/app/layouts/findmy/findmy_page.dart:405\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":"lib/app/layouts/findmy/findmy_page.dart"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d3e8aad3c432551095ccba2b0ef2e7b30b8f9d1374fdbdd80f6cade53bbd7e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart:425-433 | lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart:477-486 \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 \u0060lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart:425\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":"lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ece8050db9970e26be243c9b31514d056c72208b186700717fd123771abfefd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/app/layouts/settings/pages/server/backup_restore_actions.dart:13-21 | lib/app/layouts/settings/pages/server/backup_restore_actions.dart:28-36 \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 \u0060lib/app/layouts/settings/pages/server/backup_restore_actions.dart:13\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":"lib/app/layouts/settings/pages/server/backup_restore_actions.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb19e9068a180d443553f426563da5fba7e6bbe92cbdf03afaaf1acfed758d7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/app/layouts/settings/pages/server/oauth_panel.dart:345-353 | lib/app/layouts/setup/pages/sync/server_credentials.dart:291-299 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart\u0060 and \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 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 \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart:345\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":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bac6bc9434b904fd24ec4fe914d10cf197a01c3cbacf6308fc8a9d3962019a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/app/layouts/settings/pages/system/notification_panel.dart:105-113 | lib/app/layouts/settings/pages/system/notification_panel.dart:126-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 \u0060lib/app/layouts/settings/pages/system/notification_panel.dart:105\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":"lib/app/layouts/settings/pages/system/notification_panel.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad7168f6ab6ef2461d52976aa942e3722c6ad316ce56ac1d0bd6242d7cf3af53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart:333-340 | lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart:360-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 \u0060lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart:333\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":"lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be10ecc53a7057cade23c6af459e574a439a5a0de7b29f8c6db1e078dca738b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/app/layouts/settings/widgets/tiles/private_api_tile.dart:31-40 | lib/app/layouts/settings/widgets/tiles/redacted_mode_tile.dart:28-36 \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 \u0060lib/app/layouts/settings/widgets/tiles/private_api_tile.dart:31\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":"lib/app/layouts/settings/widgets/tiles/private_api_tile.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ca878939191815aa5a1b44e139af46142fd0062d058869bf5573b3411f3717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/database/html/chat.dart:158-166 | lib/database/io/chat.dart:206-214 \u2014 \u0060lib/database/html/chat.dart\u0060 and \u0060lib/database/io/chat.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/database/html/chat.dart:157\u0060 calls \u0060fromMap\u0060, \u0060toList\u0060 and \u0060lib/database/io/chat.dart:205\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":"lib/database/html/chat.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abae74b2f843aed55a43ff3693aac0321189cc5919182ab493aadc0399d5d68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/database/html/fcm_data.dart:56-64 | lib/database/io/fcm_data.dart:75-83 \u2014 \u0060lib/database/html/fcm_data.dart\u0060 and \u0060lib/database/io/fcm_data.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/database/io/fcm_data.dart: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. 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":"lib/database/html/fcm_data.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"851c69fd25c427d3902692d343beb9794b0de945352555c7f8316695e7013650"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/database/html/theme_entry.dart:32-40 | lib/database/io/theme_entry.dart:35-43 \u2014 \u0060lib/database/html/theme_entry.dart\u0060 and \u0060lib/database/io/theme_entry.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 16 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"lib/database/html/theme_entry.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f8c1cad6cf6494d4be3ac5379a4c0a1e2e136cc5f1387c42dd43ce20ec9324"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/services/ui/chat/chats_service.dart:966-974 | lib/services/ui/message/messages_service.dart:1726-1734 \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":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"4baa45df73ecef28d7eb99234e4d204aff15e1056d1f43a7d85e47983b9c4ccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): lib/app/layouts/chat_creator/chat_creator.dart:410-417 | lib/app/layouts/chat_creator/chat_creator.dart:460-467 | lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart:115-122 | lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart:414-421 | lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart:92-99 | lib/app/layouts/setup/pages/welcome/welcome_page.dart:87-94 \u2014 there are 6 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/chat_creator/chat_creator.dart:410\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":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20f3516fde2dfe39986f8899d39ed46b316a11002d9505593923e8b5f8ea567"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): lib/app/layouts/settings/pages/server/oauth_panel.dart:270-277 | lib/app/layouts/setup/pages/page_template.dart:195-202 | lib/app/layouts/setup/pages/sync/server_credentials.dart:217-224 | lib/app/layouts/setup/pages/sync/server_credentials.dart:361-368 | lib/app/layouts/setup/pages/sync/server_credentials.dart:479-486 | lib/app/layouts/setup/pages/sync/sync_progress.dart:140-147 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart\u0060 and \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 162 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 \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart:270\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":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35e04c2a7a494fd83051ef46e9c3f67e09b6e39003b60e8f122dbc3e593b3d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/app/components/wallpaper/floating_wallpaper.dart:111-118 | lib/app/components/wallpaper/moving_background_wallpaper.dart:81-88 | lib/app/components/wallpaper/moving_background_wallpaper.dart:99-106 | lib/app/components/wallpaper/wave_wallpaper.dart:78-85 \u2014 before extracting anything, compare \u0060lib/app/components/wallpaper/moving_background_wallpaper.dart\u0060 and \u0060lib/app/components/wallpaper/wave_wallpaper.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 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 \u0060lib/app/components/wallpaper/floating_wallpaper.dart:111\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":"lib/app/components/wallpaper/floating_wallpaper.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64f793221195891415154ec858d2c70e20226849f1644155049033aff3b369c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/app/layouts/setup/dialogs/manual_entry_dialog.dart:110-117 | lib/app/layouts/setup/dialogs/manual_entry_dialog.dart:144-151 | lib/app/layouts/setup/pages/sync/server_credentials.dart:414-421 | lib/app/layouts/setup/pages/sync/server_credentials.dart:436-443 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/setup/dialogs/manual_entry_dialog.dart: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/setup/dialogs/manual_entry_dialog.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9061e47dfdc8df1b3bada893887ab6b7f08213ae42f101280b61bf509416240"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/app/layouts/setup/pages/page_template.dart:213-220 | lib/app/layouts/setup/pages/sync/server_credentials.dart:379-386 | lib/app/layouts/setup/pages/sync/server_credentials.dart:497-504 | lib/app/layouts/setup/pages/sync/sync_progress.dart:175-182 \u2014 before extracting anything, compare \u0060lib/app/layouts/setup/pages/page_template.dart\u0060 and \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 48 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 \u0060lib/app/layouts/setup/pages/page_template.dart:213\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, \u0060lib/app/layouts/setup/pages/sync/sync_progress.dart:183\u0060 calls \u0060SizedBox\u0060 and \u0060lib/app/layouts/setup/pages/page_template.dart:221\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":"lib/app/layouts/setup/pages/page_template.dart"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b9b70c968de9520b9222f819526d2c912116f348dab2717bd93bd399df09201"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart:351-358 | lib/app/layouts/fullscreen_media/fullscreen_video.dart:88-95 | lib/app/layouts/fullscreen_media/fullscreen_video.dart:234-241 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart\u0060 and \u0060lib/app/layouts/fullscreen_media/fullscreen_video.dart\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6b9d8ae589feec80f97bb42e4f1119cc87e86620fbc1626f16b9da7aa2f96c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/app/layouts/settings/dialogs/notification_settings_dialog.dart:32-39 | lib/app/layouts/settings/dialogs/notification_settings_dialog.dart:160-167 | lib/app/layouts/settings/dialogs/notification_settings_dialog.dart:182-189 \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 \u0060lib/app/layouts/settings/dialogs/notification_settings_dialog.dart:32\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/dialogs/notification_settings_dialog.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a50af90ffe7d8c3497bcdd0432573eee27359aba0aeb7102e19e9c3457ac86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/app/layouts/settings/pages/message_view/conversation_panel.dart:458-465 | lib/app/layouts/settings/pages/message_view/conversation_panel.dart:470-477 | lib/app/layouts/settings/pages/message_view/conversation_panel.dart:482-489 \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 \u0060lib/app/layouts/settings/pages/message_view/conversation_panel.dart:458\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":"lib/app/layouts/settings/pages/message_view/conversation_panel.dart"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c109193e54e2a0ddd7314b51c1503bb41ef5907998da3f4c4c6c45d1829f455"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:244-258 | lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart:248-261 | lib/app/layouts/settings/pages/scheduling/samsung_create_scheduled_panel.dart:276-289 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/material_create_scheduled_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 160 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 \u0060lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart:244\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":"lib/app/layouts/settings/pages/scheduling/cupertino_create_scheduled_panel.dart"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"816e3c80b84b74ebcddf246f2ada734e1f16fc650fdf6c35522a194869b0d4a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/services/backend/sync/chat_sync_manager.dart:83-90 | lib/services/backend/sync/full_sync_manager.dart:169-176 | lib/services/backend/sync/handle_sync_manager.dart:125-132 \u2014 before extracting anything, compare \u0060lib/services/backend/sync/chat_sync_manager.dart\u0060 and \u0060lib/services/backend/sync/full_sync_manager.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 83 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 \u0060lib/services/backend/sync/chat_sync_manager.dart:83\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, \u0060lib/services/backend/sync/handle_sync_manager.dart:137\u0060 calls \u0060restoreOriginalHandles\u0060 and \u0060lib/services/backend/sync/chat_sync_manager.dart:95\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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adc8ea98c71418664a5ab9b483f4cca91360ea4a81fd8a99614f4686ff3d833"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20138 lines \u00D7 6): lib/app/layouts/conversation_details/material/material_chat_options.dart:597-603 | lib/app/layouts/conversation_details/material/material_chat_options.dart:619-620 | lib/app/layouts/conversation_details/material/material_chat_options.dart:673-674 | lib/app/layouts/conversation_details/widgets/chat_options.dart:552-559 | lib/app/layouts/conversation_details/widgets/chat_options.dart:600-601 | lib/app/layouts/conversation_details/widgets/chat_options.dart:677-679 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:597\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1744458894e7c0afc6dec36a8b9269a371cc176a699ae37b15e216b108c001c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart:159-166 | lib/app/layouts/conversation_list/widgets/tile/samsung_conversation_tile.dart:131-137 \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 \u0060lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart:159\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":"lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed7ec58d56bf3860ae9db6ed50e0b4a3a08b52c90d10ebef19037f37b5d6231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart:41-48 | lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart:120-127 \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":"lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a2ada8e4445984e98df4fe83e771ca12514a74549a9ad28b625ea7e13ce98a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart:50-57 | lib/app/layouts/conversation_list/widgets/tile/samsung_conversation_tile.dart:42-48 \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 \u0060lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart:50\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":"lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"056fb053e3d8b867d046bf9b0436a45eff55fb5068d28abed6c9cde486d2bc89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart:116-123 | lib/app/layouts/conversation_list/widgets/tile/samsung_conversation_tile.dart:82-89 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart:116\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":"lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47ec2c56a39d2a458739e3959990d2145900a19020d80133de71e5c5dc39704"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/app/layouts/findmy/widgets/findmy_raw_data_dialog.dart:37-44 | lib/app/layouts/settings/pages/theming/theming_panel.dart:664-671 \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 \u0060lib/app/layouts/findmy/widgets/findmy_raw_data_dialog.dart: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/findmy/widgets/findmy_raw_data_dialog.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff60f39e75bb7ff38c3fbc468af45a2d926fc1184413ca5e41494c6385a602f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/app/layouts/settings/pages/server/backup_restore_panel.dart:637-644 | lib/app/layouts/settings/pages/server/backup_restore_panel.dart:734-741 \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 \u0060lib/app/layouts/settings/pages/server/backup_restore_panel.dart:637\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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"40863c34f438c7f5d93536fe7208f1480d63c06cbe253ea224e8568ccd455ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart:87-94 | lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart:117-124 \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 \u0060lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart:87\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":"lib/app/layouts/settings/pages/theming/theme_studio/widgets/preset_theme_dialogs.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aa85d702acd9af2e070c352fc7a1a8a0dd6e50621079aa057cbcdd0e60a3f9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/app/layouts/settings/pages/theming/theming_panel.dart:559-566 | lib/app/layouts/settings/widgets/tiles/contact_upload_progress.dart:24-31 \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 \u0060lib/app/layouts/settings/pages/theming/theming_panel.dart:559\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":"lib/app/layouts/settings/pages/theming/theming_panel.dart"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"66ee874a5aaeb7098d7356c90bb5de3e16ffa0c0249fc92a21b9c659ffad3870"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/database/io/theme.dart:85-93 | lib/database/io/theme.dart:97-105 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/database/io/theme.dart:85\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":"lib/database/io/theme.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"df242ca07b0ed66342f87ccc3a229736c1038d9d57b5f796967c4049fa7fec81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/services/backend/interfaces/server_interface.dart:16-23 | lib/services/backend/settings/settings_service.dart:371-379 \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 \u0060lib/services/backend/interfaces/server_interface.dart:16\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":"lib/services/backend/interfaces/server_interface.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc493fb4fcb2b07f7547279f8b8a308053c648cf33589f351d30173e16882aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/app/layouts/settings/pages/advanced/notification_providers_panel.dart:33-43 | lib/app/layouts/settings/pages/advanced/unified_push.dart:39-49 | lib/app/layouts/settings/pages/advanced/unified_push.dart:59-65 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/advanced/notification_providers_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/advanced/unified_push.dart\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. 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 \u0060lib/app/layouts/settings/pages/advanced/notification_providers_panel.dart:33\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/app/layouts/settings/pages/advanced/unified_push.dart:65\u0060 calls \u0060TextSpan\u0060, \u0060TextStyle\u0060 and \u0060lib/app/layouts/settings/pages/advanced/notification_providers_panel.dart:43\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":"lib/app/layouts/settings/pages/advanced/notification_providers_panel.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef578856933e58185a325dfea453af6016f1c15be0ed4712b837eac11e089f2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/app/components/wallpaper/moving_background_wallpaper.dart:38-46 | lib/app/components/wallpaper/wave_wallpaper.dart:25-31 \u2014 before extracting anything, compare \u0060lib/app/components/wallpaper/moving_background_wallpaper.dart\u0060 and \u0060lib/app/components/wallpaper/wave_wallpaper.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 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 \u0060lib/app/components/wallpaper/moving_background_wallpaper.dart:38\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/app/components/wallpaper/moving_background_wallpaper.dart:47\u0060 calls \u0060clamp\u0060, \u0060toDouble\u0060 and \u0060lib/app/components/wallpaper/wave_wallpaper.dart:34\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":"lib/app/components/wallpaper/moving_background_wallpaper.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf6caea5b91350f4581acede0fe959c54fa960ba91b39443776c920b855d846"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 4): lib/app/layouts/conversation_details/material/material_chat_options.dart:594-596 | lib/app/layouts/conversation_details/material/material_chat_options.dart:610-617 | lib/app/layouts/conversation_details/widgets/chat_options.dart:549-551 | lib/app/layouts/conversation_details/widgets/chat_options.dart:592-598 \u2014 \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/chat_options.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 15 separate duplicated blocks between them, totalling at least 244 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/app/layouts/conversation_details/material/material_chat_options.dart:594\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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"e066aea3408e82ad3373644784f114e33a9ca992000813e7b35cdf75b83acaf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart:205-211 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart:231-237 \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 \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart:205\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":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b50e4bc9d6efa7aaab988296dd40f98f0e10069d945f955912450c1620b78f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart:173-180 | lib/app/layouts/conversation_list/widgets/tile/samsung_conversation_tile.dart:134-140 \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 \u0060lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbb14c88f280db2821161fbd2a52cba96ebd8a4319aa74c35d7cd49b0dd6433b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/misc/bubble_effects.dart:172-178 | lib/app/layouts/conversation_view/widgets/message/text/text_bubble.dart:117-123 \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 \u0060lib/app/layouts/conversation_view/widgets/message/misc/bubble_effects.dart:172\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":"lib/app/layouts/conversation_view/widgets/message/misc/bubble_effects.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd3daefef57403abb4d7bab1b73ab9bd7f324b6bf4da84cc654458eed452944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart:133-140 | lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart:341-347 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart\u0060 and \u0060lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 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 \u0060lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart:133\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":"lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"138a7be0e1831d9c8f4b43aad6a0baed652abd5df90ba84039bed26afba6456e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:355-361 | lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart:371-377 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 213 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 \u0060lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart:355\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":"lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1a9ea03d28b6269a7cd6c0b0f0e402ecb7deec127e9ed622a2345bb88b21d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/app/layouts/settings/pages/storage/material_storage_analyzer_panel.dart:54-60 | lib/app/layouts/settings/pages/storage/samsung_storage_analyzer_panel.dart:55-61 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/storage/material_storage_analyzer_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/storage/samsung_storage_analyzer_panel.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 48 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. 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":"lib/app/layouts/settings/pages/storage/material_storage_analyzer_panel.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"34145a6828f2fa539abebac1cd6efdabbc1dff2ed49e74b4626c6e26395efe95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart:411-417 | lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart:420-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"980b0af72aa365fa91263c2243d27e9e3985a914032a700a669723f2624b9f0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/database/html/message.dart:320-328 | lib/database/io/message.dart:594-602 \u2014 \u0060lib/database/html/message.dart\u0060 and \u0060lib/database/io/message.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 10 separate duplicated blocks between them, totalling at least 159 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/database/html/message.dart:320\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"04acb143877366f9ebf0842c0167df7aa3d2432ab1887bfd85643c2db5d3be89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): lib/database/html/theme.dart:209-239 | lib/database/io/theme.dart:310-339 \u2014 \u0060lib/database/html/theme.dart\u0060 and \u0060lib/database/io/theme.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 111 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/database/html/theme.dart:209\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":"lib/database/html/theme.dart"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"075fa9ca782eda7fd0297443fc6a1a87f558ece6f2c66724ded1bd7f6ad8bd8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): lib/app/layouts/settings/pages/message_view/conversation_panel.dart:460-465 | lib/app/layouts/settings/pages/message_view/conversation_panel.dart:472-477 | lib/app/layouts/settings/pages/message_view/conversation_panel.dart:484-489 | lib/app/layouts/settings/pages/message_view/conversation_panel.dart:495-500 \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 \u0060lib/app/layouts/settings/pages/message_view/conversation_panel.dart:460\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":"lib/app/layouts/settings/pages/message_view/conversation_panel.dart"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a82f7bb3381cdd2a5ab94343af4bbe189827bc675b581d891113800fbe36e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart:510-516 | lib/app/layouts/conversation_view/widgets/message/chat_event/chat_event.dart:51-57 | lib/app/layouts/findmy/widgets/findmy_raw_data_dialog.dart:23-28 \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 \u0060lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart:510\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":"lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f363ff749b0b3507659f8d064910fe4a87028f33f29e691712e6fe13096ae4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart:385-392 | lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart:426-433 | lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart:457-464 \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 \u0060lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart:385\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":"lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb175c20f122ac0f74c934e31457b18657fa4eec3fcc30884fdcbc68f13f98a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart:63-68 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart:56-61 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart\u0060 and \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 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. 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":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"07dc7f27a874ebec6fe4428075c1c8715996a1e6dfd1cdc63176cdafb41ce18c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart:294-299 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart:459-464 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart\u0060 and \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"87686ab05d50cf251d4aabf1b304b2794608895944e8e49483e9b4533e31e99f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart:305-310 | lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart:469-475 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart\u0060 and \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_engagement_tab.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 35 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 \u0060lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart:305\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":"lib/app/layouts/conversation_details/pages/chat_stats/tabs/chat_stats_activity_tab.dart"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"006a199d2eb95e1135bc99f5447ed7c5e90a61610ab0331ec7302e069bba7359"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart:273-278 | lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart:329-334 \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 \u0060lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart:273\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":"lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe30dfd2b8daf459d40ed3cb81eea8e45626dda6d6ed28281d67d2797613e17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/database/io/handle.dart:55-60 | lib/database/io/handle.dart:76-81 \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 \u0060lib/database/io/handle.dart:55\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":"lib/database/io/handle.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"f70e2e18eacf3131cf269ebad9d5758873b041c0502d8e5ebe520c9704979131"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): lib/database/io/theme.dart:254-259 | lib/database/io/theme.dart:262-267 | lib/database/io/theme.dart:270-275 | lib/database/io/theme.dart:278-283 | lib/database/io/theme.dart:286-291 | lib/database/io/theme.dart:294-299 \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 \u0060lib/database/io/theme.dart:254\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":"lib/database/io/theme.dart"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bbc3c4b526dae62ec7187850226632973ad3270d1ff726c65097eb734d0235"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart:85-90 | lib/app/layouts/setup/pages/welcome/welcome_page.dart:68-72 | lib/app/layouts/setup/pages/welcome/welcome_page.dart:81-85 \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 \u0060lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart:85\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":"lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e6a9aec02d0f936944684916670563d68e001c2608e6b5782bf3ce8a218469"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/app/layouts/settings/pages/desktop/desktop_panel.dart:280-285 | lib/app/layouts/settings/pages/message_view/conversation_panel.dart:283-288 | lib/app/layouts/settings/pages/message_view/conversation_panel.dart:355-360 \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 \u0060lib/app/layouts/settings/pages/desktop/desktop_panel.dart:280\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":"lib/app/layouts/settings/pages/desktop/desktop_panel.dart"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5e09f98e7291367dbe797c2f6c8280ca944155721d59896fb2f1751e074dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart:155-159 | lib/app/layouts/conversation_list/widgets/tile/samsung_conversation_tile.dart:115-119 \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":"lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c588a0170915bba0dc7fbc391d271ca4095d5068c56b72c3eda1ce5683dfb3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/misc/tail_clipper.dart:39-43 | lib/app/layouts/conversation_view/widgets/message/misc/tail_clipper.dart:122-126 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/misc/tail_clipper.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"86289003004ba477accffa34c893d8bb3927ef062ffc151cac2ec9c5ea7fd231"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 3): lib/app/layouts/conversation_view/widgets/message/reaction/reaction_clipper.dart:68-72 | lib/app/layouts/conversation_view/widgets/message/reaction/reaction_clipper.dart:74-76 | lib/app/layouts/conversation_view/widgets/message/reaction/reaction_clipper.dart:81-85 \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 \u0060lib/app/layouts/conversation_view/widgets/message/reaction/reaction_clipper.dart: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. 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":"lib/app/layouts/conversation_view/widgets/message/reaction/reaction_clipper.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93f8d40b4119d61b49d5335424bddae9aa381312f2f2352fff37bf3e5d3262b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart:196-200 | lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart:202-206 \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 \u0060lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart:196\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":"lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cce70be5e50907f5bc83a34e0f02cc9c3a52f25ad386f36960091b432e5a5f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/database/html/chat.dart:546-550 | lib/database/io/chat.dart:888-892 \u2014 \u0060lib/database/html/chat.dart\u0060 and \u0060lib/database/io/chat.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 39 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/database/html/chat.dart:546\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":"lib/database/html/chat.dart"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"128e84a39ee71d4e6bb4fbe543bfbe643709891fb6afa6ec170159eff9874275"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/services/backend/interfaces/app_interface.dart:17-25 | lib/services/backend/settings/settings_service.dart:629-637 \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 \u0060lib/services/backend/interfaces/app_interface.dart:17\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":"lib/services/backend/interfaces/app_interface.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"28f510e2a7198c8fe3d36748ae0ad7a4ad3d4b9835444c7dc73151cf318675a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/services/ui/theme/themes_service.dart:732-736 | lib/services/ui/theme/themes_service.dart:762-767 \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 \u0060lib/services/ui/theme/themes_service.dart:732\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":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc3af4b956c164e33482c5eb68ee2f8df5e80e38289ef9273bfe758a03120ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/app/animations/balloon_classes.dart:27-32 | lib/app/animations/fireworks_classes.dart:40-45 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/balloon_classes.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"1994b07d20c10a79c24de5862f04f37610bd7c8ba1ed3a826479df6b8bb9243a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/app/layouts/conversation_details/pages/wallpaper_picker/material_wallpaper_picker.dart:14-22 | lib/app/layouts/conversation_details/pages/wallpaper_picker/samsung_wallpaper_picker.dart:15-23 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_details/pages/wallpaper_picker/material_wallpaper_picker.dart\u0060 and \u0060lib/app/layouts/conversation_details/pages/wallpaper_picker/samsung_wallpaper_picker.dart\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/wallpaper_picker/material_wallpaper_picker.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"18690e7d5ffb5f8daa754052b21483502be0f7cbcd7ebb381edf2b286cac8f68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart:62-69 | lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart:62-69 \u2014 \u0060lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 41 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cde6bf13890e3d626607dfc747344e222a3162abed15e45094b0be6f57e87a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/app/layouts/conversation_list/pages/cupertino_conversation_list.dart:40-52 | lib/app/layouts/conversation_list/pages/material_conversation_list.dart:32-43 | lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart:36-47 \u2014 before extracting anything, compare \u0060lib/app/layouts/conversation_list/pages/material_conversation_list.dart\u0060 and \u0060lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart\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. 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":"lib/app/layouts/conversation_list/pages/cupertino_conversation_list.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15fd6d0d14898c87ecb408204b932757f2091d09fe2ca1caaf7c9548c603522"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/app/layouts/fullscreen_media/fullscreen_image.dart:65-71 | lib/app/layouts/fullscreen_media/fullscreen_video.dart:69-75 \u2014 before extracting anything, compare \u0060lib/app/layouts/fullscreen_media/fullscreen_image.dart\u0060 and \u0060lib/app/layouts/fullscreen_media/fullscreen_video.dart\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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/fullscreen_media/fullscreen_image.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43d7bae450d7695afd42becfd7a6b4a1b61fd255335f50bf8cd4202bdd63416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart:71-75 | lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart:53-57 | lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart:53-57 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 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. 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f30f1ec3d738732705ca22711c4f5bb36bd9a85ea419cb7a59680394ca6b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart:99-105 | lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart:83-89 | lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart:83-89 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart\u0060 and \u0060lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart\u0060 as WHOLE FILES: this scan already matched 6 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. 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":"lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff68c8442b7f28266881c3e3bf65224d72d2ad22965e2c3db2bb0b8c5718091c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart:26-35 | lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart:37-46 | lib/app/layouts/settings/pages/server/imessage_stats/samsung_imessage_stats_page.dart:37-46 \u2014 before extracting anything, compare \u0060lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart\u0060 and \u0060lib/app/layouts/settings/pages/server/imessage_stats/material_imessage_stats_page.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 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. 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":"lib/app/layouts/settings/pages/server/imessage_stats/cupertino_imessage_stats_page.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"6965686cd74867db9058e76cacf761f3a8b49eb5a5b3276cf41e866a9619f3fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/database/html/fcm_data.dart:66-73 | lib/database/io/fcm_data.dart:87-94 \u2014 \u0060lib/database/html/fcm_data.dart\u0060 and \u0060lib/database/io/fcm_data.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 30 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/fcm_data.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"612bf0fabfc434053a8c3ba34c126b6f4c439f28584535db4a5119e024a503cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/database/html/handle.dart:126-139 | lib/database/io/handle.dart:368-381 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/handle.dart"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"24fdf9b4e3da7c0bf600970e2acc64980967518ec9b57b59c4d9fb63a46bac5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/database/html/theme.dart:26-34 | lib/database/io/theme.dart:36-44 \u2014 \u0060lib/database/html/theme.dart\u0060 and \u0060lib/database/io/theme.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 111 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/theme.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6363dcb4934d017c551fa8b5fba1017926b9458bb791931565589104d0c0ed3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/database/html/theme.dart:48-55 | lib/database/io/theme.dart:74-81 \u2014 \u0060lib/database/html/theme.dart\u0060 and \u0060lib/database/io/theme.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 111 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"lib/database/html/theme.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd65e150e39eeb136155016735dc672d0f07eb81a7c7eaa5408de81cba9d028"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/database/html/theme_entry.dart:42-48 | lib/database/io/theme_entry.dart:45-51 \u2014 \u0060lib/database/html/theme_entry.dart\u0060 and \u0060lib/database/io/theme_entry.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 2 separate duplicated blocks between them, totalling at least 16 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/theme_entry.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed0090dac70d5c338e3957dae28ad07b3d9450c0e43eff83b795a12643df5f1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/helpers/network/metadata/cache/message_metadata_store.dart:201-206 | lib/helpers/network/metadata/models/url_metadata.dart:281-286 | lib/helpers/network/metadata/network/oembed_resolver.dart:170-175 \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":"lib/helpers/network/metadata/cache/message_metadata_store.dart"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7ffcc3f75d61073d5ecc9ac48aa0ebc69734196592ef0d6e439d19d9f020824"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/helpers/network/metadata/models/url_metadata.dart:275-279 | lib/helpers/network/metadata/network/oembed_resolver.dart:164-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. 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":"lib/helpers/network/metadata/models/url_metadata.dart"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbaa1735080c24c23c2abb1b8afb414d041d4c52892169576afc28f865c67076"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): lib/services/backend/sync/chat_sync_manager.dart:174-179 | lib/services/backend/sync/full_sync_manager.dart:303-308 | lib/services/backend/sync/full_sync_manager.dart:316-321 | lib/services/backend/sync/handle_sync_manager.dart:276-281 \u2014 before extracting anything, compare \u0060lib/services/backend/sync/chat_sync_manager.dart\u0060 and \u0060lib/services/backend/sync/full_sync_manager.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 83 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. 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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe5aac113bc8663f11da55c93ab8c6317ac8b1fde7bd59afad7f0f2d4dcf3a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): lib/app/animations/balloon_rendering.dart:37-46 | lib/app/animations/fireworks_rendering.dart:38-47 | lib/app/animations/laser_rendering.dart:37-46 | lib/app/animations/love_rendering.dart:35-44 | lib/app/animations/spotlight_rendering.dart:36-45 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060value\u0060 to \u0060BalloonController\u0060 in one and \u0060FireworkController\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":"lib/app/animations/balloon_rendering.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"f53f386ff809875f6100ff0db7e383e7cbe239f3bc78071c0c282a847bac9f91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): lib/app/animations/balloon_rendering.dart:79-89 | lib/app/animations/fireworks_rendering.dart:80-90 | lib/app/animations/laser_rendering.dart:79-89 | lib/app/animations/love_rendering.dart:77-87 | lib/app/animations/spotlight_rendering.dart:78-88 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/balloon_rendering.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e08bab9902609e2733ef5cd3aaa4baa9f656d493d7351f87c1ac182c3b35ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart:56-60 | lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart:56-60 \u2014 \u0060lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 4 separate duplicated blocks between them, totalling at least 41 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own. 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":"lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f5c67518a79da0a5f1e4be94a0dee60a5a16b2b060d22e6b34aa71bb09ab5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/popup/message_popup_holder.dart:211-215 | lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart:292-296 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup_holder.dart"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"275a3d08f4e0e9afdc1343f739577359fa8cd4856fd1965303bb3f6665154d83"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/app/layouts/settings/pages/contacts/contacts_management_panel.dart:28-35 | lib/app/layouts/settings/pages/scheduling/create_scheduled_panel.dart:13-20 | lib/app/layouts/settings/pages/storage/storage_analyzer_panel.dart:44-51 \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":"lib/app/layouts/settings/pages/contacts/contacts_management_panel.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2673fcaadc3d2f5b581bd92d3e9479a4e5f0a82317915a7ac46808d89eea98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/app/layouts/settings/pages/server/connection_panel/connection_panel.dart:23-30 | lib/app/layouts/settings/pages/server/imessage_stats/imessage_stats_page.dart:24-31 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/app/layouts/settings/pages/server/imessage_stats/imessage_stats_page.dart:21\u0060 calls \u0060addPostFrameCallback\u0060, \u0060loadSelectedStatsIfEmpty\u0060 and \u0060lib/app/layouts/settings/pages/server/connection_panel/connection_panel.dart:20\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":"lib/app/layouts/settings/pages/server/connection_panel/connection_panel.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"484d7d49beda1fc744dbdf7763f0accff930d1729ff4cad82740389421e721a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/services/backend/sync/chat_sync_manager.dart:117-125 | lib/services/backend/sync/handle_sync_manager.dart:160-168 \u2014 before extracting anything, compare \u0060lib/services/backend/sync/chat_sync_manager.dart\u0060 and \u0060lib/services/backend/sync/handle_sync_manager.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 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. 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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c34b532c1a015ba306148f2f6a6c6bebfcfe17f2d2c2cd1fad1f2ad12ebb8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/app/layouts/conversation_view/widgets/message/misc/tail_clipper.dart:53-57 | lib/app/layouts/conversation_view/widgets/message/misc/tail_clipper.dart:131-135 \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 \u0060lib/app/layouts/conversation_view/widgets/message/misc/tail_clipper.dart:53\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":"lib/app/layouts/conversation_view/widgets/message/misc/tail_clipper.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"625ec8d82c50ae40998867dca09cc315b07e9326efcdda8c66a3db7dc9172ab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/database/html/theme_object.dart:37-48 | lib/database/io/theme_object.dart:47-58 \u2014 \u0060lib/database/html/theme_object.dart\u0060 and \u0060lib/database/io/theme_object.dart\u0060 are one unit implemented once per sibling directory, so they are most likely parallel implementations of one contract rather than a copy of each other \u2014 this scan matched 3 separate duplicated blocks between them, totalling at least 66 lines. If both are selected at run time, neither can be retired in favour of the other, and the lines that DIFFER between them are the reason both exist. The move that pays here is to hoist the identical part into a shared location the whole family can reach and give what differs a parameter or a seam, so a change lands once instead of once per sibling; extracting one helper per block leaves every sibling to drift on its own."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/theme_object.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf0133fd61f7f858c648a8b28557dc4cc5280b36483b734bd180cd96d860149c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/services/network/firebase/cloud_messaging_service.dart:74-80 | lib/services/network/firebase/cloud_messaging_service.dart:151-157 \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":"lib/services/network/firebase/cloud_messaging_service.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3296503d5e99d2b8f3e63560d6e90f30f6a72ab45c74acd5468a26975e9c03b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/services/ui/theme/themes_service.dart:188-194 | lib/services/ui/theme/themes_service.dart:201-207 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f603b117045e7b4878fc9dff74f992db7d6b71745a9f9eb488fd058daeed46"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _RenderCupertinoDialog (LCOM4 13): _RenderCupertinoDialog\u0027s methods fall into 13 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 13 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":"lib/app/components/custom/custom_cupertino_alert_dialog.dart"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"a520462f7c4c35c9a6cdd48b0dfd422c97d3fd1cdc8dafd0082b3c69d446101e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FilesystemService (LCOM4 11): FilesystemService\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":"lib/services/backend/filesystem/filesystem_service.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"51aa70449392a81fe3a8f96deeee75adc044e3c9fc8b682c0acb65d360a68403"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AttachmentsService (LCOM4 11): AttachmentsService\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":"lib/services/ui/attachments_service.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18d38c2e780ef3a9254f68d558807950e9285636a8d014d333c12a6deba2183"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MethodChannelHandlers (LCOM4 10): MethodChannelHandlers\u0027s methods fall into 10 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 10 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/java_dart_interop/method_channel_handlers.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e955af7df5e6abb087d6257fcc0bd9fbd3c70f868b4c3bd9327ad01ecc81f8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _RenderCupertinoDialogActions (LCOM4 9): _RenderCupertinoDialogActions\u0027s methods fall into 9 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 9 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":"lib/app/components/custom/custom_cupertino_alert_dialog.dart"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1210203bed933f50b3ed12fd6718e544fb8ef6cdce9974afb974208dda65f58"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RenderBalloons (LCOM4 8): RenderBalloons\u0027s methods fall into 8 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 8 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":"lib/app/animations/balloon_rendering.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3388ac14895ae3df34b790b02a1ebb20306165763cacf901a42edce2d5410e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RenderFireworks (LCOM4 8): RenderFireworks\u0027s methods fall into 8 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 8 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":"lib/app/animations/fireworks_rendering.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee12c073c9b0f9bd4b0e427038a95eb30f6215fb9facdece01421b2e15b56dd8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RenderLaser (LCOM4 8): RenderLaser\u0027s methods fall into 8 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 8 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":"lib/app/animations/laser_rendering.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"62351d8c2ba5f5192db34c1745c014ec20b5bd393778170d5af73d051d25ac7d"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RenderLove (LCOM4 8): RenderLove\u0027s methods fall into 8 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 8 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":"lib/app/animations/love_rendering.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74d053c01e87f4c036c00a80238c5a542dc5630becb6aa40f6be53532334929"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RenderSpotlight (LCOM4 8): RenderSpotlight\u0027s methods fall into 8 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 8 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":"lib/app/animations/spotlight_rendering.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb94d19ac75eb004fae46d99589d6afb8d3680f108eb8e7d7d5184aac6d011b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _MessageHolderState (LCOM4 7): _MessageHolderState\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/message_holder.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a7efdf05666d4c8fe899a45b1fe19d92b4e189723e063c77aaa2d6e848c34be"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Attachment (LCOM4 7): Attachment\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/attachment.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3dda96e875cae302a41b0a07f19164da2394fcc6564c3be4552f9076567526"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ConversationViewController (LCOM4 7): ConversationViewController\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/chat/conversation_view_controller.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af2fa65a78c8273e253b0415b8d8f4077d0ef2447d01b270be7735c4b3007ec"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ContactServiceV2 (LCOM4 7): ContactServiceV2\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/contact_service_v2.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeacde7fe1df67c98a6d037b2d0b2f6f2b1ffd4923bfe5b114bf5010b61e6972"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _CupertinoDialogRenderElement (LCOM4 6): _CupertinoDialogRenderElement\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_cupertino_alert_dialog.dart"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91dfd5fc9a0521d67b889e6a30e0a451f9693e35a36d10dae588b90a4aebfbc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RenderErrorBox (LCOM4 6): RenderErrorBox\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_error_box.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b30d39bbc7e634ceba512eabbd25c2160ad59f6af09d184f2f207181ed8450e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: UrlPreviewController (LCOM4 6): UrlPreviewController\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/interactive/url_preview_controller.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74b106e5830eed71240acb83088b5c3479c9def892b1c8a5a3af406d6e4b079"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CustomGroupsController (LCOM4 6): CustomGroupsController\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/custom_groups/custom_groups_controller.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a4107444d61a4d35312d6a06640990baac718bf2c18f6b1a25150432cc1a04e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatState (LCOM4 6): ChatState\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/state/chat_state.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad062445554385a8d9f3a7e0217ebeefd5e21a305527bcd3ea1767ca3db3863"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _AttachmentPickerState (LCOM4 5): _AttachmentPickerState\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/media_picker/text_field_attachment_picker.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfa3753858bb7c63265f7d2f43cddb57f1c4d36ebb0bfeecae379fcc09dcf5ad"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: GlobalIsolate (LCOM4 5): GlobalIsolate\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/isolates/global_isolate.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2c2c4df03ab621dd628330ab56f4b29c7f3b6e86d63167ac55c9599e2fab06"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HttpService (LCOM4 5): HttpService\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network/http_service.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf2617a39b3a927f5d22527429ae22d1efa835c60418bff2b74c73f0a447ae3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ThemesService (LCOM4 5): ThemesService\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/theme/themes_service.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe0436df2d5caf1aa6a1c96e63f818b64472ef708465eb36c3438852c40b184"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _CupertinoEdgeShadowDecoration (LCOM4 4): _CupertinoEdgeShadowDecoration\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_cupertino_page_transition.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cae7e8e17c78c83d333a886088cb89348aa4c0a820ae1e83556aa6b82baab8c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Mentionable (LCOM4 4): Mentionable\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebd2c1afc1d2eb6aeb9b21ee51d56cfa7da852d065dd210ddc14393216d335a6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RenderSliverDecoration (LCOM4 4): RenderSliverDecoration\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/sliver_decoration.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c84c8088c9108fa0493cacf974b873f6a40e74c3c84db270cab3033b8ccc7d12"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _ChatStatsTabBarState (LCOM4 4): _ChatStatsTabBarState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/chat_stats_page.dart"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"a136eb134e9af6c82ad5d3ac43064fb4c4de810cbea42f53f79c8df0b4017055"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _ConversationListFABState (LCOM4 4): _ConversationListFABState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/conversation_list_fab.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba01ede00c0f39c07175848b757d7973a17dc58db0033a793033987e181f1535"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _ImageViewerState (LCOM4 4): _ImageViewerState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6835cc98d0884fbdc7833f2e73636020fe439066b9814e89c4f8ecb7991c0b3"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _MessagePopupState (LCOM4 4): _MessagePopupState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2413d2d30e7cf9f73d39bb41ac8a83836be2b645aad0f3a229c0e511da5393d7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _SendAnimationState (LCOM4 4): _SendAnimationState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/send_animation.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e67848a5e4039b3a7da5b34ec413f22aeb8256cda4217883faf21f574846488"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: CustomState (LCOM4 4): CustomState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/wrappers/stateful_boilerplate.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b746552751b4f2ba1db15ee2aa516023dc53e2827fdcfb007f1f062825ea565"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Message (LCOM4 4): Message\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ddb1af8f63d901b6b00343df68ffda9b4393718e101c8e1316e0b0d1abb6354"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SettingsService (LCOM4 4): SettingsService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/settings/settings_service.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8c7ec8e96703da21fac2c6879275d53d0008ef6fdde6ac4eca998fbed3ee3c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatsService (LCOM4 4): ChatsService\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"89754b9120398659ae6dc9f2567ac1d81b091ce378e15d0501e666e1789170a5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BaseLogger (LCOM4 4): BaseLogger\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/logger/logger.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b9285148474cf9da0854a110b1d2b4c6785831da00d5ffe31a48b97dbd15314"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: vcf_dart: \u0060vcf_dart\u0060 1.0.3 is resolved by this repository\u0027s pubspec.lock outside its dev_dependencies, and every licence pub.dev detected in it is one this policy bans (\u0060gpl-3.0\u0060). Where a package carries several licences it is charged only when all of them are banned. Replace the package, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"436d0160d1ea1b417e611222480d5529b2d11579773eed392501a0abce94d8d4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/message_holder.dart: lib/app/layouts/conversation_view/widgets/message/message_holder.dart changed 26 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 135 in _MessageHolderState.build at line 139. 9 of those changes were fix/bug commits, and the other 17 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/message_holder.dart\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":"lib/app/layouts/conversation_view/widgets/message/message_holder.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"9001ecb50023ec4c01d1a7651c4df83d2cf6ad7f63caf693489f643ccf623de5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart: lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart changed 20 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in TextFieldComponentState.build at line 186. 4 of those changes were fix/bug commits, and the other 16 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart\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":"lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"52495d8af15cd1d070ca29637b5d89d7cda08ef4a1f59bc5cdc8f7e5de8a0874"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart: lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in _MessagePopupState.build at line 358. 4 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart\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":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"9065003e4df9d7608805bbd1f3f291b457d018885015ef3a5b4fee6c5b043622"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/database/io/message.dart: lib/database/io/message.dart changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 61 in Message.merge at line 869. 5 of those changes were fix/bug commits, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/database/io/message.dart\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":"lib/database/io/message.dart"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"8131268413d10dfa45a7e6f2b9b11315ab842e451287552406cd0791bfa825cb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/helpers/backend/startup_tasks.dart: lib/helpers/backend/startup_tasks.dart changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in StartupTasks.onAppResume at line 538. 3 of those changes were fix/bug commits, and the other 14 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/helpers/backend/startup_tasks.dart\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":"lib/helpers/backend/startup_tasks.dart"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"38139deaf238af62faf76df2280879fcc35634e47b2c1dfbb5bb4e901296dd89"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/backend/incoming_message_handler.dart: lib/services/backend/incoming_message_handler.dart changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in IncomingMessageHandler._processNewMessage at line 332. 6 of those changes were fix/bug commits, and the other 12 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/services/backend/incoming_message_handler.dart\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":"lib/services/backend/incoming_message_handler.dart"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f53cdcf54fc42fc4eff501e964f3f019ee810fcddba02ee1863ebbeb57da75"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/state/message_state.dart: lib/app/state/message_state.dart changed 25 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in MessageState.attributedBodyToMessagePart at line 883. 9 of those changes were fix/bug commits, and the other 16 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/state/message_state.dart\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":"lib/app/state/message_state.dart"},"region":{"startLine":883}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e2a37a54b51140ffe69b0145a7fff7f8e4348c4cb14e0a9246f199e4619dda"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart: lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 40 in _TroubleshootPanelState.build at line 132. 3 of those changes were fix/bug commits, and the other 10 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart\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":"lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e1c066785cf13b97cd7a839bd95c131001683ae1fa59c3f51c15e87b45f97e4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/backend/sync/sync_service.dart: lib/services/backend/sync/sync_service.dart changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in SyncService.startIncrementalSync at line 65. 7 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/services/backend/sync/sync_service.dart\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":"lib/services/backend/sync/sync_service.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db0f0b103935377dd77333ba7cda06e830e227cda390f669a7656c87bd10e4a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/backend/sync/incremental_sync_manager.dart: lib/services/backend/sync/incremental_sync_manager.dart changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in IncrementalSyncManager.syncMessages at line 362. 4 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/services/backend/sync/incremental_sync_manager.dart\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":"lib/services/backend/sync/incremental_sync_manager.dart"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"939a593a39f25e1d79a6416283cd434db1e7f8b285c3b3aa0da34de605ad7b6c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/components/custom_text_editing_controllers.dart: lib/app/components/custom_text_editing_controllers.dart changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in MentionTextEditingController.shiftRuns at line 742. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/components/custom_text_editing_controllers.dart\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":"lib/app/components/custom_text_editing_controllers.dart"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5b310bae7fe5788626297af26f19cf7fded7675d1c24951d3637a7b7550487"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/main.dart: lib/main.dart changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in _HomeState.initState 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/main.dart\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":"lib/main.dart"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6293725e4ecc30616eb405dbc97736c533fbfa1a16bc7c869a700716259256"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/backend/outgoing_message_handler.dart: lib/services/backend/outgoing_message_handler.dart changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in OutgoingMessageHandler._prepItemWithRetry at line 241. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/services/backend/outgoing_message_handler.dart\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":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"59963a7a42db93c6a71bacf3dcf900ac4075c5d6098a760903949fdf9c9a904d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart: lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ConversationTextFieldState.sendMessage at line 290. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart\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":"lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e43f9bce53ac4a80c8d92c73b92724b76bfccca4d8cc2f55d74f6dce7bca11"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/backend/actions/chat_actions.dart: lib/services/backend/actions/chat_actions.dart changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in ChatActions.addMessageToChat 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/services/backend/actions/chat_actions.dart\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":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"212bcd142332ac390e446763fc345f724be5fd68dd668f37963201eb6bff4e2b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/backend/notifications/notifications_service.dart: lib/services/backend/notifications/notifications_service.dart changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in NotificationsService._buildAndShowToast at line 436. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/services/backend/notifications/notifications_service.dart\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":"lib/services/backend/notifications/notifications_service.dart"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb19098481404644a7676b8fbdebb5434dc01d061199679e84428721be1b1f76"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/backend/settings/settings_service.dart: lib/services/backend/settings/settings_service.dart changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in SettingsService.getAppUpdateDict at line 435. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/services/backend/settings/settings_service.dart\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":"lib/services/backend/settings/settings_service.dart"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6703ca624a7c04baf8b3363f5db1ccd64be4fab2a4e0ca2cfaf0c213ef9104"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/backend/java_dart_interop/open_pigeon_service.dart: lib/services/backend/java_dart_interop/open_pigeon_service.dart changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in OpenPigeon.refresh at line 112. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/services/backend/java_dart_interop/open_pigeon_service.dart\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":"lib/services/backend/java_dart_interop/open_pigeon_service.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"612f195a62e36971018d99fea755fcb3240ce9b5c4c04298d7214772633133fd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/ui/attachments_service.dart: lib/services/ui/attachments_service.dart changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in AttachmentsService.saveAllToDisk at line 244. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/services/ui/attachments_service.dart\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":"lib/services/ui/attachments_service.dart"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f34167e2fe64e38cb533529a8927caa878fba71038cc6020dff96c2ddd2be6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/settings/pages/theming/theming_panel.dart: lib/app/layouts/settings/pages/theming/theming_panel.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 89 in _ThemingPanelState.build at line 51. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/settings/pages/theming/theming_panel.dart\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":"lib/app/layouts/settings/pages/theming/theming_panel.dart"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce898ed0fe11a4ef55ba400eab4f18e6acea111a3d9d76925f38711efdf70aac"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/chat_creator/chat_creator_controller.dart: lib/app/layouts/chat_creator/chat_creator_controller.dart changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in ChatCreatorController.sendMessage at line 481. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/chat_creator/chat_creator_controller.dart\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":"lib/app/layouts/chat_creator/chat_creator_controller.dart"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8da48097ffcf88ca3ba435631749c48255582f0867ccc0c029fc452ed1c41c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/database/global/settings.dart: lib/database/global/settings.dart changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in Settings.updateFromMap at line 513. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/database/global/settings.dart\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":"lib/database/global/settings.dart"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1036cb6435cfb0322ced04163554202b13850b42c6ab86b04f9cd9f0cfc7af2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/backend/actions/sync_actions.dart: lib/services/backend/actions/sync_actions.dart changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in SyncActions._syncMessagesInTx at line 225. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/services/backend/actions/sync_actions.dart\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":"lib/services/backend/actions/sync_actions.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2899f43f5db63e6b0a02a4370bc8a2166efdcb074567f6e0888f46790623a88"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/attachment/attachment_holder.dart: lib/app/layouts/conversation_view/widgets/message/attachment/attachment_holder.dart changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in _AttachmentHolderState.build at line 342. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/attachment/attachment_holder.dart\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":"lib/app/layouts/conversation_view/widgets/message/attachment/attachment_holder.dart"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c2b3cb8a9433b68f74398fe22a07715085d1e11b7557a2d2c04e61f3729e55d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart: lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in ConversationFullscreenHolderState.build at line 122. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart\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":"lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b81e82f12c82b63a024e63c839ad674f213c6e5c98063d35789bbe679dba049"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/backend/actions/message_actions.dart: lib/services/backend/actions/message_actions.dart changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in MessageActions.saveMessageAsync at line 172. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/services/backend/actions/message_actions.dart\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":"lib/services/backend/actions/message_actions.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"5703e27f906bfe8a3c1ddf8c82f40d87e1fd8b888f7ef1d85b7d75a3e147a7f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/misc/message_part_content.dart: lib/app/layouts/conversation_view/widgets/message/misc/message_part_content.dart changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in MessagePartContent.build at line 32. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/misc/message_part_content.dart\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":"lib/app/layouts/conversation_view/widgets/message/misc/message_part_content.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad007c9da4349772e58f02beef6b53b4ff1852ab634f49b0fc7a306bfbb857e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/send_animation.dart: lib/app/layouts/conversation_view/widgets/message/send_animation.dart changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in _SendAnimationState.send at line 172. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/send_animation.dart\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":"lib/app/layouts/conversation_view/widgets/message/send_animation.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8c549dc56a9f7a8f85de91f4814dac785bb41f849f43a2759338df606f5b84"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/pages/conversation_view.dart: lib/app/layouts/conversation_view/pages/conversation_view.dart changed 11 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ConversationViewState.build at line 224. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/pages/conversation_view.dart\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":"lib/app/layouts/conversation_view/pages/conversation_view.dart"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"21dcff9773f96d442ca3ca806dc664f5d0efab9f140208f998a1ceffbe94b5d7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/text_field/text_field_suffix.dart: lib/app/layouts/conversation_view/widgets/text_field/text_field_suffix.dart changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in _RecordingButton.build at line 192. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/text_field/text_field_suffix.dart\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":"lib/app/layouts/conversation_view/widgets/text_field/text_field_suffix.dart"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"774f0e784b824474a92fb2fad200b8feedaab422105a52ee32fee799a006c3f3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart: lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in ConnectionPanelHelpersMixin.buildConnectionSyncSection at line 318. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart\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":"lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"317a4068632353c7d854389e2c8e57be3da12ab9e50386bcb8582f558bc1348e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/interactive/interactive_holder.dart: lib/app/layouts/conversation_view/widgets/message/interactive/interactive_holder.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in _InteractiveHolderState.build at line 52. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/interactive/interactive_holder.dart\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":"lib/app/layouts/conversation_view/widgets/message/interactive/interactive_holder.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2a72b3cbc3b0715661e73a0511b47fb0c1dd206e468ef22425c4ebfddb540c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_list/widgets/tile/conversation_tile.dart: lib/app/layouts/conversation_list/widgets/tile/conversation_tile.dart changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in _ChatSubtitleState.build at line 267. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_list/widgets/tile/conversation_tile.dart\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":"lib/app/layouts/conversation_list/widgets/tile/conversation_tile.dart"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"b06723cf05960c3513df8835f2c19ccce36adab68462a1c5543435b5a505813b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/settings/pages/message_view/attachment_panel.dart: lib/app/layouts/settings/pages/message_view/attachment_panel.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in _AttachmentPanelState.build at line 41. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/settings/pages/message_view/attachment_panel.dart\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":"lib/app/layouts/settings/pages/message_view/attachment_panel.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2b18830a376778ba77efbf574d15ad61f775ffd2a221bae23a2c3313cb67ee"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/chat_creator/chat_creator.dart: lib/app/layouts/chat_creator/chat_creator.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in ChatCreatorState.build at line 271. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/chat_creator/chat_creator.dart\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":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb05d5ed84ad34f7ee89f28ed0150cb8ed489b95e543ef2684d847361ce2183"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/settings/pages/message_view/conversation_panel.dart: lib/app/layouts/settings/pages/message_view/conversation_panel.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 78 in _ConversationPanelState.build 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/settings/pages/message_view/conversation_panel.dart\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":"lib/app/layouts/settings/pages/message_view/conversation_panel.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"606ef41e43ba1ac3c863acf96557a537fb7e969b5da11acb99870e327c7fca57"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart: lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in _ReplyBubbleState.build at line 86. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart\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":"lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f4be19d782ea553b183b6f9e9c34ccbd4d751219428e1433c6ecd471210725"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/pages/messages_view.dart: lib/app/layouts/conversation_view/pages/messages_view.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in MessagesViewState.initState at line 84. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/pages/messages_view.dart\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":"lib/app/layouts/conversation_view/pages/messages_view.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2ae72c6226f6e2a3892c19738fa972fdd1d18cf8110423c7b59e82120e4e8cd"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/settings/pages/server/backup_restore_panel.dart: lib/app/layouts/settings/pages/server/backup_restore_panel.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in _BackupRestorePanelState._createSettingsBackup at line 389. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/settings/pages/server/backup_restore_panel.dart\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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9db5dbca973dabe9f8cc63077fb25c587b9ed6ae2ce8c39824d6f4a49dcf438"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart: lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in _VideoPlayerState.build at line 465. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart\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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0cde9ec71ea4a017da20567761999fbda333ff34b1917534211160415a967e0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/components/avatars/contact_avatar_widget.dart: lib/app/components/avatars/contact_avatar_widget.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in _ContactAvatarWidgetState.build at line 176. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/components/avatars/contact_avatar_widget.dart\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":"lib/app/components/avatars/contact_avatar_widget.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d067a4126f01bedcfaa689c2d3a81dd7e32c4accc99b17d2cb2d31b8cddc48"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_details/widgets/chat_info.dart: lib/app/layouts/conversation_details/widgets/chat_info.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in _ChatInfoState.build 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_details/widgets/chat_info.dart\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":"lib/app/layouts/conversation_details/widgets/chat_info.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a194a1c62a14326a8eaa1d90ac7efc27a7e22577e17f7863f3c67e70a8b4985b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/text/run_text_effects.dart: lib/app/layouts/conversation_view/widgets/message/text/run_text_effects.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in RenderRunTextEffects.paint at line 109. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/text/run_text_effects.dart\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":"lib/app/layouts/conversation_view/widgets/message/text/run_text_effects.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb9dd0e00b4ff27f2c0bb78903e7ddd5d3740924e614428c92fb26de3fbb1f4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/fullscreen_media/fullscreen_video.dart: lib/app/layouts/fullscreen_media/fullscreen_video.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in _FullscreenVideoState.build at line 252. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/fullscreen_media/fullscreen_video.dart\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":"lib/app/layouts/fullscreen_media/fullscreen_video.dart"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"066c9b2d51e1dc6ca34a40e4d0600ac8aa1e3850273c6e13657fc7b6468a33e7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart: lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 42 in _AdvancedThemingContentState.build at line 73. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart\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":"lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c62b31a4c8b9256258833d323dfac84b44bea4fdcbebbfe7f6740fd0f838add"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_list/widgets/tile/pinned_tile_text_bubble.dart: lib/app/layouts/conversation_list/widgets/tile/pinned_tile_text_bubble.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in PinnedTileTextBubbleState.build at line 144. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_list/widgets/tile/pinned_tile_text_bubble.dart\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":"lib/app/layouts/conversation_list/widgets/tile/pinned_tile_text_bubble.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df275c64a60e2262927f620e81a7f884560e34baf670b3f38e72226a2f92e2e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/settings/pages/advanced/firebase_panel.dart: lib/app/layouts/settings/pages/advanced/firebase_panel.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in _FirebasePanelState.build at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/settings/pages/advanced/firebase_panel.dart\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":"lib/app/layouts/settings/pages/advanced/firebase_panel.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ff44a1f292255a7a13c6ecb7d7a7f347c3c911c9d4ec6124029684fa7f705b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/text_field/formatting_bar.dart: lib/app/layouts/conversation_view/widgets/text_field/formatting_bar.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in FormattingBar.build at line 20. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/text_field/formatting_bar.dart\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":"lib/app/layouts/conversation_view/widgets/text_field/formatting_bar.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed11d340b8bfdda7036a8f8170e25276d3a4a9f7022d28dbff725b5712a6f6c7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/fullscreen_media/fullscreen_image.dart: lib/app/layouts/fullscreen_media/fullscreen_image.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in _FullscreenImageState.build at line 159. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/fullscreen_media/fullscreen_image.dart\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":"lib/app/layouts/fullscreen_media/fullscreen_image.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"948d4dd4998c22d86905a9c343838d07c72d827061f5e11845ab00809ed8b62f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_details/material/material_chat_header.dart: lib/app/layouts/conversation_details/material/material_chat_header.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ExpressiveChatHeader._buildActions at line 190. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_details/material/material_chat_header.dart\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":"lib/app/layouts/conversation_details/material/material_chat_header.dart"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bd330964d74889b6bed1aa55c99920737ec1f3031aced4f93a86362ca009bbc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/popup/message_popup_holder.dart: lib/app/layouts/conversation_view/widgets/message/popup/message_popup_holder.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in _MessagePopupHolderState.build at line 162. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/popup/message_popup_holder.dart\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":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup_holder.dart"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"beba0ddea39fed21767713cce2b173cd5e219df2a55055ce9c9f791098bdc746"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/attachment/parts/resolved_file_content.dart: lib/app/layouts/conversation_view/widgets/message/attachment/parts/resolved_file_content.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ResolvedFileContent.build at line 63. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/attachment/parts/resolved_file_content.dart\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":"lib/app/layouts/conversation_view/widgets/message/attachment/parts/resolved_file_content.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3f0ce5ca667c459160d53c384a61f05d6b9383ccbc34e3ac180924bad616fae"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/interactive/game_pigeon.dart: lib/app/layouts/conversation_view/widgets/message/interactive/game_pigeon.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in _GamePigeonState.build at line 35. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/interactive/game_pigeon.dart\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":"lib/app/layouts/conversation_view/widgets/message/interactive/game_pigeon.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d51db4271b0308a6c61f5eb548345faeef7b2fd54c17d069b8e58850bab188c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/backend/action_handler.dart: lib/services/backend/action_handler.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ActionHandler.handleEvent at line 83. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/services/backend/action_handler.dart\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":"lib/services/backend/action_handler.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5471ccbdc680317fbc86affe25ffc008372528d3441349a3c2fa4f393f0e9da"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/reaction/reaction.dart: lib/app/layouts/conversation_view/widgets/message/reaction/reaction.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in ReactionWidgetState.build at line 127. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/reaction/reaction.dart\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":"lib/app/layouts/conversation_view/widgets/message/reaction/reaction.dart"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e67342218f40ef8bf83a820e95791f4317dc49bd95a6ba364a6d125b0f89ad4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/text_field/helpers/text_field_match_helper.dart: lib/app/layouts/conversation_view/widgets/text_field/helpers/text_field_match_helper.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in TextFieldMatchHelper.processMentionMatches at line 62. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/text_field/helpers/text_field_match_helper.dart\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":"lib/app/layouts/conversation_view/widgets/text_field/helpers/text_field_match_helper.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d207a3bdb27bd896693c522b8c7ab67df278766ea41ef2d44ccea99058099e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/text_field/text_effect_overlay.dart: lib/app/layouts/conversation_view/widgets/text_field/text_effect_overlay.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in _RenderEffectGlyphs.paint at line 274. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/text_field/text_effect_overlay.dart\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":"lib/app/layouts/conversation_view/widgets/text_field/text_effect_overlay.dart"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"829c84e83708356d7a5fadd8b3118cba8b3088ac42c7339b1343180627210973"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/findmy/findmy_controller.dart: lib/app/layouts/findmy/findmy_controller.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 36 in FindMyController.getLocations at line 199. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/findmy/findmy_controller.dart\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":"lib/app/layouts/findmy/findmy_controller.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6cce37f60d0fdd281209fb97dce9d865b0d6c4cfb3d0e74c9fa43fddcf8134"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart: lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in _ImageViewerState.build at line 95. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart\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":"lib/app/layouts/conversation_view/widgets/message/attachment/image_viewer.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ee2d9ccc5c7a2b9c22b132ddbcff1c811d0e804f86cad4fd66a175ce4dd3af"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/settings/dialogs/notification_settings_dialog.dart: lib/app/layouts/settings/dialogs/notification_settings_dialog.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in NotificationSettingsDialog.build at line 12. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/settings/dialogs/notification_settings_dialog.dart\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":"lib/app/layouts/settings/dialogs/notification_settings_dialog.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca98a4544249a4ddde76c96de6243109b8fa12539c8d7271e3af1a23f3c431ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/conversation_view/widgets/message/text/text_bubble.dart: lib/app/layouts/conversation_view/widgets/message/text/text_bubble.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in _TextBubbleState._scheduleRunVisibilityCheck at line 62. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/conversation_view/widgets/message/text/text_bubble.dart\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":"lib/app/layouts/conversation_view/widgets/message/text/text_bubble.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf395bd556a3227029d2d43ba1715ef4229655f7f93e1d34783a5d06044ba965"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/app/layouts/settings/pages/misc/cache_tuning_panel.dart: lib/app/layouts/settings/pages/misc/cache_tuning_panel.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in _CacheTuningPanelState.build at line 144. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- lib/app/layouts/settings/pages/misc/cache_tuning_panel.dart\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":"lib/app/layouts/settings/pages/misc/cache_tuning_panel.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffcba7e8cc79a9f838c65b802c5bc14b825fc6fba2cac69669689054d5f8a920"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: android/app/src/main/kotlin/com/bluebubbles/messaging/services/extensions/OpenPigeonHost.kt: android/app/src/main/kotlin/com/bluebubbles/messaging/services/extensions/OpenPigeonHost.kt changed 11 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is OpenPigeonHost.draw at line 132), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: send openpigeon turns under the opened game\u0027s balloon id\u201D; \u201Cfix: encode openpigeon snapshots off the main thread\u201D; \u201Cfix: report when openpigeon fails to open a game\u201D; \u201Cfix: order openpigeon binder calls and recover from a stuck binding\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 17:29:29 -05:00\u0027 --until=\u00272026-11-16 17:29:29 -05:00\u0027 --full-history --no-merges -- android/app/src/main/kotlin/com/bluebubbles/messaging/services/extensions/OpenPigeonHost.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":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/extensions/OpenPigeonHost.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acc7b4b0a20532d2ab7879e06b64723c6cb1281cd5a8f60e0cdbd06a2322e60"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 250 significant file(s) lose their only recent owner: lib/services/ui/message/messages_service.dart, lib/services/ui/chat/chats_service.dart, lib/services/backend/incoming_message_handler.dart, lib/app/layouts/settings/pages/desktop/desktop_panel.dart, lib/services/ui/attachments_service.dart, lib/database/io/message.dart, lib/app/components/custom_text_editing_controllers.dart, lib/app/state/message_state.dart (\u002B242 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"94b4f4db6236c7a4e2ed49f6c56984d4595b78328a1847c0bd9b34e716cf281f"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 2 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (260 single-owned of 560 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 560 of the 809 production source files in this repository met that bar). They are anonymized user #2 (1 file(s)), anonymized user #3 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: lib/app/layouts/conversation_list/pages/search/conversation_search_field.dart, android/app/src/main/kotlin/com/bluebubbles/messaging/utils/Utils.kt."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement attachment query endpoint \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/parsers/event_payload/api_payload_parser.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c99918ca2b66e474af90c26da50425fae8786f1adabbe8efe8620d7387cc1de"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement chat query endpoint \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/parsers/event_payload/api_payload_parser.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b672ca846e89be2beee1a2471861a7bdf145f2ae3cc4694db9153faf525ddb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement handle query endpoint \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/parsers/event_payload/api_payload_parser.dart"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ae97f7b45d5e00e517344dc338a77963f0779210ae3a16e1c0baa9e286e9887"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement web FaceTime \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/java_dart_interop/intents_service.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aabc38135f2ed262f7d83f229ee15fd178fe176f9c9e3ff6069c2d640ffa169"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo remove \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/ui/ui_helpers.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"5935ad4196e840289c9750245abd67e31ee5856457679e3512ec59497021155e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(abarth): These constants probably belong somewhere more general. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_cupertino_alert_dialog.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5981d38d86cd4ee4d7fd192d089490adf5e2ca646a8a89a6d8fb44c17a179936"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(mattcarroll): Button press dynamics need overhaul for iOS: \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_cupertino_alert_dialog.dart"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"07505d77c14ee945580bdf41d06706c8f94d8da5fc05b73412ccdb62abfbcfb6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(mattcarroll): Cancel is currently triggered when user moves \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_cupertino_alert_dialog.dart"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e157fbb0b0e024429a1d6685d0cf75415e474d8dc1291f716b3e77a842be0a7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(mattcarroll): The following logic is not entirely correct. It is also \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_cupertino_alert_dialog.dart"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf4e798060492a84fea6da486decee4c2a0451c2fffe3fd511bb51a4a884bec"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (141773 LoC, 1064 module-visible types across 158 directories) overshoots its size bounds. 1 of 4 build unit(s) (Gradle, Xcode, pub) overshoot their size bounds, lowering Project Cohesion to 5.0/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"pubspec.yaml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9fee3010c053c10733ebad6b156234032ce361c46f8c03bb63f2bdc3c8adbd"}},{"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":"fff12ebb923458545ff2f152f0b3b9dfb9b66a1f394ddd3c2a0b2388f19bdc9e"},"properties":{"commitSha":"f298eb0a437fc322b9e99bdd97c5de448ca176ec"}},{"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":"7295cb7834fab00fd2ed9ad0c57990b1722d2fd3f47bb662a8e5ea1227671a59"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e58c5eb41383af54018b6ebbcc1e9443b24e5b2d09d28122c340fb148c3c30f7"},"taxa":[{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"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":"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":"a215fc2d1c1e97cea4df38dd80a6a5118b1462eae927b09b1df27b5bc7d693e2"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3128765aba26a493ceaff666b3d7cebe8f9e29067c371bcb059f54701120e819"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1242d0906e49b52664761611c0620cd41a88358741d134fc0f3b8a26edb2d6d0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"e5d512a921732338ed487b00946dbbab2377229d369c7bf874ea9c134e2b4cc6"},"taxa":[{"id":"CWE-561","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"494711f83ce9d013a45f85b8f2d43f894458605dc14f0948eb2db74ef4305146"},"taxa":[{"id":"CWE-561","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a71e2c66ea8757be8ddf2e207cc21f99b15f6da00abef2afd617f48046eb0648"},"taxa":[{"id":"CWE-561","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_cupertino_alert_dialog.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"768370a17c82fd4dbd297bd6c32c8f11c6beb34d1f07415d7590c87f9f15e8fc"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 26 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: lib/utils/color_engine/theme.dart, lib/app/components/custom/custom_cupertino_page_transition.dart, lib/database/html/objectbox.dart, lib/app/animations/fireworks_classes.dart, lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart, lib/app/animations/laser_classes.dart, lib/app/animations/balloon_rendering.dart, lib/database/html/media_kit.dart (and 18 more) (27 orphaned of 560 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 560 of the 809 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/color_engine/theme.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ba40cb061cb8a2707e0f99f497e4657e074dde7160f34ba247d960d506e050"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_cupertino_page_transition.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3aa2fdbfa77a294321c433b014816e665307d82d1cb8679f44ed0801615f24"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/objectbox.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6eea2de88dca70def8320e8db6f59ba6c0398844a24ea1f6106e18eefc635ab"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/fireworks_classes.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"406ca67b4f402ee88cda739a39238c02e28e97a92ce436cb3bf97ef3448c6aa1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a23e5c5a0e31dec13487fe5cddbe82458789065e7a2c82dcbfdc38d7bd80a99b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/laser_classes.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f144f8732c4ff95933dc3868827bda704cd5a8a56bccf468da1806c8e2ec05"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/balloon_rendering.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a268c85b965b9883f94d40d76e28087a43ecc1288d60148fbc2f6280aec7961f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/bluebubbles/messaging/utils/FilesystemUtils.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ccb93434806399276fd810b92bbb76afeabd4efb957d8b1ce99a9158da53c7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/media_kit.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2f125131ca9f20c1819a801deda748e698c48e3ab80485f738f5ace4689427"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/color_engine/colors.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b166a2eb8b487aefc5c59efa8607297e46094fe84e8fc5c4add0ffc8559c0c3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/custom/custom_bouncing_scroll_physics.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8cfc9ee426b71941e7486828dbfc20a68d7a5aacf9b8a4b99b1219d771a9c2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/theme_object.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3d3ce35de977416405a4cd693a19b5f2aa097ed27717743499aa87a935f668"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/notifications/CreateIncomingFaceTimeNotification.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f3d4feb1aad012c6db89201796b8e249adde03d43724656bc44be3faf7e2c8a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/theme_object.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"106a65591eb4245e975c8539d20c937410426b5cfca7bf790182e0884fa231e7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/notifications/NotificationListener.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5351a3903cb335281ab7d30c0ee49c35047d14911f8b5d2de6087259dd6b4b9a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/dialogs/create_new_theme_dialog.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b64fa336ce793e86b03aa94c5c5532e16efa6128fbb9c08b15cabd461b4010d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/bluebubbles/messaging/UnifiedPushReceiver.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72acd559c4f89803f092cead3127701c4d1e16e4fcd565086269cc3cbd3dc1e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/fireworks_rendering.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"14aa810d8facce573996cbb9995a0d26bf72be9f15ea58f1cc41394681ccd9df"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/balloon_classes.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79175d1bc4acdf07a8970dbe4889268b0ad6b26b6a92818be94f7b02e729f874"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/voice_message_recorder.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f668ef77f2300d252e4b6c813e9a834499ba49c987e0adb1a53abdeb1576b5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/love_classes.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"349df7be38142df8ea0b431975fec8336490c469c5d04028d72aab001db3b430"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/love_rendering.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7120605bc192062c6659b3dc3b0fc2ec949454a1b15d1d5097874b71ae920d4c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/animations/spotlight_classes.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"912a87514d525e933dae1859cfb0d07b6a0874a6afab491b3ec75271ebf9f24d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/sliver_decoration.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7338fda6ab1051969a830fa8b8396c5c6b117421564da3195259972a0fc56027"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/setup/pages/setup_checks/mac_setup_check.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8fc950d31bcd3ab9187777dbabdb87d3d481f43306dfc8f91cb626d4c085e1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/bluebubbles/messaging/services/system/OpenConversationNotificationSettingsHandler.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1322045737799f767a94f3d8e9f8490d852660c5a5a881cf43f1e532287b2b4"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: advanced_theming_tile.dart \u2194 themes_service.dart: \u0060lib/app/layouts/settings/widgets/content/advanced_theming_tile.dart\u0060 (context layouts) and \u0060lib/services/ui/theme/themes_service.dart\u0060 (context services) sit in DIFFERENT parts of the tree yet change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00604f73b71d\u0060 Downgrade to Flutter 3.27.4 again; \u0060944ad690\u0060 Revert \u0022Downgrade to flutter 3.27.4\u0022; \u0060efdbb000\u0060 Downgrade to flutter 3.27.4 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/widgets/content/advanced_theming_tile.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4030a03e080545201d400f4233a5ece56c18f9d17208e28321e5216eb10c2f5b"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: advanced_theming_tile.dart \u2194 theme_helpers.dart: \u0060lib/app/layouts/settings/widgets/content/advanced_theming_tile.dart\u0060 (context layouts) and \u0060lib/helpers/ui/theme_helpers.dart\u0060 (context helpers) sit in DIFFERENT parts of the tree yet change together 70% of the time (7 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 7 shared commits counted here, the most recent 3 are \u00604f73b71d\u0060 Downgrade to Flutter 3.27.4 again; \u0060944ad690\u0060 Revert \u0022Downgrade to flutter 3.27.4\u0022; \u0060efdbb000\u0060 Downgrade to flutter 3.27.4 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/widgets/content/advanced_theming_tile.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a321524b5aca816c44d0251f575cdf2e1a41988bd3120fba115c131afa7ec58"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: theme_entry.dart \u2194 themes_service.dart: \u0060lib/database/io/theme_entry.dart\u0060 (context database) and \u0060lib/services/ui/theme/themes_service.dart\u0060 (context services) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00604f73b71d\u0060 Downgrade to Flutter 3.27.4 again; \u0060944ad690\u0060 Revert \u0022Downgrade to flutter 3.27.4\u0022; \u0060efdbb000\u0060 Downgrade to flutter 3.27.4 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/theme_entry.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"24bbb7430d29b84f093cc20ee0d0179edec82b370fc96f22f1fa93c4dfcbc876"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: advanced_theming_tile.dart \u2194 theme_entry.dart: \u0060lib/app/layouts/settings/widgets/content/advanced_theming_tile.dart\u0060 (context layouts) and \u0060lib/database/io/theme_entry.dart\u0060 (context database) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00604f73b71d\u0060 Downgrade to Flutter 3.27.4 again; \u0060944ad690\u0060 Revert \u0022Downgrade to flutter 3.27.4\u0022; \u0060efdbb000\u0060 Downgrade to flutter 3.27.4 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/widgets/content/advanced_theming_tile.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"08ce361fb5a0215dce84ff5bdd11498b802fb3a662a9fcde8b31448946fb6d7f"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: contact_avatar_widget.dart \u2194 theme_entry.dart: \u0060lib/app/components/avatars/contact_avatar_widget.dart\u0060 (context components) and \u0060lib/database/io/theme_entry.dart\u0060 (context database) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00604f73b71d\u0060 Downgrade to Flutter 3.27.4 again; \u0060944ad690\u0060 Revert \u0022Downgrade to flutter 3.27.4\u0022; \u0060efdbb000\u0060 Downgrade to flutter 3.27.4 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/avatars/contact_avatar_widget.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c652e28ea0087b2bf6c06882730cdd480fcb2d7d86f2380af480b9a1900dbab5"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: contact_avatar_widget.dart \u2194 advanced_theming_tile.dart: \u0060lib/app/components/avatars/contact_avatar_widget.dart\u0060 (context components) and \u0060lib/app/layouts/settings/widgets/content/advanced_theming_tile.dart\u0060 (context layouts) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00604f73b71d\u0060 Downgrade to Flutter 3.27.4 again; \u0060944ad690\u0060 Revert \u0022Downgrade to flutter 3.27.4\u0022; \u0060efdbb000\u0060 Downgrade to flutter 3.27.4 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/avatars/contact_avatar_widget.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5e4d779ba7dc2e83d047c3ada0f9326fbf1b7d0ceb0e18bbe21aec5fbd5da0"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: findmy_page.dart \u2194 findmy_device.dart: \u0060lib/app/layouts/findmy/findmy_page.dart\u0060 (context layouts) and \u0060lib/database/global/findmy_device.dart\u0060 (context database) sit in DIFFERENT parts of the tree yet change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060bbf4199d\u0060 improved findmy interface and ux; \u006088900c1c\u0060 findChildIndexCallback added to all ListView.builders (at that commit the file was still \u0060lib/models/global/findmy_device.dart\u0060); \u006071ccb5f5\u0060 Support FindMy Friends (at that commit the file was still \u0060lib/models/global/findmy_device.dart\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/findmy/findmy_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"143aa8286bd7935ca4c8bebd09b66372c4d8b4cf06003cb49d68666f2e604936"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: message_state.dart \u2194 message_actions.dart: \u0060lib/app/state/message_state.dart\u0060 (context state) and \u0060lib/services/backend/actions/message_actions.dart\u0060 (context services) sit in DIFFERENT parts of the tree yet change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006037c7c44f\u0060 fix: save pushed messages at once and fill them in with one batched sync; \u006049a49a3e\u0060 Keep fields a lighter copy of a message leaves out; \u0060ab2c85c8\u0060 fix: never take a replaced app turn back to type 2 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/state/message_state.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf98f640cc7919e933fbe4fcc77b1dd6bec8b112975b2d8e1a7cee68968f60b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: cupertino_conversation_list.dart, material_conversation_list.dart, samsung_conversation_list.dart: 3 files \u2014 \u0060lib/app/layouts/conversation_list/pages/cupertino_conversation_list.dart\u0060, \u0060lib/app/layouts/conversation_list/pages/material_conversation_list.dart\u0060, \u0060lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/pages/cupertino_conversation_list.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9918b8bd8aa1071b70e1c5806eb577cd77870d2076281f8ca1b3a26b569b5713"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: theme.dart \u2194 theme_entry.dart: \u0060lib/database/io/theme.dart\u0060 and \u0060lib/database/io/theme_entry.dart\u0060 change together 80% of the time (8 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00604f73b71d\u0060 Downgrade to Flutter 3.27.4 again; \u00606304c6d2\u0060 chore: move generated objectbox files; \u0060944ad690\u0060 Revert \u0022Downgrade to flutter 3.27.4\u0022 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/theme.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7369b9691102f028a165965542b3638c8b76deb188126a97dd044546b1b30ce8"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: message_holder.dart \u2194 message_part_wrapper.dart: \u0060lib/app/layouts/conversation_view/widgets/message/message_holder.dart\u0060 and \u0060lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart\u0060 change together 80% of the time (8 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00602d443575\u0060 chore: consolidate message-part span helpers; \u0060285664ed\u0060 fix: add isLeading/isTrailingMessagePart helpers for multipart layouts; \u0060dc0af170\u0060 Support pkpass files (Fix #3095) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/message_holder.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbefcec883044b761b2dc1d62c38c69ccc97839e82c7a31da98a5a5ecc765c4c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling clique: cupertino_header.dart, material_header.dart, samsung_header.dart: 3 files \u2014 \u0060lib/app/layouts/conversation_list/widgets/header/cupertino_header.dart\u0060, \u0060lib/app/layouts/conversation_list/widgets/header/material_header.dart\u0060, \u0060lib/app/layouts/conversation_list/widgets/header/samsung_header.dart\u0060 \u2014 all change together with no explicit dependency: a fully-connected co-change clique, not 3 separate couplings. They share one concern (thin parallel siblings over a common abstraction), so extract the shared part into ONE unit and the whole clique\u0027s coupling clears at once \u2014 you do not need to break each pair individually."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/widgets/header/cupertino_header.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"378d300ea6dc16db98159fb874e5917cca4465b72b11d8b7fb92812667d48b0b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: oauth_panel.dart \u2194 server_credentials.dart: \u0060lib/app/layouts/settings/pages/server/oauth_panel.dart\u0060 and \u0060lib/app/layouts/setup/pages/sync/server_credentials.dart\u0060 change together 73% of the time (8 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u00604d84034a\u0060 fix: accept lan hostnames without a tld in server url; \u0060c1dd8c51\u0060 fix: google sign on; \u006066d26431\u0060 fix: WidgetStateProperty migration \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5cad10338351bd0c732b71f2c053aadc65aa222c71d210f068d74bcf27e3533"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: pinned_order_panel.dart \u2192 conversation_details.dart, conversation_view.dart, message_popup.dart, reply_thread_popup.dart, conversation_fullscreen_holder.dart, notification_panel.dart, settings_scaffold.dart: \u0060lib/app/layouts/settings/pages/conversation_list/pinned_order_panel.dart\u0060 changes together with 7 other files \u2014 \u0060lib/app/layouts/conversation_details/conversation_details.dart\u0060, \u0060lib/app/layouts/conversation_view/pages/conversation_view.dart\u0060, \u0060lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart\u0060, \u0060lib/app/layouts/conversation_view/widgets/message/reply/reply_thread_popup.dart\u0060, \u0060lib/app/layouts/fullscreen_media/conversation_fullscreen_holder.dart\u0060, \u0060lib/app/layouts/settings/pages/system/notification_panel.dart\u0060, \u0060lib/app/layouts/settings/widgets/layout/settings_scaffold.dart\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 7 separate couplings, not 7 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 7."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/conversation_list/pinned_order_panel.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da72487987342ee03a6cea50bd37de44f09569fc17dc48cd7dcd3e8159123551"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: theme.dart \u2194 theme_entry.dart: \u0060lib/database/html/theme.dart\u0060 and \u0060lib/database/io/theme_entry.dart\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00604f73b71d\u0060 Downgrade to Flutter 3.27.4 again; \u0060944ad690\u0060 Revert \u0022Downgrade to flutter 3.27.4\u0022; \u0060efdbb000\u0060 Downgrade to flutter 3.27.4 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/theme.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd47e04638b38310fb8113866a19ac5634c1470d1be20be398c96ed93e1332fd"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: conversation_text_field.dart \u2194 picked_attachment.dart: \u0060lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart\u0060 and \u0060lib/app/layouts/conversation_view/widgets/text_field/picked_attachment.dart\u0060 change together 56% of the time (10 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060610a0f17\u0060 fix: seemlessness of text field \u0026 attachment picker \u0026 bottom safe area; \u0060d4a0c693\u0060 fix: draft saving and more; \u0060c66b0afe\u0060 fix: new chat creator flows \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7e3f3ee7849d409f7bfcf347cf687a56908f33d3e69b831939818643a5156a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: links_section.dart \u2194 media_grid_section.dart: \u0060lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/sections/media/media_grid_section.dart\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006090316b77\u0060 fix: conversation details issues; \u00605daeb16e\u0060 visual polish; \u00609fd9911c\u0060 use regular case for page headers (at that commit the files were still \u0060lib/app/layouts/conversation_details/widgets/links_section.dart\u0060 and \u0060lib/app/layouts/conversation_details/widgets/media_grid_section.dart\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c5b79ae8164eea5cffa819d7ab6140c2a31ee0b73b89cd585e3b684cb708cb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: settings_page.dart \u2194 settings_tile.dart: \u0060lib/app/layouts/settings/settings_page.dart\u0060 and \u0060lib/app/layouts/settings/widgets/content/settings_tile.dart\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060e56c8123\u0060 Gate to tablet mode and handle resize properly; \u00607d74bcfe\u0060 Add settings tile highlighting; \u0060be708946\u0060 fix: UX improvements \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/settings_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cd9ad7e322762ac2f96f36b985375f912023b6d4f3ecef4b677f0154ae52ce3"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: message_popup.dart \u2194 reply_thread_popup.dart: \u0060lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart\u0060 and \u0060lib/app/layouts/conversation_view/widgets/message/reply/reply_thread_popup.dart\u0060 change together 50% of the time (12 of the 24 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060aa7e8261\u0060 fix: onPopScope migration; \u0060873c246c\u0060 wip: standardization of BBScaffold \u0026 layouts; \u00605ff050d5\u0060 wip: standardized annotated region widget/layout \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fe385c19547faba8344fea0647d2ebed9e316c9c38b4260e8b4c14496a9070a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: main.dart \u2194 background_isolate.dart: \u0060lib/main.dart\u0060 and \u0060lib/services/backend/java_dart_interop/background_isolate.dart\u0060 change together 50% of the time (10 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060181f439e\u0060 fix: improved cert handling; \u00609e069123\u0060 feat: foreground service improvements; \u00603b086af9\u0060 Preliminary scheduled message support \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9694a0505c3ecb2b0ed5b63c3221b13904a6500c77c44ec121cbd0ef373a0c6b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: fullscreen_image.dart \u2194 fullscreen_video.dart: \u0060lib/app/layouts/fullscreen_media/fullscreen_image.dart\u0060 and \u0060lib/app/layouts/fullscreen_media/fullscreen_video.dart\u0060 change together 50% of the time (10 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u0060991c0d40\u0060 chore: fix review follow-ups in reply, popup, settings and docs; \u00603a5fc24b\u0060 feat: open collection gallery from fullscreen viewer; \u0060d7531fcd\u0060 fix: url preview refactor \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/fullscreen_media/fullscreen_image.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00689a698d5312240c74bdd1d5647f048a2e173572f57e6a37b02c023c8049cb"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: notification_panel.dart \u2194 settings_scaffold.dart: \u0060lib/app/layouts/settings/pages/system/notification_panel.dart\u0060 and \u0060lib/app/layouts/settings/widgets/layout/settings_scaffold.dart\u0060 change together 50% of the time (9 of the 18 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u0060aa7e8261\u0060 fix: onPopScope migration; \u00606404ed09\u0060 wip: appbar standardization; \u0060873c246c\u0060 wip: standardization of BBScaffold \u0026 layouts \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/system/notification_panel.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c323f75492e1fd51affcaac69b0783883cb3c2e825f8d6fbf3b6f4dcb7e96be"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: conversation_peek_view.dart \u2194 notification_settings_dialog.dart: \u0060lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart\u0060 and \u0060lib/app/layouts/settings/dialogs/notification_settings_dialog.dart\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006086df521b\u0060 wip: de-coupled services \u0026 fix background notifications; \u006040d4128e\u0060 universal handler for matching listiew child by key; \u006088900c1c\u0060 findChildIndexCallback added to all ListView.builders \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_list/dialogs/conversation_peek_view.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d1d4793eea42b4263996494066464ce5450007fc45a5add6aed4cc3853646c"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/index.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"094951ea77b7940f35199b8a2448b21aeed6a2eab638ee029bc59978999e026c"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/index.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"586768cc4a42c3ff42dd1204c2e5ebd0606d777df1d77a8e14c07a128690a14b"}},{"ruleId":"AC3","level":"error","message":{"text":"Viewport restricts zoom: user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/index.html"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"531fc4a7c4b416d0d56618ce3fa5033014c41239c7fed30cca9a19701a65ae67"}},{"ruleId":"C1","level":"warning","message":{"text":"No data-protection/encryption: No encryption usage (the encrypt package\u0027s Encrypter, cryptography\u0027s AesGcm/Chacha20, pointycastle ciphers, libsodium\u0027s secret box, flutter_secure_storage, an encrypted Hive box, a Realm or Isar encryptionKey, SQLCipher) was found, and this repository persists personal data in the model cited here \u2014 sensitive data at rest may be unprotected. If TDE/KMS/vault is delegated to infrastructure, ignore."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/contact_v2.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1b13416962e7d91113d721925386ec1536c10f8a4c04582cf5ef533b46d780"}},{"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":"DM6","level":"error","message":{"text":"Domain fused to persistence infrastructure: ThemeEntry: \u0060ThemeEntry\u0060 is a domain concept fused to persistence ON ITS OWN DECLARATION (the floor \u0060@Entity\u0060/\u0060@dao\u0060 mapping) with no separate pure-domain layer \u2014 the domain entity IS the ORM row (active-record), and it carries domain behaviour on the persistence type. A schema/persistence change ripples straight into the domain. Keep the ORM/table mapping on a boundary data-model \u002B a mapper, and the domain entity framework-free (map row\u2194domain through a repository)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/theme_entry.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00863ec81ecd2a60054636226f8b44c4cba4a29b346a90c95cf2c020ca4bfec"}},{"ruleId":"GD1","level":"note","message":{"text":"Placeholder literal left in code: A placeholder string (\u0022Replace message text with generated lore\u2026\u0022) is still in shipped code \u2014 typical of generated boilerplate that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"29cba2d1b478ebace120906e2f30fc917b08d82f1130c616a53916bcec4e8b1a"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060findOne\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/chat.dart"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80c19a3fb0947e0a2893e77f89a98f257a4244d8cc847c01205bdcd18bd1848"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060bulkSave\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/handle.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"967ebf267e27fd35f591c0350969e1fa4f1a8863efe4a2d0f5cf2a33bc8b61b9"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060findOne\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"4107d4e903637e2141fcc2e3fc6b56ca53efacf08688ae64fe0132af9436d5f9"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060countForChat\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/message.dart"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d6746dd1dc57f8fcd65f48dcf37e0a091e01a5dfa5c568b8f0f09702f52e93"}},{"ruleId":"IC1","level":"warning","message":{"text":"Hollow method \u2014 returns a constant without doing the work: \u0060findOne\u0060 looks like it should compute a result but its body just returns a constant \u2014 a placeholder return that was never filled in."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/theme.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9422da417bbb5529624787044a282327606712841c8094699852b722cab0fa"}},{"ruleId":"IC1","level":"note","message":{"text":"Empty method body: \u0060applyToDb\u0060 has an empty body \u2014 confirm it\u0027s an intentional no-op and not an unfinished method."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/html/objectbox.dart"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"c719389a8c8fce54e8c614227ab6ac562b8dc6ff9b5fd99a3494f6d491939565"}},{"ruleId":"M2","level":"note","message":{"text":"ADRs not easily discoverable: 1 ADR-shaped document(s) detected by content \u2014 \u0060docs/DECISIONS.md\u0060. They are not under a conventional ADR folder (docs/adr/) and are not named NNNN-title.md, and this check found them by their decision signature rather than by where they live \u2014 so a reader who does not already know these paths has no route to them. Detected by content signature only: records kept outside the repository, or written without a Status/Decision/Consequences shape, are not visible to this check and are not counted here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ea921cf64dae701abd877090b3279ff10d03c2e3250e26c8c299d7c5665e0d3f"}},{"ruleId":"P12","level":"warning","message":{"text":"Test suite runs only after the merge: \u0060desktop-builds.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/3 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060ios\u0060, \u0060macos\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 the Dart analyzer\u0027s security lints plus \u0060semgrep --config=auto\u0060 as a CI step. What was searched, so you can tell an absence from a miss: the 3 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/pr-check.yml"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch gradle: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060gradle\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f3bff8eed2eb29302c3d10644f1ecba23171c77cd6c406b6dfa078dfc05ad87"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_initDatabaseDesktop\u0060 is async and calls createSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/database.dart"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d43e3188e1a3023796fc367e4bf2ad224d026edadcefe0f46d9670c60e4199e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060replaceAttachmentAsync\u0060 is async and calls listSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/attachment.dart"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad1b948126736da4ec7a7a860c6d48470d75aa7cd3a4647f95e5dea68bd729e"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_walkFilesystem\u0060 is async and calls listSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/storage_actions.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"39d791d5fbda45f83b792ac7504c76f68d3102f2d1d92c66f3e47f6310595c40"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060deleteAttachments\u0060 is async and calls listSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/storage_actions.dart"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6dbab48165ebddfccb8c41f08565992553fb4660609df99d14fe994e0eb840"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_deleteFlatDir\u0060 is async and calls listSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/storage_actions.dart"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae7855c4098f91e8195f36fb07ac1b0722467be280dc6e392cdc293b15593a9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_matchMessageWithExisting\u0060 is async and calls renameSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca97337b0ecbff1c89ef2b067d975a32e6bde0d10aeb2391011bcda9a833fa3"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_matchAttachmentWithExisting\u0060 is async and calls renameSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"0294e5e950d8b9f52933912140be6f6dafd801023322e69c2b7b15fd8c0d80da"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fetchNetworkContacts\u0060 is async and calls createSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/contact_service_v2.dart"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"8400ff4cfb0e6fbe387df2033d5d4c46534c9c0331cd65126cbee6d3ba05f6b8"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060retryFailedMessage\u0060 is async and calls renameSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":1166}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0d3914a3598f0726082e0823f1584377839d74a9c4222d526db668baebfd9b"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060compressLogs\u0060 is async and calls deleteSync, listSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/logger/logger.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"da36cd50c5d34df5f43579ef9d16fb64ef42ec8cb3174157252320ef52e50d61"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060getLogs\u0060 is async and calls listSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/logger/logger.dart"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"5144732e30f461aa62b03a6129a297c8c1cad1dec81985513870928c6e440aa7"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_addMergedLog\u0060 is async and calls deleteSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/logger/logger.dart"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b63ef56c1f6064a38907c8ed5817841a1d8da2c7f39581fd82b9ddb5b964bc5"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060init\u0060 is async and calls createSync, openSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/logger/outputs/rotating_file_output.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66bd24082c222cc039bc87087d72ecc70997b0f8c3aa5a639adde2936c93ab6"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha256.convert(\u2026)\u0060 from \u0060package:crypto\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/models/shared_name_and_photo.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"c71c7f544f06ea4dba47aef8f116ab9771065f409be9cce9e7c6fc98cb9e224a"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha256.convert(\u2026)\u0060 from \u0060package:crypto\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/crypto_utils.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fe6d063d89098ff393aa6726fc92ab2751561ecb0880848340d87a964857af"}},{"ruleId":"X1","level":"warning","message":{"text":"\u0060async\u0060 callback passed to \u0060forEach\u0060: \u0060forEach\u0060 takes a \u0060void\u0060 callback and never awaits what it returns, so the Future each \u0060async\u0060 call returns is dropped: nothing can await it, the code after this loop runs before any of the awaited work has finished (a function that \u0060await\u0060s around this loop still returns early, and a resource it closes next is closed under the work), and an error is never handled \u2014 it surfaces as an uncaught asynchronous error, which terminates a command-line program and reaches only the zone\u0027s error handler in Flutter. Iterate with \u0060for (final item in items) { await \u2026 }\u0060 when the work must run in order, or \u0060await Future.wait(items.map((item) async { \u2026 }))\u0060 when it may run concurrently, so the enclosing function finishes only when the work does and its failures reach the caller. Where firing and forgetting is genuinely intended, make the callback\u0027s whole body a \u0060try { \u2026 } catch (e) { \u2026 }\u0060 that handles the failure, so it cannot escape."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/global/settings.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"470c5f6b347f0e09d855e8c49a94a079291dc05f48ff34308aa1902643883281"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!HardwareKeyboard.instance.isShiftPressed \u0026\u0026 event.logicalKey == LogicalKeyboardKey.tab\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/chat_creator/chat_creator.dart, lib/app/layouts/chat_creator/widgets/recipient_chips_row.dart. 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":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6efeabde42337644b0a89710b7f3e6ec55c16422382de0ed98e280200b50cbd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!e.isGroup \u0026\u0026 e.handles.firstOrNull?.contactsV2.isEmpty != false\u0060 appears character-identically in 2 files \u2014 lib/helpers/types/extensions/extensions.dart, lib/services/ui/chat/chats_service.dart. 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":"lib/helpers/types/extensions/extensions.dart"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"171724b4471f711caedb280d0c5ee1160a8ea547afe58b0b72e91135607cbef0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!existing.didNotifyRecipient \u0026\u0026 newMessage.didNotifyRecipient\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7b60e497c9b2ecdb8368387dc2ca0b81fd5a381758d925a4ac0fd8a2dd88da"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!existing.hasAttachments \u0026\u0026 newMessage.hasAttachments\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ade4e9f878b4be8757ef0d9bb56cc214310b92a3907ac7b637a71df4ef3f891"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!existing.hasReactions \u0026\u0026 newMessage.hasReactions\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"f67f70f753c40961e4bb24d5979cc5f3ee50b6e31e29f2ade7fcd21bb8ff49c9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!existing.wasDeliveredQuietly \u0026\u0026 newMessage.wasDeliveredQuietly\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ea0528dabcf13c0d45da46e76e2aba6a266c5cadd774488bec56f3be03cd13"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isNullOrEmpty(data.userInfo?.imageTitle) || !isNullOrEmpty(data.userInfo?.imageSubtitle)\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/message/interactive/photo_slideshow.dart, lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart. 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":"lib/app/layouts/conversation_view/widgets/message/interactive/photo_slideshow.dart"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"51275501a11f8f9278fe3f32bd63d37323b90221fc96cfd54091d5c1b0b60a57"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isValidServerAddress(url) || password.isEmpty\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/setup/dialogs/manual_entry_dialog.dart, lib/app/layouts/setup/pages/sync/server_credentials.dart. 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":"lib/app/layouts/setup/dialogs/manual_entry_dialog.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d05a25c15ed32349ca1f0cee3fb809892da3f7d493a722f0d2763c652eaf4c9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!kIsWeb \u0026\u0026 !chat.isGroup \u0026\u0026 SettingsSvc.settings.enablePrivateAPI.value\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_details/material/material_chat_options.dart, lib/app/layouts/conversation_details/widgets/chat_options.dart. 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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b97ddd26653ae42e24b9c8eb5f8f61a8bb7459239aaefb0850d7e9c4703e563"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!kIsWeb \u0026\u0026 !kIsDesktop \u0026\u0026 SettingsSvc.settings.smartReply.value\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/pages/messages_view.dart, lib/helpers/ui/message_widget_helpers.dart. 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":"lib/app/layouts/conversation_view/pages/messages_view.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cbce0029bea3d5ae32f975282df9ccfd09c414b2f7e777b835c31a85fc73f11"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!showPlayPauseOverlay.value \u0026\u0026 !_hover.value\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart, lib/app/layouts/fullscreen_media/fullscreen_video.dart. 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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd39b480f342379f928729b2f158548f9bd3479f6a4846b7dc4de0b26f8d4101"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!widget.fullPage || _searchQuery.isEmpty\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart, lib/app/layouts/conversation_details/widgets/sections/links/links_section.dart. 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":"lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"28591091c4f54093dc3c33cf92917f20120dd5a4807463aef6d7835ffbdac6d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(existing._dateDelivered.value == null \u0026\u0026 newMessage._dateDelivered.value != null) || (existing._dateDelivered.value != null \u0026\u0026 newMessage.d\u2026\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"163041f11b730377063f259c6c9eb3bb2d1ee33a9d4033111bff6c9af6ec6c2a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(existing._dateRead.value == null \u0026\u0026 newMessage._dateRead.value != null) || (existing._dateRead.value != null \u0026\u0026 newMessage._dateRead.value \u2026\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef5b63867be23f450ce6ed350f562c57ea19cb0bc4274eb81d5c40dd30153eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(existing.dateCreated == null \u0026\u0026 newMessage.dateCreated != null) || (existing.dateCreated != null \u0026\u0026 newMessage.dateCreated != null \u0026\u0026 exist\u2026\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d40a0ff3db22a9952190d134ee265afb158e11ee8bb12d55d0c00b1a971ecd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(existing.dateDeleted == null \u0026\u0026 newMessage.dateDeleted != null) || (existing.dateDeleted != null \u0026\u0026 newMessage.dateDeleted != null \u0026\u0026 exist\u2026\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"e482645217027306068c2eeeff99ace5f5924869d9ab0919e513025c28af7bf6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(existing.datePlayed == null \u0026\u0026 newMessage.datePlayed != null) || (existing.datePlayed != null \u0026\u0026 newMessage.datePlayed != null \u0026\u0026 existing.\u2026\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aee94428ee7b622690bde3eb834033960727c613df1fa415c813b770e04afb5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(existing.hasDdResults == null \u0026\u0026 newMessage.hasDdResults != null) || (!existing.hasDdResults! \u0026\u0026 newMessage.hasDdResults!)\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"7984f8b7ddd99a1492b951eb936b0b496f830b47d660bf702cf6b4247484086c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ChatsSvc.loadedFirstChatBatch.value \u0026\u0026 ChatsSvc.isEmpty\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/settings/pages/system/notification_panel.dart, lib/app/layouts/settings/pages/theming/avatar/custom_avatar_panel.dart. 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":"lib/app/layouts/settings/pages/system/notification_panel.dart"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b5cffc1f688de957c0bb20e426fcb94001ae86638c167ab381d04488ee5770"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060SettingsSvc.settings.colorfulBubbles.value \u0026\u0026 !message.isFromMe!\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart, lib/app/layouts/conversation_view/widgets/message/text/text_bubble.dart. 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":"lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58deb969a4aaec853ae488b64714b87a4a56a49fae3eee137ffd4b0c5067cf2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060SettingsSvc.settings.enablePrivateAPI.value \u0026\u0026 chat.isIMessage\u0060 appears character-identically in 3 files \u2014 lib/app/layouts/conversation_details/material/chat_photo_actions.dart, lib/app/layouts/conversation_details/material/material_chat_header.dart, lib/app/layouts/conversation_details/widgets/chat_info.dart. 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":"lib/app/layouts/conversation_details/material/chat_photo_actions.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b69593b83fb3a3ecf8303dd4367ee77ae448a460398ff9df3682621523e08f3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060SettingsSvc.settings.enablePrivateAPI.value \u0026\u0026 chat.isIMessage \u0026\u0026 chat.isGroup\u0060 appears character-identically in 3 files \u2014 lib/app/layouts/conversation_details/material/chat_photo_actions.dart, lib/app/layouts/conversation_details/material/material_chat_header.dart, lib/app/layouts/conversation_details/material/material_participants_section.dart. 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":"lib/app/layouts/conversation_details/material/chat_photo_actions.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7e6c08dd8f5249331bc43535bd859329256f0aa2d7f4b6b0d98ab139306774"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060SettingsSvc.settings.redactedMode.value \u0026\u0026 SettingsSvc.settings.hideAttachments.value\u0060 appears character-identically in 6 files \u2014 lib/app/layouts/conversation_details/widgets/media_gallery_card.dart, lib/app/layouts/conversation_list/widgets/tile/pinned_tile_text_bubble.dart, lib/app/layouts/conversation_view/widgets/media_picker/attachment_picker_file.dart, lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart. 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":"lib/app/layouts/conversation_details/widgets/media_gallery_card.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e136058185429523e17512093c32fc0b37c38b11caf19c40eff8f9317a78b1c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060SettingsSvc.settings.redactedMode.value \u0026\u0026 SettingsSvc.settings.hideContactInfo.value\u0060 appears character-identically in 12 files \u2014 lib/app/components/avatars/contact_avatar_group_widget.dart, lib/app/components/avatars/contact_avatar_widget.dart, lib/app/layouts/chat_creator/widgets/chat_list_section.dart, lib/app/layouts/chat_creator/widgets/search_contact_tile.dart. 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":"lib/app/components/avatars/contact_avatar_group_widget.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5207e6e6ea24cfb1b499814ca543ed8a89f1087ecf32443cf524a093196074b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060SettingsSvc.settings.redactedMode.value \u0026\u0026 SettingsSvc.settings.hideMessageContent.value\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart, lib/app/state/message_state.dart. 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":"lib/app/layouts/settings/pages/advanced/redacted_mode_panel.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b2a15806b646823ce1dec07662b351542e8bc23eb544cd82daf6d9970a8a6a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060SettingsSvc.settings.sendWithReturn.value \u0026\u0026 !kIsWeb \u0026\u0026 !kIsDesktop\u0060 appears character-identically in 3 files \u2014 lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart, lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart, lib/app/layouts/conversation_view/widgets/text_field/text_field_component.dart. 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":"lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab6d17a08547f045b5a7b64ab6b28310aa817d74daf53c643acc0732caa54339"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060SettingsSvc.settings.skin.value != Skins.Samsung || kIsWeb || kIsDesktop\u0060 appears character-identically in 3 files \u2014 lib/app/layouts/findmy/findmy_page.dart, lib/app/layouts/settings/pages/system/notification_panel.dart, lib/app/layouts/settings/widgets/layout/settings_scaffold.dart. 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":"lib/app/layouts/findmy/findmy_page.dart"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd62c93f34d461b1a269ae607a94834c9572d421b21fe7e8d988cf388a8fea52"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060a!.isPinned! \u0026\u0026 b!.isPinned! \u0026\u0026 a.pinIndex != null \u0026\u0026 b.pinIndex != null\u0060 appears character-identically in 2 files \u2014 lib/database/html/chat.dart, lib/database/io/chat.dart. 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":"lib/database/html/chat.dart"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6f859df611e242b8a87ec02737dac6123715400c433668aafb48068c30e20b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060a.isPinned! \u0026\u0026 a.pinIndex != null \u0026\u0026 (!b.isPinned! || b.pinIndex == null)\u0060 appears character-identically in 2 files \u2014 lib/database/html/chat.dart, lib/database/io/chat.dart. 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":"lib/database/html/chat.dart"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0f60e6f9af8c18b5518052f78254cdc89a4740e942b80b0153a486c1f13a07"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060associatedMessageGuid != null \u0026\u0026 ReactionTypes.isReactionType(associatedMessageType)\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb83d04c172b2cfb2ca5b546b0cb2e5d5c98922152cb87eae662a5a98f29449"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060autoLaunchDuration != Duration.zero \u0026\u0026 (elapsedDuration - lastAutoLaunch \u003E= autoLaunchDuration || elapsedDuration == Duration.zero)\u0060 appears character-identically in 3 files \u2014 lib/app/animations/balloon_classes.dart, lib/app/animations/fireworks_classes.dart, lib/app/animations/laser_classes.dart. 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":"lib/app/animations/balloon_classes.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"9957ed09983a76ecce158b1e803ab380aa191d64a5f403b654d185ece208cca8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060b!.isPinned! \u0026\u0026 b.pinIndex != null \u0026\u0026 (!a.isPinned! || a.pinIndex == null)\u0060 appears character-identically in 2 files \u2014 lib/database/html/chat.dart, lib/database/io/chat.dart. 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":"lib/database/html/chat.dart"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5dbc39c26e7b0d131a4694b6a54a6869e56ca09c64f6731f2f8863adf25866"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060balloonBundleId != null \u0026\u0026 !isLegacyUrlPreview\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee8770bebb4a24b1fd1ba83b7d7545ed869c2ef2dd47e81f88939a4f805cd4c0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060balloonBundleId == \u0022com.apple.messages.URLBalloonProvider\u0022 \u0026\u0026 hasDdResults!\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfaec43a263689a8ae3f9e437f34b1573fd4304bd6c8c5499c3c0affd484d2f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060chat.people.length \u003E 2 \u0026\u0026 SettingsSvc.settings.enablePrivateAPI.value \u0026\u0026 SettingsSvc.serverDetails.supportsGroupChatManagement\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_details/material/material_chat_options.dart, lib/app/layouts/conversation_details/widgets/chat_options.dart. 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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05f0bc08056b74afa817fd3c2147712c12d8ee6786f16594be0fbebce0372d7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060checkDeleted \u0026\u0026 existingChat?.dateDeleted != null\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/chat_creator/chat_creator.dart, lib/app/layouts/chat_creator/chat_creator_controller.dart. 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":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d4050422fcf71a3700cacf71865aea1fc4b40610e0c9ebcfb2417499fde96e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060checkForMessageText \u0026\u0026 changeUnreadStatus \u0026\u0026 isNewer\u0060 appears character-identically in 3 files \u2014 lib/database/html/chat.dart, lib/database/io/chat.dart, lib/services/ui/chat/chats_service.dart. 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":"lib/database/html/chat.dart"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b647cc9dd443931b17e549635b6687255134ded1a13ac08b9afc3ed17db3f2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060completer != null \u0026\u0026 !completer!.isCompleted\u0060 appears character-identically in 6 files \u2014 lib/services/backend/sync/chat_sync_manager.dart, lib/services/backend/sync/full_sync_manager.dart, lib/services/backend/sync/handle_sync_manager.dart, lib/services/backend/sync/incremental_sync_manager.dart. 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":"lib/services/backend/sync/chat_sync_manager.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e1db3c895386a6a38ccce3addafdb637534523a0f1e6b42945f2375b135bc0d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060content is PlatformFile \u0026\u0026 content.bytes != null\u0060 appears character-identically in 3 files \u2014 lib/app/layouts/conversation_view/widgets/message/interactive/game_pigeon.dart, lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart, lib/app/layouts/conversation_view/widgets/message/interactive/unsupported_interactive.dart. 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":"lib/app/layouts/conversation_view/widgets/message/interactive/game_pigeon.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef0e2a5c31a2567c7c374ce04a426e4d506e8a2ad1be7cd0e50e84448cc394e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060content is PlatformFile \u0026\u0026 content.bytes == null \u0026\u0026 content.path != null\u0060 appears character-identically in 3 files \u2014 lib/app/layouts/conversation_view/widgets/message/interactive/game_pigeon.dart, lib/app/layouts/conversation_view/widgets/message/interactive/supported_interactive.dart, lib/app/layouts/conversation_view/widgets/message/interactive/unsupported_interactive.dart. 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":"lib/app/layouts/conversation_view/widgets/message/interactive/game_pigeon.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5f44f492eb02589d78271e8582e8acf063cc80e76440ba882b3c7dfd4f6a026"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060context.orientation == Orientation.landscape \u0026\u0026 Platform.isAndroid\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart, lib/app/layouts/conversation_view/widgets/header/shared/header_components.dart. 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":"lib/app/layouts/conversation_view/widgets/header/cupertino_header.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"318c8ff5cfbaa4243ec0f006fa5609bbd8cbc12dfd01376e1cbf27057591ddc6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060controller.loadingAccounts.value \u0026\u0026 controller.accounts.isEmpty\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/settings/pages/contacts/cupertino_contacts_management_panel.dart, lib/app/layouts/settings/pages/contacts/widgets/contacts_expressive_body.dart. 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":"lib/app/layouts/settings/pages/contacts/cupertino_contacts_management_panel.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"5959412a6e30521d6e486149e8eb1781cbbf63c8660dae70f28ba9d78904621a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060controller.needsManualLoad.value \u0026\u0026 !inReply\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/message/interactive/cupertino_url_preview.dart, lib/app/layouts/conversation_view/widgets/message/interactive/expressive_url_preview.dart. 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":"lib/app/layouts/conversation_view/widgets/message/interactive/cupertino_url_preview.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b349f761873567121433a5bfd4082a2c3a20355a608af6840e2eb860078fe3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060controller.refreshRunning.value || controller.loading.value\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/message/interactive/cupertino_url_preview.dart, lib/app/layouts/conversation_view/widgets/message/interactive/expressive_url_preview.dart. 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":"lib/app/layouts/conversation_view/widgets/message/interactive/cupertino_url_preview.dart"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a969a10548eed7082cd8695860962ef3ab6954edbf940cfd664ead9b4d1d916"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060controller.shouldHighlight.value || controller.shouldPartialHighlight.value\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart, lib/app/layouts/conversation_list/widgets/tile/pinned_conversation_tile.dart. 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":"lib/app/layouts/conversation_list/widgets/tile/cupertino_conversation_tile.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da047095c68c55425cf977d7b8433a634e47341d88118cb8aeaad25d5ce9ea1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060controller.shouldHighlight.value || unread\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart, lib/app/layouts/conversation_list/widgets/tile/samsung_conversation_tile.dart. 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":"lib/app/layouts/conversation_list/widgets/tile/material_conversation_tile.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ee03cf8855158d7cb045a4d86cb096c811f533ef6e9b8f0f5a02378f09b477"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060controller.showArchivedChats || controller.showUnknownSenders\u0060 appears character-identically in 3 files \u2014 lib/app/layouts/conversation_list/pages/conversation_list.dart, lib/app/layouts/conversation_list/pages/material_conversation_list.dart, lib/app/layouts/conversation_list/pages/samsung_conversation_list.dart. 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":"lib/app/layouts/conversation_list/pages/conversation_list.dart"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39641560e957a4584bbb54f71f4793325f94c571e9d8b4d3c066fed69fc4ee9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentTheme.name == \u0022Music Theme \u2600\u0022 || currentTheme.name == \u0022Music Theme \uD83C\uDF19\u0022\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart, lib/app/layouts/settings/pages/theming/theming_panel.dart. 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":"lib/app/layouts/settings/pages/theming/advanced/advanced_theming_content.dart"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"349dbac093c2db22c5fcdaabab5ed5b5ae7d4e46b8ba39fbd7effe94b60eecb0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.guid != null \u0026\u0026 [\u0022image/png\u0022, \u0022image/jpg\u0022, \u0022image/jpeg\u0022].contains(e.mimeType)\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_details/material/material_chat_options.dart, lib/app/layouts/conversation_details/widgets/chat_options.dart. 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":"lib/app/layouts/conversation_details/material/material_chat_options.dart"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfcac1509f8be9fbe378d4d65f113d10fd613b22ee39765355087d56a126960"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.isGroup || (!e.isGroup \u0026\u0026 e.handles.firstOrNull?.contactsV2.isNotEmpty == true)\u0060 appears character-identically in 2 files \u2014 lib/helpers/types/extensions/extensions.dart, lib/services/ui/chat/chats_service.dart. 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":"lib/helpers/types/extensions/extensions.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4d14677039a981fef5629fe36322515107d7cc4516f7089e785d62d5ccc0707"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ev.logicalKey == LogicalKeyboardKey.enter \u0026\u0026 !HardwareKeyboard.instance.isShiftPressed\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart, lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart. 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":"lib/app/layouts/conversation_view/widgets/message/misc/message_edit_field.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f13112388758d8f1ec4f58dd70bb75901ff3c0f7f58479e7114e739b3675497"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event is KeyDownEvent \u0026\u0026 !HardwareKeyboard.instance.isShiftPressed \u0026\u0026 event.logicalKey == LogicalKeyboardKey.tab\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/settings/pages/server/backup_restore_panel.dart, lib/app/layouts/setup/dialogs/manual_entry_dialog.dart. 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":"lib/app/layouts/settings/pages/server/backup_restore_panel.dart"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"35244c42205c375e5b8a611cb7927a26203aaf54ebda28ec83db5dca0a9ad220"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event is KeyDownEvent \u0026\u0026 HardwareKeyboard.instance.isShiftPressed \u0026\u0026 event.logicalKey == LogicalKeyboardKey.tab\u0060 appears character-identically in 4 files \u2014 lib/app/layouts/chat_creator/chat_creator.dart, lib/app/layouts/chat_creator/new_chat_creator.dart, lib/app/layouts/settings/pages/server/backup_restore_panel.dart, lib/app/layouts/setup/dialogs/manual_entry_dialog.dart. 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":"lib/app/layouts/chat_creator/chat_creator.dart"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b4bf9d91e0031dfab7373bfb748ffdb641108c4f3118c734a1d90daa422ea38"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060existing.dbAttachments.isEmpty \u0026\u0026 newMessage.dbAttachments.isNotEmpty\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"a012d4fa7634cd456f5f640a48cb20bb8a999777fee08b5504f92340fe2feda8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060existing.originalROWID == null \u0026\u0026 newMessage.originalROWID != null\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e507053970a17a816408214a1a945fabad8abf62ff16d5b16f3d3527499aa99"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fetching.value == null || fetching.value == true || (fetching.value == false \u0026\u0026 scheduled.isEmpty)\u0060 appears character-identically in 3 files \u2014 lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart, lib/app/layouts/settings/pages/scheduling/material_scheduled_messages_panel.dart, lib/app/layouts/settings/pages/scheduling/samsung_scheduled_messages_panel.dart. 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":"lib/app/layouts/settings/pages/scheduling/cupertino_scheduled_messages_panel.dart"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"73043566c8973f374957a774d7c6e908b8a3b741ac750ed0183162adb11d3d99"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060getLineType(olderMessage, threadOriginator) == LineType.meToOther || getLineType(olderMessage, threadOriginator) == LineType.otherToOther\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"2471bda5ef169c97d21816b46111a49d0d379409f292f5b3de5051803604abf6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060identical(this, other) || other is ThemeObject \u0026\u0026 runtimeType == other.runtimeType \u0026\u0026 name == other.name\u0060 appears character-identically in 2 files \u2014 lib/database/html/theme_object.dart, lib/database/io/theme_object.dart. 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":"lib/database/html/theme_object.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f839534ad2a80d8f959d72e7b7ba21006189cc9fc6ef634e3cced09f2c94cb5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060index == maxAvatars - 1 \u0026\u0026 participants.length \u003E maxAvatars\u0060 appears character-identically in 2 files \u2014 lib/app/components/avatars/contact_avatar_group_widget.dart, lib/helpers/ui/ui_helpers.dart. 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":"lib/app/components/avatars/contact_avatar_group_widget.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcaf61fa74a885aef4dd5936c0b64a05bc6d0de973ff193c020da5c23b5a1d2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060inputMessage.associatedMessageType != null \u0026\u0026 inputMessage.isReaction\u0060 appears character-identically in 2 files \u2014 lib/services/backend/actions/chat_actions.dart, lib/services/backend/actions/message_actions.dart. 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":"lib/services/backend/actions/chat_actions.dart"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7cdb1d87ee4abf65b13a239aa50af0f1096b9ba00bcf19165845461f58151f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isFromMe! \u0026\u0026 isFromMe == other?.isFromMe\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"0db25d2e89d00390d97b3e07eecd5c207b62a6ef7049caa803a12e45bd563b0c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isFromMe! || handleRelation.target == null\u0060 appears character-identically in 2 files \u2014 lib/database/io/message.dart, lib/helpers/types/extensions/extensions.dart. 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":"lib/database/io/message.dart"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eb4a4f1be63c9de482e26086e71e306f63b0e26ec45ed3b7de0faed63f5809c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isGroupEvent \u0026\u0026 ((itemType == 1 \u0026\u0026 [0, 1].contains(groupActionType)) || [2, 3].contains(itemType))\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"284e92653e9209989ea322557736a66e49e6d758b19317d6f25f83d985407e99"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060json[\u0022uti\u0022] == \u0022com.apple.coreaudio_format\u0022 || json[\u0027transferName\u0027].toString().endsWith(\u0022.caf\u0022)\u0060 appears character-identically in 2 files \u2014 lib/database/html/attachment.dart, lib/database/io/attachment.dart. 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":"lib/database/html/attachment.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb617116c168a3e5a960cfd289579933c7626614f193feef2e309c23057ca938"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060json[\u0027hasApplePayloadData\u0027] == true || payloadData != null\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"649941ad7ae3cb17ab0aa4e4eddefd1934896f783b241ef2ddebf0f004509c92"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kIsDesktop \u0026\u0026 SettingsSvc.settings.windowEffect.value != WindowEffect.disabled\u0060 appears character-identically in 4 files \u2014 lib/app/layouts/conversation_view/widgets/effects/send_effect_picker.dart, lib/app/layouts/conversation_view/widgets/header/material_header.dart, lib/app/layouts/conversation_view/widgets/message/popup/message_popup.dart, lib/app/layouts/conversation_view/widgets/message/reply/reply_thread_popup.dart. 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":"lib/app/layouts/conversation_view/widgets/effects/send_effect_picker.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"57fc79108a4ec92f72d5a7da8826192efd2a050d40a2954a5996ea1e618ce0f5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060kIsWeb || defaultTargetPlatform != TargetPlatform.android\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart, lib/app/layouts/fullscreen_media/fullscreen_video.dart. 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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"3baa5dadb5c46a0b661b2f8c2ab1b2f6f95a100887b6e81af8cb5c64ca68071c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.hasApplePayloadData || message.isLegacyUrlPreview || message.isInteractive\u0060 appears character-identically in 4 files \u2014 lib/app/layouts/conversation_view/widgets/message/misc/message_part_content.dart, lib/app/layouts/conversation_view/widgets/message/parts/message_part_wrapper.dart, lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart, lib/app/state/message_state.dart. 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":"lib/app/layouts/conversation_view/widgets/message/misc/message_part_content.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b3ff2cb5712df39a0e8f1b898e7822408ee338e5de4494d7b76318914fb2b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.isParticipantEvent \u0026\u0026 checkForMessageText\u0060 appears character-identically in 2 files \u2014 lib/database/html/chat.dart, lib/database/io/chat.dart. 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":"lib/database/html/chat.dart"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"7620538a1992d92488cb66080ebd2d89f3892a76197a9b9bb99dca2c562a1443"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060metadata is String \u0026\u0026 metadata.isNotEmpty\u0060 appears character-identically in 2 files \u2014 lib/database/html/attachment.dart, lib/database/io/attachment.dart. 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":"lib/database/html/attachment.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4c40462085cce12d69381bc15775281c387b9ee21fe4b546e48e94c5b9fbcd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mimeStart == \u0022image\u0022 \u0026\u0026 !mimeType!.contains(\u0022gif\u0022)\u0060 appears character-identically in 2 files \u2014 lib/database/html/attachment.dart, lib/database/io/attachment.dart. 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":"lib/database/html/attachment.dart"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"7326b60551a12136e6672299dec42df99ca761d5a24e6b185fecd8f1f2667779"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name == \u0022OLED Dark\u0022 || name == \u0022Bright White\u0022 || name == \u0022Nord Theme\u0022 || name == \u0022Music Theme (Light)\u0022 || name == \u0022Music Theme (Dark)\u0022\u0060 appears character-identically in 2 files \u2014 lib/database/html/theme_object.dart, lib/database/io/theme_object.dart. 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":"lib/database/html/theme_object.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba17640e293dbd7162dc18b477b2f2d6cb101a6904110bb290c6db2f69ffd040"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060name == null || name.isEmpty || !mounted\u0060 appears character-identically in 3 files \u2014 lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart, lib/app/layouts/settings/pages/custom_groups/material_custom_groups_panel.dart, lib/app/layouts/settings/pages/custom_groups/samsung_custom_groups_panel.dart. 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":"lib/app/layouts/settings/pages/custom_groups/cupertino_custom_groups_panel.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddce2d9b5316ab43d95fd371e6adc3846ad8213114aac6cbdc900eacf6a92410"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060newerMessage == null || newerMessage.threadOriginatorGuid != threadOriginatorGuid\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18b70474959e69a0d93c7094e2767a2034ff5e9d5f701e3233694f1577b66c5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060oldDir.existsSync() \u0026\u0026 !newDir.existsSync()\u0060 appears character-identically in 2 files \u2014 lib/services/backend/outgoing_message_handler.dart, lib/services/ui/message/messages_service.dart. 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":"lib/services/backend/outgoing_message_handler.dart"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af112315f9840c980193606e86393167520174155597d4c462ebf9fb66082b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060oldWidget.fullPage != widget.fullPage || oldWidget.filters != widget.filters\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart, lib/app/layouts/conversation_details/widgets/sections/locations/locations_section.dart. 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":"lib/app/layouts/conversation_details/widgets/sections/documents/documents_section.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1d1b669f9dc849e5c63f052c632c4eb005b5098081127a0e240f4dfa0c9e0e5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060olderMessage == null || (olderMessage.threadOriginatorGuid != threadOriginatorGuid \u0026\u0026 !upperIsThreadOriginatorBubble(olderMessage))\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71b3a2752fb11b019507a13ea9cce5485cd12d2edaf6b030eb1fe094ee1e0ba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060other is ThemeStruct \u0026\u0026 name == other.name\u0060 appears character-identically in 2 files \u2014 lib/database/html/theme.dart, lib/database/io/theme.dart. 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":"lib/database/html/theme.dart"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"d051969930e1816aa7119b2750d9ec0a86cd3f1bccda98fcff7c3d9e1ad8eeb3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060otherHandle != null \u0026\u0026 isParticipantEvent\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd2ed3aebe35bfeb93a5d846092bfbfb8925155e2ebf4c715585f864cf0fed4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060projectID == null || storageBucket == null || apiKey == null || clientID == null || applicationID == null\u0060 appears character-identically in 2 files \u2014 lib/database/html/fcm_data.dart, lib/database/io/fcm_data.dart. 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":"lib/database/html/fcm_data.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"095d54e8ce8265efbb1a63ef13706ccdc987013fd86585ac0ee007ffe284d780"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060redacted \u0026\u0026 SettingsSvc.settings.hideContactInfo.value\u0060 appears character-identically in 4 files \u2014 lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart, lib/app/layouts/conversation_view/widgets/text_field/reply_holder.dart, lib/app/state/chat_state.dart, lib/services/ui/chat/chats_service.dart. 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":"lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff765565b4f28892138f4a5334ecb36f4c865068a51099ae7f0aade7ea6bf2c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060redacted \u0026\u0026 SettingsSvc.settings.hideMessageContent.value\u0060 appears character-identically in 4 files \u2014 lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart, lib/app/layouts/conversation_view/widgets/text_field/reply_holder.dart, lib/app/state/chat_state.dart, lib/services/ui/chat/chats_service.dart. 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":"lib/app/layouts/conversation_view/widgets/message/reply/reply_bubble.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"089cf7daaa8a810077dc36c34b31517abd2c86c13aa5dcd59d5cf51a81c3d721"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.statusCode == 200 \u0026\u0026 !isNullOrEmpty(response.data[\u0027data\u0027])\u0060 appears character-identically in 2 files \u2014 lib/services/backend/actions/contact_v2_actions.dart, lib/services/ui/contact_service_v2.dart. 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":"lib/services/backend/actions/contact_v2_actions.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"061d3f15572b1aaba3ffca21fd59b86efd9d08eb1b3113589e9561ccd0769c5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.statusCode == 200 \u0026\u0026 response.data != null\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart, lib/app/layouts/settings/pages/scheduling/create_scheduled_mixin.dart. 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":"lib/app/layouts/conversation_view/widgets/text_field/conversation_text_field.dart"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40582de528e8115ae81629f487828e006a03dfecde8bbda51142ea122ada1eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.statusCode == 200 \u0026\u0026 response.data[\u0022data\u0022] != null\u0060 appears character-identically in 3 files \u2014 lib/database/io/chat.dart, lib/services/backend/sync/incremental_sync_manager.dart, lib/services/ui/chat/chats_service.dart. 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":"lib/database/io/chat.dart"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a2b0a74eb56f5a7cb1ea43bafc396d84b6bac9d72c66cf9f83219528b7e901"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.statusCode == 200 \u0026\u0026 response.data[\u0027data\u0027] != null\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/findmy/findmy_controller.dart, lib/app/layouts/settings/pages/scheduling/scheduled_messages_mixin.dart. 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":"lib/app/layouts/findmy/findmy_controller.dart"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe7605ebb29c6fd167426cd76f554047069fac06f8db2d409c9b477d5ffd696"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060screenSelected == \u0022balloons\u0022 \u0026\u0026 !balloonController.isPlaying\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart, lib/app/layouts/conversation_view/widgets/effects/send_effect_picker.dart. 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":"lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa808a724dd8ee7a99fd6359f377554807e3881340e987a2423ee2eab91a2a27"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060screenSelected == \u0022celebration\u0022 \u0026\u0026 !celebrationController.isPlaying\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart, lib/app/layouts/conversation_view/widgets/effects/send_effect_picker.dart. 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":"lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c80fcbf2f7d3cc319b2dba7ad87167da3a2065bf20db97067e11d108c924d14"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060screenSelected == \u0022fireworks\u0022 \u0026\u0026 !fireworkController.isPlaying\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart, lib/app/layouts/conversation_view/widgets/effects/send_effect_picker.dart. 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":"lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"530e310a1c97a38d732256b5f683f190b43377d4c418830115152efbabbec63d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060screenSelected == \u0022lasers\u0022 \u0026\u0026 !laserController.isPlaying\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart, lib/app/layouts/conversation_view/widgets/effects/send_effect_picker.dart. 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":"lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"411c112e5b8b7f563223df4abca4c39e8d2024b887dcdb4aab9ae50a6c194efb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060screenSelected == \u0022love\u0022 \u0026\u0026 !loveController.isPlaying\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart, lib/app/layouts/conversation_view/widgets/effects/send_effect_picker.dart. 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":"lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e8779f0eb3f898b6dc5255b1ad87b14437e03d15c21d806cd840626888ae09c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060screenSelected == \u0022spotlight\u0022 \u0026\u0026 !spotlightController.isPlaying\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart, lib/app/layouts/conversation_view/widgets/effects/send_effect_picker.dart. 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":"lib/app/layouts/conversation_view/widgets/effects/screen_effects_widget.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c24e21bb95f5a43c727cdf14eb31d16fa5c75f990f3ed12e0fb07ef4203fed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060triedConnecting[index].value \u0026\u0026 reachable[index].value\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/settings/pages/server/oauth_panel.dart, lib/app/layouts/setup/pages/sync/server_credentials.dart. 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":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c8f922e80e35eef9f86b8cf5fc2e47c973ba24953891c9e6229794d306fab9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060upperIsThreadOriginatorBubble(olderMessage) || (!threadOriginator.isFromMe! \u0026\u0026 isFromMe!) || getLineType(olderMessage, threadOriginator) == \u2026\u0060 appears character-identically in 2 files \u2014 lib/database/html/message.dart, lib/database/io/message.dart. 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":"lib/database/html/message.dart"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bc4262d76a45b91649744b6d58720f7a892ab9f5154a47d04624b6309906c3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value == meta.max || (value != 0 \u0026\u0026 value % meta.appliedInterval != 0)\u0060 appears character-identically in 2 files \u2014 lib/app/layouts/conversation_details/pages/chat_stats/widgets/charts/bar_chart.dart, lib/app/layouts/conversation_details/pages/chat_stats/widgets/charts/line_chart.dart. 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":"lib/app/layouts/conversation_details/pages/chat_stats/widgets/charts/bar_chart.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f49a8665c616f260704ed67ae4e1348e7b6e7cd4d9a30a8a203500d9eeac670"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a CancelToken: Only 89/96 functions that make a cancellable request (Dio, AbortableRequest) accept a CancelToken or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a screen navigated away from, a disposed widget, a superseded search. Take a \u0060CancelToken? cancelToken\u0060 and hand it to the request as \u0060cancelToken:\u0060 (or hold one and cancel it in \u0060dispose\u0060); where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"767a6f188a93a9fdcf866e430f9755aeab7ca6acdd21a1a80f8ac4ef4cc6cf7c"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: getFirebaseProjects: \u0060getFirebaseProjects\u0060 calls \u0060dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network/api/firebase_api.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8a4657c091414f7d226b1d24e50de495b2a6325e9309e48b630414091815c0"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: getGoogleInfo: \u0060getGoogleInfo\u0060 calls \u0060dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network/api/firebase_api.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"121e828dbb1a7bfd20741f8815b050c8a7a30ced3167192a3899d02d500bfe4a"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: getServerUrlRTDB: \u0060getServerUrlRTDB\u0060 calls \u0060dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network/api/firebase_api.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc35fce297de0dba6a69f2b683c77d31910d1b90b43024883cd99862720f08ac"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: getServerUrlCF: \u0060getServerUrlCF\u0060 calls \u0060dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network/api/firebase_api.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8dadc98398272fa723a75daf73a666c504157e7b58c2ad5771b2336452c494b"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: setRestartDateCF: \u0060setRestartDateCF\u0060 calls \u0060dio.patch(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/network/api/firebase_api.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"328755b28c4d0fc4dcfa60f102ead4ec137056e3a71abc06fbb5c366babd293a"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _isReleaseInStore: \u0060_isReleaseInStore\u0060 calls \u0060dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/settings/settings_service.dart"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cadc04fe909cb2cbd16f769dea351451cbf72f234242c725c00a07819a6dd0"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _pasteAttachments: \u0060_pasteAttachments\u0060 calls \u0060dio.get(\u2026)\u0060 but takes no CancelToken and hands the request none its caller can reach, so its caller cannot cancel the request once it has started. Take \u0060CancelToken? cancelToken\u0060 and pass it on as \u0060cancelToken: cancelToken\u0060 \u2014 or, in a widget\u0027s State or a notifier, hold one and cancel it in \u0060dispose\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_view/widgets/text_field/handlers/clipboard_paste_handler.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7d99ed49bbfaa1ea3a7788adba0dccadc4980dfc328fa25a90dbead824c163"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 36 is called with an argument built by \u0060excludedIds.join(\u0027\u2026\u0027)\u0060 (line 38), whose cost grows with the collection it walks. Dart evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLoggable\u0060 test, no \u0060kDebugMode\u0060 or debug flag, no \u0060assert\u0060, no closure the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/cache/app_caches.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46c607dad86ee2e6d83094bb8bd36deb69f65e858714440a7e0060518f7359e"}},{"ruleId":"X23","level":"note","message":{"text":"Diagnostic log message is built whether or not it is wanted: \u0060debug\u0060 at line 184 is called with an argument built by \u0060values.fold(0, (a, b) =\u003E a \u002B b.length)\u0060 (line 185), whose cost grows with the collection it walks. Dart evaluates a call\u0027s arguments BEFORE entering the method, so that join/projection runs in full every time this line is reached \u2014 and then the level check inside the logger discards the string it produced, because debug is a level a shipped configuration normally leaves off. Nothing here decides beforehand whether the message is wanted: no \u0060isLoggable\u0060 test, no \u0060kDebugMode\u0060 or debug flag, no \u0060assert\u0060, no closure the logger calls only when the level is on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/conversation_details/pages/chat_stats/chat_stats_controller.dart"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76e1a0adc47f9f344cb4161896432a61038ef4aed2a580c1827a8192bdc3e56"}},{"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":"lib/main.dart"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"953015bd178e74f832d5d015e09a1a463a36bc9b8d89e703f89e6212920a0426"}},{"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":"lib/main.dart"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0548f2012a56cc1d9a7fe87f2498d2fcc135ef0d0bc785c67f4f579a832fd5"}},{"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":"lib/main.dart"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c23032b050ce581321c0324ec240502d4c5324ab64c659db9b335b3d585e1b8"}},{"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":"lib/utils/logger/logger.dart"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"b702073ee1a8db146a7ae221295d9328075d30173b931caeff8b370b244353c0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/logger/outputs/rotating_file_output.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b991880b9d3c5e3faee12113f170b9825d6189075626bbc4fe711426b01c8aa8"}},{"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":"lib/utils/logger/outputs/rotating_file_output.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"708adc999f281cbb5ab6200ec5d8ce68ecb3e5dfec101c2bcd91f950c53401f3"}},{"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":"lib/utils/logger/outputs/rotating_file_output.dart"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"c925f38378489e915946e28b2b39be9f3827adac786bbefe905a2a8222e082b6"}},{"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":"lib/utils/logger/outputs/rotating_file_output.dart"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f3f825c462b8615fee3ecff516c9d85fa5a75706a9506fcb17727545669eca"}},{"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":"lib/utils/logger/outputs/rotating_file_output.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a104f57b1cb5b263bb70f0d02b52dfffa19a57a322fa0431262a260e46bc2b67"}},{"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":"lib/utils/logger/outputs/rotating_file_output.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c72c8faed840d3ed3287b3b42d33eeedf26170afc308523ed9c055433de74f"}},{"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":"lib/utils/logger/outputs/rotating_file_output.dart"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b79098068dc55ea9ab17960553048cf56f8317bf045c402588e221b52fd2d7"}},{"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":"lib/services/ui/attachments_service.dart"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76501780c22c2a142e9ccd37b098965f7f5bb85619075a1e2a13c7cb2bc820f"}},{"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":"lib/services/ui/attachments_service.dart"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d55fd0ac843a3ad5fb0aa7adf6dde2fd6882057415ca9b287ace57d2d2e59e"}},{"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":"lib/services/ui/attachments_service.dart"},"region":{"startLine":1036}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c0fbc1994978156df2d5fbb66cd731b057fc11933382d3ebcc6c53a17bf1e5a"}},{"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":"lib/services/ui/attachments_service.dart"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"2226fe20c7c06dc1181c5cc24bef50ddda893e278fdcad1321b23833714ae4c8"}},{"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":"lib/services/ui/contact_service_v2.dart"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"574ce87d5c6e2697147c1efe3d8232ca634f997d04add736ab270ab45ccb2550"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/ui/message/messages_service.dart"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfdc7b8780cf7ab2d4fa1a44c12bfe7917991158a077121059b802df1993539b"}},{"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":"lib/services/ui/chat/chats_service.dart"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"eccf709af54591e3807596a3b1dc221e69364e3e697baf2d36baf501d98db3fc"}},{"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":"lib/services/network/downloads_service.dart"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"04cc0e9b393fbe330bffb1168414abd520543949704f9da3452f97027e7a2933"}},{"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":"lib/services/network/socket_service.dart"},"region":{"startLine":630}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a1f8fb76b1096626374609eba9f7117a4bc65a9670a9d92a0ba6d798dd7200"}},{"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":"lib/services/backend/settings/settings_service.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b621af43d4a266b01149672e7e207d10a31104f0d276b1084f306fd3952253"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/notifications/desktop_notification.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a82815cd7ff2137f652644b33c3749d394eff118d4b216f4815bcd13a95f6f86"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/notifications/desktop_notification.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb0e4754236891fe6b3c842593243894cff9baf8f3e2ef836b30f0e390e1d98"}},{"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":"lib/services/backend/java_dart_interop/method_channel_service.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab367603e8a1a853980c20facc91b883b4eac8a09597e75b89e1af6e06dde70a"}},{"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":"lib/services/backend/actions/contact_v2_actions.dart"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"65dc219485668ddc050858d8866727772fd0b98487379c232cde3b67616d1c2c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/actions/image_actions.dart"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"064a9dddcb5fe1b0ed6f0fd42bed9d20b66d5416a4a0c1d53cd6622c44ae834e"}},{"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":"lib/helpers/types/helpers/contact_helpers.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"b69d143045b13edfddd5e0df8184f07dfc30f33cd7a7acb743298f0e021a2c0b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/network/metadata/url_metadata_fetcher.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09a830f9a5a894966037beeb8ae51405ff0cfbbb873272a98faa073fd9b0c27"}},{"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":"lib/helpers/network/metadata/network/preview_image_downloader.dart"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3eb53ed93e54938def90790a8d8d8b0e73e5d62b7cfcfd56e3b49331df91e92"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/helpers/network/metadata/network/preview_image_downloader.dart"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"e687bc748085e723c370192167023b194fda3409759cf8a35ebb11f44a9ba101"}},{"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":"lib/database/io/attachment.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a49bda0ec94655a641bdb1c60e9ce82db2cfd2f207cfdf9361dd9850b7daa97"}},{"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":"lib/database/io/attachment.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0652ae781676d3b8ba0bb48655488dd83110d64bf4715703198a35e1e9cb05"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/io/attachment.dart"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"58fa4a53c477b751cd53dd6d1dc8780f87765a9218acea0a104f77dde2ea84a5"}},{"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":"lib/database/io/message.dart"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"427b953c87d6abdfe686c20ea4e1c1505da12d031e95af8f7354f548e1553d69"}},{"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":"lib/database/html/attachment.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"794eb7c414d6f092c1adaa1285d67a00aeb559248c1ac6b2c2c7e9b15a023928"}},{"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":"lib/database/html/attachment.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e740cade13bdd4037b537ec0c9a0baefbb3d41caf5327c6890a89bafea796f92"}},{"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":"lib/database/html/chat.dart"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a847487b21baaa55eea3832af80b3aea4ded19b5ded3f6393b50b293ef8092"}},{"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":"lib/database/html/message.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27ca852ebf9198676853adaf70872aa7caeb3c4bc0cc41c52c21cad03c4f7f9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/database/global/isolate.dart"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f83e1508efd009fd725d94191f3bb7711cc0d20826e4f1f258937a3e50fa37a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\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":"lib/database/global/settings.dart"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f8e1e2764785ac19329bad0bb036fb0297dcc484c191fee4242a5c799997e3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\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":"lib/app/layouts/setup/pages/sync/server_credentials.dart"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f4b81dd968dd306db1280e30411381c2b30ffb76ffbf86887ceca8199e2142"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/theming/theme_studio/theme_studio_panel.dart"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"369489407ec2dee61f9412bf1e022c4d9e1dc9f5654a2535a0653b7ec9e0991e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\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":"lib/app/layouts/settings/pages/server/oauth_panel.dart"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f6fcdb142d897e9780323b6976072ff28cb60c5f3301a9e42c488f9194bf61"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/server_management_panel.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca444594a28bfeb6fe503dcc0e781d4176f6e33a0801189de0fade25831b15a3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/server_management_panel.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"78081a1257e8f84fdb3497346dc85ac640e57daeccccd4e859188ce30a91ecb7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/server/server_management_panel.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ea8e86cbf63a469444b7aa41f6e78b39536416f88a7396b5a6b9292bcfc60e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\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":"lib/app/layouts/settings/pages/server/connection_panel/connection_panel_helpers.dart"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb04210e7216330a5ace765326c862244cf28e3e3a42ec69c22928a2f4d710b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/layouts/settings/pages/misc/cache_tuning_panel.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"9305c5f184cea9fe0f732bef098ee958fb5d44311e6024f219716852b9eb8d19"}},{"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":"lib/app/layouts/settings/pages/misc/troubleshoot_panel.dart"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc5b012805b8402d094031e5baca922a7256524b85aa595f492e80a96a4bdbad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (ex)\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":"lib/app/layouts/conversation_view/widgets/text_field/picked_attachment.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"babc9a62c06dfd2e94bb5ff30bf2a2102a0cd5d3e43d55a42b6e2a742acd61db"}},{"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":"lib/app/layouts/conversation_view/widgets/message/attachment/contact_card.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f8826172eb008bb3795108dbbad3bade1dcecb455895edb27ea5614a73347b"}},{"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":"lib/app/layouts/conversation_view/widgets/message/attachment/video_player.dart"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ab1e30506fbf09ad554e2d71270038b46220ee9f6455526e4c63ea2fe57bb5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (ex)\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":"lib/app/layouts/conversation_details/widgets/media_gallery_card.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc7a4b40e56d72f6c659fb67ca7bcc7fa08c34fd684608d7df0aec29ba4277e"}},{"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":"lib/app/layouts/conversation_details/material/chat_photo_actions.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcf4b7678229ba097d83ed9a90c70b3376a1b320acdf2a29428a91cad9abb0c"}},{"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":"lib/app/layouts/conversation_details/material/chat_photo_actions.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9a03709198b0a41dc0e01f6627dc4fee5118f7fda27564a00034183ff0a48f"}},{"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":"lib/app/layouts/chat_creator/chat_creator_controller.dart"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f695024577e466e3d2b7394635f3ff7ff86f40e0b38b77b2751d2edb0ce3d2"}},{"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":"lib/app/layouts/chat_creator/chat_creator_controller.dart"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f13a30e2297e85dfeb5ce1e17c0e4ab80145d35856d76dd6aa0931ad56b062"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/app/components/wallpaper/wallpaper_config_codec.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"16592496ef7582f04f815d3855269af8c960d24d52d1db03ef817cef5924c85c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"android/app/src/main/kotlin/com/bluebubbles/messaging/utils/SettingsHelper.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"113cece79a2623c269698ac7a0f277a2ab475ace87e6bd245bbe4e31191a406d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: 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":"android/app/src/main/kotlin/com/bluebubbles/messaging/utils/SettingsHelper.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b31801c2d7fcdfb04e152d6fdfb2c8978ce3d6ba0d3f3d8167ab26ea07460d"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override null safety: ~18.7 \u0060!\u0060 null assertions per 1k Dart product lines \u2014 2922 across the 156200 line(s) of the 748 Dart file(s) read (generated, test and example code not counted; a file opted out with a \u0060// @dart=\u0060 comment below 2.12 counts once). Densest: lib/app/components/custom/custom_cupertino_alert_dialog.dart (86), lib/database/io/message.dart (85), lib/services/ui/message/messages_service.dart (83). Each one tells the analyzer to trust the author about null and becomes a \u0060Null check operator used on a null value\u0060 the first time the author is wrong. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"739a6ba910818bd17cd25bf02e82a025de9a49819c743d2340aeab96558fda89"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on parse failure: \u0060_tapbackEmojiUsage\u0060 answers \u0060[]\u0060 when \u0060FormatException\u0060 is thrown, with no log or rethrow \u2014 a malformed value silently becomes that default. Log the input or fail validation. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/backend/settings/actions/shared_preferences_messaging_actions.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f08b089a50ae4461e94f14c6b0c11c2bd902435d4a24ad4e8842a085d070815"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-561","guid":"522a7ba7-45e9-ab53-9088-45d86e04b53a","name":"CWE-561","shortDescription":{"text":"CWE-561"},"helpUri":"https://cwe.mitre.org/data/definitions/561.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_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-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":13,"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."]}]}