{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"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":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"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":"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":"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":"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":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ChatViewModel._setNIMMessageListener (cyclomatic 55): ChatViewModel._setNIMMessageListener 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: nim_chatkit_ui/lib/view_model/chat_view_model.dart holds 6 of the 46 methods over the threshold \u2014 including the worst \u2014 and 112 of the 418 points over it (27%), 2.1\u00D7 the next-largest file (nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart at 54). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"258700cb5c6af38f0456a2350d86ffa16257eac4cd5890a4b62f2ea5faaba224"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatViewModel.ensureQuickCommentsLoaded (cyclomatic 49): ChatViewModel.ensureQuickCommentsLoaded 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: nim_chatkit_ui/lib/view_model/chat_view_model.dart holds 6 of the 46 methods over the threshold \u2014 including the worst \u2014 and 112 of the 418 points over it (27%), 2.1\u00D7 the next-largest file (nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart at 54). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b9c31d1b859515f052012afd2f44da35f8ed9b9a437e10c1dac0786d884415"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatKitMessageListState.build (cyclomatic 48): ChatKitMessageListState.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e5ca7611b31861f423da5a5b10853f361733d12733cf6a46dd21dac4ccbf64"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatKitMessageItemState.build (cyclomatic 44): ChatKitMessageItemState.build has cyclomatic complexity 44 (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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aec6ff39d746f72242e5203f14c059f9d668f07ad52f417abc9e198d182fcdb"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatViewModel.translateMessage (cyclomatic 41): ChatViewModel.translateMessage 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: nim_chatkit_ui/lib/view_model/chat_view_model.dart holds 6 of the 46 methods over the threshold \u2014 including the worst \u2014 and 112 of the 418 points over it (27%), 2.1\u00D7 the next-largest file (nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart at 54). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"3136ff7f40c5cd9af036c0551d9414120f7f9b617f2bfb9721a0067b4bae7a19"}},{"ruleId":"D1","level":"warning","message":{"text":"_BottomInputFieldState.build (cyclomatic 33): _BottomInputFieldState.build has cyclomatic complexity 33 (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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"04322748b97411cbf5469685755e49fd273f6f2c526505875c9f12bc763a1e3c"}},{"ruleId":"D1","level":"warning","message":{"text":"_PopupBallonLayoutDelegate.getConstraintsForChild (cyclomatic 30): _PopupBallonLayoutDelegate.getConstraintsForChild 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.dart"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac0c6ded1b4f8e27858337e6ed221c1d8767434bcdae00c084014f0d525919d"}},{"ruleId":"D1","level":"warning","message":{"text":"TeamMemberListItemState.build (cyclomatic 30): TeamMemberListItemState.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":"nim_teamkit_ui/lib/view/pages/team_kit_member_list_page.dart"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcc79bcb6a80765a68a9af3a95bcb74ec404a048149ba090ce7d553cf0efc10"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationViewModel._init (cyclomatic 30): ConversationViewModel._init 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":"nim_conversationkit_ui/lib/view_model/conversation_view_model.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"0105660e2d4029314197cb70b8824bb3a94504c2210585f2c0176963e10c73be"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatKitMessageItemState._buildMessage (cyclomatic 29): ChatKitMessageItemState._buildMessage 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"c212de4e0f2737da34427c7b7e0e9d0df966683b831de6265aea20743698ecca"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatKitMessageListState._initScrollController (cyclomatic 27): ChatKitMessageListState._initScrollController 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d501b7f0837ee7de5079c1df12114d44d3fbf9ed6e0d5329022985f3e21a48"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatCollectionMessageListPageState.buildNIMMessage (cyclomatic 27): ChatCollectionMessageListPageState.buildNIMMessage 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":"nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"66873745ca69f5190dabc597e6e13cc82148cfbedcb9fafebca1d9c51fbb7131"}},{"ruleId":"D1","level":"warning","message":{"text":"NotifyHelper.buildUpdateTeamNotification (cyclomatic 26): NotifyHelper.buildUpdateTeamNotification 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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0ded8a9963be79495cd188b189ad77b9717278f77e5e8abd0976c968dc2e7a"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaBottomActionOverlay._saveFileDesktop (cyclomatic 26): MediaBottomActionOverlay._saveFileDesktop 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":"nim_chatkit_ui/lib/media/media_bottom_actions.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6bfc013b7d51d0f464ca3abdff35ed0e2064eaca6bb5413bc73e4a0d4a0f0c1"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatPageState._buildChatBody (cyclomatic 24): ChatPageState._buildChatBody 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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"4452492b5d741621782c674a56c30ab4afafa9e5ebe615a18f372b98dc8475d0"}},{"ruleId":"D1","level":"warning","message":{"text":"_SystemNotifyPageState._buildTeamItem (cyclomatic 23): _SystemNotifyPageState._buildTeamItem 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":"nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce735983d220f073efd8161c66236adadb1c2de689b1715e490244546d8def53"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatForwardPageState.build (cyclomatic 23): _ChatForwardPageState.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":"nim_chatkit_ui/lib/view/page/chat_forward_page.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7a57e3acd25f4a5e5a18c9bd696fba78dd057345cc170fff957f63cb48fa22"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatViewModel.sendMessage (cyclomatic 23): ChatViewModel.sendMessage 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: nim_chatkit_ui/lib/view_model/chat_view_model.dart holds 6 of the 46 methods over the threshold \u2014 including the worst \u2014 and 112 of the 418 points over it (27%), 2.1\u00D7 the next-largest file (nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart at 54). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":2844}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2dd2f45b2b663c5e8ba1bf36a32ab12e55946c18024534de2ec62743b48a7b"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatKitMessageListState._scheduleHistoryPositionEvaluation (cyclomatic 22): ChatKitMessageListState._scheduleHistoryPositionEvaluation has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"5201e3318810b0df897a73b293f232461129d710f05349a40f4cf9f6f48dd5b0"}},{"ruleId":"D1","level":"warning","message":{"text":"SuperTooltip.show (cyclomatic 22): SuperTooltip.show 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.dart"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7d43ce020d44b60273aa17d0f774b43533e723c1a2916cb5cc4264db4ed708"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationItem.build (cyclomatic 22): ConversationItem.build has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_conversationkit_ui/lib/widgets/conversation_item.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"d931635d50e1336a4b84199ed69a320bb523a56d021f4ed68b7376606c5312ad"}},{"ruleId":"D1","level":"warning","message":{"text":"_ConversationListState._buildConversationListItem (cyclomatic 22): _ConversationListState._buildConversationListItem has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_conversationkit_ui/lib/widgets/conversation_list.dart"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e5570df2152dd7a0aaad6865cc3cd9313b64a4ac0f111465c07ae383b6ed2f"}},{"ruleId":"D1","level":"warning","message":{"text":"_SystemNotifyPageState._buildFriendItem (cyclomatic 21): _SystemNotifyPageState._buildFriendItem 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":"nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7372e102125680d1bb549d8bc14c8b81a546493d08336ea50d9b86c633e639c4"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatKitMessageFileState.build (cyclomatic 21): ChatKitMessageFileState.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf2f49a32d7c4120ea82f5dceb4d9c9e7bf4c2c08266357c2f23aa76b8a76cd"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatKitMessageTipsState._getTips (cyclomatic 21): ChatKitMessageTipsState._getTips has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_tips_item.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d649f759fb3f6896d001e90b6ba4f9eef9b951cf181a6b2d7ac0add8a24f4099"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatKitPinMessageItemState._buildMessage (cyclomatic 21): _ChatKitPinMessageItemState._buildMessage 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"0231010b99ebb9fb7d9ea4a93d61455cb24932a93181b7907cfdbb7c581bcb8f"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatKitMergedMessageItemState._buildMessage (cyclomatic 20): _ChatKitMergedMessageItemState._buildMessage 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/mergedMessage/chat_kit_merged_message_item.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2869e64bbded29cd14ff3472d5e99e9a66a6496e5fc0f596837adf23c54710"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMessageHelper.textSpan (cyclomatic 19): ChatMessageHelper.textSpan 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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"afae4a0b58f92a1c521c868a825600a8c29805197239c1c7c0fe5e0ea7bfef20"}},{"ruleId":"D1","level":"warning","message":{"text":"_SearchKitGlobalState._buildItem (cyclomatic 19): _SearchKitGlobalState._buildItem 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":"nim_searchkit_ui/lib/page/search_kit_search_page.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2854b7333c3a41dfd5e565a8351b5967d45bf6187c5fc475227ef9bab131464c"}},{"ruleId":"D1","level":"warning","message":{"text":"_TeamKitManagerPageState._friendApplicationSetting (cyclomatic 19): _TeamKitManagerPageState._friendApplicationSetting 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":"nim_teamkit_ui/lib/view/pages/team_kit_manage_page.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcca9b5c68278d4074b8c9883a371cbc1ca17cb2e503d37c9fbb1924e95b9fee"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatKitMessageTextState.build (cyclomatic 18): ChatKitMessageTextState.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_text_item.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"a056a3dd1b8126e46d7ae3833468942b61fe01e1459210e36a482a6796649344"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatPageState.build (cyclomatic 18): ChatPageState.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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc20fb8efe9c1d2564bc8cbf39cd18367282ff5a97f978dbbb5429d1efaa917c"}},{"ruleId":"D1","level":"warning","message":{"text":"TopicChatViewModel._handleTopicSendResult (cyclomatic 18): TopicChatViewModel._handleTopicSendResult 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":"nim_chatkit_ui/lib/view_model/topic_chat_view_model.dart"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"392b5d54bcfa096b76af08c8894f006c8581e876f1c9da12b1fd00ba487ffcae"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationGroupViewModel._loadUnreadConversations (cyclomatic 18): ConversationGroupViewModel._loadUnreadConversations 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":"nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"6230190ac05a47a2e16fe936c200ebc3ebf4ae98e274d9d0871040de02b20224"}},{"ruleId":"D1","level":"warning","message":{"text":"_AddConversationDialogState._submit (cyclomatic 18): _AddConversationDialogState._submit 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":"nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"88410f9379c3c41594a4b5fb637155d89f05168397d0769254f453ff7c07dc4b"}},{"ruleId":"D1","level":"warning","message":{"text":"_AitMemberPickerSheetState.build (cyclomatic 17): _AitMemberPickerSheetState.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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"329e09178243439fc1eea689d5c3b205cff99257a161d5e44319c22af4d27cae"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatKitMessageListState._scrollToIndex (cyclomatic 17): ChatKitMessageListState._scrollToIndex 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"caad82b93eba4eaee5565715949027eae0b6ae34f0bf05a6ced1d006e815bfe5"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatViewModel._handleQuickCommentNotification (cyclomatic 17): ChatViewModel._handleQuickCommentNotification 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: nim_chatkit_ui/lib/view_model/chat_view_model.dart holds 6 of the 46 methods over the threshold \u2014 including the worst \u2014 and 112 of the 418 points over it (27%), 2.1\u00D7 the next-largest file (nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart at 54). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b96e3dad0fa81b497cd1ad080d78431f8dee6b524fadb0547e636163891340"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatViewModel.voiceToTextMessage (cyclomatic 17): ChatViewModel.voiceToTextMessage 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: nim_chatkit_ui/lib/view_model/chat_view_model.dart holds 6 of the 46 methods over the threshold \u2014 including the worst \u2014 and 112 of the 418 points over it (27%), 2.1\u00D7 the next-largest file (nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart at 54). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2748161e122aea165e7f486e9fea427bef610ff75316909b3def2c648eb7e4"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationItem._getLastMessageContent (cyclomatic 17): ConversationItem._getLastMessageContent 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":"nim_conversationkit_ui/lib/widgets/conversation_item.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d6ef6f89e1be4c711fbf74b807c9a6d99e084137b42956af46c2bf05322f24"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatMessageHelper.getMessageBrief (cyclomatic 16): ChatMessageHelper.getMessageBrief 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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6b8bcf0578a4490d4c5fff415d13fe032393fa18c6ed6db28688ebaaf4acbb"}},{"ruleId":"D1","level":"warning","message":{"text":"ContactViewModel.initListener (cyclomatic 16): ContactViewModel.initListener 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":"nim_contactkit_ui/lib/page/viewmodel/contact_viewmodel.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e111776c85542ffc6d7220867cb8be259bfdfc0fc1a2e30daae306567b1656a"}},{"ruleId":"D1","level":"warning","message":{"text":"_ConversationPageState.build (cyclomatic 16): _ConversationPageState.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":"nim_conversationkit_ui/lib/page/conversation_page.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7bf06c17b9935b76108cce65d3b7e0fd5d5d70d0fa85ab6273b522d714cf71"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatKitMenuHelper.buildMenuItems (cyclomatic 16): ChatKitMenuHelper.buildMenuItems 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_menu_helper.dart"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d81af30238e3846e333f05797781001db2fa68e640965a71110e1ef90288c15"}},{"ruleId":"D1","level":"warning","message":{"text":"_ChatHistoryMessagePageState._searchByType (cyclomatic 16): _ChatHistoryMessagePageState._searchByType 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":"nim_chatkit_ui/lib/view/history/chat_history_message_page.dart"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"52500e48725d026ccf510f7562b2de6f86702d8b9ac579523892734ff04e3e27"}},{"ruleId":"D1","level":"warning","message":{"text":"_BottomInputFieldState._buildMobileInputField (cyclomatic 16): _BottomInputFieldState._buildMobileInputField 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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":1734}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5b9071b0bfe9ccde07f06cfae7123751a4041bb8a92cd2b6489d7ee3c78e20"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel.ensureQuickCommentsLoaded (cognitive 90): ChatViewModel.ensureQuickCommentsLoaded has cognitive complexity 90 (threshold 15). Drivers by points: if/else 20 (46 pts), loops 12 (20 pts), boolean chains 13, ternaries 3 (10 pts), error handling 1 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff64e611742cc974dff78dd8cc66f9339126b8e1ac2049533d61686eb4ae597"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel._setNIMMessageListener (cognitive 89): ChatViewModel._setNIMMessageListener has cognitive complexity 89 (threshold 15). Drivers by points: if/else 35 (59 pts), loops 8 (17 pts), boolean chains 13 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec65b1cee2bf241e54db88cd1d039bfee552e24e7af2d8a6f944b2c8afef9ca8"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatKitMessageItemState.build (cognitive 69): ChatKitMessageItemState.build has cognitive complexity 69 (threshold 15). Drivers by points: if/else 26 (41 pts), ternaries 16 (22 pts), boolean chains 6 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3687e4bad5d8c88ba9f10197b139047521da1efb8c2e028365fde1200e03030"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatKitMessageListState.build (cognitive 64): ChatKitMessageListState.build has cognitive complexity 64 (threshold 15). Drivers by points: if/else 23 (35 pts), boolean chains 16, ternaries 8 (13 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b34a0c5678b3cfe76f2574cca8d37068c85453a8fbb9ee315dbf3ef56e38203"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel.translateMessage (cognitive 60): ChatViewModel.translateMessage has cognitive complexity 60 (threshold 15). Drivers by points: if/else 23 (42 pts), boolean chains 15, loops 1 (2 pts), error handling 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b89fcbec0a1eaeb8d5dffa507f627bb326aaaee59801b1e3d203c1e1562446"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCollectionMessageListPageState.buildNIMMessage (cognitive 47): ChatCollectionMessageListPageState.buildNIMMessage has cognitive complexity 47 (threshold 15). Drivers by points: if/else 25 (44 pts), boolean chains 2, 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":"nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd0d0b7c401e2aae221c586da8f41cb057d0d3f73aa94374598ad6347b7fb7a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageHelper.textSpan (cognitive 45): ChatMessageHelper.textSpan has cognitive complexity 45 (threshold 15). Drivers by points: if/else 16 (38 pts), error handling 1 (2 pts), loops 1 (2 pts), ternaries 2, boolean chains 1 (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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":1162}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9d5816ff0a3fdd2280b565b54961232317b9be2e4e49edd815fe2d77deb85e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatKitMessageListState._initScrollController (cognitive 44): ChatKitMessageListState._initScrollController has cognitive complexity 44 (threshold 15). Drivers by points: if/else 20 (36 pts), boolean chains 7, ternaries 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89113c67a3f5082d6e0975883a42f2a47129a3a118b23ce3926082756dce747"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatKitMessageItemState._buildMessage (cognitive 43): ChatKitMessageItemState._buildMessage has cognitive complexity 43 (threshold 15). Drivers by points: if/else 18 (38 pts), boolean chains 2, ternaries 1 (2 pts), match/switch 1 (nesting depth added 21). 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e2d44e402ebd1f47918215fb04efa7b971a4726a5dc17bdf3b49d8a62ff1ae5"}},{"ruleId":"D2","level":"warning","message":{"text":"_PopupBallonLayoutDelegate.getConstraintsForChild (cognitive 43): _PopupBallonLayoutDelegate.getConstraintsForChild has cognitive complexity 43 (threshold 15). Drivers by points: if/else 20 (28 pts), boolean chains 8, ternaries 4 (6 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.dart"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4fad4b938181844ab13171345c5e9e2fcf3f171321fd0e2e5af850da9d67b1"}},{"ruleId":"D2","level":"warning","message":{"text":"_AddConversationDialogState._submit (cognitive 43): _AddConversationDialogState._submit has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (32 pts), ternaries 2 (8 pts), boolean chains 3 (nesting depth added 25). 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":"nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"98bbd5be7f6e20c694e04fd805f68500a33f4fa39bf914dd0c07a18887b0d1a8"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaBottomActionOverlay._saveFileDesktop (cognitive 41): MediaBottomActionOverlay._saveFileDesktop has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 7, ternaries 3, 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":"nim_chatkit_ui/lib/media/media_bottom_actions.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0e334dfd532aec3a58fe876a3d672486a8a624462398fa87845030972be009"}},{"ruleId":"D2","level":"warning","message":{"text":"TopicChatViewModel._handleTopicSendResult (cognitive 40): TopicChatViewModel._handleTopicSendResult has cognitive complexity 40 (threshold 15). Drivers by points: if/else 13 (35 pts), boolean chains 5 (nesting depth added 22). 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":"nim_chatkit_ui/lib/view_model/topic_chat_view_model.dart"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e54dc39b1cf3065830f97253e7b338352a6222fff8c9d824fd70afdaea1153"}},{"ruleId":"D2","level":"warning","message":{"text":"_BottomInputFieldState.build (cognitive 39): _BottomInputFieldState.build has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 16 (21 pts), if/else 9 (11 pts), boolean chains 7 (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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb25ef6132535c9c206a82c73ccaae1840bfc930061e4867afa6e9573c279b5"}},{"ruleId":"D2","level":"warning","message":{"text":"_BottomInputFieldState.showImagePicker (cognitive 38): _BottomInputFieldState.showImagePicker has cognitive complexity 38 (threshold 15). Drivers by points: if/else 9 (36 pts), loops 1 (2 pts) (nesting depth added 28). 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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c873bc80b0259790ca95810054b0cbb6fe3f8514b7f46be983bf32ce9565e6"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationViewModel._init (cognitive 38): ConversationViewModel._init has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 7, loops 4 (7 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":"nim_conversationkit_ui/lib/view_model/conversation_view_model.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"796f15974e26c98e6cc3681d2cbe7961248ef78dac4bea5ff4f8eafc732729da"}},{"ruleId":"D2","level":"warning","message":{"text":"NotifyHelper.buildUpdateTeamNotification (cognitive 37): NotifyHelper.buildUpdateTeamNotification has cognitive complexity 37 (threshold 15). Drivers by points: if/else 21 (29 pts), boolean chains 6, error handling 1 (2 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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb88fa160cf64fc9c689363fa48e25bc04e8ad8fddad2cbce35c75c6af743e01"}},{"ruleId":"D2","level":"warning","message":{"text":"TeamMemberListItemState.build (cognitive 37): TeamMemberListItemState.build has cognitive complexity 37 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 11, ternaries 6 (8 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_teamkit_ui/lib/view/pages/team_kit_member_list_page.dart"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c478ceb7b6fafcbce4b0abf1576b399d50589f4d191dce4975ca4c37edc500d"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationViewModel.queryConversationList (cognitive 37): ConversationViewModel.queryConversationList has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (29 pts), loops 2 (6 pts), boolean chains 2 (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":"nim_conversationkit_ui/lib/view_model/conversation_view_model.dart"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ecf0f6ca30017c7f3ae5a1e0aaf93a8dc4c1fcfb41ff5ee7c7ca85737cc4b3"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatKitMessageFileState.build (cognitive 36): ChatKitMessageFileState.build has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 5, ternaries 2 (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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e2a002994a62ac2a0185a4ad568ddca6ed549c99a6ace088906c4aad972145"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatKitMergedMessageItemState._buildMessage (cognitive 32): _ChatKitMergedMessageItemState._buildMessage has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (30 pts), boolean chains 1, match/switch 1 (nesting depth added 17). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/mergedMessage/chat_kit_merged_message_item.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b04a5695dea2046386dba93024d8c3dcd88b108e08c26a5f22574e37db3722"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatKitPinMessageItemState._buildMessage (cognitive 32): _ChatKitPinMessageItemState._buildMessage has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 1, match/switch 1 (nesting depth added 16). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a428e972aa8011cb9177bdcc3246baee705dc728090feda80e046cdab44786e"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationGroupViewModel._loadUnreadConversations (cognitive 31): ConversationGroupViewModel._loadUnreadConversations has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 6, loops 2 (6 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":"nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56eaafde4452b4c37801b089d1d95c880bf42de8bff128ce4f1ba219bb47084"}},{"ruleId":"D2","level":"warning","message":{"text":"AitServer.initListener (cognitive 30): AitServer.initListener has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (25 pts), boolean chains 3, loops 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_conversationkit_ui/lib/service/ait/ait_server.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6e00f66d389fb4d882d78e4a536690f2faf39e15c30989501cc497743ed3aa"}},{"ruleId":"D2","level":"warning","message":{"text":"SuperTooltip.show (cognitive 30): SuperTooltip.show has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 5, ternaries 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.dart"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf0f4f1b5ef1ad381ca3e62a883b6dcb8e28b5e98ca4b0b971d4f630739521d"}},{"ruleId":"D2","level":"warning","message":{"text":"_TeamSettingPageState._actionButton (cognitive 30): _TeamSettingPageState._actionButton has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (22 pts), ternaries 5 (8 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":"nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"91a7e1156c1afb97107f0a7ddaa790f360fa82ba0ae7af440ad3487cdc5f1868"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel.sendMessage (cognitive 30): ChatViewModel.sendMessage has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 6, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":2844}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e12dd15d25d4cb19581139c11e64640a5fef193051a17ad8ab2b3bec3fab13"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatKitMessageTextState.build (cognitive 29): ChatKitMessageTextState.build has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 3 (6 pts), boolean chains 4, 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_text_item.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"88095e91470192873a2594ac995ac54469f7f1af7aad6e8589766a3bdf6ef53f"}},{"ruleId":"D2","level":"warning","message":{"text":"_BottomInputFieldState._getPanel (cognitive 29): _BottomInputFieldState._getPanel has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (17 pts), if/else 9 (12 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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":996}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b920de83d3e51336a3ed01ee74cce075f358d526444900ba8b03b9b2a56f822"}},{"ruleId":"D2","level":"warning","message":{"text":"_BottomInputFieldState.onViewModelChange (cognitive 29): _BottomInputFieldState.onViewModelChange has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (25 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":1359}}}],"partialFingerprints":{"codehealthFindingId/v1":"e499d643b1ba95f11d12939337f71f18c9b1242191cf269c2eaceb79c1bff879"}},{"ruleId":"D2","level":"warning","message":{"text":"_ConversationGroupAddConversationPageState._submit (cognitive 28): _ConversationGroupAddConversationPageState._submit has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (21 pts), ternaries 2 (6 pts), boolean chains 1 (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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"48eb5828423d391ef78508bc57e308067555f67c044cdef6b1f0b25abb096282"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPinViewModel._initListener (cognitive 28): ChatPinViewModel._initListener has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (7 pts), boolean chains 2 (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":"nim_chatkit_ui/lib/view_model/chat_pin_view_model.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b31a6809e36c773e889886c0f18438d7294c25f8e097b93eae78ba1ec0e4ea"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel._insertMessages (cognitive 28): ChatViewModel._insertMessages has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 2 (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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc41c1f4cddf3cfec93dc3b994b0aead7af92a766abc6322d9ccb2a75aa8a27"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationViewModel.refreshVisibleUserInfo (cognitive 28): ConversationViewModel.refreshVisibleUserInfo has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2 (6 pts), boolean chains 3, error handling 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_conversationkit_ui/lib/view_model/conversation_view_model.dart"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"263d428aeeaafcacac829bfec832ecb512a344d2e34cd62f9cf151245e4448a3"}},{"ruleId":"D2","level":"warning","message":{"text":"_BottomInputFieldState._handleAitText (cognitive 27): _BottomInputFieldState._handleAitText has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (25 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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a9fa76a1e47cecfbf182e28e1f042e615d10e4fcbb2acbc1cce4e2218f5f8c"}},{"ruleId":"D2","level":"warning","message":{"text":"_TeamSettingPageState._member (cognitive 27): _TeamSettingPageState._member has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (18 pts), ternaries 4 (7 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":"nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f61a5a5fe1d4059ce5e4db39780b26265e610f42741cd15221fd9a320529e5"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationItem._getCustomLastMessageBrief (cognitive 27): ConversationItem._getCustomLastMessageBrief has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (23 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":"nim_conversationkit_ui/lib/widgets/conversation_item.dart"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6f2640b3d847242b696726758e5e183c8636a9fc64fa40dc35debe22e3e3ad"}},{"ruleId":"D2","level":"warning","message":{"text":"_SystemNotifyPageState._buildFriendItem (cognitive 26): _SystemNotifyPageState._buildFriendItem has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 5 (8 pts), boolean chains 3, match/switch 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca41a5b7b48d8ba543fb63ba4e55cd120f372f0233045e059a371d5a9496ae8"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPageState._buildChatBody (cognitive 26): ChatPageState._buildChatBody has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 9, if/else 9, ternaries 5 (8 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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84b6c71c0cd98c5b2ea1e9d11038cd16ffc6a6aee1910f10fe99fdaf19f1775"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationViewModel.queryConversationNextList (cognitive 26): ConversationViewModel.queryConversationNextList has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (20 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_conversationkit_ui/lib/view_model/conversation_view_model.dart"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffb1a10b8024c9c2041b93f8578c493d57e0042c44e708d00067bd24f41416f"}},{"ruleId":"D2","level":"warning","message":{"text":"ContactViewModel.initListener (cognitive 24): ContactViewModel.initListener has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/page/viewmodel/contact_viewmodel.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"e283c49bb3751399554f61308d88003261577007c42885cfcbd073b5d9eda947"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatKitMessageListState._scrollToIndex (cognitive 24): ChatKitMessageListState._scrollToIndex has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 6, ternaries 3 (6 pts), 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75f7939dabb499df0d87b65009a7c4eb4bb48c497b015d653ae13e8e5e59640"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatKitMessageListState._scheduleHistoryPositionEvaluation (cognitive 24): ChatKitMessageListState._scheduleHistoryPositionEvaluation has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 10, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce7dafc1043d0e86012b5c0e664ac5786bb416a42ebd2ecc2381cca6af3a1d9"}},{"ruleId":"D2","level":"warning","message":{"text":"_TeamKitManagerPageState._friendApplicationSetting (cognitive 24): _TeamKitManagerPageState._friendApplicationSetting has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 6 (9 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":"nim_teamkit_ui/lib/view/pages/team_kit_manage_page.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"723b232c3bbef53285c07a2594562d21f7243866f9b3247fc905b326a962510a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel.forwardMessage (cognitive 24): ChatViewModel.forwardMessage has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (24 pts) (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":3309}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd38b7a1f034dac02821379b07d03e00997946ebfd0ea09d9afc2c49144726bb"}},{"ruleId":"D2","level":"warning","message":{"text":"_ContactKitDetailPageState._buildBody (cognitive 23): _ContactKitDetailPageState._buildBody has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (23 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":"nim_contactkit_ui/lib/page/contact_kit_detail_page.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d09b8f4a84cdf86f96af6fe04f6f441628a2baf10e441cd93cd6cde1a3aada3"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatKitMessageMultiLineState.build (cognitive 23): ChatKitMessageMultiLineState.build has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 5 (6 pts), loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_multi_line_text_item.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c349e728d04bd3d962e12be717d077396511f420d08e28bd01ab3f13db90aa5"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatForwardPageState.build (cognitive 23): _ChatForwardPageState.build has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 6, ternaries 6 (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":"nim_chatkit_ui/lib/view/page/chat_forward_page.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d440001f340f4c602e7175fbf570c19408f9176c4cef2bad81636a2d929d15"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationItem.build (cognitive 22): ConversationItem.build has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8, boolean chains 7, ternaries 6 (7 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":"nim_conversationkit_ui/lib/widgets/conversation_item.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8d16e4fd0cefadaad299e73f65433076f2e2bd738adf5474c9a3436be94c8d"}},{"ruleId":"D2","level":"warning","message":{"text":"_ConversationListState._buildConversationListItem (cognitive 22): _ConversationListState._buildConversationListItem has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 10, if/else 9, ternaries 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":"nim_conversationkit_ui/lib/widgets/conversation_list.dart"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f63571a1a341d8cda9b9f70cd9397f316201a8e53053f916618d60b216a0676"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationPopMenuButton._onMenuSelected (cognitive 22): ConversationPopMenuButton._onMenuSelected has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 2, match/switch 1 (nesting depth added 10). 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":"nim_conversationkit_ui/lib/widgets/conversation_pop_menu_button.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"81809c47249bbec446818690538fe3707a14232020361af3e1ee32e0f03af305"}},{"ruleId":"D2","level":"warning","message":{"text":"_SystemNotifyPageState._buildTeamItem (cognitive 21): _SystemNotifyPageState._buildTeamItem has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, ternaries 3 (4 pts), match/switch 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":"nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"613489d8930cec935e5bff6f936ebd020c1d2b89b94d50c2ff4fd9aec12219ea"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatKitMessageItemState._getMessageStatus (cognitive 21): ChatKitMessageItemState._getMessageStatus has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"a051efffc620b90819933ad0bb62b923c042b69b0750daa2fa9f2d3ffffd420a"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatHistoryFileMessageState.build (cognitive 21): _ChatHistoryFileMessageState.build has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 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":"nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"27793d2eb545876cfdb16b1db30cecf2fa67a33f9a1a2f823c77321bb3a37357"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCollectionMessageListPageState._loadMoreOld (cognitive 21): ChatCollectionMessageListPageState._loadMoreOld has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 1 (3 pts), boolean chains 2 (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":"nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"135f4859cea42a8bfd57127941d370ad706940390a9c5c551646efdcf863f221"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatForwardPageState._buildRecentChatsList (cognitive 21): _ChatForwardPageState._buildRecentChatsList has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 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":"nim_chatkit_ui/lib/view/page/chat_forward_page.dart"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c636185f5c1167ed13057e7e50c52f2e2a5514863f4e6e3aed481ed1cf3f57e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel._handleQuickCommentNotification (cognitive 21): ChatViewModel._handleQuickCommentNotification has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (14 pts), boolean chains 7 (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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"fefae9ca1baa21aa919f8a8232aa1053b8b9d3a05c3ecdbf8a04035a26d77ec8"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel.voiceToTextMessage (cognitive 21): ChatViewModel.voiceToTextMessage has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3, 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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":1954}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eef5697c95559d8a4ed30d2eefc8e0055d37589dc9dc3b1efc1c4d03bfdde94"}},{"ruleId":"D2","level":"warning","message":{"text":"_BubbleShape.paint (cognitive 20): _BubbleShape.paint has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.dart"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed615ae2361586a0772f0e5f551d2199e11e80e048e3beeee723a0cb0992340b"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatForwardPageState._buildTeamList (cognitive 20): _ChatForwardPageState._buildTeamList has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 2 (4 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":"nim_chatkit_ui/lib/view/page/chat_forward_page.dart"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a43c2b438468006d63f1ada6160a1cddb60c0675674fa08af3ff5c40cdec6f4"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationGroupViewModel._loadCustomConversations (cognitive 20): ConversationGroupViewModel._loadCustomConversations has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbf6d0dec3f6b6d7183d4abe75342c05f58555050fd45b4153871ebd6d29378"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationViewModel._updateItem (cognitive 20): ConversationViewModel._updateItem has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (19 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":"nim_conversationkit_ui/lib/view_model/conversation_view_model.dart"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdf18c913cb6caff4ce1ea592c9e96add9385c45bd6d3e53f8827cee6613edb"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageHelper.removeOverlapping (cognitive 19): ChatMessageHelper.removeOverlapping has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"929eb88d4b3dd1d63834497e9702a42ec047254ee271d01e88f3d90630f89427"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaBottomActionOverlay._saveFileWeb (cognitive 19): MediaBottomActionOverlay._saveFileWeb has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 2, ternaries 2, 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":"nim_chatkit_ui/lib/media/media_bottom_actions.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"72de42d9032f3abce2f8604abcb871120c745b2dc4eb2a53b70c31f2dafdb389"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatKitMessageItemState.initState (cognitive 19): ChatKitMessageItemState.initState has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (17 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffef8e062e2f754217c50586a12bc2035f746ca8fa23f6513bfe9db42ee685c6"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatKitMenuHelper.buildMenuItems (cognitive 19): ChatKitMenuHelper.buildMenuItems has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, ternaries 4 (8 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_menu_helper.dart"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ac825c36f0939f6842de67acad60ee6b1f31dc9a71b40f9334552e285a0bb3"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCollectionMessageListPageState._buildDesktopTrailing (cognitive 19): ChatCollectionMessageListPageState._buildDesktopTrailing has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (19 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef59a9bb5cec5bd437483920a77afd9d419bb2457b70fce50ee614824a7b1fc"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatCollectionMessageListPageState._showOptionDialog (cognitive 19): ChatCollectionMessageListPageState._showOptionDialog has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (19 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bb4474715c6c652097d6a69cb0141994b79194b4f89d2a113d5c032e365d58"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatPageState.build (cognitive 19): ChatPageState.build has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 4 (5 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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"9450f025dcfbaf9c828f49a4716b8fc43cdfa50df3a2a82017b1d83d6e344e3d"}},{"ruleId":"D2","level":"warning","message":{"text":"ContactListViewState.build (cognitive 19): ContactListViewState.build has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/widgets/contact_kit_contact_list_view.dart"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9d14a2e4c82fa0b2ae4ca918d3295567dcd24526719fa0befb49c916d8410e3"}},{"ruleId":"D2","level":"warning","message":{"text":"NotifyHelper.buildMemberListString (cognitive 18): NotifyHelper.buildMemberListString has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (4 pts), ternaries 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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"16673701c18517be52d2728bf3a2968008c87f458e887701e66d191409d2124e"}},{"ruleId":"D2","level":"warning","message":{"text":"MergeMessageHelper.mergeMessage (cognitive 18): MergeMessageHelper.mergeMessage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3, loops 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":"nim_chatkit_ui/lib/helper/merge_message_helper.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2772ffd6d8594dc669902db457025fd218245542481e198e34d697503f6cd60e"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatHistoryMessagePageState._searchByType (cognitive 18): _ChatHistoryMessagePageState._searchByType has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, loops 1 (2 pts), match/switch 1, 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":"nim_chatkit_ui/lib/view/history/chat_history_message_page.dart"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6740a83b8a808d89583479003294ef8280b8270eba6484d1a91ce519016597"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatHistoryMessagePageState._searchByDate (cognitive 18): _ChatHistoryMessagePageState._searchByDate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), ternaries 4 (5 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":"nim_chatkit_ui/lib/view/history/chat_history_message_page.dart"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"799ffee7618f8ddd911e9aba28d1bbf57077010ab5bbf10eefe292abb10651b1"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatHistoryMessagePageState.build (cognitive 18): _ChatHistoryMessagePageState.build has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 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":"nim_chatkit_ui/lib/view/history/chat_history_message_page.dart"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bb1d918d78bcbadfbfb77ee5e2992e17efc222071a7d5baabd23a0a8b5016e"}},{"ruleId":"D2","level":"warning","message":{"text":"_BottomInputFieldState._onDesktopPickImage (cognitive 18): _BottomInputFieldState._onDesktopPickImage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"910dcd1d08a8d8e1ba54632e0e3c5f41d8c301fd8ac6a2937720921a3bf18b99"}},{"ruleId":"D2","level":"warning","message":{"text":"_ChatForwardPageState._buildFriendList (cognitive 18): _ChatForwardPageState._buildFriendList has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (13 pts), ternaries 2 (4 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":"nim_chatkit_ui/lib/view/page/chat_forward_page.dart"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"1259fc78b871f89fdc3fbca4fcbaaa635814aec8632d82a2303de9d81f2b9d69"}},{"ruleId":"D2","level":"warning","message":{"text":"_TeamSettingPageState._setting (cognitive 18): _TeamSettingPageState._setting has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 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":"nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c94ef9db8b3697eaceacc35bd739d451eead7ac4a138094db93fe035714350"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel.initBaseData (cognitive 18): ChatViewModel.initBaseData has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5 (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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad8e800280ef9aa6ab98889000f8a7b28f4bdaae3bf60ba1f5c487246b6a778"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageHelper.getMessageBrief (cognitive 17): ChatMessageHelper.getMessageBrief has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4fb8b5ca57eceb3b92da906f58089dcc08db53c85e0fb560e71e95a586b204"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatMessageHelper.buildTextSpansWithPhoneAndUrlDetection (cognitive 17): ChatMessageHelper.buildTextSpansWithPhoneAndUrlDetection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c683b88f586c31493ee8d81e9e3426c8dc9c167a6369e1ec84e8109e6cc749"}},{"ruleId":"D2","level":"warning","message":{"text":"_JoinTeamPageState.build (cognitive 17): _JoinTeamPageState.build has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (17 pts) (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":"nim_conversationkit_ui/lib/page/join_team_page.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"739a1b119df44e3ee281d9e11da08425ceb6ce69c36fb0b4f4c9b4ee6d356532"}},{"ruleId":"D2","level":"warning","message":{"text":"_AitMemberPickerSheetState.build (cognitive 17): _AitMemberPickerSheetState.build has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8 (9 pts), boolean chains 6, if/else 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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"039376da21d862625be99c39d0849747bcdef531dd0328e45d7b32ad244b8a83"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel._runReactionOperation (cognitive 17): ChatViewModel._runReactionOperation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 2 (5 pts), error handling 1 (2 pts), loops 2, 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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7a6f03887aaebd40535db02f1805c0061dedc88c4e5a0f8f32955476b34cb8"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel._fetchMessageListBothDirect (cognitive 17): ChatViewModel._fetchMessageListBothDirect has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, 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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":2367}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a0a8605697c179ed69a4502d12490748bbba21a8b29d6d31731c86a166d729"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel.collectMessage (cognitive 17): ChatViewModel.collectMessage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (15 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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":3450}}}],"partialFingerprints":{"codehealthFindingId/v1":"039c5da6f25d914129776bce1c4fcc960411b62920cb389f5b61f639dd3fa205"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaBottomActionOverlay._saveFile (cognitive 16): MediaBottomActionOverlay._saveFile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/media/media_bottom_actions.dart"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa28f3c6be44747f82e5d6263715103df4717a411ad8fda38f077e3938c3572e"}},{"ruleId":"D2","level":"warning","message":{"text":"_VideoViewerState._initVideoPlayer (cognitive 16): _VideoViewerState._initVideoPlayer has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5 (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":"nim_chatkit_ui/lib/media/video.dart"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"eafe5041333eaa06e7da806e8213ab34c553788ee1597f21aeb74db865e3826f"}},{"ruleId":"D2","level":"warning","message":{"text":"_ConversationGroupAddConversationPageState._loadConversations (cognitive 16): _ConversationGroupAddConversationPageState._loadConversations has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5 (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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffb7db927a0457fb629b09335ccf81d05ee8874baa73e4ccd366159c3a4e5ef"}},{"ruleId":"D2","level":"warning","message":{"text":"_SearchKitGlobalState._buildItem (cognitive 16): _SearchKitGlobalState._buildItem has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8, boolean chains 4, match/switch 2, ternaries 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_searchkit_ui/lib/page/search_kit_search_page.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f261e5e1c209f604ac950121acee1f571072a587167f5794d4f8a28ecebe0de"}},{"ruleId":"D2","level":"warning","message":{"text":"_MessageReactionBarState._showPicker (cognitive 16): _MessageReactionBarState._showPicker has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 3, ternaries 2 (3 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/reaction/message_reaction_bar.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d1b534def480261320c445fd7fa15853986b37a702c250ba601d4c1113de8a"}},{"ruleId":"D2","level":"warning","message":{"text":"_BottomInputFieldState.initState (cognitive 16): _BottomInputFieldState.initState has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"1859b3512adfc2723aef1531ac341a7ff473c06f2ccbc7c229225ab2353d9a91"}},{"ruleId":"D2","level":"warning","message":{"text":"_BottomInputFieldState._buildMobileInputField (cognitive 16): _BottomInputFieldState._buildMobileInputField has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 10, if/else 3 (4 pts), boolean chains 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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":1734}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78bf3640a852623a5b4a935a878ada2b8feb32d08e97a689a800b74a0133ebc"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel._updateMessagePin (cognitive 16): ChatViewModel._updateMessagePin has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 2 (7 pts), if/else 3 (6 pts), loops 2 (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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":2657}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7252d873c6cb5d1e2f57da9eed498c8b21b077663506b77cd347b9a495eaab5"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatViewModel._handleMessageSendResult (cognitive 16): ChatViewModel._handleMessageSendResult has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 1 (2 pts), boolean chains 1 (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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":2961}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64ce425bfac87641af416f60ac49ca1a31466de013d0a4c24b932820035ce33"}},{"ruleId":"D2","level":"warning","message":{"text":"TeamSettingViewModel.addTeamSubscribe (cognitive 16): TeamSettingViewModel.addTeamSubscribe has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), loops 2 (4 pts), boolean chains 2, ternaries 2 (nesting depth added 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":"nim_teamkit_ui/lib/view_model/team_setting_view_model.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa0b6791c42c9fc87aae1f28dca51ee3ad78ceaca157628b0b123c37263e50dd"}},{"ruleId":"D2","level":"warning","message":{"text":"_AddConversationDialogState._loadConversations (cognitive 16): _AddConversationDialogState._loadConversations has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5 (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":"nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44b25cac9267fce4d304e6a0812ce60e2961eed722c07932f75905828823a7b"}},{"ruleId":"D2","level":"warning","message":{"text":"_ConversationListState._buildConversationScroll (cognitive 16): _ConversationListState._buildConversationScroll has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_conversationkit_ui/lib/widgets/conversation_list.dart"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4ba8a667531379ec42ab5ac51a4ec2c5ca7ad257a37d4732ecb58f0c738b2f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: view_model/chat_view_model.dart: FileTooLong \u2014 2495 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1995 over it, 4.99\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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d52248b82b472c1dc58a38070674feb44f7effd43d5745858a058bfec0a53c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatViewModel: TooManyMethods \u2014 138 methods. The bar is 30 methods; this is 108 over it, 4.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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81c2049029259fe990ebc5b80c6564384c176bf8f9bb91eaae38180f128c730"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: input/bottom_input_field.dart: FileTooLong \u2014 1897 significant lines (blank, comment-only and punctuation-only lines excluded), about 72% of them inside a single declaration: _BottomInputFieldState (83-2108). The bar is 500 significant lines; this is 1397 over it, 3.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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4293f4837660e26ab7ee2a9076fe2d3f45247d7db6f89f557d9d19e9f67e45a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatKitMessageItemState.build: MethodTooLong \u2014 build runs 370 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 270 over it, 3.70\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":1232}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a437ccad9d4a3d452b4d6c499aad507a9aa51fea4a3e0c6e818e5852908c7ce"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _BottomInputFieldState: ClassTooLong \u2014 1365 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 965 over it, 3.41\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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6c33b730ae3db3e754967a4da66e84c8140831161b91fdd8af33667c309a2b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatKitMessageItemState: ClassTooLong \u2014 1133 significant lines (blank, comment-only and punctuation-only lines excluded), 53 methods. The bar is 400 significant lines; this is 733 over it, 2.83\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d45d868ff3995249f5f781c4ec9d2e196a4000ad196411fbddb6b19ff693d83"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: item/chat_kit_message_item.dart: FileTooLong \u2014 1193 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: ChatKitMessageItemState (135-1720). The bar is 500 significant lines; this is 693 over it, 2.39\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47cc450921322d9fb08e8be7deb8c399c16af4c18266cf2e0db7c4190401698e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: helper/chat_message_helper.dart: FileTooLong \u2014 1124 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 624 over it, 2.25\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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f18faa72ac5c4c7675bdbea746eacce095cbb321fceb0eb812256e06fee9cb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatPageState: ClassTooLong \u2014 856 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 456 over it, 2.14\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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b9888f8f2aecb764e6d0b376f332e2f46d250c0e3281cac3d7443c43b8d350"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConversationGroupViewModel: ClassTooLong \u2014 831 significant lines (blank, comment-only and punctuation-only lines excluded), 57 methods. The bar is 400 significant lines; this is 431 over it, 2.08\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bff6f55e85249f66f042392926235dc317dac163c16f7586fd224d68375a4b4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatKitMessageListState: ClassTooLong \u2014 813 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 413 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"03510b26baaf18d189c4db6a3f2f7beb85023f648689f2a1c1781765b195f7f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: page/chat_page.dart: FileTooLong \u2014 1014 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: ChatPageState (105-1387). The bar is 500 significant lines; this is 514 over it, 2.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e68e47aa7d8536362522c60a5704754283cc7cd2d56f6627b816b0b36950610"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ChatHistoryMessagePageState: ClassTooLong \u2014 782 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 382 over it, 1.96\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":"nim_chatkit_ui/lib/view/history/chat_history_message_page.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e195d8680e953d778e02a6daccbff3ff3aece11ffbe2585862b9d762d9d7166c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/conversation_group_desktop_dialogs.dart: FileTooLong \u2014 962 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 462 over it, 1.92\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":"nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b195e2ddf2c0698d5b3e39b597858366c1e38577acd9a2d25bdca958ed301557"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConversationGroupViewModel: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a15e5a7bcd29af4a11764837740e893a5a5711ef3f68ba66e90b216cc08db8d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _BottomInputFieldState.build: MethodTooLong \u2014 build runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":1848}}}],"partialFingerprints":{"codehealthFindingId/v1":"1383f4dab1642a5faedb3beaa0803859c6ea30c0d70c56c49345bdc1808dc2d7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatKitMessageListState.build: MethodTooLong \u2014 build runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"a63eaaa3cf47123d578cca6104bcce3092ce4d8dfbf04ef4e7ebfdda0c50bb43"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatKitMessageItemState: 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"46217c6bd81ae7dd5d1996bca3f76b615f7e3c0544a5334dea3756f46d6c56ce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pop_menu/chat_kit_super_tooltip.dart: FileTooLong \u2014 880 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 380 over it, 1.76\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6a3930830deed2d39256129cea91e2305af367548375fd164915e3b8ae5f14a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CreateGroupDialogState.build: MethodTooLong \u2014 build runs 175 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 75 over it, 1.75\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/page/create_group_dialog.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dd600977607fe69dd20fa18e9de58f4c276b7a054ba38935069677d251fb272"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: chat_kit_message_list/chat_kit_message_list.dart: FileTooLong \u2014 872 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: ChatKitMessageListState (83-1287). The bar is 500 significant lines; this is 372 over it, 1.74\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a76359d6153b0c7d1be730e55e1c7c85c24fb0320b0055deec93d9c45ea57a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ChatForwardPageState: ClassTooLong \u2014 692 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 292 over it, 1.73\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":"nim_chatkit_ui/lib/view/page/chat_forward_page.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9498a97955caa6d03ead4722c730e500ec50c944b98b2236becc8fe86ed23abf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SystemNotifyPageState._buildTeamItem: MethodTooLong \u2014 _buildTeamItem runs 171 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 71 over it, 1.71\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"22223c7a12d3d190e34090649c958c4251be17d76ece52efba161f35812ab992"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: view_model/conversation_group_view_model.dart: FileTooLong \u2014 852 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: ConversationGroupViewModel (23-1178). The bar is 500 significant lines; this is 352 over it, 1.70\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":"nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce4023a8ad164698e4e518339922e9f8f3a1113b6dd25706d0bc5ea005fba68"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _BottomInputFieldState: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"77bd03b9bae7ff69987c76973742c996a871121af90ac733c2a423963c8dfa8e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SystemNotifyPageState._buildFriendItem: MethodTooLong \u2014 _buildFriendItem runs 169 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 69 over it, 1.69\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b251f48bb1a4c1d473459afa35ecb7c1f5a9736e7ce760226c160d80d6ba747"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: history/chat_history_message_page.dart: FileTooLong \u2014 828 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: _ChatHistoryMessagePageState (66-1213). The bar is 500 significant lines; this is 328 over it, 1.66\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":"nim_chatkit_ui/lib/view/history/chat_history_message_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d56ae17dbf90f14e2caf6664b1974f23161fbd82bdadf50a0dd5c023c6bcf27"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _TeamSettingPageState._member: MethodTooLong \u2014 _member 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":"nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7a112117168673410a465d048e50151b0be9a63fa846ba63428deb8086a6fec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _BubbleShape.getOuterPath: MethodTooLong \u2014 getOuterPath runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.dart"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e3fc55fc4ca16898c81261ba1c761956be91a3ef216129f857f9e93da1db42"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConversationItem.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":"nim_conversationkit_ui/lib/widgets/conversation_item.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d7094c91bd831c723494d6f2fdc05cd37e48dbe91b1ef38f969830b72b74a2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _DesktopAitPopupState.build: MethodTooLong \u2014 build 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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":2453}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a414e95505cdec829eb5dd5851d4eee85a44e42027616f4c28efcfe2c29971"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatMessageHelper: ClassTooLong \u2014 612 significant lines (blank, comment-only and punctuation-only lines excluded), 24 methods. The bar is 400 significant lines; this is 212 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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a41212f1611badb0fbbffe284c31a18f0bd57646ae3b765fa62b7a2571718c2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: page/chat_forward_page.dart: FileTooLong \u2014 740 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: _ChatForwardPageState (41-1036). The bar is 500 significant lines; this is 240 over it, 1.48\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/page/chat_forward_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be535f12252c47301e1ca73d91428eb19c317bef4ea0065006fefd5327b6160"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ConversationListState: ClassTooLong \u2014 584 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 184 over it, 1.46\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":"nim_conversationkit_ui/lib/widgets/conversation_list.dart"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c88eee2330185479999bf1200ba723a4f028e14a90c0f3ef45293816b99634"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatPageState: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e924aebab88995aefedaf18dd0c55ddcf6ee3b5931dfc471e90f935043fd1525"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TeamKitMemberListPageState.build: MethodTooLong \u2014 build runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_teamkit_ui/lib/view/pages/team_kit_member_list_page.dart"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bbe84c71ea90a7c644cfa917d674481c3dd9af388a61281dfddde6ee42081d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _TeamKitTeamInfoState.build: MethodTooLong \u2014 build 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":"nim_teamkit_ui/lib/view/pages/team_kit_team_info_page.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bfb285eb4357f308f814f57e183f40d291975ed05bf601f1a16efb69ef15d3c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SearchKitGlobalState._buildItem: MethodTooLong \u2014 _buildItem 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":"nim_searchkit_ui/lib/page/search_kit_search_page.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb3866c5d94a9281e4f4ffd94215bf42f2a37b1c0cc091b8d1c3d31edcedb1d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TeamMemberListItemState.build: MethodTooLong \u2014 build runs 130 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 30 over it, 1.30\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_teamkit_ui/lib/view/pages/team_kit_member_list_page.dart"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7c1b00eac0f7a1d97097bf9a14be11a07d20bce10fcef358dc8f5fc38e0d3e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatForwardPageState.build: MethodTooLong \u2014 build runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/page/chat_forward_page.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"7760f9d34130caeaeee40c28f19a06543dbb894f176915539fb8dbc3acf8fe3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widgets/conversation_list.dart: FileTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: _ConversationListState (48-912). The bar is 500 significant lines; this is 141 over it, 1.28\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":"nim_conversationkit_ui/lib/widgets/conversation_list.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81648d80b5eb7b30d06997300cdaf0d4ad44138a7f4b3b7ef5579aa716052b2c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ContactKitDetailPageState._buildBody: MethodTooLong \u2014 _buildBody 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":"nim_contactkit_ui/lib/page/contact_kit_detail_page.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8ed76e14357f761034e022d82f0d7b96d1d682d7ef6b257a69339516f51fc1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatKitMessageListState: 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf45b94062925d4899ec4d10a9243ec29cefc6edae63a66c9423297b6eadd1dd"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BotSubsessionListViewModel: 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":"nim_chatkit_ui/lib/view_model/bot_subsession_list_view_model.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7d640d3857f850d9797faa4131095b6d27f9473c08326a148ec0880955d645"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _SystemNotifyPageState: ClassTooLong \u2014 505 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 105 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":"nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"74471c52ea7f5d0fb6c904324dffaeecbe7ae5c4fc7bdc74d977e9e50aa36efe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatPageState.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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed56867046245346474f69e55f06a1ea95eaa7fea9f5dd593283c2a9b52385e0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BotSubsessionListViewModel: ClassTooLong \u2014 495 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 95 over it, 1.24\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view_model/bot_subsession_list_view_model.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d00bf9fc169ed2efbe448b774765539592d7be5138071878572e9aa8437ef80"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TeamKitAvatarEditorState.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":"nim_teamkit_ui/lib/view/pages/team_kit_avatar_editor_page.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f88e0abd66a8d844a09e9e315e0d42ceca0467add6f9d19a01d42d37371b65b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _TeamSettingPageState: ClassTooLong \u2014 486 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 86 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":"nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"5971b89ca7bf71e7e32a8b185918bed38933e4745a701be340d83ff0f57df93f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _TranslatePanelState.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":"nim_chatkit_ui/lib/view/input/translate_panel.dart"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa9986470dc3209190ab5e8b6ccb3fe37b3d46d767d04cbd23253cb5aefb7c3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: page/bot_subsession_list_page.dart: FileTooLong \u2014 591 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 91 over it, 1.18\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":"nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec98f3c5a1402271ee2dbc0a560b7ed471aa98f50f6a6e5a0fdf94507de7a790"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SuperTooltip.show: MethodTooLong \u2014 show runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.dart"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4495cd9935856beccb8ca23645b9c309fdd2ec15f64fe2f458a13d6b915616"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatPageState._buildChatBody: MethodTooLong \u2014 _buildChatBody runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":1229}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c2bd57371a03ea14abf711c89be1a425d80bc139ecee13093f8b7ce7a623b2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _TeamSettingPageState._setting: MethodTooLong \u2014 _setting runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92103386b0d7b0174a703294f0290a6fb7a831e6f71a5573b84e92a6dc6a361"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AitMemberPickerSheetState.build: MethodTooLong \u2014 build runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f176ea47e92a35fac3964db6f5e1ae2c9ddb4669d439d9099ca4ae2948466fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatHistoryMessagePageState._buildQuickSearchGrid: MethodTooLong \u2014 _buildQuickSearchGrid 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":"nim_chatkit_ui/lib/view/history/chat_history_message_page.dart"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"111ae393a5bff1f0154dddfaa19f9f1e3cb319e0b54f1d7c67d401b9fb1dca52"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: history/chat_date_picker_widget.dart: FileTooLong \u2014 569 significant lines (blank, comment-only and punctuation-only lines excluded), about 67% of them inside a single declaration: _DatePickerPageState (26-647). The bar is 500 significant lines; this is 69 over it, 1.14\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":"nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a070a1ddd5fb02e3600d8f4fbb32475cf5f94faacf976a36bce41a11e926c32"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _TopicChatPageState: ClassTooLong \u2014 454 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 54 over it, 1.14\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":"nim_chatkit_ui/lib/view/page/topic_chat_page.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"754bc64ce80dec7d2cca14d1542a3cff3a8b19ac7de846042810969b8cb2b4b9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pages/team_kit_setting_page.dart: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: _TeamSettingPageState (77-777). The bar is 500 significant lines; this is 40 over it, 1.08\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":"nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56bb96307bdcfdecc5091a166bfbc84e8ac9bf6e864e877124bc2c8b636efba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ConversationGroupAddConversationPageState.build: MethodTooLong \u2014 build runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ca83b80acf901ef59602fb450592164a4cac753b126450cd0be5230404d950b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: page/contact_kit_verify_message_page.dart: FileTooLong \u2014 529 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: _SystemNotifyPageState (35-740). The bar is 500 significant lines; this is 29 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":"nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cbeb742d601541d1cc592a5ecda71350797fe8f94b261f9b4b7b036dfb0a236"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: view_model/bot_subsession_list_view_model.dart: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: BotSubsessionListViewModel (28-727). The bar is 500 significant lines; this is 22 over it, 1.04\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":"nim_chatkit_ui/lib/view_model/bot_subsession_list_view_model.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7aa2952b322f04d683adc25421baaac08eb42524478858f4f8dfcbfa4c2deb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: view_model/conversation_view_model.dart: FileTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 17 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_conversationkit_ui/lib/view_model/conversation_view_model.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6531bb63ec18db6c7bf277294f26263a70baa198cc80f0e430e01cb436da91e1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConversationViewModel: 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":"nim_conversationkit_ui/lib/view_model/conversation_view_model.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"819b12a29d43e68e3fab4a2994c469db79f6a7d37c7344293a4a965a5e01af34"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ChatHistoryMessagePageState.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":"nim_chatkit_ui/lib/view/history/chat_history_message_page.dart"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a508e7659bfc661cd57a617b1b3160dae95de0199a3be567bb48686d29e82ac"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PopupBallonLayoutDelegate.getConstraintsForChild: MethodTooLong \u2014 getConstraintsForChild 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.dart"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"e358d66e64f69eee0b9da13a99e00a1acdc719ec9468a38bfd846d274d1dbb63"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatCollectionMessageListPageState.buildNIMMessage: MethodTooLong \u2014 buildNIMMessage 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":"nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6b27ea88ebb659629c6a4d3f78f5966ffb5153cfa2bbfdf240390b50b0027d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: page/topic_chat_page.dart: FileTooLong \u2014 504 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: _TopicChatPageState (61-694). 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":"nim_chatkit_ui/lib/view/page/topic_chat_page.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3011833587856fc1482aec750f7a3d61c6d3f73bc9b25a155ca5f27f739d2073"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (107 shared lines): nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:42-270 | nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:272-507 \u2014 These two members are variants of one another: 107 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":"nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"358a134ee36f3e68581b7d7800cc2315b1d331f45fd33df2cd21fd09bb2ae6f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (65 shared lines): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:535-658 | nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart:81-193 \u2014 These two members are variants of one another: 65 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"258356d34c2b34e6cc2e765c765f14a45687b8121e47d538cf310ecbd0ea3827"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (64 shared lines): nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:362-452 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:1118-1217 \u2014 These two members are variants of one another: 64 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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"542e63c364a2e0014e380668086218589249a423fb374a93cae3324765397893"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:227-250 | nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:207-230 | nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:219-242 | nim_chatkit_ui/lib/view/history/chat_history_search_result.dart:161-184 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:206-229 | nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart:169-192 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"b21e3ebfad8c884468c6b6ef96f5a7d911bd57d0847bfb8b1218190fab6ce2b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:104-143 | nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:76-115 | nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:113-153 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:75-114 \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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed6098bc07c0a2109028cd6a62d2503f04c870c064ff9f204a2ae3ee377dc522"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): nim_chatkit_ui/lib/view/page/chat_page.dart:427-488 | nim_chatkit_ui/lib/view/page/chat_page.dart:490-545 | nim_chatkit_ui/lib/view/page/topic_chat_page.dart:392-447 | nim_chatkit_ui/lib/view/page/topic_chat_page.dart:449-500 \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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"1093a838cdf51eb1392c3e5a6fd37bb092b440766985f65b706ca51cbdecf69d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (105 corresponding lines): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart:324-459 | nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart:313-417 \u2014 These two members are one piece of code written twice and then edited apart: 105 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bdf1d70981cd877b977845fdd39258c1258e2037cb433f29384b4c4adbe1392"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (98 corresponding lines): nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart:573-670 | nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart:672-775 \u2014 These two members are one piece of code written twice and then edited apart: 98 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a64bf3a031ed42a50c5321d0d70cb1261253b4b5700a328bfb31ae0b2affec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 68\u002B corresponding lines): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:158-225 | nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:132-205 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:131-204 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 68 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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a16136ba8763c7f62f6be3315409828a8c8f9a996a74efd787acf16e98433d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:220-263 | nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:426-471 \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":"nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b1b1bfdfe073ccbfec3cfd183e47a0d4dd1fdbb8a46146760fb92f12da2120"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:360-395 | nim_chatkit_ui/lib/view/history/history_message_item.dart:32-67 \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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"d317ea5955f47e955335048a42a46a318e3d3560c3cb738e768290ac20d526f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (50 corresponding lines): nim_conversationkit_ui/lib/page/add_friend_page.dart:33-82 | nim_conversationkit_ui/lib/page/join_team_page.dart:38-98 \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":"nim_conversationkit_ui/lib/page/add_friend_page.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"747ce9e616422f1e284b6d3377a67ea4534a17f89409350c35dd94fd777f244a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 59\u002B corresponding lines): nim_chatkit_ui/lib/view/page/chat_setting_page.dart:330-395 | nim_contactkit_ui/lib/page/contact_kit_detail_page.dart:490-548 | nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart:713-776 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 59 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":"nim_chatkit_ui/lib/view/page/chat_setting_page.dart"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff43590b5ad714e8727dab4affd15348d28f18a98fa0f831d678ff5a26b79d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): nim_chatkit_ui/lib/helper/chat_message_helper.dart:697-734 | nim_chatkit_ui/lib/helper/chat_message_helper.dart:737-782 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c365eed3072e959f4b484f18240d5e6a97e791a41656b56fdd78a83ef0995f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart:194-234 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:493-527 \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":"nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e61d409ddba56c57c26246e254fee5e4974af684f45491744d743dd1abbcb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 40\u002B corresponding lines): nim_contactkit_ui/lib/page/contact_kit_ai_user_list_page.dart:31-70 | nim_contactkit_ui/lib/page/contact_kit_team_list_page.dart:31-75 | nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_list_page.dart:109-149 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 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":"nim_contactkit_ui/lib/page/contact_kit_ai_user_list_page.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"def34b264ca0e4773500c5fb4cd607dc285968559accfc30b8b5c66fefd513e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): nim_chatkit_ui/lib/view/history/chat_history_message_page.dart:731-763 | nim_chatkit_ui/lib/view/history/chat_history_message_page.dart:765-796 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/history/chat_history_message_page.dart"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99f9497f0877c968ec3018d66c19cce1bdef2b1d5df38748ce2d5af104c574d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2179-2222 | nim_chatkit_ui/lib/view/input/emoji_panel.dart:404-442 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":2179}}}],"partialFingerprints":{"codehealthFindingId/v1":"14045db419c4c6059491f1ba6d4a0ac4e027276587a1267c0579a8ec343d9741"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart:80-118 | nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart:69-102 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"850db3b430ed7d273db4fef4fd7ca370286f8d39b584b8dd14ef3f20712e978b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): nim_chatkit_location/lib/location_map_page.dart:237-256 | nim_chatkit_location/lib/location_map_page.dart:259-285 \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":"nim_chatkit_location/lib/location_map_page.dart"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9f551e0c16fb962dba1f0d9799083dedc420470e5d16912b904b7f019b589f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:488-534 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:1307-1348 \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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9d920f5c003bcdbb16967a594eda207a66bd14deed3824d458ad76238b1df2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart:147-176 | nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart:118-142 \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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61da62415940f5be7fbba620d24a0507147059b783b6f6efe35f60218f5bba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart:820-859 | nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart:861-893 \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":"nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"302988a0293bb730013df72591f50aa2c730b9f928e329b4454b49912b079b8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart:270-308 | nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:501-535 \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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"762373d971de328730a8389da44249dc376438b68eca1ed228ee433a891e9ab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart:156-182 | nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart:184-212 \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":"nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2a7c7d0a42857914fd57e84d44108a79b632fc0ceaa84ce22bdedf3d8dde65"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): nim_teamkit_ui/lib/view/pages/team_kit_manager_list_page.dart:163-188 | nim_teamkit_ui/lib/view/pages/team_kit_member_list_page.dart:391-418 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_teamkit_ui/lib/view/pages/team_kit_manager_list_page.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"f910d037154651222bf551d01fd8324f320260752c93b0c5dabc71bc2bfd28f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): nim_chatkit_ui/lib/view/ait/ait_manager.dart:333-360 | nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2418-2445 \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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"c830d45561040e5aaf991d3a87e58455f41ad7d7b2d987abee599e2e148b3b68"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): nim_chatkit_ui/lib/view_model/chat_view_model.dart:2746-2778 | nim_chatkit_ui/lib/view_model/chat_view_model.dart:2794-2823 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":2746}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ac88b1d13091864b3c81c66c17dea6aad8992d12a222f6992b9eb339d881ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 24\u002B corresponding lines): nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:319-345 | nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:347-380 | nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:473-496 | nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:498-527 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 24 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8b01104c3974d7139cdcd1fea9a519c9d2ff68e7333554170e6e614e16d48e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:265-288 | nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:402-424 \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":"nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"853e9a9da2a5109d922004db2f720251ea8be326233c365478264f3764194ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:246-276 | nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:278-304 \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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"becbeb6cfa8d866d06cb2b7ca0c4d5bb0df84315a5d50ffe7667c425cd4f1460"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): nim_chatkit_ui/lib/view_model/bot_subsession_list_view_model.dart:327-351 | nim_chatkit_ui/lib/view_model/topic_chat_view_model.dart:454-478 \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":"nim_chatkit_ui/lib/view_model/bot_subsession_list_view_model.dart"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a5f7c9a8a60182f66534914c7839ca716a774a4a47ad4423c4fab7d40428e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): nim_chatkit_ui/lib/view_model/chat_view_model.dart:3399-3424 | nim_chatkit_ui/lib/view_model/chat_view_model.dart:3426-3448 \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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":3399}}}],"partialFingerprints":{"codehealthFindingId/v1":"1214650fcd83484e065a961014200a06be097b13899887d76cdc1c5378d9e379"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): nim_chatkit_ui/lib/helper/chat_message_helper.dart:274-292 | nim_chatkit_ui/lib/helper/chat_message_helper.dart:294-312 \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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16fe0ffc88ba642065980810e76b0825585d4e539ce02b230b9a00d1b96ada6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2242-2261 | nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2326-2351 \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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"9efe9848263767c88fc63bafb0d99219692777fde9b0cca85a27a94b2a260022"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_profile_page.dart:85-101 | nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_profile_page.dart:103-124 \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":"nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_profile_page.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"29312e04d0a17024c0f7cf45a662c726b257bb9da64c6de0d3b39cfaff5364c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_binding_page.dart:181-208 | nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_config_page.dart:22-43 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_binding_page.dart"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81208dd5bb0fc12c1db2d64853218455fdb524def11eab6c677eec167b7ebb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): nim_contactkit_ui/lib/page/viewmodel/user_ai_bot_list_viewmodel.dart:23-42 | nim_contactkit_ui/lib/page/viewmodel/user_ai_bot_list_viewmodel.dart:44-66 \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":"nim_contactkit_ui/lib/page/viewmodel/user_ai_bot_list_viewmodel.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe7cba67f54943064e130695be0f0e3a33bc4cf3ca54092137318c9b1df6204"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 21\u002B corresponding lines): im_demo/lib/l10n/S.dart:17-37 | nim_chatkit_callkit/lib/l10n/S.dart:18-38 | nim_chatkit_ui/lib/l10n/S.dart:18-38 | nim_conversationkit_ui/lib/l10n/S.dart:18-38 | nim_searchkit_ui/lib/l10n/S.dart:17-37 | nim_teamkit_ui/lib/l10n/S.dart:18-38 \u2014 These 6 members are one piece of code written 6 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"im_demo/lib/l10n/S.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"770e2959e4b70cfac230740015b11d947d6857b219c6bbc0298a8e7160102dfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:454-472 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:1219-1239 \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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7f08e0bc74b3aaa37d4175e58775af9d84d3dd1ce76c8de81d6785edcbee39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:306-319 | nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_message_pop_menu.dart:213-228 \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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e81adb881827cc962c72a3c1edfca727928ec5e3d6998c4db21f871bbc2037"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): nim_conversationkit_ui/lib/service/ait/database_helper_native.dart:96-108 | nim_conversationkit_ui/lib/service/ait/database_helper_native.dart:110-119 \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":"nim_conversationkit_ui/lib/service/ait/database_helper_native.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e66a817d9fc70325002d31e964e7e6963c66c6aeab4cb343bd799e8e4a101a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): nim_chatkit_ui/lib/view/page/chat_page.dart:547-562 | nim_chatkit_ui/lib/view/page/topic_chat_page.dart:502-516 \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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed13ce8a18795ea4ac416d7dd7e63723a3d09ac8636ef9b58e5cc3bdae93034"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart:796-808 | nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart:810-824 \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":"nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"4965d55a48731cbe796d43fa8882ccb77bb900f750b9228c81f825f3af355e8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart:120-145 | nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart:104-116 \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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3f0d19530d6f96f24d62dedab71d405fcc2fab59687eca1bb6c25e19ad5301"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:73-88 | nim_chatkit_ui/lib/view/history/chat_history_message_page.dart:105-124 \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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0864c55ed2006fc7ee35fdcea9b8671e53b272bed74e95abd3749cc033846881"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): nim_contactkit_ui/lib/page/viewmodel/user_ai_bot_form_viewmodel.dart:24-41 | nim_contactkit_ui/lib/page/viewmodel/user_ai_bot_form_viewmodel.dart:43-60 \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":"nim_contactkit_ui/lib/page/viewmodel/user_ai_bot_form_viewmodel.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41410372bb9a9f88a4a552dfd0fa3e5fb06876e1d5b79086e67d588636f0f84"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): nim_conversationkit_ui/lib/page/conversation_group_manage_page.dart:391-406 | nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart:261-276 \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":"nim_conversationkit_ui/lib/page/conversation_group_manage_page.dart"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"523041b8a6692184b5d6dcc0999e195d298974fffa53a3465ae4b46b463bd8b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:498-512 | nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:514-525 \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":"nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"090efa1bea3719a4fccd87b02165fac4c084e3012ed16faa24d8f6d0c2cfa101"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:1043-1053 | nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:1055-1065 \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":"nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"8252a274fa979e74b75384e2b2cb9247aa2cfb5d9afdf35f5ec87f2cfe854559"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_menu_helper.dart:115-125 | nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_menu_helper.dart:135-147 \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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_menu_helper.dart"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7351d1135ea5b804aafe3d7b8b4ad89a0c2a35022f586a25957cecadf8a518ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart:321-341 | nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:571-592 \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":"nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa8ab217ca715a0156b0700254771be35dc4beaf7dba9c8e801e00444e5230e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 7\u002B corresponding lines): nim_chatkit_ui/lib/model/chat_message_antispam_result.dart:184-192 | nim_chatkit_ui/lib/model/chat_message_antispam_result.dart:243-249 | nim_chatkit_ui/lib/model/chat_message_antispam_result.dart:269-276 | nim_chatkit_ui/lib/model/chat_message_antispam_result.dart:322-330 \u2014 These 4 members are one piece of code written 4 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/model/chat_message_antispam_result.dart"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3ef31b851be73ea949e218619761d10c1176cbe1c085cba9766e91a985230d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): nim_chatkit_ui/lib/media/picture.dart:128-142 | nim_chatkit_ui/lib/media/video.dart:566-581 \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":"nim_chatkit_ui/lib/media/picture.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a34caea440032af56051f54e1e9e49aceac8f03ff5f4d8d923f8b3aa65913b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): nim_chatkit_ui/lib/helper/message_reaction_helper.dart:24-38 | nim_chatkit_ui/lib/view_model/chat_view_model.dart:2147-2157 \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":"nim_chatkit_ui/lib/helper/message_reaction_helper.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9ecdddf1bad527a03e8a5cd99868231c34f695ed6b512622fd07316ee562c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): nim_chatkit_ui/lib/model/chat_message_antispam_result.dart:172-182 | nim_chatkit_ui/lib/model/chat_message_antispam_result.dart:258-267 | nim_chatkit_ui/lib/model/chat_message_antispam_result.dart:310-320 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/model/chat_message_antispam_result.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ffdc6a99dc0dbca3b3effeeb1777544d29f7bfbf3c1fa72b290ea7c07ca42a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart:695-705 | nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart:707-717 \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":"nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73532193dcb19150bb6a44077ac45eadb4017363de7e2aaca9b71c967e1bc95"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): nim_teamkit_ui/lib/view_model/team_setting_view_model.dart:353-366 | nim_teamkit_ui/lib/view_model/team_setting_view_model.dart:392-403 \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":"nim_teamkit_ui/lib/view_model/team_setting_view_model.dart"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbea18b404962efe00b90e06c8450e36239cb37ac596f6260da4cdbade84ef3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_nonsupport_item.dart:12-21 | nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_tips_item.dart:81-91 \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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_nonsupport_item.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d5bf8fb7a5b576e5ded2c736e3c5def27a35f41ea9b9002a9b6cb2d3b10256"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:145-156 | nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:117-130 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:116-129 \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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"0429cdafa0882af8210dd15adbf8b0592841caf2a5171672fc515fd22899edbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_desktop_context_menu.dart:180-190 | nim_chatkit_ui/lib/view/history/chat_history_locate_menu.dart:89-97 \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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_desktop_context_menu.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"545a40dbda5bfe4c99a4f1af7987e28d01fea99dc1d7835c1766cc5159134b77"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart:42-50 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:368-377 \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":"nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78b5d9f6766866c808c452eced9f1828e4f2e076bd0e7f322a18b60a9ef05b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:105-109 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:911-918 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"da45233fd94b43bc1834565ec3b6b94325f6d72a4074a38fad39d487b4313246"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): nim_chatkit_ui/lib/view/ait/ait_manager.dart:368-371 | nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2403-2406 \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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6c4478c39dee56e6879d29aa4b93dd33cd3cc077e9a16050e595913acbb4b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (72 lines \u00D7 2): nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart:597-668 | nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart:701-772 \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 \u0060nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart:597\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":"nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0cfdee6312933d8e75b0bbd34df2b863377a3610e80a9f6ec6e3f4353815504"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:111-173 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:1005-1067 \u2014 before extracting anything, compare \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart\u0060 and \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 209 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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f79eb882c96f8ea5e4967a9d4ebb0681efde0c214824b49c561ef24a83b9e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart:415-459 | nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart:373-417 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 132 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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart:415\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a148e84a35f99ad793759f41ac27064898c997780ac03bc84db456c3d3e0a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:126-166 | nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:362-402 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nim_contactkit_ui/lib/page/contact_kit_verify_message_page.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. 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":"nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8ef3a5227bd4a347d548cbdabe069147fe3ff64915870502a9ecc8f14dcc2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201332 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_desktop_context_menu.dart:106-137 | nim_chatkit_ui/lib/view/history/chat_history_locate_menu.dart:44-72 \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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_desktop_context_menu.dart:106\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_desktop_context_menu.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"684710805c04377c3043947225c620eef393abd5aca6af67548ac47197b3b41a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart:293-322 | nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart:282-311 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 132 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9ba914cbbffc3e791cc08c30b10ade7c31f323662223a2cd9043caee267dcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_history_message_page.dart:220-249 | nim_chatkit_ui/lib/view/history/chat_history_message_page.dart:533-562 \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 \u0060nim_chatkit_ui/lib/view/history/chat_history_message_page.dart:220\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":"nim_chatkit_ui/lib/view/history/chat_history_message_page.dart"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"be95b1d9694c6b67cd5b949c7c1f403d5f032f80040027e5fff7f5f6abda2756"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:170-197 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:169-196 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 209 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 \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:170\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":"nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb5154137f09d40e0b541f41d052ce69bd7ca2fc7f2405a22734094cfe58684"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): nim_chatkit_ui/lib/view/page/chat_setting_page.dart:354-380 | nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart:737-763 \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 \u0060nim_chatkit_ui/lib/view/page/chat_setting_page.dart:354\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":"nim_chatkit_ui/lib/view/page/chat_setting_page.dart"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"34540982ba48fe93e00f6c83fe573b8b28115b241fac75f9045452b0694c79fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart:148-174 | nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart:200-225 \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 \u0060nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart:200\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":"nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d5c7f90a2b63d239b0a70b702e93d0fd051891a82104569b0296efb7821e8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:91-117 | nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:326-352 \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 \u0060nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:91\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"abdb84f4252c4e3762604da8a4ed91f54d306af14a509bf88e6c4fbefdd7503f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:321-346 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:305-330 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 209 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":"nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart"},"region":{"startLine":321}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4e61290d7f05663261fe76c75c5ee4b01b74bbbbf8e92fc9d4d03bc7ee75e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart:394-419 | nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart:422-447 \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, \u0060nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart:421\u0060 calls \u0060isGroupTeam\u0060 and \u0060nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart:448\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":"nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c7fbbc79794b53bf4e86c1cb3a1966662e7548ed9800cee636fb1662bd2b192"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:186-210 | nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:160-184 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:159-183 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 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 \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:186\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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe82eaf957a664801b6b494535aeaf98f62c0a93f8009bb2bf3215f656ce26a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:252-276 | nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:232-256 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:231-255 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2c72cb76a3c1bddb495e707adf33712a749a37ba81fdbde41f83777e62c8b67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart:94-118 | nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart:80-102 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"06010902a5ce6f3361a1c85aeea1110964c9ed808f65af584f9c10809f7c7d55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:383-407 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:1144-1168 \u2014 before extracting anything, compare \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart\u0060 and \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 209 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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"62664b652fa3eb0bc28c9185e04fabea2bd55ccbb6688ac86d4314264cc7c4fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): nim_chatkit_ui/lib/helper/bot_subsession_action_helper.dart:54-77 | nim_chatkit_ui/lib/helper/bot_subsession_action_helper.dart:116-139 \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 \u0060nim_chatkit_ui/lib/helper/bot_subsession_action_helper.dart:54\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/helper/bot_subsession_action_helper.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fe62c671674f3b4b32d987f3cf721ff74331a36d23d9a3529eee415b89ef116"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:240-263 | nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:448-471 \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 \u0060nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:240\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":"nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3564ed04bbe3d75344a1e28db02d1eb7a228d71c649be6139d56c08abfc6297"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 3): nim_teamkit_ui/lib/view/pages/team_kit_manage_page.dart:128-150 | nim_teamkit_ui/lib/view/pages/team_kit_manage_page.dart:171-193 | nim_teamkit_ui/lib/view/pages/team_kit_manage_page.dart:211-233 \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 \u0060nim_teamkit_ui/lib/view/pages/team_kit_manage_page.dart:128\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":"nim_teamkit_ui/lib/view/pages/team_kit_manage_page.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fdfdbe2d99ef80d60750542ee0be4de831691abdf57a2c00da3a88b277bc65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:637-658 | nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart:171-193 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:637\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"d56ea0733bda6aed77f1e79516a27d0d8c0ab4f971673af54382fec44694c624"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201323 lines \u00D7 2): nim_chatkit_ui/lib/view/page/chat_page.dart:455-477 | nim_chatkit_ui/lib/view/page/chat_page.dart:515-535 \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 \u0060nim_chatkit_ui/lib/view/page/chat_page.dart:455\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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5bce67a9d16d77aa38eda61fb446816a3f4da90ca4b73fd45164c888f9b6bd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:228-249 | nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:220-241 | nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart:170-191 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 87 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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efe49f9e423ac612e85fd9ed67aa0e3d861c1b2a164fd60cfe00b1d7c4c0eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:608-629 | nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart:138-159 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:608\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"42641bbb9f565147272571325eaebc6cd65e068d69ba14df1493e2866152f78b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart:57-78 | nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart:49-67 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0aa1d673379e91d4fe187d0a7cea72b5ffad9776758980688dc85bb46ffba4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart:181-202 | nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart:288-309 \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 \u0060nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart:181\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":"nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"2957012a4ad15627011b3d52f1b69b724e7f356361c6bc63f329c7b5e54e9508"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): nim_chatkit_ui/lib/view/page/topic_chat_page.dart:415-436 | nim_chatkit_ui/lib/view/page/topic_chat_page.dart:470-490 \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 \u0060nim_chatkit_ui/lib/view/page/topic_chat_page.dart:415\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":"nim_chatkit_ui/lib/view/page/topic_chat_page.dart"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"702ffbd217dc270242de2715ca4bb252ebb1391c240427a4dbefed3ec4468173"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:411-432 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:1173-1194 \u2014 before extracting anything, compare \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart\u0060 and \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 209 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 \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:411\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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb3690979d468afb0a64e23f63e4b1d2e60a514619466e5d2c530e582b6d71fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart:246-266 | nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart:235-255 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 132 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"92914033413e7dfe8d4dd98221f488d83c130a33808aab1e52fb549169eec325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:208-228 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:207-227 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 209 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":"nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f4cae71ef8aacb80c84a39c0017937230482dd90bab357bed24cd76ee7e192d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:306-326 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:972-992 \u2014 before extracting anything, compare \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart\u0060 and \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 209 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 \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:306\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, \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:971\u0060 calls \u0060symmetric\u0060 and \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:305\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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3e49492393cc470a98e0d6fdcee824fd05fc7b8e51d7dde45d2671f7c00d3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart:331-351 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:1354-1374 \u2014 before extracting anything, compare \u0060nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart\u0060 and \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.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. 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 \u0060nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart:331\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, \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:1352\u0060 calls \u0060_DialogEmptyView\u0060 and \u0060nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart:330\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":"nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f3e4e3ad0dfde05007c338ef1ae2e5f1c173167594e9271f7ce80701510162"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:114-133 | nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:86-105 | nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:124-143 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:85-104 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 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 \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:114\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ff8c1a0fe0826c89cd0c5e1d5ee95da6fc4da9b8588ed2f4e20b61c57b1a2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart:280-299 | nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:508-527 \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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f25164bea52d24e25fb332c82e6fc17f715067d2dbba2b540d1b5dcef7e5b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): nim_chatkit_ui/lib/view/page/chat_setting_page.dart:333-352 | nim_teamkit_ui/lib/view/pages/team_kit_setting_page.dart:716-735 \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 \u0060nim_chatkit_ui/lib/view/page/chat_setting_page.dart:333\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":"nim_chatkit_ui/lib/view/page/chat_setting_page.dart"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b471aeaa2a3e21cbd267b30edf63a1a87bd09e95105781b078ee681d9cdfff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): nim_teamkit_ui/lib/view/pages/team_kit_team_info_page.dart:226-245 | nim_teamkit_ui/lib/view/pages/team_kit_team_info_page.dart:282-301 \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 \u0060nim_teamkit_ui/lib/view/pages/team_kit_team_info_page.dart:226\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":"nim_teamkit_ui/lib/view/pages/team_kit_team_info_page.dart"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"e255041860888deac61f36b0369d407b6885113c4af45e0dba9b0493316b48bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:259-277 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:258-276 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 209 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 \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:259\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":"nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e76d3dfeb577453c96f2a66c5639922c68138268fe2163ae9ab178916ba78e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:320-338 | nim_chatkit_ui/lib/view/history/history_message_item.dart:98-114 \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 \u0060nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:320\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:319\u0060 calls \u0060avatarColor\u0060 and \u0060nim_chatkit_ui/lib/view/history/history_message_item.dart:97\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":"nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57e09e20ab8ed29adece02ccad3baf8a2314bf1df39c5452a7924faaf18cbf2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart:129-146 | nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart:181-199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nim_contactkit_ui/lib/page/contact_kit_black_list_page.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":"nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbb3b7c61cccd52a08ac45c0e605677ad4380fc6c06ba54880b7e27f27fc33e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart:282-298 | nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:510-526 | nim_chatkit_ui/lib/view_model/chat_pin_view_model.dart:175-192 \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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8834262a07c9598de5fcb468c29d652187527be22108c58f62bbe5fdc9f0e20"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart:178-195 | nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart:144-160 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"7744970a0cafe999b3974c909b7ef52985ebd40cec34f57253e4b7a9cd2815a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart:234-251 | nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart:252-269 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart:234\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":"nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"27465ce3b6cfa939a7a67898ca6fb9b1b4003196cd1b620c039b6763ddf62561"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): nim_contactkit_ui/lib/page/contact_kit_detail_page.dart:415-432 | nim_contactkit_ui/lib/page/contact_kit_detail_page.dart:448-465 \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":"nim_contactkit_ui/lib/page/contact_kit_detail_page.dart"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d413568c7e9bc497999bcac188eedd0eca73315fe38d49ee3645e20f0801bab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_binding_page.dart:106-121 | nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_profile_page.dart:192-209 \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 \u0060nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_binding_page.dart:106\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_binding_page.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3de88b7040b6dc64058e94a48c5bd379a819282c50ec6f6b113b4975be1bf4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:194-211 | nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:433-448 \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 \u0060nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:194\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":"nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dba84e5af29e03d73034fd6a742ecd6d097ffde118bf7ba673de789fede20eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:175-192 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:1069-1086 \u2014 before extracting anything, compare \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart\u0060 and \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 209 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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b1549092dae13bab6c8e5724c4e582b793823babfa27b405207c808642137fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:576-592 | nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart:336-352 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:1359-1375 \u2014 before extracting anything, compare \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart\u0060 and \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 209 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 \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:576\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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a395debcc9e1e6a137b4fc484e910a521c62f6d3dd2d35e5270cacdb662aeb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:434-450 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:1196-1212 \u2014 before extracting anything, compare \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart\u0060 and \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 209 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 \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:434\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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e69b5ba0c1263442edb2a0ffd4c8ab40734c96b41d1a2ce3bd078c16ca9e594"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): nim_conversationkit_ui/lib/page/conversation_group_manage_page.dart:489-504 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:307-323 \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 \u0060nim_conversationkit_ui/lib/page/conversation_group_manage_page.dart:489\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":"nim_conversationkit_ui/lib/page/conversation_group_manage_page.dart"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a95eddd3d79d5d1e44735cb97719900db884d3ac78853605a94c67dbcff4f73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): nim_conversationkit_ui/lib/view_model/conversation_view_model.dart:392-408 | nim_conversationkit_ui/lib/view_model/conversation_view_model.dart:424-440 \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 \u0060nim_conversationkit_ui/lib/view_model/conversation_view_model.dart:392\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060nim_conversationkit_ui/lib/view_model/conversation_view_model.dart:441\u0060 calls \u0060getConversationType\u0060 and \u0060nim_conversationkit_ui/lib/view_model/conversation_view_model.dart:409\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":"nim_conversationkit_ui/lib/view_model/conversation_view_model.dart"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"5751724dc04e53e03590a06e458432a22e3c6a46ca1e80fa9a4662ace77db09f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): nim_chatkit_ui/lib/view/ait/ait_manager.dart:438-452 | nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2553-2568 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/ait/ait_manager.dart\u0060 and \u0060nim_chatkit_ui/lib/view/input/bottom_input_field.dart\u0060 as WHOLE FILES: this scan already matched 7 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. 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 \u0060nim_chatkit_ui/lib/view/ait/ait_manager.dart:438\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, \u0060nim_chatkit_ui/lib/view/ait/ait_manager.dart:437\u0060 calls \u0060unfocus\u0060 and \u0060nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2552\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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5bd76c91077be5e9c9b58bfd5736481d479b65691d156b1d370069c8d21d240"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): nim_chatkit_ui/lib/view_model/bot_subsession_list_view_model.dart:332-347 | nim_chatkit_ui/lib/view_model/topic_chat_view_model.dart:456-471 \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 \u0060nim_chatkit_ui/lib/view_model/bot_subsession_list_view_model.dart:332\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":"nim_chatkit_ui/lib/view_model/bot_subsession_list_view_model.dart"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc2fa5d8bd1f6fbe869a6cc1cbc8d5a29accaba074a2860c663decb7a407a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): nim_chatkit_ui/lib/view_model/bot_subsession_list_view_model.dart:478-493 | nim_chatkit_ui/lib/view_model/bot_subsession_list_view_model.dart:516-529 \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 \u0060nim_chatkit_ui/lib/view_model/bot_subsession_list_view_model.dart:478\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":"nim_chatkit_ui/lib/view_model/bot_subsession_list_view_model.dart"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"894271ef9dbb73700578052540a9ec511d657b7c41f7d09f083d4d3584f7561e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): nim_chatkit_ui/lib/view/ait/ait_manager.dart:346-360 | nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2431-2445 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/ait/ait_manager.dart\u0060 and \u0060nim_chatkit_ui/lib/view/input/bottom_input_field.dart\u0060 as WHOLE FILES: this scan already matched 7 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. 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 \u0060nim_chatkit_ui/lib/view/ait/ait_manager.dart:346\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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"f01c761ff2ee5d4bcb9c7e10f80fd1dd3b91e39581eb1a52c715dfe039e24123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:203-217 | nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart:153-167 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 60 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 \u0060nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:203\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":"nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"911e47379a49f6631c6ab06995bbd8d8f73009acb53ffbee23012541556e3c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): nim_chatkit_ui/lib/view/input/actions.dart:85-99 | nim_chatkit_ui/lib/view/input/more_panel.dart:416-430 \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 \u0060nim_chatkit_ui/lib/view/input/actions.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":"nim_chatkit_ui/lib/view/input/actions.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d3443f013cc1ec43a4b946d34fb930fd5d96a955d1ecc418342541a018bbe49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): nim_chatkit_ui/lib/view/page/create_group_dialog.dart:194-208 | nim_contactkit_ui/lib/page/contact_kit_detail_page.dart:522-535 \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 \u0060nim_chatkit_ui/lib/view/page/create_group_dialog.dart:194\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060nim_contactkit_ui/lib/page/contact_kit_detail_page.dart:521\u0060 calls \u0060Spacer\u0060, \u0060MouseRegion\u0060 and \u0060nim_chatkit_ui/lib/view/page/create_group_dialog.dart:194\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":"nim_chatkit_ui/lib/view/page/create_group_dialog.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d522f6536737398742fedab86618b8e81cb90044c584519824d6f7b600eec18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): nim_chatkit_ui/lib/view_model/chat_view_model.dart:3033-3045 | nim_chatkit_ui/lib/view_model/chat_view_model.dart:3114-3128 \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 \u0060nim_chatkit_ui/lib/view_model/chat_view_model.dart:3033\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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":3033}}}],"partialFingerprints":{"codehealthFindingId/v1":"7affabc01f1ad856cdd23aa83a0d8a6be2a19a84caa5a8b8a5892c1c58875ce8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:216-230 | nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:457-471 \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 \u0060nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:216\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"35af274e45a5b4b052badf36d8706e6a9fc2b45bf88737030cd7b6bfc9c8cfb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:331-345 | nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:482-496 \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 \u0060nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:331\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":"nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea57dc0231eaa720c656bfb09bd9c6f405011e28d7da8a8d95b057ffe712e19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:366-380 | nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:513-527 \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 \u0060nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:366\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"28478c24d4a193efc09e497cca31c78ec6de44b6d95d279634bb898d424fffc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): nim_chatkit_ui/lib/view/ait/ait_manager.dart:388-401 | nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2479-2492 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/ait/ait_manager.dart\u0060 and \u0060nim_chatkit_ui/lib/view/input/bottom_input_field.dart\u0060 as WHOLE FILES: this scan already matched 7 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. 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 \u0060nim_chatkit_ui/lib/view/ait/ait_manager.dart:388\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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c6a7699fdd240387d47f70a0d438685b602e2d8d8af17edadec23407825e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:591-604 | nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart:127-140 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:591\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8840b507ea3609222f0cc280fd57f64ddd54c441329901dcb0f4cea6d9f744"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart:152-165 | nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart:121-134 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart:152\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4b071dbd1cef8fcf89a53ed33534593e3561d27e8ef77eeb4d08cbd72687a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/mergedMessage/chat_kit_merged_message_item.dart:150-163 | nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart:514-526 \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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/mergedMessage/chat_kit_merged_message_item.dart:150\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/mergedMessage/chat_kit_merged_message_item.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b75ce9817de60c7727721957556f9cb26dbb478904c9518116a3658b40f79c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): nim_chatkit_ui/lib/view/page/chat_page.dart:448-461 | nim_chatkit_ui/lib/view/page/topic_chat_page.dart:408-421 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/page/chat_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/page/topic_chat_page.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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 \u0060nim_chatkit_ui/lib/view/page/chat_page.dart:448\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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f10326716f6a33b3e847d40ef1850871c1aca0d8830c3b5f0c85a7c22a44a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): nim_contactkit_ui/lib/page/contact_kit_ai_user_list_page.dart:130-143 | nim_contactkit_ui/lib/page/contact_kit_team_list_page.dart:107-120 \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 \u0060nim_contactkit_ui/lib/page/contact_kit_ai_user_list_page.dart:130\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":"nim_contactkit_ui/lib/page/contact_kit_ai_user_list_page.dart"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d366a6d0a67713ae05feddf6b324aa8bc25679ad1e20e379387e0d63dd5f12ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:498-511 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:1316-1329 \u2014 before extracting anything, compare \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart\u0060 and \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 209 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 \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:498\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, \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:496\u0060 calls \u0060_SelectIndicator\u0060, \u0060SizedBox\u0060 and \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:1315\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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"f62ca45b06288b160a090719724c741f7d09bc69081bb2cd4c900d7a5ffaeebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): nim_teamkit_ui/lib/view/pages/team_kit_manager_list_page.dart:205-218 | nim_teamkit_ui/lib/view/pages/team_kit_member_list_page.dart:504-517 \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 \u0060nim_teamkit_ui/lib/view/pages/team_kit_manager_list_page.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":"nim_teamkit_ui/lib/view/pages/team_kit_manager_list_page.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bda5d6637604d4d9c53fc00c56f2f45a1fe35e2cbb0c74ea64c734662a76b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): nim_contactkit_ui/lib/page/contact_kit_ai_user_list_page.dart:88-100 | nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart:160-171 | nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart:212-223 \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 \u0060nim_contactkit_ui/lib/page/contact_kit_ai_user_list_page.dart:88\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":"nim_contactkit_ui/lib/page/contact_kit_ai_user_list_page.dart"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e9318b0b1faba27fb85daad69b54e93ecd8938722045e15d8213c88b18d698a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): nim_contactkit_ui/lib/page/viewmodel/team_list_viewmodel.dart:44-56 | nim_contactkit_ui/lib/page/viewmodel/team_list_viewmodel.dart:60-72 | nim_contactkit_ui/lib/page/viewmodel/team_list_viewmodel.dart:76-88 \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 \u0060nim_contactkit_ui/lib/page/viewmodel/team_list_viewmodel.dart:44\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":"nim_contactkit_ui/lib/page/viewmodel/team_list_viewmodel.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e8dad5455d2b081bd69168ca2f35adf006c23698866c2a2ff3c654f0b03af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nim_chatkit_ui/lib/view/ait/ait_manager.dart:567-579 | nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2668-2680 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/ait/ait_manager.dart\u0060 and \u0060nim_chatkit_ui/lib/view/input/bottom_input_field.dart\u0060 as WHOLE FILES: this scan already matched 7 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. 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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"797dc8e4bedc0f0f0967b0b0652ab094701adca7c9d3de9dea07a2e23b6efdf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart:395-407 | nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart:355-367 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 132 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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart:395\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"354c79e03e1715c1a55cb83d1e04324499d89c26118f0749c82338ab990e2f54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_desktop_context_menu.dart:232-244 | nim_chatkit_ui/lib/view/history/chat_history_locate_menu.dart:117-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_desktop_context_menu.dart"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"599ca6c64a91532ddb3fabc893b7e7ab409e064c0641f4b4ac20d46290f07191"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nim_chatkit_ui/lib/view_model/chat_view_model.dart:3407-3419 | nim_chatkit_ui/lib/view_model/chat_view_model.dart:3431-3443 \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 \u0060nim_chatkit_ui/lib/view_model/chat_view_model.dart:3407\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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":3407}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fa77ed8982e4f225b5354c16003219f7fec10d2943d10ea3d6dd3676a94598"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): nim_teamkit_ui/lib/view/pages/team_kit_manage_page.dart:264-276 | nim_teamkit_ui/lib/view/pages/team_kit_manage_page.dart:292-304 \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 \u0060nim_teamkit_ui/lib/view/pages/team_kit_manage_page.dart:264\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_teamkit_ui/lib/view/pages/team_kit_manage_page.dart"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e8512d8ad5c00f8e4fe3013c2c78d0579529ab28800c6694f255abc4ae21c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 5): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:227-238 | nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:207-218 | nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:219-230 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:206-217 | nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart:169-180 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 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 \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5095e7c40791322737607d9a16c5a6a02da52832d495b3fbc970a147ce207b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:258-269 | nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:244-255 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:257-268 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 65 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 \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:258\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":"nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad732b1785c54f3c29d217e1118362542c1b338414fd9bb3d75742403c39c2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nim_chatkit_ui/lib/view/ait/ait_manager.dart:333-344 | nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2418-2429 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/ait/ait_manager.dart\u0060 and \u0060nim_chatkit_ui/lib/view/input/bottom_input_field.dart\u0060 as WHOLE FILES: this scan already matched 7 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. 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 \u0060nim_chatkit_ui/lib/view/ait/ait_manager.dart:333\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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f76f2f86b6615c7c3a0f6192d20cf82bc18c0d3b1e1013a5e3063c816ddf06"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart:274-285 | nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart:263-274 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 132 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa81f5741d1cd2cba34bd58156f33da6df6da0fe3bdb97b002042c6e1bd4d6a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:966-977 | nim_chatkit_ui/lib/view/chat_kit_message_list/item/mergedMessage/chat_kit_merged_message_item.dart:166-177 \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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"67bb2343088ce2da5b84a96b2c57c809126ee7274b54603f3c8043bb756f64da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_multi_line_text_item.dart:70-81 | nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_text_item.dart:128-139 \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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_multi_line_text_item.dart:70\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_multi_line_text_item.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ba60de05306f81439187365ae623434c08da63341d759c7371b25468491602"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_history_date_picker_dialog.dart:187-198 | nim_chatkit_ui/lib/view/history/chat_history_date_picker_dialog.dart:229-240 \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 \u0060nim_chatkit_ui/lib/view/history/chat_history_date_picker_dialog.dart:187\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":"nim_chatkit_ui/lib/view/history/chat_history_date_picker_dialog.dart"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a98f60451d9a64430758e3403993af23fc788c24c4c12777204961108ebf00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:360-371 | nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:356-367 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 87 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 \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:360\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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f3da1bd555a243dd22c96d7f384f42ee7c4f10832a325d01b3174709010bea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_history_message_page.dart:740-751 | nim_chatkit_ui/lib/view/history/chat_history_message_page.dart:773-784 \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 \u0060nim_chatkit_ui/lib/view/history/chat_history_message_page.dart:740\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":"nim_chatkit_ui/lib/view/history/chat_history_message_page.dart"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"217bbf42a54d6af93f93b9c5f1cba4fe18957da44c1f0656494e873eac72f66c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nim_chatkit_ui/lib/view/page/topic_chat_page.dart:271-283 | nim_chatkit_ui/lib/view/page/topic_chat_page.dart:369-380 \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 \u0060nim_chatkit_ui/lib/view/page/topic_chat_page.dart:369\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":"nim_chatkit_ui/lib/view/page/topic_chat_page.dart"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb150e2323d27fa653ef21244f3322a13764f4354bcaeb3d6ed693a2194137b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:1009-1020 | nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:1030-1041 \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 \u0060nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:1009\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, \u0060nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:1006\u0060 calls \u0060contains\u0060, \u0060add\u0060 and \u0060nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:1029\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":"nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart"},"region":{"startLine":1009}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d8191d6599b657f36e4f1c598bcbffe22706fc881fe6d381e48f7c381bd4bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 6): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:240-250 | nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:220-230 | nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:232-242 | nim_chatkit_ui/lib/view/history/chat_history_search_result.dart:174-184 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:219-229 | nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart:182-192 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 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 \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:240\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"47533e6904fb2eb3c54c12671ecf1ce1980a91db60480ded3513ef1d4d19a926"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart:234-244 | nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart:223-233 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 132 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ecccc082c361dac83b38a23d3e08a3c5f051d778bd0036dc6fdd712a9ff4f3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_multi_line_text_item.dart:74-84 | nim_chatkit_ui/lib/view/page/chat_kit_message_detail_text_page.dart:72-82 \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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_multi_line_text_item.dart:74\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_multi_line_text_item.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"2192c18f40a7095366d7b9368dc8b0d23c204391d04bebfde145f9864d3a7c1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_translation_pop_menu.dart:302-311 | nim_chatkit_ui/lib/view/chat_kit_message_list/reaction/message_reaction_picker.dart:66-76 \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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/reaction/message_reaction_picker.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. 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_translation_pop_menu.dart"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a6437514e4249dfccc1921d751fbb98ab4052bae43469d9d2931408b06fd5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nim_chatkit_ui/lib/view/page/chat_page.dart:511-521 | nim_chatkit_ui/lib/view/page/topic_chat_page.dart:466-476 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/page/chat_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/page/topic_chat_page.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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 \u0060nim_chatkit_ui/lib/view/page/chat_page.dart:511\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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6faf46cc633fa0249efe4eb67262bbf3f698ae0d32608df5136a69597d2d3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nim_chatkit_ui/lib/view/page/chat_page.dart:547-558 | nim_chatkit_ui/lib/view/page/topic_chat_page.dart:502-512 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/page/chat_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/page/topic_chat_page.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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 \u0060nim_chatkit_ui/lib/view/page/chat_page.dart:547\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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"a288b27d92757d4ad1c00cbff5f08af96bcf0711eb5c12c1540bdafb63b86402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nim_chatkit_ui/lib/view_model/chat_view_model.dart:1701-1711 | nim_chatkit_ui/lib/view_model/chat_view_model.dart:3547-3557 \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 \u0060nim_chatkit_ui/lib/view_model/chat_view_model.dart:1701\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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffcf2e46f4b814315da287cae703cae24ff753b8d974c64256e1b0ad75b1a36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nim_chatkit_ui/lib/view_model/chat_view_model.dart:3318-3328 | nim_chatkit_ui/lib/view_model/chat_view_model.dart:3361-3373 \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 \u0060nim_chatkit_ui/lib/view_model/chat_view_model.dart:3318\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060nim_chatkit_ui/lib/view_model/chat_view_model.dart:3329\u0060 calls \u0060getAIContentMsg\u0060 and \u0060nim_chatkit_ui/lib/view_model/chat_view_model.dart:3374\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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":3318}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea167e7d08b0a0b6269d1cb8920ff3d8c1b31e17ea7039e374952140e1eb6d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nim_contactkit_ui/lib/page/viewmodel/user_ai_bot_binding_viewmodel.dart:29-39 | nim_contactkit_ui/lib/page/viewmodel/user_ai_bot_list_viewmodel.dart:24-34 \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 \u0060nim_contactkit_ui/lib/page/viewmodel/user_ai_bot_binding_viewmodel.dart:29\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/page/viewmodel/user_ai_bot_binding_viewmodel.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a94cca2f7cd0c24154b40b5d07762c1ade09240f8a77d4af9a93f8af54401bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:278-288 | nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:414-424 \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 \u0060nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart:278\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":"nim_contactkit_ui/lib/page/viewmodel/validation_application_viewmodel.dart"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd86df08ee101dcda997d01a5510639ae9c8ba385f99ce899fea0d7ef80b1ecb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:716-726 | nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:802-812 \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 \u0060nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:716\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, \u0060nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:801\u0060 calls \u0060where\u0060 and \u0060nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart:715\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":"nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e7f21294e1caeea5b1db71bbc0aac04b0f2dcb3681783358cb7af375c552c4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): nim_teamkit_ui/lib/view/pages/team_kit_manager_list_page.dart:194-204 | nim_teamkit_ui/lib/view/pages/team_kit_member_list_page.dart:477-487 \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 \u0060nim_teamkit_ui/lib/view/pages/team_kit_manager_list_page.dart:194\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":"nim_teamkit_ui/lib/view/pages/team_kit_manager_list_page.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06a265f5591b966a798f6f561a3827b104323e62fa468c15e68abc15164e9a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:158-167 | nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart:132-141 | nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:187-196 | nim_chatkit_ui/lib/view/history/chat_history_video_message_page.dart:131-140 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 103 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 \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:158\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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3a09c4ecb1715ab2eba689e27122cbf00ed45ae130c4186167fa33c9b696412"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): nim_chatkit_ui/lib/view/chat_kit_message_list/item/mergedMessage/chat_kit_merged_message_item.dart:70-79 | nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart:98-107 | nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.dart:410-419 \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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/mergedMessage/chat_kit_merged_message_item.dart:70\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/mergedMessage/chat_kit_merged_message_item.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c958f913670c33a38ba4ba4f2bf6dcdeb1b35575801221fe294b2a9777df762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2242-2251 | nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2326-2335 | nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2723-2732 \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 \u0060nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2242\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, \u0060nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2337\u0060 calls \u0060symmetric\u0060 and \u0060nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2252\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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"984245a94f74b0c7878d790da782b7dfc9477e38d7f4070b808d1a317b11bee7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): nim_chatkit_ui/lib/helper/chat_message_helper.dart:701-710 | nim_chatkit_ui/lib/helper/chat_message_helper.dart:742-751 \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 \u0060nim_chatkit_ui/lib/helper/chat_message_helper.dart:701\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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed13deb14b2fed9ddc654d7a4a1ee77d424c61321530c53e4f600297c1af6468"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart:170-178 | nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart:199-208 \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 \u0060nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart:199\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":"nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f4f2cbd09f3cbe04e0a57b3f3267823c7b33690437fa225512941cc1912e0a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart:191-200 | nim_chatkit_ui/lib/view/page/chat_search_page.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 \u0060nim_chatkit_ui/lib/view/history/chat_history_member_message_page.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. 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":"nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"931a8effa3466999f2375a95499ba66ae8a6d06b104229c4a3674dd4e7406d75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_binding_page.dart:85-94 | nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_list_page.dart:68-77 \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 \u0060nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_binding_page.dart:85\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":"nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_binding_page.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"21516e08d768d5f0fdf76bb1ce1fd813ebdab28003835a80067f4eef37efce74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 5): nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart:72-80 | nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:191-198 | nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:213-220 | nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:429-437 | nim_contactkit_ui/lib/page/contact_kit_verify_message_page.dart:453-461 \u2014 there are 5 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 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart:72\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":"nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"810a0423d3427c0c4f4e273a007a588363c75b9937a238f26097794c243819f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_multi_line_text_item.dart:74-82 | nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_text_item.dart:132-140 | nim_chatkit_ui/lib/view/page/chat_kit_message_detail_text_page.dart:72-80 \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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_multi_line_text_item.dart:74\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_multi_line_text_item.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca86662fbaaf7d1fdfb538ab78e59d2feabea7b6c53addabd434a6d869b53b45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:536-544 | nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart:82-90 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 68 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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:536\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae9d1479400dc92623d333b1f5029b25a9de730476dbbf0306b296c6053e6da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:993-1001 | nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_merged_item.dart:118-126 \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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart:993\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"220b7e70127e40224563b5ce9a9dfb3a5170a495a6ea1ce03ec0b63e808fd561"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart:80-88 | nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart:69-77 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.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. 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"a177daaacaef7c52c065af1e88a4277e966737305344dd28b2eadbeaeb63bd58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): nim_chatkit_ui/lib/view/input/bottom_input_field.dart:1208-1215 | nim_chatkit_ui/lib/view/input/bottom_input_field.dart:1234-1242 \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 \u0060nim_chatkit_ui/lib/view/input/bottom_input_field.dart:1208\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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"5deb153baa2f4f739e9d4f1514797837e01803f73c05b12796a7c8a5bd7fc97e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nim_chatkit_ui/lib/view/page/chat_forward_page.dart:125-133 | nim_chatkit_ui/lib/view/page/chat_forward_page.dart:145-153 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060nim_chatkit_ui/lib/view/page/chat_forward_page.dart:125\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":"nim_chatkit_ui/lib/view/page/chat_forward_page.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbe8174f02f14c42362a4a1bd77f762e7b26f2dfa9debc6ad02b096b2c3682e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nim_chatkit_ui/lib/view_model/chat_view_model.dart:2409-2417 | nim_chatkit_ui/lib/view_model/chat_view_model.dart:2442-2450 \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 \u0060nim_chatkit_ui/lib/view_model/chat_view_model.dart:2409\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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":2409}}}],"partialFingerprints":{"codehealthFindingId/v1":"112c0eeedd9521d4ca125b8dbee34436be9724d52799444879eb206a7c70a8eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nim_contactkit_ui/lib/page/viewmodel/contact_viewmodel.dart:136-144 | nim_contactkit_ui/lib/page/viewmodel/contact_viewmodel.dart:147-155 \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 \u0060nim_contactkit_ui/lib/page/viewmodel/contact_viewmodel.dart:136\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":"nim_contactkit_ui/lib/page/viewmodel/contact_viewmodel.dart"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4270ec9d43a9166a4c5ca2e2f72faf18697e59cbb9a3456980e3f964b566dc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nim_contactkit_ui/lib/page/viewmodel/user_ai_bot_binding_viewmodel.dart:16-24 | nim_contactkit_ui/lib/page/viewmodel/user_ai_bot_list_viewmodel.dart:80-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 both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/page/viewmodel/user_ai_bot_binding_viewmodel.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb852a5ea9880e1c1a483d64e9df3569b637d12311c874e4e90cefd80d1301a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_desktop_context_menu.dart:282-289 | nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_translation_pop_menu.dart:317-324 \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 \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_desktop_context_menu.dart:282\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_desktop_context_menu.dart"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db6678bf6453185b53cb0a1c711207070dd0b6ed8054f216735df6c5c1a6a27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:479-486 | nim_chatkit_ui/lib/view_model/chat_view_model.dart:3489-3496 \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 \u0060nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart:479\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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3563c62ece8f413853aed818b4b0a124f17332e57c7f2f2b994a032a354daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): nim_contactkit_ui/lib/page/contact_kit_ai_user_list_page.dart:90-96 | nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart:162-168 | nim_contactkit_ui/lib/page/contact_kit_black_list_page.dart:214-220 | nim_contactkit_ui/lib/page/contact_kit_team_list_page.dart:90-96 \u2014 there are 4 copies across 3 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 \u0060nim_contactkit_ui/lib/page/contact_kit_ai_user_list_page.dart:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/page/contact_kit_ai_user_list_page.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b51de7681fabdd0d7c1b165debd0e085fcf861fbdf2b4d7fa189d5d48c34a79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): nim_chatkit_ui/lib/view/page/chat_page.dart:282-288 | nim_chatkit_ui/lib/view/page/topic_chat_page.dart:99-105 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/page/chat_page.dart\u0060 and \u0060nim_chatkit_ui/lib/view/page/topic_chat_page.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce025fd6546f39bdc22feb22548f3f460b6b27b6b98e8d5a2f8f0a7f8b0ded9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart:73-80 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:399-405 \u2014 before extracting anything, compare \u0060nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart\u0060 and \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.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. 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 \u0060nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart:73\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":"nim_conversationkit_ui/lib/page/conversation_group_setting_page.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5053c2c8a438ba1e275e9f6d84519ce8c904a1b09fe013befaa2507297be31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_message_pop_menu.dart:151-155 | nim_chatkit_ui/lib/view/chat_kit_message_list/reaction/message_reaction_bar.dart:136-140 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_message_pop_menu.dart"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5a8da0919799763d9b75ac5d55eea549cfec932625fe569b7981934d36f072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): nim_chatkit_ui/lib/view/ait/ait_manager.dart:323-331 | nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2408-2416 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/ait/ait_manager.dart\u0060 and \u0060nim_chatkit_ui/lib/view/input/bottom_input_field.dart\u0060 as WHOLE FILES: this scan already matched 7 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. 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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d715954c8977911d1f240b6d3dcbbc562adaad9fe21cab62fd1576244c3065"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): nim_chatkit_ui/lib/view/ait/ait_manager.dart:587-596 | nim_chatkit_ui/lib/view/input/bottom_input_field.dart:2688-2697 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/ait/ait_manager.dart\u0060 and \u0060nim_chatkit_ui/lib/view/input/bottom_input_field.dart\u0060 as WHOLE FILES: this scan already matched 7 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. 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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af74c4d41af759fe329079f08ec42b492213e0237b660b66ac43edb422bbb4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart:49-55 | nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart:41-47 \u2014 before extracting anything, compare \u0060nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart\u0060 and \u0060nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 95 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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e86111ff461db2f1cdf24a12e92d27a1e5c5ec4daeea55f15e06e4f4f8d8d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart:72-83 | nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart:920-931 \u2014 before extracting anything, compare \u0060nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart\u0060 and \u0060nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 209 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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4535da7f8daed009342fe07abb8f15e7af1089bfe4e877d5cd37ac440bd7b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): im_demo/lib/src/home/home_page.dart:731-746 | im_demo/lib/src/home/home_page.dart:749-764 | im_demo/lib/src/home/home_page.dart:766-781 \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 \u0060im_demo/lib/src/home/home_page.dart:731\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":"im_demo/lib/src/home/home_page.dart"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"26861ecf197b0860b5d3768ec7f515b4b7f60cef0dd65e2a17e51f70e3759454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): im_demo/lib/src/duo/duo_shell_overlay.dart:109-121 | im_demo/lib/src/duo/duo_shell_overlay.dart:124-136 \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 \u0060im_demo/lib/src/duo/duo_shell_overlay.dart:109\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":"im_demo/lib/src/duo/duo_shell_overlay.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e67c16d3323e650a33f83badc264dde3025a03b4c2ed339ef34d7c93c2afb67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): im_demo/lib/src/duo/duo_shell_overlay.dart:95-106 | im_demo/lib/src/duo/duo_shell_overlay.dart:110-121 | im_demo/lib/src/duo/duo_shell_overlay.dart:125-136 \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 \u0060im_demo/lib/src/duo/duo_shell_overlay.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"im_demo/lib/src/duo/duo_shell_overlay.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"157442e0752f1f1f7278366ab9e64b81b1b4d6812c101673531139c6ad2ca4b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): im_demo/lib/src/desktop/desktop_more_menu.dart:395-405 | im_demo/lib/src/desktop/desktop_more_menu.dart:470-480 \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 \u0060im_demo/lib/src/desktop/desktop_more_menu.dart:395\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060im_demo/lib/src/desktop/desktop_more_menu.dart:468\u0060 calls \u0060startsWith\u0060 and \u0060im_demo/lib/src/desktop/desktop_more_menu.dart:393\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":"im_demo/lib/src/desktop/desktop_more_menu.dart"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ab33c0cd085af418d824c9a6d69327d1ca3b0e25895437a0e235a8cd14e3d1"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: nim_chatkit_ui: nim_chatkit_ui: abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 2 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b4f0560beaa922b7b0c0c2cf60bb0de2ac51393fe27616d27c37af21a7fdee61"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatKitMessageListState (LCOM4 13): ChatKitMessageListState\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"eabfd42519c17c5addbe110e9542b19213b97716c85c6b9dee8650f5c06a6713"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatViewModel (LCOM4 8): ChatViewModel\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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8fe94e1489df36c11a307aa20c1a0dcd4828d95fee361419e3d17221f04ba82"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TeamSettingViewModel (LCOM4 6): TeamSettingViewModel\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":"nim_teamkit_ui/lib/view_model/team_setting_view_model.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba2fb6c2c555a11073bad26c129cc228c57f0afc00dd20fe68d9a99ab1bc77a9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ChatPageState (LCOM4 5): ChatPageState\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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ba4b298e28951cae0356a72a1bf765f760747fd7cd04527a3604b36ab8c9f8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ConversationViewModel (LCOM4 5): ConversationViewModel\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":"nim_conversationkit_ui/lib/view_model/conversation_view_model.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7a53091c0ad8a8ba66d5cb13d37288ae04c8be3166fe532e963bfa0b56004b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _MainAppState (LCOM4 4): _MainAppState\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":"im_demo/lib/main.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"e74edd2d2654d6ab7dbe6afee2494d388d3bccaffaf2fa1d60aa1123b003279a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _ChatKitPinMessageItemState (LCOM4 4): _ChatKitPinMessageItemState\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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a365a29dd45d39773288dce24e80fbf02f3647c7028a03bcae5ff6f06b76c06"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TopicChatViewModel (LCOM4 4): TopicChatViewModel\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":"nim_chatkit_ui/lib/view_model/topic_chat_view_model.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ac7e391eccf313697fb4ea9cbf5e5455bb60a8f9554bd37760b51aff09d685"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ConversationGroupViewModel (LCOM4 4): ConversationGroupViewModel\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":"nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"12394ebb67ae752630ff1593deea3b3f898be85a892fbad1cb012a4ea18b9aed"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nim_chatkit_ui/lib/view_model/chat_view_model.dart: nim_chatkit_ui/lib/view_model/chat_view_model.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in ChatViewModel._setNIMMessageListener at line 1355. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 17:16:29 \u002B08:00\u0027 --until=\u00272026-11-10 17:16:29 \u002B08:00\u0027 --full-history --no-merges -- nim_chatkit_ui/lib/view_model/chat_view_model.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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":1355}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a7cb7372c0022916ce3a3f58d29ab8e3befea3b59924bdbced57d641d9e779"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart: nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in ChatKitMessageItemState._buildMessage at line 535. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 17:16:29 \u002B08:00\u0027 --until=\u00272026-11-10 17:16:29 \u002B08:00\u0027 --full-history --no-merges -- nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"db757f479e91911c07745a05f607a2e264598f3d60fe854278e9537bbe3ccca5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart: nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in ChatKitMessageListState._initScrollController at line 861. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 17:16:29 \u002B08:00\u0027 --until=\u00272026-11-10 17:16:29 \u002B08:00\u0027 --full-history --no-merges -- nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e25544054e0c98842d284aba357a5b05fc0a56f838424234d01d79e0b58675"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nim_conversationkit_ui/lib/widgets/conversation_item.dart: nim_conversationkit_ui/lib/widgets/conversation_item.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in ConversationItem.build at line 149. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 17:16:29 \u002B08:00\u0027 --until=\u00272026-11-10 17:16:29 \u002B08:00\u0027 --full-history --no-merges -- nim_conversationkit_ui/lib/widgets/conversation_item.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":"nim_conversationkit_ui/lib/widgets/conversation_item.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e8aa62e2873574e9df48fb02f79eb690b5f86e96d734f9450250c80ccb6e94"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.dart: nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in _PopupBallonLayoutDelegate.getConstraintsForChild at line 705. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 17:16:29 \u002B08:00\u0027 --until=\u00272026-11-10 17:16:29 \u002B08:00\u0027 --full-history --no-merges -- nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.dart"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"a391d9ecdb9e6295545877bc7b2dbbc299c98243963f8590ef44362215da38b4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nim_chatkit_ui/lib/view/page/chat_page.dart: nim_chatkit_ui/lib/view/page/chat_page.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ChatPageState.build at line 633. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 17:16:29 \u002B08:00\u0027 --until=\u00272026-11-10 17:16:29 \u002B08:00\u0027 --full-history --no-merges -- nim_chatkit_ui/lib/view/page/chat_page.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":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"b791fd1c0537f69d605df9c04c6ec11cbfbb66ff993a9f23cce9596711cf24b5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart: nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ConversationGroupViewModel._loadUnreadConversations at line 738. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 17:16:29 \u002B08:00\u0027 --until=\u00272026-11-10 17:16:29 \u002B08:00\u0027 --full-history --no-merges -- nim_conversationkit_ui/lib/view_model/conversation_group_view_model.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":"nim_conversationkit_ui/lib/view_model/conversation_group_view_model.dart"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"3357960b06f2248f59c34cdcdf673d5028422ffdb09e6b5cb9e8413e93836425"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: nim_conversationkit_ui/lib/page/conversation_page.dart: nim_conversationkit_ui/lib/page/conversation_page.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in _ConversationPageState.build at line 54. 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-12..2026-11-10, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-12 17:16:29 \u002B08:00\u0027 --until=\u00272026-11-10 17:16:29 \u002B08:00\u0027 --full-history --no-merges -- nim_conversationkit_ui/lib/page/conversation_page.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":"nim_conversationkit_ui/lib/page/conversation_page.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"4836378d31382920d050e416bfbabc36b7d80430d239634f5d5b8e903ebe3ab0"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 13 significant file(s) lose their only recent owner: nim_chatkit_ui/lib/view_model/chat_view_model.dart, nim_chatkit_ui/lib/view/input/bottom_input_field.dart, nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart, nim_chatkit_ui/lib/helper/chat_message_helper.dart, nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart, nim_conversationkit_ui/lib/view_model/conversation_view_model.dart, nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_message_pop_menu.dart, nim_conversationkit_ui/lib/widgets/conversation_item.dart (\u002B5 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"acb5d60955230469b04fbd609fe697aab1648e5a1fe689d7c7f0ba65d123bb1d"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //fixme azListView \u6CA1\u6709\u63D0\u4F9B\u60AC\u6D6E\u529F\u80FD\u5F00\u5173\uFF0C\u8FD9\u91CC\u662F\u4E00\u4E2A\u89C4\u907F\u529E\u6CD5 \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":"nim_contactkit_ui/lib/widgets/az_lsit_view_container.dart"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7c6b3b9f9694ff946f6a1d0f7a01af26991413160c835f817122050d3d3d19c"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(duo-simulator): mobile_scanner 7.x \u9ED8\u8BA4 autoStart\uFF0C\u79FB\u9664\u4E86\u624B\u52A8 start()\uFF0C \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":"nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_scan_page.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e03121bfa97bf8f5445912828dc0527a933dd86a1fc05039cd83a944a3b051f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(duo-simulator): mobile_scanner 7.x \u7684 errorBuilder \u7B7E\u540D\u53D8\u66F4\uFF0C\u53D1\u5E03\u524D\u8BF7\u771F\u673A\u56DE\u5F52\u9519\u8BEF\u6001\u3002 \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":"nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_scan_page.dart"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02b060c0e25622c5d1b5e1fc347a802f14db8b349847d326021fd152b346ca1"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME(duo-simulator): \u4EC5\u7528\u4E8E\u5F00\u53D1\u9884\u89C8\uFF0C\u53D1\u5E03\u524D\u786E\u8BA4\u662F\u5426\u79FB\u9664\u8BE5\u8C03\u8BD5\u5F00\u5173\u3002 \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":"nim_chatkit_ui/lib/helper/duo_layout.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a9929c57392dd4febafece8311791e7f7d6ef87abe86d69ea692b7c7c39a6f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: /// FIXME(duo-simulator): \u4EC5\u7528\u4E8E\u5F00\u53D1\u9884\u89C8\uFF0C\u53D1\u5E03\u524D\u786E\u8BA4\u662F\u5426\u79FB\u9664\u8BE5\u8C03\u8BD5\u5F00\u5173\u3002 \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":"nim_chatkit_ui/lib/helper/duo_layout.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d156751fc96f9245599343e43bbbd4d0a7cb86b3632d0b3b5c817f1da70473"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME(duo-simulator): \u6298\u53E0\u6001\u9884\u89C8\u5F00\u5173\u4E0B\u7A97\u53E3\u4ECD\u662F\u5185\u5C4F\u5C3A\u5BF8\uFF0C\u6309\u7A97\u53E3 1:1 \u7F29\u653E\u4FBF\u4E8E\u622A\u56FE\u9A8C\u8BC1\u3002 \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":"im_demo/lib/main.dart"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60bc5e0458d8f0932a6989c28649f749d5b68142e3aeac286a0b4dc7f77e846"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo \u8BBE\u7F6EAndroid\u901A\u77E5\u680F\u70B9\u51FB\u8DF3\u8F6C\u7C7B \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":"im_demo/lib/src/config.dart"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"2724e09a82901248a1e40544e245c73d73168bdff44c20babd848e6e3069e50c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //todo Android\u63A8\u9001\u914D\u7F6E\uFF0C\u8BF7\u8FD9\u662F\u81EA\u5DF1\u7684\u4FE1\u606F \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":"im_demo/lib/src/config.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3d882bdd875e97d54ac9314a3ea60ec6333999e9915c300a88653aef97d69c2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo \u4EE5\u4E0B\u6F14\u793A\u6DFB\u52A0\u81EA\u5B9A\u4E49\u6D88\u606F\u53D1\u9001\uFF0C\u5BA2\u6237\u6839\u636E\u81EA\u5DF1\u9700\u6C42\u5B9A\u5236 \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":"im_demo/lib/src/home/home_page.dart"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e17703500da2e949c6f34d24d1be9eb41cc392e949611f76082f09ca6bdee7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: //fixme \u5C06\u60A8\u7684\u4E91\u4FE1IM\u8D26\u53F7(accid)\u548CToken\u8BBE\u7F6E\u5728\u8FD9\u91CC\u5373\u53EF \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":"im_demo/lib/src/home/splash_page.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9c56562acd6e62de91d95abeffd333d3330dc84126bcb8ea1ee6fa79eb31cc6"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: the repository holds project manifests and neither \u0060README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33a5992d4bd6ac1ea4b853ae69753fcd7e0410099c58731c86be53325ba8c96"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060userID\u0060 spells \u0060ID\u0060 where 100 names in the project spell it \u0060Id\u0060: 100 of 101 names in project repository.view spell the token \u0060Id\u0060 (100 of 101; unit: names in project repository.view containing \u0060Id\u0060). Peers: AitManager.teamId (nim_chatkit_ui/lib/view/ait/ait_manager.dart:42); AitManager.AitManager(teamId) (nim_chatkit_ui/lib/view/ait/ait_manager.dart:54); AitBean.getAccountId (nim_chatkit_ui/lib/view/ait/ait_model.dart:23); ChatKitMessageListState._pivotMessageId (nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart:102); ChatKitMessageListState._scrollToBottomSessionId (nim_chatkit_ui/lib/view/chat_kit_message_list/chat_kit_message_list.dart:122). Rename to \u0060userId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/page/chat_page.dart"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"343c25d2352aab99927ea091e0398c10f4c92e0bb5b997079b4a18a75fb46ba1"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060nim_chatkit_ui\u0060 (37947 LoC, 172 module-visible types across 23 directories) overshoots its size bounds. 1 of 10 build unit(s) (Gradle, pub) overshoot their size bounds, lowering Project Cohesion to 8.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":"nim_chatkit_ui/pubspec.yaml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"53fb476b9fb03188d3f395ba5b0baf3fdadd2fd84e0f3481631f595c56bc3f7f"}},{"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":"647dfe1988ebc02ca6e44764b3a5490bba3f6e032a52c436f81f77caf10cefa8"},"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":"156d07b0935bd3c9ef4b5488c403c6f20e942313a976df8f8afd8120d14ff3df"},"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":"499877dc616a9007b5230327e62adc5d199196d5442f077a7df9343bd1d9fe44"},"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":"3e935e48e72bf1f62467a610948e146cb98722aaf7b9cebb7cfc82ea5efaba1a"},"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":"AX6","level":"note","message":{"text":"Fat interface: DemoKitClientLocalizations (76 abstract methods): \u0060DemoKitClientLocalizations\u0060 declares 76 abstract methods: \u0060appName\u0060, \u0060yunxinName\u0060, \u0060yunxinDesc\u0060, \u0060welcomeButton\u0060, \u0060message\u0060, \u0060contact\u0060, \u0060mine\u0060, \u0060conversation\u0060, \u0060tabChat\u0060, \u0060desktopWelcomeTitle\u0060, \u0060dataIsLoading\u0060, \u0060tabMineAccount\u0060, \u0060mineCollect\u0060, \u0060mineAbout\u0060, \u0060mineSetting\u0060, \u0060mineVersion\u0060, \u0060mineProduct\u0060, \u0060userInfoTitle\u0060, \u0060userInfoAvatar\u0060, \u0060userInfoAccount\u0060, \u0060userInfoNickname\u0060, \u0060userInfoSexual\u0060, \u0060userInfoBirthday\u0060, \u0060userInfoPhone\u0060, \u0060userInfoEmail\u0060, \u0060userInfoSign\u0060, \u0060actionCopySuccess\u0060, \u0060sexualMale\u0060, \u0060sexualFemale\u0060, \u0060sexualUnknown\u0060, \u0060userInfoComplete\u0060, \u0060requestFail\u0060, \u0060mineLogout\u0060, \u0060logoutDialogContent\u0060, \u0060logoutDialogAgree\u0060, \u0060logoutDialogDisagree\u0060, \u0060settingNotify\u0060, \u0060settingClearCache\u0060, \u0060settingPlayMode\u0060, \u0060settingFilterNotify\u0060, and 36 more. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"im_demo/lib/l10n/demo_localization/demo_kit_client_localizations.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3a1ddf84133951880c6f74df45a0b64219df5c88a134b7be08231dce931465"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ChatKitClientLocalizations (347 abstract methods): \u0060ChatKitClientLocalizations\u0060 declares 347 abstract methods: \u0060chatMessageSendHint\u0060, \u0060chatPressedToSpeak\u0060, \u0060chatMessageVoiceIn\u0060, \u0060chatMessagePickPhoto\u0060, \u0060chatMessagePickVideo\u0060, \u0060chatMessageMoreShoot\u0060, \u0060chatMessageTakePhoto\u0060, \u0060chatMessageTakeVideo\u0060, \u0060chatMessageNonsupport\u0060, \u0060chatMessageMoreFile\u0060, \u0060chatMessageMoreTranslate\u0060, \u0060chatTranslateTo\u0060, \u0060chatTranslateSure\u0060, \u0060chatTranslating\u0060, \u0060chatTranslateUse\u0060, \u0060chatTranslateLanguageTitle\u0060, \u0060chatMessageMoreLocation\u0060, \u0060chatMessageAMapNotFound\u0060, \u0060chatMessageTencentMapNotFound\u0060, \u0060chatMessageAMap\u0060, \u0060chatMessageTencentMap\u0060, \u0060chatMessageUnknownType\u0060, \u0060chatMessageImageSave\u0060, \u0060chatMessageImageSaveFail\u0060, \u0060chatMessageVideoSave\u0060, \u0060chatMessageVideoSaveFail\u0060, \u0060chatSaveFileDialogTitle\u0060, \u0060chatMessageActionCopy\u0060, \u0060chatMessageActionReply\u0060, \u0060chatMessageActionForward\u0060, \u0060messageTranslationHide\u0060, \u0060chatMessageActionPin\u0060, \u0060chatMessageActionUnPin\u0060, \u0060chatMessageActionMultiSelect\u0060, \u0060chatMessageActionCollect\u0060, \u0060chatMessageActionDelete\u0060, \u0060chatMessageActionRevoke\u0060, \u0060chatMessageCopySuccess\u0060, \u0060chatMessageCollectSuccess\u0060, \u0060chatMessageDeleteConfirm\u0060, and 307 more. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/l10n/chat_localization/chat_kit_client_localizations.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b13f448c0a0612af59feb79ee4d28a3108f5623f55c043f975792f8e9457ca"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ContactKitClientLocalizations (107 abstract methods): \u0060ContactKitClientLocalizations\u0060 declares 107 abstract methods: \u0060contactTitle\u0060, \u0060contactNick\u0060, \u0060contactAccount\u0060, \u0060contactVerifyMessage\u0060, \u0060contactBlackList\u0060, \u0060contactTeam\u0060, \u0060contactAIUserList\u0060, \u0060contactComment\u0060, \u0060contactBirthday\u0060, \u0060contactPhone\u0060, \u0060contactMail\u0060, \u0060contactSignature\u0060, \u0060contactMessageNotice\u0060, \u0060contactAddToBlacklist\u0060, \u0060contactChat\u0060, \u0060contactDelete\u0060, \u0060contactDeleteSpecificFriend\u0060, \u0060contactCancel\u0060, \u0060contactAddFriend\u0060, \u0060contactYouWillNeverReceiveAnyMessageFromThosePerson\u0060, \u0060contactRelease\u0060, \u0060contactUserSelector\u0060, \u0060contactSure\u0060, \u0060contactSureWithCount\u0060, \u0060contactSelectAsMost\u0060, \u0060contactClean\u0060, \u0060contactAccept\u0060, \u0060contactAccepted\u0060, \u0060contactRejected\u0060, \u0060contactIgnored\u0060, \u0060contactExpired\u0060, \u0060contactReject\u0060, \u0060contactApplyFrom\u0060, \u0060contactSomeoneInviteYourJoinTeam\u0060, \u0060contactSomeAcceptYourApply\u0060, \u0060contactSomeRejectYourApply\u0060, \u0060contactSomeAcceptYourInvitation\u0060, \u0060contactSomeRejectYourInvitation\u0060, \u0060contactSomeAddYourAsFriend\u0060, \u0060contactSomeoneApplyJoinTeam\u0060, and 67 more. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/l10n/contact_localization/contact_kit_client_localizations.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea0a0aee14f10ee5fd711fb649e0a7e3b447b9dc57653f2186c03cd3c7f730c"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ConversationKitClientLocalizations (64 abstract methods): \u0060ConversationKitClientLocalizations\u0060 declares 64 abstract methods: \u0060conversationTitle\u0060, \u0060createAdvancedTeamSuccess\u0060, \u0060stickTitle\u0060, \u0060cancelStickTitle\u0060, \u0060deleteTitle\u0060, \u0060recentTitle\u0060, \u0060cancelTitle\u0060, \u0060sureTitle\u0060, \u0060sureCountTitle\u0060, \u0060conversationNetworkErrorTip\u0060, \u0060addFriend\u0060, \u0060conversationSearchHint\u0060, \u0060addFriendSearchHint\u0060, \u0060addFriendSearchEmptyTips\u0060, \u0060createGroupTeam\u0060, \u0060createAdvancedTeam\u0060, \u0060chatMessageNonsupportType\u0060, \u0060conversationEmpty\u0060, \u0060somebodyAitMe\u0060, \u0060robotSubConversation\u0060, \u0060audioMessageType\u0060, \u0060imageMessageType\u0060, \u0060videoMessageType\u0060, \u0060locationMessageType\u0060, \u0060fileMessageType\u0060, \u0060notificationMessageType\u0060, \u0060tipMessageType\u0060, \u0060chatHistoryBrief\u0060, \u0060joinTeam\u0060, \u0060joinTeamSearchHint\u0060, \u0060joinTeamSearchEmptyTips\u0060, \u0060scanRobot\u0060, \u0060chatMessageBriefVideoCall\u0060, \u0060chatMessageBriefAudioCall\u0060, \u0060muteTitle\u0060, \u0060cancelMuteTitle\u0060, \u0060closeTitle\u0060, \u0060saveTitle\u0060, \u0060conversationGroupTitle\u0060, \u0060conversationGroupAll\u0060, and 24 more. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_conversationkit_ui/lib/l10n/conversation_localization/conversation_kit_client_localizations.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71aad553ade7bc52f4f03be3dd7bd64336ed50dc37f1e27724ff089f69ae336"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: TeamKitClientLocalizations (71 abstract methods): \u0060TeamKitClientLocalizations\u0060 declares 71 abstract methods: \u0060teamSettingTitle\u0060, \u0060teamInfoTitle\u0060, \u0060teamGroupInfoTitle\u0060, \u0060teamNameTitle\u0060, \u0060teamGroupNameTitle\u0060, \u0060teamMemberTitle\u0060, \u0060teamGroupMemberTitle\u0060, \u0060teamIconTitle\u0060, \u0060teamGroupIconTitle\u0060, \u0060teamIntroduceTitle\u0060, \u0060teamMyNicknameTitle\u0060, \u0060teamMark\u0060, \u0060teamHistory\u0060, \u0060teamMessageTip\u0060, \u0060teamSessionPin\u0060, \u0060teamMute\u0060, \u0060teamInviteOtherPermission\u0060, \u0060teamUpdateInfoPermission\u0060, \u0060teamNeedAgreedWhenBeInvitedPermission\u0060, \u0060teamAdvancedDismiss\u0060, \u0060teamAdvancedQuit\u0060, \u0060teamGroupQuit\u0060, \u0060teamDefaultIcon\u0060, \u0060teamAllMember\u0060, \u0060teamOwner\u0060, \u0060teamUpdateIcon\u0060, \u0060teamCancel\u0060, \u0060teamConfirm\u0060, \u0060teamQuitAdvancedTeamQuery\u0060, \u0060teamQuitGroupTeamQuery\u0060, \u0060teamDismissAdvancedTeamQuery\u0060, \u0060teamSave\u0060, \u0060teamSearchMember\u0060, \u0060teamNoPermission\u0060, \u0060teamNameMustNotEmpty\u0060, \u0060teamManage\u0060, \u0060teamAitPermission\u0060, \u0060teamManager\u0060, \u0060teamAddManagers\u0060, \u0060teamOwnerManager\u0060, and 31 more. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_teamkit_ui/lib/l10n/team_localization/team_kit_client_localizations.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7312fb90e05a1cdf2f9ef34a47a910cee89b3a071a93bec684280d3ce07255"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060repository.widgets\u0060 is marked as implementation by its own namespace, folder or name: \u0060ISuspensionBeanImpl\u0060 (nim_contactkit_ui/lib/widgets/az_lsit_view_container.dart:213, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_contactkit_ui/lib/widgets/az_lsit_view_container.dart"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1a6c444bba88062070dfeb54f94440bd25c9a99445fc2ff630d023effb65ded"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060repository.service\u0060 is marked as implementation by its own namespace, folder or name: \u0060DatabaseHelperImpl\u0060 (nim_conversationkit_ui/lib/service/ait/database_helper_native.dart:12, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_conversationkit_ui/lib/service/ait/database_helper_native.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87a77eeda0c82cdbe9f2608a26bd45e013cceb3a66b353c37e2e15e70a9db6b"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging or diagnostics emission found. This repository ships a binary its users launch rather than a service you operate, so there is no operator to page \u2014 but when a run fails on a user\u0027s machine, neither they nor you have anything to read."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add the Dart analyzer\u0027s security lints plus \u0060semgrep --config=auto\u0060 \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060im_demo/android/app/build.gradle\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"im_demo/android/app/build.gradle"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0d0321790c54e888057073775a2bfd616ef70217b8bfdc1a7f19b688537cdb"}},{"ruleId":"P6","level":"note","message":{"text":"Published package \u0060nim_chatkit_location\u0060 commits its lockfile: \u0060nim_chatkit_location/pubspec.yaml\u0060 publishes \u0060nim_chatkit_location\u0060 10.0.0 to a pub registry, and \u0060nim_chatkit_location/pubspec.lock\u0060 is committed beside it. pub\u0027s guidance splits on exactly this: an application commits \u0060pubspec.lock\u0060 because the resolution it records is the one that runs, and a package does not, because no consumer ever uses it \u2014 they resolve your declared version ranges against their own dependency set. The cost is not tidiness: the committed lockfile is what your own CI resolves against, so the ranges you publish are never exercised, and the first consumer to resolve a newer compatible version is the one who discovers whether the range was right. Remove it with \u0060git rm --cached pubspec.lock\u0060 and add \u0060pubspec.lock\u0060 to \u0060.gitignore\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_location/pubspec.lock"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db1f072e845c184e0a29e09093587cce626f4f204570a5f775b4284d9fc30c9"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_onTakePhoto\u0060 is async and calls readAsBytesSync \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":"nim_chatkit_ui/lib/view/input/more_panel.dart"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"dac8c92e161dded8706727bfafbc794f2cb0582fc65d7647108ec80ae3e1ce25"}},{"ruleId":"S1","level":"warning","message":{"text":"Third-party script without Subresource Integrity: \u0060https://sdk.amazonaws.com/js/aws-sdk-2.410.0.min.js\u0060 is executed by this page with no Subresource Integrity. Whoever can answer that request \u2014 the CDN, anyone who compromises it, anyone on the network path \u2014 runs arbitrary script in this page\u0027s origin, with its session. The URL also names no version, so it resolves to whatever that origin serves at fetch time \u2014 the executed bytes can change with nobody touching this repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"im_demo/web/index.html"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b054c73d8afa3fc4602c1619a4867731303a2824a906a6b67289ed8bce4ca88c"}},{"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":"nim_chatkit_ui/lib/media/audio_player.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49180f227b2407b2c636e7a633b2f0d8c5fc6b96f10b7fd965191485b0fb989"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!_hasMore \u0026\u0026 _historyMessages.isNotEmpty\u0060 appears character-identically in 3 files \u2014 nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart, nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart, nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b11485e23f65a12a006bd33b925c6b8e6169b136e3812d16798621163e6bed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!_hasMore \u0026\u0026 _historyMessages.isNotEmpty == true\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart, nim_chatkit_ui/lib/view/history/chat_history_video_message_page.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":"nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5900bbcddcc4e1365ea60e691c0e86419cdd5051c592638becc301cc4c6a11"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!_isInTargetGroup(conversation) \u0026\u0026 conversation.getName().contains(keyword)\u0060 appears character-identically in 2 files \u2014 nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart, nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dbb18c23b01b514590489f92448ca64efceaff69828ebd091f557d62e03dff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!_isSearching \u0026\u0026 _showConversations.length \u003C widget.model.conversationViewModel.pageLimit \u0026\u0026 !_finished\u0060 appears character-identically in 2 files \u2014 nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart, nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e930bf5f61eea7565f2720ee765b36e41f6c683fdf630fe4e251043818379a37"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!mounted || generation != _searchGeneration\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/ait/ait_manager.dart, nim_chatkit_ui/lib/view/input/bottom_input_field.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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d28ef557c887bc00601106e40e98e3d534e48e0672d87729d4684cf34235f24"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!result.isSuccess \u0026\u0026 result.code != ChatViewModel.messageReactionNetworkUnavailableCode\u0060 appears character-identically in 3 files \u2014 nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart, nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_desktop_context_menu.dart, nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_message_pop_menu.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"63fd0ad6b47b3476af4c0309b6c46fa2d77a84af13b9179967290c67bfcbc1cf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!result.isSuccess || result.data == null\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/media/media_bottom_actions.dart, nim_chatkit_ui/lib/view_model/chat_view_model.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":"nim_chatkit_ui/lib/media/media_bottom_actions.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea4f3d12a07751cb73fd46d7b752ad6ab0017c174fae5535668f2bbd5aa2b90"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(await IMKitClient.enableCloudMessageSearch) \u0026\u0026 !checkNetwork()\u0060 appears character-identically in 5 files \u2014 nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart, nim_chatkit_ui/lib/view/history/chat_history_image_message_page.dart, nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart, nim_chatkit_ui/lib/view/history/chat_history_message_page.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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"933cd2ca2142a3a581f5e812b71fe091299a6cbeb30833e1dadd8725526216aa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060IMKitConfigCenter.enableMessageReaction \u0026\u0026 MessageReactionHelper.isSupported(message)\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_desktop_context_menu.dart, nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_message_pop_menu.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_desktop_context_menu.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"297e4549b8b533c7b65a77a8f84a82f16fdb13cddf26a65964177bcd9b34b210"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_isSearching || _loading || _loadingMore || _finished\u0060 appears character-identically in 2 files \u2014 nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart, nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bab73931a771836c5ab18b8be9035a2ad37e3016d76da7a3bb088dcf3276c4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_localPath?.isNotEmpty == true \u0026\u0026 await File(_localPath!).existsSync()\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart, nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"167b1f37330997b09f96b32638d87e999c45420a4b21d5e21202598b30fdfe78"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_query.trim().isEmpty || _loadingAllMembers\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/ait/ait_manager.dart, nim_chatkit_ui/lib/view/input/bottom_input_field.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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2da89956b4f553cb2ef20847354cf500c3053cb0011dc761623c3512311c164"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060a.year == b.year \u0026\u0026 a.month == b.month \u0026\u0026 a.day == b.day\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart, nim_chatkit_ui/lib/view/history/chat_desktop_custom_date_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":"nim_chatkit_ui/lib/view/history/chat_date_picker_widget.dart"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a6993695748338696f99428315745d198b857c61024a34910d53486901bd61"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060allConversationsFailed \u0026\u0026 hasJoinGroupLimit\u0060 appears character-identically in 2 files \u2014 nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart, nim_conversationkit_ui/lib/widgets/conversation_group_desktop_dialogs.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":"nim_conversationkit_ui/lib/page/conversation_group_add_conversation_page.dart"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"b812f227f582f9e2f749c2923bf3a1af9e9e1592d484257a1929062f5e28bc6e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060attachment.width != null \u0026\u0026 attachment.width! \u003E 0 \u0026\u0026 attachment.height != null \u0026\u0026 attachment.height! \u003E 0\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart, nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"763632a5ac697173f76a60cfbaac3fa6cad5ee8366b551ec53334676567357fa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060conversationId == null || conversationId.isEmpty\u0060 appears character-identically in 3 files \u2014 im_demo/lib/src/desktop/desktop_shell.dart, nim_chatkit_pushkit/lib/nim_chatkit_pushkit.dart, nim_contactkit_ui/lib/page/user_ai_bot_common.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":"im_demo/lib/src/desktop/desktop_shell.dart"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe37625c58a396e88324c30dbfa6ec2514c4a80231362b9ab77243b5c1ddcb03"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060date.year == now.year \u0026\u0026 date.month == now.month \u0026\u0026 date.day == now.day\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/helper/chat_message_helper.dart, nim_chatkit_ui/lib/view/history/chat_desktop_custom_date_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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":1671}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b58cae8a40765533494ab064ed26587d955bc3f122ab2e50141609be5cab8b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.type == NIMDataSyncType.nimDataSyncMain \u0026\u0026 event.state == NIMDataSyncState.nimDataSyncStateCompleted\u0060 appears character-identically in 4 files \u2014 im_demo/lib/src/mine/mine_page.dart, nim_chatkit_ui/lib/view_model/chat_pin_view_model.dart, nim_contactkit_ui/lib/page/viewmodel/black_list_viewmodel.dart, nim_conversationkit_ui/lib/view_model/conversation_view_model.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":"im_demo/lib/src/mine/mine_page.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fa1e550cd0f3cc23081284f186918d2207752c72a216f41ad9eee6d2726bb3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060firstServerId?.isNotEmpty == true \u0026\u0026 firstServerId != \u0027-1\u0027 \u0026\u0026 secondServerId?.isNotEmpty == true \u0026\u0026 secondServerId != \u0027-1\u0027\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/helper/message_reaction_helper.dart, nim_chatkit_ui/lib/view_model/chat_view_model.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":"nim_chatkit_ui/lib/helper/message_reaction_helper.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6db1f4b9e48451a45beff7e5fe3eb078f8776b3efd81669e9007cea844114ef8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060icon == \u0027images/ic_file_video.svg\u0027 || icon == \u0027images/ic_file_audio.svg\u0027\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart, nim_chatkit_ui/lib/view/history/item/chat_history_file_message_item.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_file_item.dart"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f76aa4d8fbab8b6c48826c01f203aff90fa91b48c9eb0aea402486d224221e4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060localPath?.isNotEmpty == true \u0026\u0026 File(localPath!).existsSync()\u0060 appears character-identically in 3 files \u2014 nim_chatkit_ui/lib/media/media_bottom_actions.dart, nim_chatkit_ui/lib/media/video.dart, nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_audio_item.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":"nim_chatkit_ui/lib/media/media_bottom_actions.dart"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d73207a6d731ae73d6b03e2d3d163d78c4ba03a5482aa7782b39d85595fda4a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.aiConfig?.aiStatus == NIMMessageAIStatus.response \u0026\u0026 AIUserManager.instance.isAIUser(message.aiConfig?.accountId)\u0060 appears character-identically in 3 files \u2014 nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart, nim_chatkit_ui/lib/view/history/chat_history_member_message_page.dart, nim_chatkit_ui/lib/view/history/history_message_item.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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1a28b0e0c38eeee23b661ec6eb8139b5d5bb5c5d99fdb48942b53762471cffc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.isSelf != true \u0026\u0026 contactInfo != null\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart, nim_chatkit_ui/lib/view/history/history_message_item.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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"27d4d3c9fb69102ccef90cad7fd869d3a981563bf38cf276c3a49d8583c2ffdb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.isSelf == true \u0026\u0026 selfInfo != null\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart, nim_chatkit_ui/lib/view/history/history_message_item.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":"nim_chatkit_ui/lib/view/history/chat_history_file_message_page.dart"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba84955486d24ad82f3d42b4c515f32bdf971793e7e2b40ea559242bdbdb541"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.messageType == NIMMessageType.call \u0026\u0026 messageItemBuilder?.avChatMessageBuilder != null\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/helper/chat_message_helper.dart, nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":1522}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b323a388adaa7836652679091ab53e0322a900167ff62930ebf312fb42881ca"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.messageType == NIMMessageType.image || message.messageType == NIMMessageType.video || message.messageType == NIMMessageType.location\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart, nim_chatkit_ui/lib/view/chat_kit_message_list/item/mergedMessage/chat_kit_merged_message_item.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be88fbb9d1f91e7bbdac486a9d9cd81f0b0060706b07248f9d5b5d3e138dbea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.messageType == NIMMessageType.location \u0026\u0026 messageItemBuilder?.locationMessageBuilder != null\u0060 appears character-identically in 3 files \u2014 nim_chatkit_ui/lib/helper/chat_message_helper.dart, nim_chatkit_ui/lib/view/chat_kit_message_list/item/mergedMessage/chat_kit_merged_message_item.dart, nim_chatkit_ui/lib/view/page/chat_collection_message_list_page.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":"nim_chatkit_ui/lib/helper/chat_message_helper.dart"},"region":{"startLine":1517}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b587847c02dd64274730f494954794c612a843e66b311a7d0967957b0c26a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060message.nimMessage.messageType == NIMMessageType.location \u0026\u0026 messageItemBuilder?.locationMessageBuilder != null\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart, nim_chatkit_ui/lib/view/chat_kit_message_list/item/pinMessage/chat_kit_pin_message_item.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"40615e95aa4270af44d858a33b412916ea23b13ed2176f5472d06e58698ee716"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mounted \u0026\u0026 generation == _searchGeneration\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/ait/ait_manager.dart, nim_chatkit_ui/lib/view/input/bottom_input_field.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":"nim_chatkit_ui/lib/view/ait/ait_manager.dart"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de1d44643450e2154e1b5d0932abf5356b7474cc1e4059870e4bbe02157df6a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060notification is ScrollStartNotification || notification is ScrollUpdateNotification\u0060 appears character-identically in 2 files \u2014 nim_contactkit_ui/lib/widgets/az_lsit_view_container.dart, nim_conversationkit_ui/lib/widgets/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":"nim_contactkit_ui/lib/widgets/az_lsit_view_container.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d56f893a7144b7516aa68cc1bc45f6ec1c9668f0984f8e6214955fac207ff5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nowTime.month != messageTime.month || nowTime.day != messageTime.day\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart, nim_chatkit_ui/lib/view/chat_kit_message_list/item/mergedMessage/chat_kit_merged_message_item.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"1914496cfd821c18a7f9dc3a5577a8e85653bdc0fca2cb5ed727a00b002024f1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060serverId?.isNotEmpty == true \u0026\u0026 serverId != \u0027-1\u0027\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/helper/message_reaction_helper.dart, nim_chatkit_ui/lib/view_model/chat_view_model.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":"nim_chatkit_ui/lib/helper/message_reaction_helper.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceeb652b7b1af87256a22b89eff81dbbe83e7d9c48b24f35969156be66c08d34"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060shell.enabled \u0026\u0026 shell.dual \u0026\u0026 !_duoSelectionRegistered\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart, nim_chatkit_ui/lib/view/page/chat_page.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":"nim_chatkit_ui/lib/view/page/bot_subsession_list_page.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df3ca22f714817f710c543dcd9d4ab12154ca54c6b1d27972849a042a5e5344"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060teamResult != null \u0026\u0026 teamResult.team != null\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/page/chat_setting_page.dart, nim_conversationkit_ui/lib/widgets/conversation_pop_menu_button.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":"nim_chatkit_ui/lib/view/page/chat_setting_page.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"8faf172f18ebc9cd24b009ee0f4b6fe91a7aa0fe7805f306102af3186dbdbb7e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060type == NIMConversationType.team || type == NIMConversationType.superTeam\u0060 appears character-identically in 2 files \u2014 nim_conversationkit_ui/lib/service/ait/ait_server.dart, nim_conversationkit_ui/lib/view_model/conversation_view_model.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":"nim_conversationkit_ui/lib/service/ait/ait_server.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"d561fcb6e3e1a9ff264d4b1762d0832f4184da963c8b1c5084fb40960fe02b37"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.isNotEmpty \u0026\u0026 attachment.duration != null\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart, nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbb3799fbd4c568fb2a0bd3091855b34e332cb5d75d39078ea78961caa49601"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060widget.isDesktopDialog || ChatKitUtils.isDesktopOrWeb\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/page/chat_setting_page.dart, nim_contactkit_ui/lib/page/contact_kit_detail_page.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":"nim_chatkit_ui/lib/view/page/chat_setting_page.dart"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7652282380c65278c58c07269ab6ed32c91bec6e2b7c32fbb5d209ca20b1899"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060widget.message.isFileDownload() || snapshot.data == 1\u0060 appears character-identically in 2 files \u2014 nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart, nim_chatkit_ui/lib/view/history/item/chat_history_video_message_item.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":"nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_video_item.dart"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d14a38fdd682b366d1677dcc96720f46a6ea83cbe95a0899e515a794db2762"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060TeamKitMemberListPageState\u0060 carries a disposal duty \u2014 a \u0060State\u0060, so the framework calls its \u0060dispose()\u0060 when it leaves the tree \u2014 and it creates \u0060_scrollController\u0060 itself (line 77, \u0060ScrollController\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_scrollController.dispose()\u0060, no tear-off of it, on any path \u2014 nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, \u0060ScrollController\u0060 outlives the object that made it \u2014 its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: \u0060_scrollController.dispose();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_teamkit_ui/lib/view/pages/team_kit_member_list_page.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce3546c0fc3fe26bff432ecf13606d6f2885e525b7ebcb6c1f5f48b153146842"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_BottomInputFieldState\u0060 carries a disposal duty \u2014 a \u0060State\u0060, so the framework calls its \u0060dispose()\u0060 when it leaves the tree \u2014 and it creates \u0060_scrollController\u0060 itself (line 1465, \u0060ScrollController\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_scrollController.dispose()\u0060, no tear-off of it, on any path \u2014 nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, \u0060ScrollController\u0060 outlives the object that made it \u2014 its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: \u0060_scrollController.dispose();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cbee01eb720eb5544c5e69c1e32d6421a34ebe0cc1ea050a8a601671203f58"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060PushKit\u0060 carries a disposal duty \u2014 it declares its own release \u2014 and it creates \u0060_clickController\u0060 itself (line 155, \u0060StreamController.broadcast\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_clickController.close()\u0060, no tear-off of it, on any path \u2014 nothing elsewhere in the library releases it through another instance, and it is never handed on as a value (passed positionally, returned, stored, collected), so no other owner can be ending it. Passing it as a named argument does not: a widget or animation never disposes a controller it was given. On what was read, \u0060StreamController.broadcast\u0060 outlives the object that made it \u2014 its listeners, and through them this object and everything it references, stay reachable, and a ticker, timer or subscription keeps calling into a disposed object. Release it where the duty is discharged: \u0060_clickController.close();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_pushkit/lib/nim_chatkit_pushkit.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e686255b70d01ab4e879483a6bd5f2f61911ac9bcdd0878738d03d57ac5c0b"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a CancelToken: Only 0/2 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: _saveFileWeb: \u0060_saveFileWeb\u0060 calls \u0060Dio(\u2026).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":"nim_chatkit_ui/lib/media/media_bottom_actions.dart"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"54165c3729af43813570123060737e9d1678fe552de1079f70ca849f8299bdbb"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without a CancelToken: _readImageBytes: \u0060_readImageBytes\u0060 calls \u0060Dio(\u2026).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":"nim_chatkit_ui/lib/media/media_bottom_actions.dart"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b3eaba5258f231ffa40d7d90c6e7c16b461d522f9747270828e251d3efde5a"}},{"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":"nim_contactkit_ui/lib/page/contact_kit_user_ai_bot_scan_page.dart"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d07958eafb101ce7be3549f6d7a3723ef908eb67e6ad38e6af26a42f8531b45"}},{"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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":2389}}}],"partialFingerprints":{"codehealthFindingId/v1":"272309a6d88a06103d32100de1347a6cdbfc249de3cbf6aa6737d125e7c1e170"}},{"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":"nim_chatkit_ui/lib/view_model/chat_view_model.dart"},"region":{"startLine":2974}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c39cd04757d49f94f5bc5c00bda28e93c4dbe1a66ae8afc6d8807a05ec64f17"}},{"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":"nim_chatkit_ui/lib/view/input/bottom_input_field.dart"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1376f71d1e2190ff0e2afaae448709fc040405dd6c1f3e9051427f38bb747f"}},{"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":"nim_chatkit_ui/lib/view/input/record_panel.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b0939587a348a93decd74d2664ea4655698b6d6e7839ff32d9cadf32439d06f"}},{"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":"nim_chatkit_ui/lib/view/input/record_panel.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"805c1974f60c525ab61787591c148387c07f21d859a63a91d5be96b71785cbc2"}},{"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":"nim_chatkit_ui/lib/view/input/video_metadata_web_impl.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0e8c35558cffe94aab3541aa658c16007f172ff245fcb1994182da56468560"}},{"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":"nim_chatkit_ui/lib/helper/chat_image_send_helper.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a0ccab24a04845bb05f4854a9f379779bb34e75fe6741c636e31d4cbc84dc1"}},{"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":"nim_chatkit_pushkit/lib/nim_chatkit_pushkit.dart"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"0981075b59c8f09c821c78cae5d148e4b809b3046ead09173008abce05f193f6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_pushkit/android/src/main/kotlin/com/netease/yunxin/kit/nimChatkitPushkit/NimChatkitPushkitPlugin.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1523adee3abcd2e98120ed6364713d898bd82c63f8ab9d1427a5880368aae3b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"nim_chatkit_pushkit/android/src/main/kotlin/com/netease/yunxin/kit/nimChatkitPushkit/NimChatkitPushkitPlugin.kt"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf75c0a17f6859d06a555b311db4ccf772209de5c1623595d1adf2b0f97a2f70"}},{"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":"nim_chatkit_pushkit/android/src/main/kotlin/com/netease/yunxin/kit/nimChatkitPushkit/NimChatkitPushkitPlugin.kt"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9b12073fefdc529dab6ffadcaf678ff9ce1ab7e60aec3a6a79b8b706c70562"}},{"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":"nim_chatkit_pushkit/android/src/main/kotlin/com/netease/yunxin/kit/nimChatkitPushkit/NimChatkitPushkitPlugin.kt"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e91dfd82ba60114e97fcefcf68dfab04b51b046075198616ec1e20f64ea4c25"}},{"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":"nim_chatkit_pushkit/android/src/main/kotlin/com/netease/yunxin/kit/nimChatkitPushkit/NimChatkitPushkitPlugin.kt"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b9a6f25d576d1652ed2c029d8a73864eaf7e43b495a3ef7c7e8155ee97447b"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override null safety: ~17.9 \u0060!\u0060 null assertions per 1k Dart product lines \u2014 1130 across the 63203 line(s) of the 204 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: nim_chatkit_ui/lib/view_model/chat_view_model.dart (128), nim_chatkit_ui/lib/view/chat_kit_message_list/item/chat_kit_message_item.dart (74), nim_chatkit_ui/lib/view/chat_kit_message_list/pop_menu/chat_kit_super_tooltip.dart (74). 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"}}],"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-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-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-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/"}]}],"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":4,"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."]}]}