{"$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":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"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":"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":"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":"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":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Http2Codec.parseHttp2Packet (cyclomatic 41): Http2Codec.parseHttp2Packet has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/h2/h2_codec.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"c617d5beadd8153b1456bb489b148c7b11ddb69a7459a83ca8f72a2d83bc3f2c"}},{"ruleId":"D1","level":"warning","message":{"text":"HttpBodyState._imageExtension (cyclomatic 41): HttpBodyState._imageExtension has cyclomatic complexity 41 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a9ead0e61e2de9fcb11925eedb48758bfbd896e58f0d8c6c2e098cd1bcddb9"}},{"ruleId":"D1","level":"warning","message":{"text":"Curl.parse (cyclomatic 40): Curl.parse has cyclomatic complexity 40 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/curl.dart"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f28b46eae6808bbcb613964f40b07f79326408e590d42cdb92bac0f74091148"}},{"ruleId":"D1","level":"warning","message":{"text":"ChannelDispatcher.channelRead (cyclomatic 34): ChannelDispatcher.channelRead has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/channel_dispatcher.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f57d3ae6b04290ba1244bfcec7509fa455ce13043eecf9537d38a40e7acae7e"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchModel.filter (cyclomatic 31): SearchModel.filter has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/model/search_model.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a4c1206bcd9585cfc431ef63dff9c1e13923cef36ff7699837c873675ea757"}},{"ruleId":"D1","level":"warning","message":{"text":"HttpBodyState.titleWidget (cyclomatic 31): HttpBodyState.titleWidget has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61eea793a2ad3d497a56a056b4fdb666a201a0990caed223e6208ee18dc6e1c"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.ssl (cyclomatic 30): Server.ssl has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/network.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"5636a7dcec6762d7812aef0bff81714766bf1c27a0598f7f316e84ea389f1da1"}},{"ruleId":"D1","level":"warning","message":{"text":"HttpCodec.decode (cyclomatic 28): HttpCodec.decode has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/codec.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"347ecb62bc577ea0baecca2844066ceff132896d89a542137f83cf8206e47773"}},{"ruleId":"D1","level":"warning","message":{"text":"ChunkedDecoder.feed (cyclomatic 28): ChunkedDecoder.feed has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/parse/chunked_decoder.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"359434ed45aaeaf9a965e18552bedb7306d6a86102341c2ff250b2abe30772e7"}},{"ruleId":"D1","level":"warning","message":{"text":"NetworkTabState.build (cyclomatic 27): NetworkTabState.build has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/panel.dart"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"2278a6c540b35b5ddaca0ec230aaaa8577ffdbc2f980ef039a170f1aa9418878"}},{"ruleId":"D1","level":"warning","message":{"text":"_JsFormatter._step (cyclomatic 27): _JsFormatter._step has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/js_formatter.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"0778e1f0fbb96a5d8c684a1fd863e3c1486a5463a81b59058a5a7311ec2f2105"}},{"ruleId":"D1","level":"warning","message":{"text":"ProxyHelper.localRequest (cyclomatic 25): ProxyHelper.localRequest has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/proxy_helper.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7210a0e713992504c26dc7c9f318412f29c7c9eab4750ead3900bd6990ddf38b"}},{"ruleId":"D1","level":"warning","message":{"text":"HttpCodec.encode (cyclomatic 23): HttpCodec.encode has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/codec.dart"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"386f2c0542892dbb44c51200bc2f66b8f0ff06ce18eee22eca412935ba3120f1"}},{"ruleId":"D1","level":"warning","message":{"text":"SearchModel.keywordFilter (cyclomatic 23): SearchModel.keywordFilter has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/model/search_model.dart"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb5d5403c8e035744829f63f71e59a436c088a93bd3d4910cda018e8c917f32"}},{"ruleId":"D1","level":"warning","message":{"text":"_CryptoRuleDialogState.build (cyclomatic 23): _CryptoRuleDialogState.build has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_crypto.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8726761b1c073745464b0103bd9d6d879bba9c501b509343d2c95fd8c5587c"}},{"ruleId":"D1","level":"warning","message":{"text":"_TextDiffPageState._compare (cyclomatic 23): _TextDiffPageState._compare has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/text_diff.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee2b92b05bc5e6749e1954e67a682ebd3a750c9f898f74e0d7786befab923b1"}},{"ruleId":"D1","level":"warning","message":{"text":"Curl._tokenize (cyclomatic 23): Curl._tokenize has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/curl.dart"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1e7f0a1bd8fd5fe368949c1e46866fc02c0caeefc40272d8c365be2e963e487"}},{"ruleId":"D1","level":"warning","message":{"text":"McpActions._rewriteItemFromArgs (cyclomatic 21): McpActions._rewriteItemFromArgs 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":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21aadcdac68dba4c01e13dc276285150a5988bc0e065e21487e4e55a3c37a1f"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScriptEditState.build (cyclomatic 21): _ScriptEditState.build has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/script.dart"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"8babe99607ad2d8e88ae051062be9862cdc68d211778d607c3181018086a6b31"}},{"ruleId":"D1","level":"warning","message":{"text":"HttpProxyChannelHandler.forward (cyclomatic 20): HttpProxyChannelHandler.forward has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/handle/http_proxy_handle.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"842de069796e59580c6a965ab690f3370bf07a56815e1c7dab1d40d034706858"}},{"ruleId":"D1","level":"warning","message":{"text":"_RewriteUpdateAddState.build (cyclomatic 20): _RewriteUpdateAddState.build has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"6afcb657226aafbe33d5a744fa314ae8c4faa00490abd4f1e88ce11e7345cc8b"}},{"ruleId":"D1","level":"warning","message":{"text":"_RewriteUpdateAddState.build (cyclomatic 20): _RewriteUpdateAddState.build has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/rewrite/rewrite_update.dart"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c2d5b793c43ebf68617bf7942d334d9c8c3d188d3785cfba014666eb877cbe"}},{"ruleId":"D1","level":"warning","message":{"text":"ProtocolSniffer.recognize (cyclomatic 19): ProtocolSniffer.recognize has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/mqtt/protocol_sniffer.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7077900d0e3142cca6a42e2289e03f2880c493f26b7e07af73354315a36e2f1"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScriptEditState.build (cyclomatic 19): _ScriptEditState.build has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae7566e3ac042efefbdc447052ab60db147df6353cd4b459dbce4d31d9067cb"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionHandler.handleTCPPacket (cyclomatic 19): ConnectionHandler.handleTCPPacket 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":"android/app/src/main/kotlin/com/network/proxy/vpn/ConnectionHandler.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"896b8b05cf89465c1da334124212436011ff36838acad0710f2af9909d57908a"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestRewriteInterceptor._updateMessage (cyclomatic 18): RequestRewriteInterceptor._updateMessage has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/request_rewrite.dart"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf465022e3b8bcea0bb739c2806349ea63c5bf12e0bc484932a1a9417ed56658"}},{"ruleId":"D1","level":"warning","message":{"text":"Pkcs12.parsePkcs12 (cyclomatic 18): Pkcs12.parsePkcs12 has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/pkcs12.dart"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"a87f16a190c5eb2c44c10ad9e694ac599eb85598443d7298d9f3c4e6bec70d70"}},{"ruleId":"D1","level":"warning","message":{"text":"ConnectionHandler.handleTCPPacket (cyclomatic 18): ConnectionHandler.handleTCPPacket 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":"ios/ProxyPin/vpn/ConnectionHandler.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a170a2d03e9e4a6b3f93db8ecce172d65aa22a169063858c545f5f0e14a2b338"}},{"ruleId":"D1","level":"warning","message":{"text":"McpHttpServer._handle (cyclomatic 17): McpHttpServer._handle has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/transport/mcp_http_server.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"675e578b59bf2f2f4a869ed58d24efb6419ab307eaa21b3af8020e3fa606de2a"}},{"ruleId":"D1","level":"warning","message":{"text":"NetworkConditionManager._load (cyclomatic 17): NetworkConditionManager._load has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/manager/network_condition_manager.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b7b7261067516ce0b54d9b358ba1f94df43debab16bf4eea83844cbbcb29c4"}},{"ruleId":"D1","level":"warning","message":{"text":"_WebSocketRequestPageState._messageList (cyclomatic 17): _WebSocketRequestPageState._messageList has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/websocket_request.dart"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff0e6f38381a1821d2991cc8f3e3c89549cbb09fafa3b7290d7071dcddb34db"}},{"ruleId":"D1","level":"warning","message":{"text":"CryptoBodyDecoder._tryDecode (cyclomatic 17): CryptoBodyDecoder._tryDecode has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/crypto_body_decoder.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d012cbfc8b0b4a79feb92b2d7504003f2f0e7e2ca6cf18df6bb785cd6982c4"}},{"ruleId":"D1","level":"warning","message":{"text":"_CssFormatter._step (cyclomatic 17): _CssFormatter._step has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/css_formatter.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b3ea0e550c77573a695bdbae535ece5a55b903ea05e112499d2a46162147f7f"}},{"ruleId":"D1","level":"warning","message":{"text":"Multipart.parse (cyclomatic 17): Multipart.parse has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/multipart.dart"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"8394a0a6231c5d44e19589ec093b5cab2b9864ac062ac0f8da928e6a3a52e201"}},{"ruleId":"D1","level":"warning","message":{"text":"PacketTunnelProvider.startTunnel (cyclomatic 17): PacketTunnelProvider.startTunnel 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":"ios/ProxyPin/PacketTunnelProvider.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f3860d2a5115b70abc3867bcb3ca98602cee3bd4a0a73da5098d285aad68919"}},{"ruleId":"D1","level":"warning","message":{"text":"FlowStore._matches (cyclomatic 16): FlowStore._matches has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/capture/flow_store.dart"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"384c821425ca8073a4d5b7b201fdcee6563a5e5dd67ad3ffa3138a862a399cc5"}},{"ruleId":"D1","level":"warning","message":{"text":"RequestRewriteInterceptor._updateRequest (cyclomatic 16): RequestRewriteInterceptor._updateRequest has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/request_rewrite.dart"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"2434389b9049a148c4cd5efb492d1ddf492422ee13bf6590eefccda7b610bdea"}},{"ruleId":"D1","level":"warning","message":{"text":"MediaType._parseMediaTypeInternal (cyclomatic 16): MediaType._parseMediaTypeInternal has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/content_type.dart"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"af571e7de681c5ad5782d923aedad1b85a957a639fc14c77e3bad925ccee6c0d"}},{"ruleId":"D1","level":"warning","message":{"text":"Pkcs12._decryptPbes2 (cyclomatic 16): Pkcs12._decryptPbes2 has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/pkcs12.dart"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54244b24cad526bcd3028518ed19e294942b4bb523c37965ce0cdd72f112017"}},{"ruleId":"D1","level":"warning","message":{"text":"X509Utils.generateSelfSignedCertificate (cyclomatic 16): X509Utils.generateSelfSignedCertificate has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/x509.dart"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee84f3bd1d45becdc769a0f722d9d1f47473c90ea9dcbcd49a83b1194d726be6"}},{"ruleId":"D1","level":"warning","message":{"text":"MacosProcessInfo.findPidByLocalTcpPort (cyclomatic 16): MacosProcessInfo.findPidByLocalTcpPort has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/process_info_macos.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"2259f10431f8652c801f4945b3fcfaf76aa69966e2c54a9bf858a97304c545ba"}},{"ruleId":"D1","level":"warning","message":{"text":"DesktopUpdateService.start (cyclomatic 16): DesktopUpdateService.start has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/desktop_update_service.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f405e85aad7e9d0a74f3bca20ca51369686e6cd47739137bedd882f11756837"}},{"ruleId":"D1","level":"warning","message":{"text":"AppConfiguration.toJson (cyclomatic 16): AppConfiguration.toJson has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/configuration.dart"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6e605e13ecbb2d79b6aca26961fab7ec0b13c797ed7cf1d86ed59a7c74f26c9"}},{"ruleId":"D1","level":"warning","message":{"text":"_HostsDialogState.row (cyclomatic 16): _HostsDialogState.row has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70d2919a944a7e3efaf1245472fa0b651f2ce3b97e8c4bf2782cb4d038cce29"}},{"ruleId":"D1","level":"warning","message":{"text":"TLS.getDomain (cyclomatic 16): TLS.getDomain 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":"android/app/src/main/kotlin/com/network/proxy/vpn/util/TLS.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd288a156302f3bfdd706d6340169e8ea93b4c5f536691bb61c4821fc7993cda"}},{"ruleId":"D2","level":"warning","message":{"text":"ChannelDispatcher.channelRead (cognitive 66): ChannelDispatcher.channelRead has cognitive complexity 66 (threshold 15). Drivers by points: if/else 23 (53 pts), boolean chains 12, error handling 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/channel_dispatcher.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc07c0e7a18b7f8a0c97b5070e5f024d45ed6ec4ac0859ef29f234c04f90cb9"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.ssl (cognitive 61): Server.ssl has cognitive complexity 61 (threshold 15). Drivers by points: if/else 15 (35 pts), ternaries 4 (12 pts), boolean chains 8, error handling 3 (6 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/network.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac959701ab0671c02de613c86428611a4f44a8c761d4e33eddf61c2f78979714"}},{"ruleId":"D2","level":"warning","message":{"text":"Http2Codec.parseHttp2Packet (cognitive 58): Http2Codec.parseHttp2Packet has cognitive complexity 58 (threshold 15). Drivers by points: if/else 21 (42 pts), boolean chains 13, ternaries 1 (2 pts), match/switch 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/h2/h2_codec.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42a85fa5dab9d8f634c07886c2a55a64798fb0a3c367b2ccc31aea620c1d8f5"}},{"ruleId":"D2","level":"warning","message":{"text":"ChunkedDecoder.feed (cognitive 53): ChunkedDecoder.feed has cognitive complexity 53 (threshold 15). Drivers by points: if/else 14 (36 pts), ternaries 3 (9 pts), boolean chains 5, match/switch 1 (2 pts), loops 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/parse/chunked_decoder.dart"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0290e039cc4150d37c665fe97014d082e210bdbbb2990ee56973bddc8cdc31"}},{"ruleId":"D2","level":"warning","message":{"text":"ProxyHelper.localRequest (cognitive 52): ProxyHelper.localRequest has cognitive complexity 52 (threshold 15). Drivers by points: if/else 11 (33 pts), boolean chains 10, ternaries 3 (7 pts), error handling 1 (2 pts) (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/proxy_helper.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e661d48114a1c5da3f5870f7c54a57c7921bcbcc00e59f786dbdf32db2a86cd5"}},{"ruleId":"D2","level":"warning","message":{"text":"MacosProcessInfo.findPidByLocalTcpPort (cognitive 51): MacosProcessInfo.findPidByLocalTcpPort has cognitive complexity 51 (threshold 15). Drivers by points: if/else 13 (45 pts), loops 2 (6 pts) (nesting depth added 36). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/process_info_macos.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada20b827d7a1e314d36ef1d6bc20f9407296f01547d61bfac2d4505ace9a40c"}},{"ruleId":"D2","level":"warning","message":{"text":"Curl.parse (cognitive 51): Curl.parse has cognitive complexity 51 (threshold 15). Drivers by points: if/else 26 (34 pts), boolean chains 7, ternaries 3 (7 pts), loops 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/curl.dart"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c0ef66d4342b36f5d8845ef3b06c79006d380f24dc8f251887f34f02165b0b0"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpBodyState.titleWidget (cognitive 49): HttpBodyState.titleWidget has cognitive complexity 49 (threshold 15). Drivers by points: if/else 20 (34 pts), ternaries 8 (12 pts), boolean chains 3 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5b8c9bdbdc77ecbe5ac625b42d2dd28cd682a0811d41596999edb7876162b3"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpProxyChannelHandler.forward (cognitive 42): HttpProxyChannelHandler.forward has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (30 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (3 pts), error handling 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/handle/http_proxy_handle.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9662a3f9c32ee8572aa153e776f2e0547b19593ea3143d59941aef2983e917c"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpBodyState._imageExtension (cognitive 40): HttpBodyState._imageExtension has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 29, if/else 11. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2952064eee131aa96d15540089be1c45089c022be19817175b6a092faaf738a"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestRewriteInterceptor._updateRequest (cognitive 39): RequestRewriteInterceptor._updateRequest has cognitive complexity 39 (threshold 15). Drivers by points: if/else 9 (24 pts), ternaries 2 (8 pts), loops 1 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/request_rewrite.dart"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8c272403556dbbaf2efb3b8032b678ee6923e1ad48f889361f82b3bbfd0c46"}},{"ruleId":"D2","level":"warning","message":{"text":"Pkcs12.parsePkcs12 (cognitive 39): Pkcs12.parsePkcs12 has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (8 pts), match/switch 2 (7 pts), boolean chains 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/pkcs12.dart"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a6125ea2b08288ce05ba9b1897634ad82a52e86a6c8d62c7abe8d4911c409d"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchModel.filter (cognitive 39): SearchModel.filter has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 13, 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":"lib/ui/component/model/search_model.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"29fe6b820e651e1b537783b1f4890057699e0388557898a972b6b6a7c206332c"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpCodec.decode (cognitive 38): HttpCodec.decode has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 14, ternaries 2 (4 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/codec.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"add6da23dd300bee0e68e09ea7aeee45fa683464135c048923a48e771d5542b7"}},{"ruleId":"D2","level":"warning","message":{"text":"_CryptoRuleDialogState.build (cognitive 37): _CryptoRuleDialogState.build has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (21 pts), ternaries 6 (12 pts), boolean chains 4 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_crypto.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a43e2f5cb1d42ba9bbe72c832d15365dda13168abeaf2208355fa3bc7f564af"}},{"ruleId":"D2","level":"warning","message":{"text":"X509Utils._fetchSansFromExtension (cognitive 36): X509Utils._fetchSansFromExtension has cognitive complexity 36 (threshold 15). Drivers by points: if/else 9 (23 pts), loops 4 (12 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/x509.dart"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"092330c4ef8ce9ed2053984de90d4c51f6d21c9b41c19f69f0c307f099741684"}},{"ruleId":"D2","level":"warning","message":{"text":"Curl._tokenize (cognitive 36): Curl._tokenize has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 10, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/curl.dart"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"761b357a22e56a1be9140a92ae0262030cc1e762fdad587f68bef369602a7241"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopUpdateService.start (cognitive 35): DesktopUpdateService.start has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (24 pts), error handling 5 (8 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/desktop_update_service.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3907f07aeddefe33ac456a7a9130c1c084ac949e40e556398858d1b94eb99c"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkTabState.build (cognitive 34): NetworkTabState.build has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 15 (17 pts), if/else 12 (14 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/panel.dart"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"550021971c3e33fbc9dd3915a20480ce5f05c1e300b1a398a0cc63f48fd812bf"}},{"ruleId":"D2","level":"warning","message":{"text":"_JsFormatter._step (cognitive 33): _JsFormatter._step has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 12 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/js_formatter.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae24d24e61d86fabf2e4a6938b1ea263495612040c28d508b72fad256392865"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionHandler.handleTCPPacket (cognitive 33): ConnectionHandler.handleTCPPacket has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (31 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":"android/app/src/main/kotlin/com/network/proxy/vpn/ConnectionHandler.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a0bd6e154e7b3ea26aa453cf7d44df19e34244876d3f14f4ce9e3bc3249e4d3"}},{"ruleId":"D2","level":"warning","message":{"text":"TLS.supportProtocols (cognitive 32): TLS.supportProtocols has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (25 pts), loops 2 (6 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":"lib/network/util/tls.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"403e79bd04fa885f24e0415a519aaed8a619c9e33c78d248e8186d8370b97429"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpRequest._parseGraphql (cognitive 31): HttpRequest._parseGraphql has cognitive complexity 31 (threshold 15). Drivers by points: if/else 7 (27 pts), boolean chains 3, error handling 1 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/http.dart"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78d0e042967580c4844232619fe0bf9ac2bc9e8b1e3f21f0128b59ae7c2c460"}},{"ruleId":"D2","level":"warning","message":{"text":"X509Utils.generateSelfSignedCertificate (cognitive 31): X509Utils.generateSelfSignedCertificate has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/x509.dart"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fca5ec4774d8c1d89f583dd9f2f206d5f1ca2f3ada94d38700fd99a3534b68c"}},{"ruleId":"D2","level":"warning","message":{"text":"TLS.getDomain (cognitive 31): TLS.getDomain has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 1 (2 pts), error handling 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/tls.dart"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"0890c79ed20684670d7f98c4cf076b38c34b7c6fcb3a7247be0f41e6750f68c1"}},{"ruleId":"D2","level":"warning","message":{"text":"SearchModel.keywordFilter (cognitive 30): SearchModel.keywordFilter has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 9, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/model/search_model.dart"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"df61e8695334266eb841e5ff0193997695a8defa59a39bd63a6a4703e33e5608"}},{"ruleId":"D2","level":"warning","message":{"text":"_BodyState._formatTextBody (cognitive 30): _BodyState._formatTextBody has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (24 pts), error handling 2 (4 pts), boolean chains 2 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"14939980f8754c41bf27f76b1d0ed5d0b4b0f7aa61471b451b895ad2bbd410ef"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionHandler.shouldBypassProxy (cognitive 30): ConnectionHandler.shouldBypassProxy has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (22 pts), error handling 2 (5 pts), boolean chains 2, loops 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":"android/app/src/main/kotlin/com/network/proxy/vpn/ConnectionHandler.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b24a28b5161fb02de0d59abcb09b4584b9c1a66925ba6aace7b3d6ece8e2e89"}},{"ruleId":"D2","level":"warning","message":{"text":"McpHttpServer._handle (cognitive 29): McpHttpServer._handle has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 5, error handling 3 (5 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/transport/mcp_http_server.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"b137df5e6c79bedbc69d22b53bf4d512c1b1d1eb813007a5c9902d412bf79ab7"}},{"ruleId":"D2","level":"warning","message":{"text":"X509Utils._getExtensionsFromSeq (cognitive 29): X509Utils._getExtensionsFromSeq has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 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":"lib/network/util/cert/x509.dart"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"65b7c92b62f0465374573249eddd8bad949273b190474c178d06ef49176d1bf0"}},{"ruleId":"D2","level":"warning","message":{"text":"CryptoBodyDecoder._tryDecode (cognitive 29): CryptoBodyDecoder._tryDecode has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 3 (7 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/crypto_body_decoder.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa9b00fb856d4ef9dc3c885f86e2a3210441dc2bcb0e904786a2dc62f92f98d"}},{"ruleId":"D2","level":"warning","message":{"text":"ConnectionHandler.handleTCPPacket (cognitive 29): ConnectionHandler.handleTCPPacket has cognitive complexity 29 (threshold 15). Drivers by points: if/else 18 (28 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":"ios/ProxyPin/vpn/ConnectionHandler.swift"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"2436282bb6e2733cd9b012f7c71c1c5bc649e09e0ff8288b26f6e4b53e264b73"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestRewriteInterceptor._updateMessage (cognitive 28): RequestRewriteInterceptor._updateMessage has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 5, ternaries 2 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/request_rewrite.dart"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"6591e728755b296acb0227c431baab660c55db18a0d87199310b9f8db2d603db"}},{"ruleId":"D2","level":"warning","message":{"text":"_TextDiffPageState._compare (cognitive 28): _TextDiffPageState._compare has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 5 (7 pts), boolean chains 6, match/switch 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":"lib/ui/toolbox/text_diff.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85e9aa1930e7d8ffc52f8dfed4f39a3ad84ca4aaaff4a4dabf9ac35bee0290d"}},{"ruleId":"D2","level":"warning","message":{"text":"Multipart.parse (cognitive 28): Multipart.parse has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 3 (6 pts), boolean chains 3, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/multipart.dart"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eeb92d7cf0e05e4639eea802a9eca639adc6a33b28723bffc084ba2b5a7ebf8"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpCodec.encode (cognitive 27): HttpCodec.encode has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 11, if/else 8 (9 pts), ternaries 2 (6 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/codec.dart"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2536bc635eadc5ae79640c1869679e76f94543410963a8df651fd8f30773d22"}},{"ruleId":"D2","level":"warning","message":{"text":"_ClientCertDialogState._addCert (cognitive 27): _ClientCertDialogState._addCert has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 3 (8 pts), error handling 2 (3 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/client_cert.dart"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8f3757cdf2e4314dddfdd44d407de305ba139fa2c35c120db559dba51952e43"}},{"ruleId":"D2","level":"warning","message":{"text":"CryptoBodyDecoder._extractJsonField (cognitive 27): CryptoBodyDecoder._extractJsonField has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 5, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/crypto_body_decoder.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc3bc7e7034aa63b5a0c5b4dab75f2f0947a790b22b06ab5cb68c97009c7d8b0"}},{"ruleId":"D2","level":"warning","message":{"text":"TLS.getDomain (cognitive 27): TLS.getDomain has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 1, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/network/proxy/vpn/util/TLS.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1cb9547ccdbafcbf76a6a107cda5aa9efad2b19fdcb0cf1beff3f75b8f8a1b"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkConditionManager._load (cognitive 25): NetworkConditionManager._load has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 6, loops 2 (6 pts), error handling 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/manager/network_condition_manager.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"adb802980519f39a631471d80c16b695bd96f7d8d3cd82f4d09b3fe84b15b010"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpProxyChannelHandler._getRemoteChannel (cognitive 25): HttpProxyChannelHandler._getRemoteChannel has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 3 (8 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/handle/http_proxy_handle.dart"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"f965966675d3f12e7ddf9a1a321edd5db063d6349d97bc0d60b4c103bf4ddfa5"}},{"ruleId":"D2","level":"warning","message":{"text":"MediaType._parseMediaTypeInternal (cognitive 24): MediaType._parseMediaTypeInternal has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2 (3 pts), boolean chains 1, error handling 1, 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":"lib/network/http/content_type.dart"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"6827fbd5d834b98429fbe0150a0a48be23a75ac902163f21a904b92307cd6bb3"}},{"ruleId":"D2","level":"warning","message":{"text":"HPackDecoder.decode (cognitive 24): HPackDecoder.decode has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (17 pts), loops 2 (4 pts), error handling 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/h2/hpack/hpack.dart"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"c05cd0e7a64991c181e6815a9c43c747cb5b50ddfc35d9b9ef9084c08974a331"}},{"ruleId":"D2","level":"warning","message":{"text":"HighlightTextDocument.buildSpansForLine (cognitive 24): HighlightTextDocument.buildSpansForLine has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 3 (7 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/search/highlight_text_document.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d039e1241396ebc53f1743cff624dfd6994b159496bb99098870164d3c6f2c6"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScriptEditState.build (cognitive 24): _ScriptEditState.build has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11, ternaries 8 (11 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/script.dart"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93b7f8c9210922e67e02e8de5dd4a88b8fd6187de41a0696fd328f4b232e2b1"}},{"ruleId":"D2","level":"warning","message":{"text":"Http2RequestDecoder.createMessage (cognitive 23): Http2RequestDecoder.createMessage has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 12). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/h2/h2_codec.dart"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"c873634c0de4a5a5188b48e47d9bf54a936feac7c3712330b25e77d3e2fd73a4"}},{"ruleId":"D2","level":"warning","message":{"text":"Http2RequestQueue._drain (cognitive 23): Http2RequestQueue._drain has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (16 pts), error handling 1 (3 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/h2/request_queue.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7cd33f17ec89cb6b816b074364f5de06799c3380eda4277783bab77c6b02f4a"}},{"ruleId":"D2","level":"warning","message":{"text":"SseDecoder.feed (cognitive 23): SseDecoder.feed has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 2 (4 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/sse.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f91f604e88e6ad898f962846e67a93cc5a06d38b874ef86e37b98a4c45b4a3b"}},{"ruleId":"D2","level":"warning","message":{"text":"MqttPacketFramer.add (cognitive 23): MqttPacketFramer.add has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/mqtt/mqtt_packet.dart"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8cce73418bff72374249e29feca6c1e36fd79f6349ceb6aceab7c5f5b37b514"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScriptEditState.build (cognitive 23): _ScriptEditState.build has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (11 pts), if/else 10, boolean chains 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b98a9d9a40b3e352e81226bb0822b7b1576c4ee21b5a5437c26dd1b378c1a07"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestRewriteInterceptor._replaceHttpMessage (cognitive 22): RequestRewriteInterceptor._replaceHttpMessage has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 4, loops 1 (3 pts), ternaries 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/request_rewrite.dart"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea9f1930439ce064c02cc95b76562c3e3b85888ebfb3d17a8cf976dd9aa9877"}},{"ruleId":"D2","level":"warning","message":{"text":"RemoteVersionEntity.desktopAsset (cognitive 22): RemoteVersionEntity.desktopAsset has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/remote_version_entity.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadf4440a780a78e55779b53833b515046a2b95b70bf3458f604960b43a8be75"}},{"ruleId":"D2","level":"warning","message":{"text":"ReportServerInterceptor._sendReport (cognitive 21): ReportServerInterceptor._sendReport has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 2 (4 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/report_server_interceptor.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c5d9544efcf2814d4958bc1688e74047d78ef7aabcaaaf996f238798c18fdd"}},{"ruleId":"D2","level":"warning","message":{"text":"HuffmanDecoder.decode (cognitive 21): HuffmanDecoder.decode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/h2/hpack/huffman.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7b67a8f5f8758bacef464661ff01be5c13ab889044c777b672282694c369c6"}},{"ruleId":"D2","level":"warning","message":{"text":"ProtocolSniffer.recognize (cognitive 21): ProtocolSniffer.recognize has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 6, loops 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/mqtt/protocol_sniffer.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"313a3bf95fca2fdbac92e2eb6fab7576fd3d391191d11a46a271bb3872e5825f"}},{"ruleId":"D2","level":"warning","message":{"text":"AppUpdateRepository.checkUpdate (cognitive 21): AppUpdateRepository.checkUpdate has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (20 pts), error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/app_update_repository.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b99bc69b110c0e0fdebbe713a5ee4b8084976e8ae9087c6c2a0740f89a7711"}},{"ruleId":"D2","level":"warning","message":{"text":"_RewriteUpdateAddState.build (cognitive 21): _RewriteUpdateAddState.build has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 13 (15 pts), boolean chains 3, if/else 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea33dd0a0303df2181d8508bc7cb5dadbfe5f078e53b06a006021482862b7fa"}},{"ruleId":"D2","level":"warning","message":{"text":"CertInstaller.isCertInstalled (cognitive 21): CertInstaller.isCertInstalled has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 1 (3 pts), ternaries 1 (3 pts), error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/cert_installer.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"298e96d979912e432d052311ecd01ad0bf524c0e999c18346170c2cac1a00649"}},{"ruleId":"D2","level":"warning","message":{"text":"_HttpState._bodyToolbar (cognitive 21): _HttpState._bodyToolbar has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 5 (7 pts), boolean chains 4 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/request/request_editor.dart"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"738a4d733d019ed59ea6ee03b6120d67f5872a919f253e4651b293097f4a3a1f"}},{"ruleId":"D2","level":"warning","message":{"text":"_RewriteUpdateAddState.build (cognitive 21): _RewriteUpdateAddState.build has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 13 (15 pts), boolean chains 3, if/else 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/rewrite/rewrite_update.dart"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"215a1b0c168a8d6d22d85547c55932fdb075a3e5720c6d08a9fd2aec7dba077b"}},{"ruleId":"D2","level":"warning","message":{"text":"JavaScriptEngine._deepEquals (cognitive 20): JavaScriptEngine._deepEquals has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/js/script_engine.dart"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"2970116d5e083f69e6247e85d4ae2b2d2706d5e1b8dfa0737bf2e26e58117a85"}},{"ruleId":"D2","level":"warning","message":{"text":"ProcessInfoUtils.getProcessByPort (cognitive 20): ProcessInfoUtils.getProcessByPort has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (19 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/process_info.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e9434485d0bb18c16d19ee0007783ced572effe2a89e91040f75b88ef4b735"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopMultiWindow._withWindowContext (cognitive 20): DesktopMultiWindow._withWindowContext has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (18 pts), boolean chains 1, error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/multi_window_compat.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffdd73dedba6db199746700a367af9bb4ca8987f07893bce7d4c01fc5039b221"}},{"ruleId":"D2","level":"warning","message":{"text":"_MobileClientCertEditPageState._onSave (cognitive 20): _MobileClientCertEditPageState._onSave has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 3 (7 pts), error handling 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/client_cert.dart"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f4865f6bfec42d7f354fe9fff3a696dc1e980ebaeca9cc5cd199c4a2e47b2e"}},{"ruleId":"D2","level":"warning","message":{"text":"_WebSocketRequestPageState._messageList (cognitive 20): _WebSocketRequestPageState._messageList has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 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":"lib/ui/toolbox/websocket_request.dart"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f9334747765111893ea99611fae27d197ab42e7ab623a25dd9794335f25738"}},{"ruleId":"D2","level":"warning","message":{"text":"_CssFormatter._step (cognitive 20): _CssFormatter._step has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 7 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/css_formatter.dart"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f787ceb10d42e1ea3060d698ddba60b3a3c6c0661a8a54e33f024a001e5678b"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopSupport.initialize (cognitive 20): DesktopSupport.initialize has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 2 (5 pts), boolean chains 1, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/desktop_support.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"18bcea78819b3aa54154ff7d35d4bafbdf81d63e1b6582509f1ee356bb1c2c32"}},{"ruleId":"D2","level":"warning","message":{"text":"SocketNIODataService.runTask (cognitive 20): SocketNIODataService.runTask has cognitive complexity 20 (threshold 15). Drivers by points: error handling 4 (10 pts), if/else 3 (7 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/network/proxy/vpn/socket/SocketNIODataService.java"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d18ac41e5118a77ece167cb363bc2403441b2984abb4ce6083f70d1b1c44542"}},{"ruleId":"D2","level":"warning","message":{"text":"HostAndPort.of (cognitive 19): HostAndPort.of has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (10 pts), if/else 3 (4 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/host_port.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1c47a9e3ed097f5e1446ddf8e32e30ffcebaa04e3dbe38cf8e787d66d4341a"}},{"ruleId":"D2","level":"warning","message":{"text":"HostsManager.getHosts (cognitive 19): HostsManager.getHosts has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/manager/hosts_manager.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f6551565aab34ce4d6993243e0f227e8d1c4169410dcf7966fdb307dca9a49"}},{"ruleId":"D2","level":"warning","message":{"text":"MacosZipUpdater.install (cognitive 19): MacosZipUpdater.install has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 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":"lib/ui/app_update/macos_zip_updater.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f00dc2d11192bbefa0d31725c67d8e219729a982a0805352d389199c76bd5a"}},{"ruleId":"D2","level":"warning","message":{"text":"AppConfiguration.initConfig (cognitive 19): AppConfiguration.initConfig has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 4 (6 pts), boolean chains 2, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/configuration.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed8fc09018ed35b1db420eefc6e60befd9f3540c145c3a28edd5d193bcf4d4c1"}},{"ruleId":"D2","level":"warning","message":{"text":"_WebSocketRequestPageState.build (cognitive 19): _WebSocketRequestPageState.build has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 9 (10 pts), if/else 5 (9 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/websocket_request.dart"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"262bfcef7664cc76fa453b74712e60cd99cc3cfb0320771ef47fea3e25e8bd16"}},{"ruleId":"D2","level":"warning","message":{"text":"Har.toRequest (cognitive 19): Har.toRequest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 1 (4 pts), loops 2 (3 pts), boolean chains 1, 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":"lib/utils/har.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11c613a40c982fba1fad8013dacff56287f0ca5457d0c84a5162928f09bd819"}},{"ruleId":"D2","level":"warning","message":{"text":"SocketChannelReader.read (cognitive 19): SocketChannelReader.read has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 2 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/network/proxy/vpn/socket/SocketChannelReader.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b63f75eb1a5cd534d7f722a9afeee12d01113130661b2043631979203cf62f"}},{"ruleId":"D2","level":"warning","message":{"text":"SocketChannelWriter.write (cognitive 19): SocketChannelWriter.write has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), error handling 2 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/network/proxy/vpn/socket/SocketChannelWriter.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb5bd94ed319f21777b215bd64b3d4f31422b705a9b0bd569859d458160e7bc"}},{"ruleId":"D2","level":"warning","message":{"text":"PacketTunnelProvider.startTunnel (cognitive 19): PacketTunnelProvider.startTunnel has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 4, ternaries 1 (2 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":"ios/ProxyPin/PacketTunnelProvider.swift"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"5742cfab914a89e5a2e812d071cf8af1a60a42393f60366e6c527043045afdfe"}},{"ruleId":"D2","level":"warning","message":{"text":"AppConfiguration.toJson (cognitive 18): AppConfiguration.toJson has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, ternaries 3 (6 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/configuration.dart"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"1926f7b33ecf2f02077d07372e80967daf5cd4b8c5f3d7fb3a268832f6d29e59"}},{"ruleId":"D2","level":"warning","message":{"text":"HexViewer._formatHex (cognitive 18): HexViewer._formatHex has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"198c8b6c30fda4f8d1efbf1ab8e42f143dd796a4e685e84bfd93e4c8d84c9807"}},{"ruleId":"D2","level":"warning","message":{"text":"KeyValState._cell (cognitive 18): KeyValState._cell has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (9 pts), ternaries 5 (6 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":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":1107}}}],"partialFingerprints":{"codehealthFindingId/v1":"514c2d90f5ef5e6ea1cb3dde9c13c3eaf8f4ca1aa0273b8b982b5bf9e2761a3d"}},{"ruleId":"D2","level":"warning","message":{"text":"FlowStore._matches (cognitive 17): FlowStore._matches has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/capture/flow_store.dart"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"e155f2dd3bb147025656a038ca213e1642108e11cfe70c70a3339e770e12fa11"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestRewriteInterceptor.responseRewrite (cognitive 17): RequestRewriteInterceptor.responseRewrite has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/request_rewrite.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f42a087258d32bd2f57be78935b762901dc36e2f0dc64dbcd4831d0f97f2f90"}},{"ruleId":"D2","level":"warning","message":{"text":"_BodyState._getBody (cognitive 17): _BodyState._getBody has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 3, ternaries 1 (3 pts), error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e3a72ca288c0aef68d6aa09a135aebc46e620818bf4b945a28b482c2628b86"}},{"ruleId":"D2","level":"warning","message":{"text":"_HostsDialogState.row (cognitive 17): _HostsDialogState.row has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (9 pts), if/else 5, boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11b8325ea9997c66b2fb2fc617809cfdd795993209c92f50f15173fc423f547"}},{"ruleId":"D2","level":"warning","message":{"text":"_McpServiceDialogState._openTerminalWith (cognitive 17): _McpServiceDialogState._openTerminalWith has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (9 pts), error handling 2 (5 pts), loops 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/toolbar/mcp_panel.dart"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"09318024fd343b637dcdc9357d263bc982b79e82003541cb770c5ef9135bb836"}},{"ruleId":"D2","level":"warning","message":{"text":"CryptoBodyDecoder._decryptCandidate (cognitive 17): CryptoBodyDecoder._decryptCandidate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), error handling 2 (4 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/crypto_body_decoder.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a6c080bdeca14f0cca70c75a74ba5aa3aabe07a38c8ee98a372b8d4ddfb0a0"}},{"ruleId":"D2","level":"warning","message":{"text":"FluentApp.theme (cognitive 16): FluentApp.theme has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7 (9 pts), if/else 7 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"236276ad15956b8a04016ccad3c3b11adc5d8c8f8f5a5be3fc8f9974d39b4be7"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestBreakpointInterceptor._renderBody (cognitive 16): RequestBreakpointInterceptor._renderBody has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 5, ternaries 2 (4 pts), error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/request_breakpoint.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"856e1ca937f4c9fcea56b240952099a82ab5de1f242a6016755aff0ee1070147"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestBreakpointInterceptor.onRequest (cognitive 16): RequestBreakpointInterceptor.onRequest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 1 (4 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/request_breakpoint.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3412e13493e53823f4f8da8d60ee5c35bd200f2d36f00826ec1f3d1337c20ab"}},{"ruleId":"D2","level":"warning","message":{"text":"RequestRewriteInterceptor.requestRewrite (cognitive 16): RequestRewriteInterceptor.requestRewrite has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/request_rewrite.dart"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"370afa558bb568cb4121349637063c29e7991d24708d91f8bbe32b11c67f7835"}},{"ruleId":"D2","level":"warning","message":{"text":"Http2Codec.decode (cognitive 16): Http2Codec.decode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 1, 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":"lib/network/http/h2/h2_codec.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa8b3bd212c87216f03749126833ad9ebf7e3e58c2351149d75f768d849043f"}},{"ruleId":"D2","level":"warning","message":{"text":"_JsonTextState.scrollToMatch (cognitive 16): _JsonTextState.scrollToMatch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 4, error handling 1 (3 pts), loops 1 (3 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/json/json_text.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"db3da29e15ac809783a466169c2fcb9e99554d7bc5d6a40cdd07c23bb2cf6e3e"}},{"ruleId":"D2","level":"warning","message":{"text":"_JsonTextState.splitTextSpans (cognitive 16): _JsonTextState.splitTextSpans has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/json/json_text.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f1ec103413386aab3a9c8dc088fedcecfbbfccc0f5e003986c17959047735b"}},{"ruleId":"D2","level":"warning","message":{"text":"MultiWindow._focusSingletonWindow (cognitive 16): MultiWindow._focusSingletonWindow has cognitive complexity 16 (threshold 15). Drivers by points: error handling 3 (7 pts), if/else 2 (7 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/multi_window.dart"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"4052f4136d29657113a66c085efbdd064dd2cfe91b3801136bafab3f48a09d00"}},{"ruleId":"D2","level":"warning","message":{"text":"DesktopMultiWindow.prepareWindow (cognitive 16): DesktopMultiWindow.prepareWindow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), error handling 3 (6 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":"lib/ui/component/multi_window_compat.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"5efb054e86c2d773e2154345d777b2da40d56e0d689728f18d28a57a77a81c4b"}},{"ruleId":"D2","level":"warning","message":{"text":"_HttpState._bodyToolbar (cognitive 16): _HttpState._bodyToolbar has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 3 (5 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":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":669}}}],"partialFingerprints":{"codehealthFindingId/v1":"b409a6f5d432c9c7b1dcf60074e77d222e33699919096ea602697f04c242916d"}},{"ruleId":"D2","level":"warning","message":{"text":"_WeakNetworkMenuTileState.build (cognitive 16): _WeakNetworkMenuTileState.build has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 3 (6 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/menu/weak_network_tile.dart"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eff4ac74fd92c3877a8727257ec3398b290d9b9fcf7dc76d5e426cdc21a7a58"}},{"ruleId":"D2","level":"warning","message":{"text":"_AndroidCaInstallState._autoInstallCert (cognitive 16): _AndroidCaInstallState._autoInstallCert has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 3 (7 pts), boolean chains 1, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/ssl.dart"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"81382a77a0866e7c9d068c75937b800a0732bdf764375592c59862a71fb38b91"}},{"ruleId":"D2","level":"warning","message":{"text":"_WebSocketRequestPageState._sendFile (cognitive 16): _WebSocketRequestPageState._sendFile has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/websocket_request.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1bfb8ff07ac1b7adef142386f4d3872e70794e48a53506f8507e3c2d91b962"}},{"ruleId":"D2","level":"warning","message":{"text":"ProxyVpnThread.run (cognitive 16): ProxyVpnThread.run has cognitive complexity 16 (threshold 15). Drivers by points: error handling 4 (9 pts), if/else 3 (6 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/network/proxy/vpn/ProxyVpnThread.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"96dab25f74e53cf76c3f4e1fae956bf521b58ba355f134e6b723c7628bbea73e"}},{"ruleId":"D2","level":"warning","message":{"text":"PacketUtil.isPacketCorrupted (cognitive 16): PacketUtil.isPacketCorrupted has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/network/proxy/vpn/util/PacketUtil.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"4484394c8ce31cb8a3f04f6464fb4c6938a96341b7f14a391bf2996411c5e9c2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ScriptEditState.build: MethodTooLong \u2014 build runs 255 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 155 over it, 2.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/script.dart"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"691afc8be91555a85a793f4868a36cb2fe4c14b9c02c8cf34f93f90c5952ab5b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CryptoRuleDialogState.build: MethodTooLong \u2014 build runs 231 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 131 over it, 2.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_crypto.dart"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e627d47091f217fcdca73a1f65961c8156143c6ea0618b7cdef3cf299492d9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: McpActions: ClassTooLong \u2014 914 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 514 over it, 2.29\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f162478623c5bdb3a3d165067873c2a2a6baccd8a227fb5e2669fd2ef909d36"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ScriptEditState.build: MethodTooLong \u2014 build runs 227 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 127 over it, 2.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1334e1cf34c4cb2e4b7fd4ea4451f1e1784f02e5fd1809c1713baa4c888e67"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: protocol/mcp_actions.dart: FileTooLong \u2014 936 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: McpActions (48-1232). The bar is 500 significant lines; this is 436 over it, 1.87\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"597d4981a3b2b2b40b47d562d194334aebe78089ed3e5f0c42b0d9a73c49d64f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: request/request_editor.dart: FileTooLong \u2014 916 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 416 over it, 1.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/request/request_editor.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c1bb15c5147915f36de8a308ca1dfa369991aa9c11364d8a987e77a0fa4437"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: request/request_editor.dart: FileTooLong \u2014 889 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 389 over it, 1.78\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5341782983263042093d23e825f41e8c401036d64b4368b98be2972dac29ab5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ToolboxState.build: MethodTooLong \u2014 build runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/toolbox.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d67bc2257bc6f562938543b9a23880cc817ed863bb62caa75ef78dbefd1c45d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: setting/script.dart: FileTooLong \u2014 814 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 314 over it, 1.63\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/script.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe231e18a597470b4d0a18e13021c636dd4321a1d693a5197ae65dc0be9d361"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RequestRowState.menu: MethodTooLong \u2014 menu runs 159 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 59 over it, 1.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/request/request.dart"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"d23809b31723f9212f642734c59dd64e347acd0910a7210e84c79c7c44f9e903"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: McpActions: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"35010e9e75611934b8753d0b898e398613fc2899da300b2784391925d229351a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: X509Utils: ClassTooLong \u2014 583 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 183 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":"lib/network/util/cert/x509.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7507441e4331baee888ff4f677b3f8e422202443be8f008d733460566646f8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: setting/script.dart: FileTooLong \u2014 717 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 217 over it, 1.43\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f78409e749e177ea5b12347b8480e16ce2c843ebfcc0eadd56ba0566a640bc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DetailMenuWidget.build: MethodTooLong \u2014 build runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/menu.dart"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"da9e0873a72f50030f4cc2311c2b1c0ed10119844975e473f31efcd8f3789e3c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Pkcs12: ClassTooLong \u2014 550 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 150 over it, 1.38\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/pkcs12.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ade277dfb0578de959a383ccb81ee855b73aa174f1a7d0a6db69b2d93f515537"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: content/body.dart: FileTooLong \u2014 686 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 186 over it, 1.37\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1c9119b1697a38780fcff581d6c9c89ebe146feceee9211f55aadaeb2a88de"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: setting/weak_network.dart: FileTooLong \u2014 677 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 177 over it, 1.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a934282cb3c4abeca13b16704edcedc5f16978eff859bbb54b381a8192cc2dd2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _MobileCryptoRuleEditPageState.build: MethodTooLong \u2014 build runs 135 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 35 over it, 1.35\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_crypto.dart"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0777dae921cc733a1be92f60db9c3af9e079e6877716f550bc0e1480e3609f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: content/panel.dart: FileTooLong \u2014 669 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 169 over it, 1.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/panel.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ac76ed3a366cf7e0ae5cd7b29fe7053fcf4fe35d5a3fb015bb7e4271f0816e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AesWidgetState.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":"lib/ui/toolbox/aes_page.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7d820e0c468a7253906756e072e95024c6cfc40535d7e49567f13a6e339f64"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _MobileMcpSettingState.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":"lib/ui/mobile/setting/mcp.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5e1955991393297a0b81da570b02fe5a1bf9d05c0d3ef30a53af6c33b7b29d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SearchConditionsState.build: MethodTooLong \u2014 build runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/search_condition.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"149325b8dbd29256bfe7ffaa168e9ef3fe009e5d7d27915bd4b94e7813db76d6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: KeyValState.modifyParam: MethodTooLong \u2014 modifyParam runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/request/request_editor.dart"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb50db57e7ba28b957e949880e9cd7cd889b8b78aef687732602dedfe49116d0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HttpBodyState.titleWidget: MethodTooLong \u2014 titleWidget runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"6029521245e88c90d76910860327e6dc96ed04d4faa76bda41554da274806796"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _WebSocketRequestPageState.build: MethodTooLong \u2014 build runs 124 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 24 over it, 1.24\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/websocket_request.dart"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ccae5b033b5aec498572da84596831183594a665d67b4162bf609a2f660b20"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DrawerWidget.build: MethodTooLong \u2014 build runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/menu/drawer.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e668ce348e4fc926a848215a2a66af7acead0e677922653733f3dac5ddc219"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CustomRepeatState.build: MethodTooLong \u2014 build runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/repeat.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc9cd4844c69906abccd736755393557e94ea62deadd8d22604fbbd512b62eec"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cert/x509.dart: FileTooLong \u2014 595 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: X509Utils (20-909). The bar is 500 significant lines; this is 95 over it, 1.19\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/x509.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffca20b50d2db64b3d08d06c7c8af71f680bc7ebd2f3bb45b7192fa96a3ca2f9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _RewriteUpdateAddState.build: MethodTooLong \u2014 build runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"178557b7ed24a6a7c908e342bb1ecef4bb9a716d543df379dd75dd2045b9b103"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ReportServersPageState._showServerDialog: MethodTooLong \u2014 _showServerDialog 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":"lib/ui/desktop/request/report_servers.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"368e2f8404942ff20928ac4fee144284fe1aa62bea4eed28fe7fe0de432cfaab"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChannelContext: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/channel_context.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8402163434963408f734c781e10ad3dac5cb75d8b9147ebeabd9c814f5fedb1d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: toolbar/mcp_panel.dart: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: _McpServiceDialogState (272-888). The bar is 500 significant lines; this is 76 over it, 1.15\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/toolbar/mcp_panel.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4d6335229cbcac2352e2078fa9a6c59bdc02ed6137e5afaf08db781f3e3d97"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: setting/ssl.dart: FileTooLong \u2014 576 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 76 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/ssl.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d8ecaae88e78161d2cf807785ad4aaf5e43883a7e35a5331456c0f3b79ae28"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: setting/request_crypto.dart: FileTooLong \u2014 574 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 74 over it, 1.15\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_crypto.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c03f959e757ea4288cbc7a3a69ac61eff7b984362be3f3bc838f08c22903fd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _SettingPage.build: MethodTooLong \u2014 build runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/menu/drawer.dart"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"9081c4a0a6411f85aad104b4ee8121cd3ed70d8a9116eaaf10b031b446e2f641"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: setting/request_crypto.dart: FileTooLong \u2014 568 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 68 over it, 1.14\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_crypto.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b135d9974ce0fb301e2f852236ca8937c0507ad57e18c3215cfafaa3e88bf85a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cert/pkcs12.dart: FileTooLong \u2014 558 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Pkcs12 (12-870). The bar is 500 significant lines; this is 58 over it, 1.12\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/pkcs12.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce3fb6942b35848c40384bfff54b63b4b348e2e24176b366197c9d369f0b1b2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _RewriteUpdateAddState.build: MethodTooLong \u2014 build runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/rewrite/rewrite_update.dart"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d1ad384bc6aca3f9664d659e3b096e3482924cb770a5e777c5ae6ebd0cb349d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _McpServiceDialogState: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/toolbar/mcp_panel.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c49775f5fcee0a86c4019d123b996f4124eac1131958f8060ae4591076356fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ConfigPageState.build: MethodTooLong \u2014 build runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/menu/bottom_navigation.dart"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5053fbe5c9849c4bd11c34dad0c73ad937bc0f5088679d0df649e8dbf7a6e18"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: setting/weak_network.dart: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 40 over it, 1.08\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/weak_network.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be2ac3fb32e99fbb4f4d320eb3cae74b2cad9061176f82304f48e087f1c8302"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _McpServiceDialogState: ClassTooLong \u2014 424 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 24 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/toolbar/mcp_panel.dart"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"a13d740ecd30c74081c36dc228670c1a2d884128f598ac0e521b3757f79a7e3c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: setting/request_rewrite.dart: FileTooLong \u2014 522 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 22 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_rewrite.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e820bc27ee7aa152a3a6d537e138179e08ae622e277c02a39b269699e6853f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _RewriteRuleEditState.build: MethodTooLong \u2014 build runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_rewrite.dart"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"9713844fe810fd7404cac0c8cb187241a1e87122df94476a76b1131e97c36a30"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HttpHeaders: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/http_headers.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a0d304d1f5e43804ab47d33800c76114f7d861b1e23653cc9c21037bc4fa4f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Pkcs12: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/pkcs12.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"7207888c37227e4223eb5cdfa69dd3d326acdd542b497d6afe9a33329455c3f2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _RequestWidgetState: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"663d4b9869cb389023152bea12e10301e443841a2bf38311a2931a7b679caca5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Http2Codec.parseHttp2Packet: MethodTooLong \u2014 parseHttp2Packet runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/h2/h2_codec.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d9f8cc0ed0c6640797d11e5bcd38400c532a3d6b683cd5895be111c3688e67"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _RewriteRuleState.build: MethodTooLong \u2014 build runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_rewrite.dart"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e13906e25397393abc220c511a9bd637d873af78708b4740ff3d48960eba504"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _TextDiffPageState._compare: MethodTooLong \u2014 _compare runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/text_diff.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e98e5de3158696b99d18cb092e85c9b135df37f4f451c1378f95f20e1fff96"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (131 shared lines): lib/ui/desktop/setting/script.dart:423-710 | lib/ui/mobile/setting/script.dart:480-803 \u2014 These two members are variants of one another: 131 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0f94726385f4cb45e434419b4e197a9d529d2b2a7e4af541bf9ce9407ec915"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (91 shared lines): lib/ui/desktop/setting/external_proxy.dart:53-169 | lib/ui/mobile/setting/proxy.dart:36-158 \u2014 These two members are variants of one another: 91 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/external_proxy.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"8101b5a9f39268402c4a15601aef2d9dc2b010d0456a0f09f60f793e5f33e00e"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (70 shared lines): lib/ui/desktop/setting/rewrite/rewrite_update.dart:163-304 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:168-299 \u2014 These two members are variants of one another: 70 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6c50b370d11d93298ddec0382cd1edc41452acd3c1c8f2cf90157bca644ccc"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (63 shared lines): lib/ui/desktop/request/repeat.dart:81-241 | lib/ui/mobile/request/repeat.dart:76-189 \u2014 These two members are variants of one another: 63 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/repeat.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ab51032a3e340dc605af3cc6aece9e037edf14a93319be66fbca32a98536a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (55 shared lines): lib/ui/desktop/setting/hosts.dart:483-557 | lib/ui/mobile/setting/hosts.dart:446-514 \u2014 These two members are variants of one another: 55 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c62ed565aec8dc63e773aedd1b435410fa3d5b4d67c381866f095e8bbaae380"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (31 shared lines): lib/ui/mobile/setting/app_filter.dart:90-184 | lib/ui/mobile/setting/app_filter.dart:249-326 \u2014 These two members are variants of one another: 31 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/app_filter.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b5ee74c811444b02f274ac3f3303559fe645179e2e91ddcf00115327a95f54"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (29 shared lines): lib/ui/desktop/setting/script.dart:800-871 | lib/ui/mobile/setting/script.dart:911-967 \u2014 These two members are variants of one another: 29 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcefccf48e25b5f5d51d30b679e990d32e38a62114fde820ef3957745f061ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (26 shared lines): lib/ui/desktop/setting/request_block.dart:101-137 | lib/ui/mobile/setting/request_block.dart:65-101 \u2014 These two members are variants of one another: 26 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_block.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aec9a1c4b3b7202d8b475499d41b4ff3792395fdcf666ffdda96f49cc7ef072"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (25 shared lines): lib/ui/desktop/setting/environment.dart:291-344 | lib/ui/mobile/setting/environment.dart:321-373 \u2014 These two members are variants of one another: 25 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/environment.dart"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"0055fdfbef396a83d675021e8d4e49939115f5ae5b26a82e5d90b6bcaa953b2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): lib/ui/desktop/setting/filter.dart:163-187 | lib/ui/desktop/setting/hosts.dart:341-377 | lib/ui/desktop/setting/request_rewrite.dart:159-187 | lib/ui/desktop/setting/script.dart:172-203 | lib/ui/mobile/setting/filter.dart:139-161 | lib/ui/mobile/setting/hosts.dart:302-337 | lib/ui/mobile/setting/request_rewrite.dart:93-119 | lib/ui/mobile/setting/script.dart:123-153 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"39838ca5f115d8c4b35c1124ce701c755cc1f0a6f5160f55731955dc223769bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): lib/ui/desktop/setting/filter.dart:229-269 | lib/ui/desktop/setting/hosts.dart:61-157 | lib/ui/desktop/setting/request_breakpoint.dart:166-220 | lib/ui/desktop/setting/request_crypto.dart:178-230 | lib/ui/desktop/setting/request_map.dart:207-253 | lib/ui/desktop/setting/request_rewrite.dart:223-266 | lib/ui/desktop/setting/script.dart:755-798 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b09bc385074706dc44efc0b0b9fbbe39679155e9266bab7c1fdf11dd70c47bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): lib/ui/mobile/setting/filter.dart:222-262 | lib/ui/mobile/setting/hosts.dart:206-246 | lib/ui/mobile/setting/request_breakpoint.dart:225-270 | lib/ui/mobile/setting/request_crypto.dart:184-229 | lib/ui/mobile/setting/request_map.dart:243-283 | lib/ui/mobile/setting/request_rewrite.dart:195-235 | lib/ui/mobile/setting/script.dart:869-909 \u2014 These 7 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 7 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 7 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/filter.dart"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17dab81440d7eab860b511581cb0d9adcbab9cf1102ec9d73d4a98198987daa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): lib/ui/desktop/request/request_editor.dart:602-667 | lib/ui/mobile/request/request_editor.dart:586-647 | lib/ui/toolbox/json_viewer.dart:301-328 | lib/ui/toolbox/text_diff.dart:414-471 | lib/ui/toolbox/text_editor.dart:341-372 | lib/ui/toolbox/xml_viewer.dart:219-249 \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":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c727622306f852c00266af991a67a5443a3d979b4610e3642987a8e729067d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/ui/desktop/setting/hosts.dart:255-270 | lib/ui/desktop/setting/request_crypto.dart:347-357 | lib/ui/desktop/setting/request_map.dart:321-331 | lib/ui/desktop/setting/request_rewrite.dart:280-291 | lib/ui/desktop/setting/script.dart:873-883 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"136328d69261da807f92ecc59278916f51bc8bf2baa99d80760508d6d2b03ea2"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/ui/desktop/setting/request_breakpoint.dart:100-118 | lib/ui/desktop/setting/request_crypto.dart:66-82 | lib/ui/desktop/setting/request_map.dart:69-86 | lib/ui/desktop/setting/request_rewrite.dart:73-91 | lib/ui/desktop/setting/script.dart:88-105 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a535e1a3798c0dc61657c22248d880d4f19e1110df739f04d8ea3694f07e0ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/ui/desktop/setting/request_breakpoint.dart:404-532 | lib/ui/desktop/setting/request_map.dart:484-578 | lib/ui/desktop/setting/request_rewrite.dart:543-675 | lib/ui/mobile/setting/request_map.dart:450-547 | lib/ui/mobile/setting/request_rewrite.dart:505-635 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"968f5fd8c4cf7a4fea7956811803de588951a0e3eef76706e42475e4acbf11fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/ui/desktop/setting/weak_network.dart:160-194 | lib/ui/desktop/setting/weak_network.dart:661-741 | lib/ui/desktop/setting/weak_network.dart:743-774 | lib/ui/mobile/setting/weak_network.dart:525-602 | lib/ui/mobile/setting/weak_network.dart:604-639 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b383d83042c448eccb3fb603d5a16cd04db4fbf45827a9a78d6d545c1244d420"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/content/web_socket.dart:184-198 | lib/ui/content/web_socket.dart:200-214 | lib/ui/toolbox/websocket_request.dart:599-613 | lib/ui/toolbox/websocket_request.dart:615-629 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/web_socket.dart"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7dcd4cef63b7a307b9d7b9a15b6c5ca6ede4e29b10e6635a31834e48f8a6923"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/desktop/left_menus/favorite.dart:258-284 | lib/ui/desktop/left_menus/history.dart:297-327 | lib/ui/mobile/request/favorite.dart:395-421 | lib/ui/mobile/request/history.dart:345-374 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/left_menus/favorite.dart"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"997c51bce981b6ba3e92fb92c1ede579372051648c46f356bc30dbcad7ea6498"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/desktop/setting/request_map.dart:88-145 | lib/ui/desktop/setting/script.dart:107-165 | lib/ui/mobile/setting/request_map.dart:53-94 | lib/ui/mobile/setting/script.dart:66-115 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a0fc48b47f8f8c0ef136e609c9f0d4ce48537ff66556bc091a131cd62f8768"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/desktop/setting/request_map.dart:207-253 | lib/ui/desktop/setting/request_rewrite.dart:223-266 | lib/ui/mobile/setting/request_map.dart:161-185 | lib/ui/mobile/setting/request_rewrite.dart:167-193 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"4505d61288c4766489b049bf83dc16f7b3b76f00cfff13af4a8769bcfaa2d4a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/desktop/setting/request_map/map_local.dart:122-156 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:175-257 | lib/ui/mobile/setting/request_map/map_local.dart:125-162 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:167-250 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a11845ee58d6cea7ed6c639c5859323721fc337b777d7d6ac6a3aedc2ade674"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/desktop/setting/request_map/map_local.dart:351-370 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:570-591 | lib/ui/mobile/setting/request_map/map_local.dart:357-376 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:557-578 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1410dd5bfe810b785a4be041d6317df71963f3121f7da48080429da7b9e771"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/desktop/setting/request_map/map_local.dart:372-386 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:593-606 | lib/ui/mobile/setting/request_map/map_local.dart:378-392 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:580-593 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ae50012432633a1f49252c69081b35230891df54216f40ccf1ce73b72559c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/desktop/setting/request_map/map_local.dart:388-395 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:608-615 | lib/ui/mobile/setting/request_map/map_local.dart:394-401 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:595-602 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4a93b39b64cbd177ed8c5499322a5c5005f0136d43f0fea096971d480b9875"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:302-324 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:410-446 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:293-315 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:400-434 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bbc86c820721de74ca9e74e3a9e802a85922574f8396347f78046e6c83b64fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/desktop/setting/weak_network.dart:446-542 | lib/ui/desktop/setting/weak_network.dart:661-741 | lib/ui/mobile/setting/weak_network.dart:317-410 | lib/ui/mobile/setting/weak_network.dart:525-602 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"e195be0044afde01adb87529eb8cc22f8c33254e2599875aa71de87d50a61d6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/desktop/ssl/ssl.dart:87-133 | lib/ui/desktop/ssl/ssl.dart:135-207 | lib/ui/mobile/setting/ssl.dart:194-235 | lib/ui/mobile/setting/ssl.dart:237-269 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/ssl.dart"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"3086ce6a4c942bc212c3b257a492a859fe664fadf05ff7f6066db0799096d28b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/mobile/setting/client_cert.dart:85-121 | lib/ui/mobile/setting/request_block.dart:104-143 | lib/ui/mobile/setting/request_rewrite.dart:344-408 | lib/ui/mobile/setting/script.dart:970-1028 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/client_cert.dart"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ebf5a726111b67b9dec6169efd9547e43d247a88343817c45b0dd22d3b6158"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/toolbox/cert_hash.dart:65-75 | lib/ui/toolbox/qr_code_page.dart:78-88 | lib/ui/toolbox/regexp.dart:69-79 | lib/ui/toolbox/timestamp.dart:69-79 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/cert_hash.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e982ee04eb0c0f0dd6715243f3f797cd0dca68665dad727aee8ed44dcc26a08"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/toolbox/json_viewer.dart:92-101 | lib/ui/toolbox/text_diff.dart:88-97 | lib/ui/toolbox/text_editor.dart:127-136 | lib/ui/toolbox/xml_viewer.dart:79-88 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/json_viewer.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d73da4e5a396b43406c47b318eee441004678538109cc6be41d6f0c4a35b99"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/ui/toolbox/json_viewer.dart:170-188 | lib/ui/toolbox/text_diff.dart:305-322 | lib/ui/toolbox/text_editor.dart:184-203 | lib/ui/toolbox/xml_viewer.dart:116-134 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/json_viewer.dart"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"434d57ff7f2d004143e2f95c8899382113b84f3df0dbb13e41ba65853c35bdd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2): lib/ui/desktop/setting/external_proxy.dart:115-169 | lib/ui/mobile/setting/proxy.dart:104-158 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/external_proxy.dart\u0060 and \u0060lib/ui/mobile/setting/proxy.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/external_proxy.dart"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b0e68c034203bbd4c5e1ea3edfe4c4ad38a200c32cf1c4017c984cb1c2f97d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:196-237 | lib/ui/mobile/setting/hosts.dart:144-185 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6aac4684fba9a838d184b95a8daa382e14b41ca9ff31e9b30e0010cfc697d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): lib/ui/content/web_socket.dart:142-182 | lib/ui/toolbox/websocket_request.dart:557-597 \u2014 before extracting anything, compare \u0060lib/ui/content/web_socket.dart\u0060 and \u0060lib/ui/toolbox/websocket_request.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/web_socket.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"6009c7c7f3d3144913017d0a6ca67c156d6905a1796a6a016c01eca9e34531b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:483-516 | lib/ui/mobile/setting/hosts.dart:446-479 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d55cc9285f30083e443f4c42af790bc1920fc4cb004018c0258ede3e4e2815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): lib/ui/desktop/setting/request_breakpoint.dart:256-287 | lib/ui/mobile/setting/request_breakpoint.dart:152-183 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/mobile/setting/request_breakpoint.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"38aae4c672037e89ba6a4a49b6db556ad2ad9335b88ce7f99a189a088bc680e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:317-347 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:313-343 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"5955683c5747215da753f315875468d23198663c82e070dde8d786e7e32b8ba0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:674-703 | lib/ui/mobile/request/request_editor.dart:655-684 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"90988da59ee1c15fff9d689e8d29264851e3cd1fabdf259761d096e4e089f789"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:344-373 | lib/ui/mobile/setting/hosts.dart:304-333 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"619bac36d369c88fbd4b34ca66fa732675a424a9914bde2b1d694696cd965b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 4): lib/ui/desktop/setting/request_breakpoint.dart:232-260 | lib/ui/desktop/setting/request_crypto.dart:243-271 | lib/ui/desktop/setting/request_map.dart:266-294 | lib/ui/desktop/setting/script.dart:816-844 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/desktop/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b39ce1bde6bb96efba315edb81c50985d706328d5abb9b50d820ce421662e67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:416-444 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:404-432 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"362e549c8edb16f67794170b687832299ccf9a33b20b85c383cb7617d012a852"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): lib/utils/css_formatter.dart:36-64 | lib/utils/js_formatter.dart:48-76 \u2014 before extracting anything, compare \u0060lib/utils/css_formatter.dart\u0060 and \u0060lib/utils/js_formatter.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/css_formatter.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ff1082af75343c6e6378a16fd076b30c54e5b8d97636ff503aba3417af170b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/ui/desktop/left_menus/favorite.dart:258-284 | lib/ui/mobile/request/favorite.dart:395-421 \u2014 before extracting anything, compare \u0060lib/ui/desktop/left_menus/favorite.dart\u0060 and \u0060lib/ui/mobile/request/favorite.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/left_menus/favorite.dart"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e48dbf94fc903688062736c7c1aba2b7753cd6483dbb8f110c3ae9e10890218"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:204-230 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:196-222 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"618c873284e9264d05974800be23be89b1fa7eaa2b105c99bd983cfc407c4339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:287-311 | lib/ui/mobile/setting/hosts.dart:262-286 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"1478bb73d8b151e423ca9b1ee4620f103b240a87e894026a7d391f4d8dd929c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201325 lines \u00D7 2): lib/ui/desktop/ssl/ssl.dart:89-113 | lib/ui/mobile/setting/ssl.dart:195-216 \u2014 before extracting anything, compare \u0060lib/ui/desktop/ssl/ssl.dart\u0060 and \u0060lib/ui/mobile/setting/ssl.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/ssl.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd67a69ac7bdf1de092ce5150b344e3be93ebc74f94b5a099343c12d98c96f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): lib/network/components/js/script_engine.dart:215-237 | lib/network/components/js/script_engine.dart:243-266 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/js/script_engine.dart"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65869d9ce0ccd3afeec8cd1a3a4b9b8d2986b7e694d2a806a61c1f688e95c68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:344-367 | lib/ui/mobile/request/request_editor.dart:142-165 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0b9a53c7489dc5f1c4966c0e359aa9faf21e04edf79d363e06f944f62a2ff2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): lib/ui/desktop/setting/external_proxy.dart:90-113 | lib/ui/mobile/setting/proxy.dart:79-101 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/external_proxy.dart\u0060 and \u0060lib/ui/mobile/setting/proxy.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/external_proxy.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd755a3421a575c23b23267db2ec175ce6c7e3901e7d657bcfd01ee0b60909d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:547-570 | lib/ui/mobile/setting/request_map.dart:465-488 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8385d82c5eb28eb6d741ceb2b701a4206b3bab20c83943112f6e9de1c3eb78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201324 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:131-152 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:134-157 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d8bec32d7feb0002b52ab90b3ff0e9283e181eb6a150bf88b361ec7b532c8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/ui/desktop/setting/script.dart:537-560 | lib/ui/mobile/setting/script.dart:590-613 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dade619b854eba64b09853660a35e8448e66897f1cb140f09fbdc15b52f446f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/ui/mobile/setting/request_breakpoint.dart:247-270 | lib/ui/mobile/setting/request_crypto.dart:206-229 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/mobile/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_breakpoint.dart"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f31e1507e0b317b330b974dff76a594ac7209d3bfe5d87efde16db172e135a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:510-531 | lib/ui/mobile/setting/request_map.dart:511-533 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8e33cfda1b84d8bfc018dd26ffb126b67fd71817e91b4dc35d9820f51e3dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:126-148 | lib/ui/mobile/setting/request_map/map_local.dart:129-151 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c08195a7865ff2e733db681af481ee3a8a56aac4d991ccffcc95c23e2ca95fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:216-238 | lib/ui/mobile/setting/request_map/map_local.dart:222-244 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a7e53b7b2a7e4c6ed229bffeff2c1d4fe2671006e40b9b605d3e636f90ca39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/ui/desktop/request/repeat.dart:197-218 | lib/ui/mobile/request/repeat.dart:84-105 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/repeat.dart\u0060 and \u0060lib/ui/mobile/request/repeat.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/repeat.dart"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"b521497da9ce2b463d3da9ba760a4522eb16fac229cfc9ffd575d86444cff761"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:608-629 | lib/ui/mobile/request/request_editor.dart:591-612 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f53fef590dce604b0a746999835bc1e92bb3f73015b9d624f628e09616a770"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/ui/desktop/setting/script.dart:355-376 | lib/ui/mobile/setting/script.dart:440-461 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42d221d39fbff2c88a519568c245efb2eed5728bef3fd0f60f3291d2587900b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/ui/desktop/setting/filter.dart:289-309 | lib/ui/desktop/setting/request_rewrite.dart:306-326 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c95d6a038524bd4a89cfab63cbba09f77f8547dff4084080c54f325d191a3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/ui/mobile/setting/request_breakpoint.dart:309-329 | lib/ui/mobile/setting/request_crypto.dart:288-308 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/mobile/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_breakpoint.dart"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"f286ac65f5be18c0c7fe40e13fda42680870ccdd1893dd73f67323aa4d99494d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 6): lib/ui/desktop/setting/filter.dart:233-252 | lib/ui/desktop/setting/hosts.dart:70-89 | lib/ui/desktop/setting/request_breakpoint.dart:174-192 | lib/ui/desktop/setting/request_crypto.dart:187-205 | lib/ui/desktop/setting/request_map.dart:216-234 | lib/ui/desktop/setting/script.dart:764-782 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/filter.dart\u0060 and \u0060lib/ui/desktop/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"53dc894e22b3eb22ead9cf55f184dadde5051f170f110f44e617d9c23455eab1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): lib/ui/desktop/setting/request_map/map_local.dart:324-343 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:543-562 | lib/ui/mobile/setting/request_map/map_local.dart:330-349 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"09dd8c87b718d0cac88e94bafbff5dcde887cce9c5e928a6f49e90bb20c4e2df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): lib/ui/toolbox/json_viewer.dart:190-209 | lib/ui/toolbox/text_editor.dart:240-258 | lib/ui/toolbox/xml_viewer.dart:136-154 \u2014 before extracting anything, compare \u0060lib/ui/toolbox/json_viewer.dart\u0060 and \u0060lib/ui/toolbox/text_editor.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/json_viewer.dart"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"27cef07ec95af97c4fdeee588a4a1fe542a7706a34f5fb2cf6054513101baab8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 2): lib/mcp/protocol/mcp_server.dart:164-179 | lib/mcp/protocol/mcp_server.dart:267-286 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_server.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd5feb686497e4a590c2f43225eb2847f82b8759446ffc9c3eba08a59b11a03a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:425-444 | lib/ui/mobile/setting/hosts.dart:388-407 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"600845391cce3b3470723bd1657723d1164e8b3c8187618c59cec4bd2f0e6718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/ui/desktop/setting/request_block.dart:186-205 | lib/ui/mobile/setting/request_block.dart:165-184 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_block.dart\u0060 and \u0060lib/ui/mobile/setting/request_block.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_block.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"409cb58dbef8fd0fc6e1d51e1f83e199650d59a47a4c3b092fa850e29b16f44d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:351-370 | lib/ui/mobile/setting/request_map/map_local.dart:357-376 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1bf776ee49e8b9ff2c2049df43cfa1abbfa13f8753e81fe609522c9b99fc169"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:182-201 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:173-192 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c8aa466f67a22064b152db498fdc1ab97d6003b2c4995243abbba18797372b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lib/ui/desktop/setting/script.dart:674-693 | lib/ui/mobile/setting/script.dart:766-784 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"46acfee29a95ff4b71abf2e0f65895d0854585cbcc45749ec06ad66af7bb86bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:476-494 | lib/ui/mobile/setting/weak_network.dart:342-361 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadc1a28d3e00e815b911fc8f4aa4cb2f4b199d6cd48d85598e36a7619802e7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/ui/mobile/setting/request_breakpoint.dart:225-244 | lib/ui/mobile/setting/request_crypto.dart:184-203 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/mobile/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_breakpoint.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d03818d33338224d4d037455cc195bec197043bf6de81494ea8ec18ee9a28b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): lib/ui/desktop/request/repeat.dart:141-158 | lib/ui/mobile/request/repeat.dart:138-156 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/repeat.dart\u0060 and \u0060lib/ui/mobile/request/repeat.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/repeat.dart"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"e504df74cb6e75eb82c781d671059e546598193b4c6b3ba839cab6cb95263a64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:298-316 | lib/ui/mobile/request/request_editor.dart:291-309 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b83170d559f1aae3b4610447f13bbf895c9c0a757ea7d4da9a1d64e2cf41fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/ui/desktop/setting/about.dart:125-143 | lib/ui/mobile/widgets/about.dart:142-160 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/about.dart\u0060 and \u0060lib/ui/mobile/widgets/about.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/about.dart"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"4baf99ea9ee61f7d702c5c12521c73e2d39c3af0e765cf83bc96b05e93d74e05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/ui/mobile/setting/filter.dart:229-247 | lib/ui/mobile/setting/request_map.dart:250-268 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/filter.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b7b848f20687517b5bb03a1c6069661f889481b290a028bbcff0cf436912f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/ui/mobile/setting/request_breakpoint.dart:273-291 | lib/ui/mobile/setting/request_crypto.dart:251-269 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/mobile/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_breakpoint.dart"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"e793fa632e29566376fb987b8d29d3e0923a9da0635430da4b0c2c9c3b137688"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/utils/css_formatter.dart:78-96 | lib/utils/js_formatter.dart:102-120 \u2014 before extracting anything, compare \u0060lib/utils/css_formatter.dart\u0060 and \u0060lib/utils/js_formatter.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/css_formatter.dart"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"99e933b25b3512d0493840bb16bd8709eba6c90e051baca0a23f04d2987669dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/utils/css_formatter.dart:115-133 | lib/utils/js_formatter.dart:145-163 \u2014 before extracting anything, compare \u0060lib/utils/css_formatter.dart\u0060 and \u0060lib/utils/js_formatter.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/css_formatter.dart"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f93e1d26638458c02ac12bddf4c857d4edd51578d280113f1a0430d9ced8987"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 5): lib/ui/desktop/setting/hosts.dart:64-81 | lib/ui/desktop/setting/request_crypto.dart:181-197 | lib/ui/desktop/setting/request_map.dart:210-226 | lib/ui/desktop/setting/request_rewrite.dart:227-243 | lib/ui/desktop/setting/script.dart:758-774 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/desktop/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee602582bf7c73574d21fc995a7fcb59b266aca7fa65a2f89a1e7bd9aa6597a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201318 lines \u00D7 3): lib/mcp/protocol/mcp_server.dart:164-178 | lib/mcp/protocol/mcp_server.dart:223-239 | lib/mcp/protocol/mcp_server.dart:267-284 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_server.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ae1bff7d53190b028fd502e60fab346216653ee6b186c751038602c98ec7b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:1250-1267 | lib/ui/mobile/request/request_editor.dart:1316-1333 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"e916e01264f2838a0a32c908fc5d3ab19ad1cd35d885a667fa43c9d2d20fee10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): lib/ui/desktop/setting/filter.dart:166-183 | lib/ui/mobile/setting/filter.dart:141-157 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/filter.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aa9cdcba1b6f16710f1fa930dc7e710b61756974e87ff237c3d289711e5536b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:137-154 | lib/ui/mobile/setting/hosts.dart:102-118 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1f40c6c4bf369c5b06568cd51fbf55f8359902a132818a23eb71ffb17602416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:294-311 | lib/ui/mobile/setting/request_map.dart:215-232 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f248e781a41b17372ff365fddea3e9c8fb34140bf86b8c98533f321362c3cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/ui/desktop/setting/request_rewrite.dart:596-613 | lib/ui/mobile/setting/request_rewrite.dart:588-605 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 and \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_rewrite.dart"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b242dc481874b93118e694713465632d91956514b399f8ecd54ef161bdcb22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/ui/desktop/setting/script.dart:182-199 | lib/ui/mobile/setting/script.dart:132-149 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f43b6d2b6570434ca0a9f43912effc68f6c5cc1866a829bbfc09f6d983b9169b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:569-586 | lib/ui/mobile/setting/weak_network.dart:436-453 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c64efd0926ee959fe6f46ec85af4754b5c43e2c6abca5841d171d4848909e02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): lib/ui/desktop/ssl/ssl.dart:115-131 | lib/ui/mobile/setting/ssl.dart:218-235 \u2014 before extracting anything, compare \u0060lib/ui/desktop/ssl/ssl.dart\u0060 and \u0060lib/ui/mobile/setting/ssl.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/ssl.dart"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b37609a023fb50dcc25be2cee951e44137da4a755381fb558aa89ff5e36ef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 5): lib/ui/mobile/setting/filter.dart:222-238 | lib/ui/mobile/setting/hosts.dart:206-222 | lib/ui/mobile/setting/request_map.dart:243-259 | lib/ui/mobile/setting/request_rewrite.dart:195-211 | lib/ui/mobile/setting/script.dart:869-885 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/filter.dart"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"4578a957c19035ee59ef01c0ec306b0f069244c4e5a90f34ab9dc2309d58618c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): lib/ui/desktop/setting/request_map/map_local.dart:198-214 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:392-408 | lib/ui/mobile/setting/request_map/map_local.dart:204-220 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02c7007baeef3d3d341d58c90b76285f1873964e68d2f78d5d57f9d149b6f4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): lib/ui/mobile/setting/filter.dart:277-293 | lib/ui/mobile/setting/request_map.dart:198-214 | lib/ui/mobile/setting/request_rewrite.dart:252-268 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/filter.dart"},"region":{"startLine":277}}}],"partialFingerprints":{"codehealthFindingId/v1":"286e55688db604496c47861358dc58508fbe09b8a0cc1173f4dfd499af45e538"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:403-419 | lib/ui/mobile/setting/hosts.dart:364-380 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"0865f62af261ea961b45941d45d4fd57fca5578573ba79a0f8608df70b92614b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/ui/desktop/setting/request_rewrite.dart:677-693 | lib/ui/mobile/setting/request_rewrite.dart:637-653 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 and \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_rewrite.dart"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a5d965ebb7688b995d06abd2976298adb42ced3eeb442820677be83e73606a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:274-290 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:270-286 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"70410f7dd766a1e50ce37913b6b4b4ed049036b2a9ba973f9488ca594de11d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): lib/ui/desktop/setting/script.dart:449-464 | lib/ui/mobile/setting/script.dart:502-518 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13b38a3b97e12c76cdf4b3995c1bd7c99db81cede999a4afaeb32e891a383a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/ui/desktop/ssl/pc_cert.dart:49-65 | lib/ui/mobile/setting/ssl.dart:525-541 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/pc_cert.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8155a93c1c0e63ff38836ab30cf52c94cf917afc119ea6d31aebffd1f2ed212"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lib/ui/toolbox/json_viewer.dart:301-316 | lib/ui/toolbox/text_editor.dart:341-356 | lib/ui/toolbox/xml_viewer.dart:219-234 \u2014 before extracting anything, compare \u0060lib/ui/toolbox/json_viewer.dart\u0060 and \u0060lib/ui/toolbox/text_editor.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/json_viewer.dart"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39ccb1d2a1db8b05d1aedb6856ac19aeea4833a615b7b8adf52bc5e2d4fcb57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): lib/mcp/protocol/mcp_actions.dart:1113-1128 | lib/mcp/protocol/mcp_actions.dart:1168-1182 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a9d5113727454d667d7eab22ae9e2f173451ed3549684d2476e934f43e5f22a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/ui/desktop/request/repeat.dart:53-68 | lib/ui/mobile/request/repeat.dart:51-66 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/repeat.dart\u0060 and \u0060lib/ui/mobile/request/repeat.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/repeat.dart"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3e32a70de5234ec0e5862ebe8452270e1d3d2341897ff6e59e5982597ed113"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:380-394 | lib/ui/mobile/setting/hosts.dart:340-355 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"21dbe035d3b2b3b8dc5f0678ab0adc7b12c471e0d37634804e571c25c80bff00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:422-437 | lib/ui/mobile/setting/request_map.dart:387-402 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"86eebc7dddc76b615010425341eb400ca7d999609e8845ee83f9266453f31c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:175-190 | lib/ui/mobile/setting/request_map/map_local.dart:181-196 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3dd47de024eed85e396a81bf8ddc5fa439d3f93677ce4a93c8c3ce28a46de8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:570-585 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:557-572 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"370d4d4bae2f08a0d980f7780d04a9eb206158e6f69af4f447b3b4319c66c560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:352-367 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:348-362 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"96348d0e9f64990525186ed7db1d80789a5fe6e8fa50b508c6670da462eac046"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/ui/mobile/setting/request_map.dart:286-301 | lib/ui/mobile/setting/request_rewrite.dart:344-359 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_map.dart"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba0afcdc7d2b203f0171bf2ec513bb2dc1960a8d61a9f14bd677bd77ae86041"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 7): lib/ui/mobile/setting/filter.dart:223-237 | lib/ui/mobile/setting/hosts.dart:207-221 | lib/ui/mobile/setting/request_breakpoint.dart:227-241 | lib/ui/mobile/setting/request_crypto.dart:186-200 | lib/ui/mobile/setting/request_map.dart:244-258 | lib/ui/mobile/setting/request_rewrite.dart:196-210 | lib/ui/mobile/setting/script.dart:870-884 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/filter.dart"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"797e0fd059583dd369a51d46004d56e6120ae28c45632aace6253755aea0dc04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 3): lib/ui/toolbox/json_viewer.dart:170-184 | lib/ui/toolbox/text_editor.dart:184-197 | lib/ui/toolbox/xml_viewer.dart:116-130 \u2014 before extracting anything, compare \u0060lib/ui/toolbox/json_viewer.dart\u0060 and \u0060lib/ui/toolbox/text_editor.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/json_viewer.dart"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"e284875545b6419ae47426f5f76d3491ec1b36a38e93f3b166dbedf6d0dce088"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): lib/mcp/protocol/mcp_server.dart:281-293 | lib/mcp/protocol/mcp_server.dart:390-404 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_server.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"72632cb39d8cd1e75a4f898ebe366937500693fd755562ae3a256518163349eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/ui/content/web_socket.dart:200-214 | lib/ui/toolbox/websocket_request.dart:615-629 \u2014 before extracting anything, compare \u0060lib/ui/content/web_socket.dart\u0060 and \u0060lib/ui/toolbox/websocket_request.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/web_socket.dart"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fea12169af9bc0def2fd4c59bb779ebe084b0b68e5861995252c280916e0f66"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:873-887 | lib/ui/mobile/request/request_editor.dart:870-884 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":873}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb6fef0463a09e77863086a09ebef7d90da46e16c34f419c9b04cc1a46ccdf6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/ui/desktop/setting/filter.dart:305-319 | lib/ui/mobile/setting/filter.dart:289-303 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/filter.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1e3c6a5ef4a4ce5964ab1f3b2325db8939bc470373204aaa3e207981a20c36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/ui/desktop/setting/request_block.dart:75-88 | lib/ui/mobile/setting/request_block.dart:38-52 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_block.dart\u0060 and \u0060lib/ui/mobile/setting/request_block.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_block.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"020d2a280270c6b688ed029de8609bc611faf0797ebb3af237c36fbffd30881e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/ui/desktop/setting/request_block.dart:227-241 | lib/ui/mobile/setting/request_block.dart:208-222 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_block.dart\u0060 and \u0060lib/ui/mobile/setting/request_block.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_block.dart"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f4781e796c027621ceac289b39839330f25c49a0690e5bf08e92638b51470d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:158-172 | lib/ui/mobile/setting/request_map/map_local.dart:164-178 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"60ab7edee083c12988a4a968e469831c12ca8a549c6f204393fc03265d75047e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:307-321 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:298-312 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec8d84d55dc64e3630e6e5b6b4449eb107cc1fa00c42cac4d93c4aa77ebb895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:372-386 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:365-379 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"a203ad1c65874c29c3d0ef708a7c635fd9dbad227afced2dc9eea1baa07ffb00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): lib/ui/desktop/ssl/ssl.dart:160-174 | lib/ui/mobile/setting/ssl.dart:242-254 \u2014 before extracting anything, compare \u0060lib/ui/desktop/ssl/ssl.dart\u0060 and \u0060lib/ui/mobile/setting/ssl.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/ssl.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e25c8a8428e3139908396ebf717715b4d5d3a481d8ec37244b003fbfb0fa6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): lib/ui/mobile/setting/app_filter.dart:160-174 | lib/ui/mobile/setting/app_filter.dart:304-316 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/app_filter.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"13fb33cd38127d64baa872d440d018e4d116deed11ae28d73e723b680cb2379e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/utils/har.dart:62-76 | lib/utils/har.dart:120-134 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/har.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d64f9649c69152b8a9fb13d0a5163cdae4a904b8ec9df9effc842a4e3913036"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): lib/ui/mobile/setting/filter.dart:249-262 | lib/ui/mobile/setting/hosts.dart:233-246 | lib/ui/mobile/setting/request_map.dart:270-283 | lib/ui/mobile/setting/request_rewrite.dart:222-235 | lib/ui/mobile/setting/script.dart:896-909 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/filter.dart"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a55b7c02106e5ddb0fab4995f5f3f21970ed6b19c7cb75deb9d38f632bb1d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/network/components/request_breakpoint.dart:118-130 | lib/network/components/request_breakpoint.dart:157-170 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/request_breakpoint.dart"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e338c7ace956c4f93cf985ea756b7b07a07e93a4c385c02b9b38a9cbf3ed25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/ui/desktop/request/repeat.dart:160-172 | lib/ui/mobile/request/repeat.dart:158-171 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/repeat.dart\u0060 and \u0060lib/ui/mobile/request/repeat.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/repeat.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5061c10393490a5c2a92c427e42f4657ead73f6edeebf854d8e3159a2ff577a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/desktop/request/report_servers.dart:44-57 | lib/ui/mobile/setting/report_servers.dart:26-39 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/report_servers.dart\u0060 and \u0060lib/ui/mobile/setting/report_servers.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/report_servers.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"44dcf9de4b71a336be06a83baa1e68f9b99d69afbea921d1030e613e53e20fdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/ui/desktop/setting/external_proxy.dart:66-79 | lib/ui/mobile/setting/proxy.dart:45-57 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/external_proxy.dart\u0060 and \u0060lib/ui/mobile/setting/proxy.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/external_proxy.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b1ee9a3ec5ec60fddaa994f37b938f1b23034638960c041e66a903354d193c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/desktop/setting/external_proxy.dart:196-209 | lib/ui/mobile/setting/proxy.dart:178-191 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/external_proxy.dart\u0060 and \u0060lib/ui/mobile/setting/proxy.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/external_proxy.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d904d5421dea64746ca3ab516ce0cce677f7448a2a0c49e1db296016a188f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/ui/desktop/setting/filter.dart:355-368 | lib/ui/mobile/setting/filter.dart:306-318 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/filter.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"de3ae1b2794a3a5824075f9804c484643a1f6e86dd58197f97ca5844183620b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:313-326 | lib/ui/mobile/setting/hosts.dart:191-204 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a0223aaf13f88734c5ff242496879f0b123aaed14475b9c200d6a70fce004f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/desktop/setting/request_block.dart:206-219 | lib/ui/mobile/setting/request_block.dart:187-200 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_block.dart\u0060 and \u0060lib/ui/mobile/setting/request_block.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_block.dart"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bccc6e3954daf0f475fd59fbc589fb8e9d8609ed5f44b129f74d6b0cefc233f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201314 lines \u00D7 3): lib/ui/desktop/setting/request_breakpoint.dart:203-216 | lib/ui/desktop/setting/request_crypto.dart:215-217 | lib/ui/mobile/setting/request_breakpoint.dart:112-125 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/desktop/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6eafd448f8b741095817d66db5643520c6cb5ef0b5f802f79dc4f63fb9350eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:122-135 | lib/ui/mobile/setting/request_map.dart:79-89 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"7516a4610d2ab2131c5675d90971923e55cb90bba5c3305e3015af1f3d011ff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:598-611 | lib/ui/mobile/setting/request_map.dart:567-580 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb0b2d7c1fbca3eea703961b7f97e5c672ef644f9b3f222825bb503c824a366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:75-88 | lib/ui/mobile/setting/request_map/map_local.dart:81-94 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f7799fe65a61f5fbf7c04b69227c36864c8a75b8bb612e77bdc0769e3b2625d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/desktop/setting/request_rewrite.dart:253-266 | lib/ui/mobile/setting/request_rewrite.dart:180-193 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 and \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_rewrite.dart"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc6c9bd32176a8b366552d432141b5efb6fc47207e82530c22a50ca36c4d44d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): lib/ui/desktop/setting/request_rewrite.dart:522-534 | lib/ui/mobile/setting/request_rewrite.dart:482-495 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 and \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_rewrite.dart"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccc7e11d5b9f9db91c67aaea180fb4b7f5299fda248b6a6dd4ae3103564e5e5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:401-414 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:395-408 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"b471396bf6b7639cdd876bd757da5279bd9372239c1a94e32f33cfc717ac3a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/desktop/setting/script.dart:145-158 | lib/ui/mobile/setting/script.dart:97-110 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f9289771048fc51d40469644a5ad9fbd42e5e2584531777489fcb2e6dcdafe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:502-515 | lib/ui/mobile/setting/weak_network.dart:370-383 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"746810411932ccd885353216925ae27e5aa458cf2c4f3e4d162b4ef8d9a50c96"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:518-531 | lib/ui/desktop/setting/weak_network.dart:713-726 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2a61dc7f281f8f67fe1ce131362935c9750e7f3122909ede3a8a610b716c08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/ui/mobile/setting/filter.dart:199-212 | lib/ui/mobile/setting/request_map.dart:161-174 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/filter.dart"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e444f0ceb7bf14cdc23fa802afde3c163be7614bea59fd3f47d2abc17e4954"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/utils/crypto_body_decoder.dart:70-83 | lib/utils/crypto_body_decoder.dart:93-106 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/crypto_body_decoder.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"c449d1681d872145053a810fcfc73f1898056c37397fb565c68f0e1b0bad068d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 4): lib/ui/toolbox/json_viewer.dart:171-183 | lib/ui/toolbox/text_diff.dart:306-317 | lib/ui/toolbox/text_editor.dart:185-196 | lib/ui/toolbox/xml_viewer.dart:117-129 \u2014 before extracting anything, compare \u0060lib/ui/toolbox/json_viewer.dart\u0060 and \u0060lib/ui/toolbox/text_diff.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/json_viewer.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"855acb111661cee8404601b83de2d71e1effb0d8ab4fda705abd181beb6a85f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/mcp/protocol/mcp_actions.dart:802-814 | lib/mcp/protocol/mcp_actions.dart:825-837 | lib/mcp/protocol/mcp_actions.dart:848-860 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf46b91dc8d408ff1337264ceb84cb568609628ccaae772e0e7833cd07c3255"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 3): lib/ui/mobile/setting/request_map.dart:294-304 | lib/ui/mobile/setting/request_rewrite.dart:352-362 | lib/ui/mobile/setting/script.dart:978-990 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_map.dart"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2655b1c4cc7c25e1ec6cb918ecf93fca9ab9b2de1ba48d2324dea855f10369"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/mcp/protocol/mcp_actions.dart:869-881 | lib/mcp/protocol/mcp_actions.dart:905-917 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"f99796b4371903190f0a8de349aa04a1a0610f2b7163c9cb836cd0288118588d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/desktop/left_menus/favorite.dart:224-236 | lib/ui/desktop/request/request.dart:525-537 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/left_menus/favorite.dart"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78bf2a0c02dd809a7f85dcec650d8548b64ae4eecd7840d8de57052b5dd3eaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/desktop/request/repeat.dart:104-116 | lib/ui/mobile/request/repeat.dart:204-216 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/repeat.dart\u0060 and \u0060lib/ui/mobile/request/repeat.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/repeat.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e22a57a85013cc99a18063d7c22eb8dacff1e1e5abc0b4e60537adce36afc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:823-835 | lib/ui/mobile/request/request_editor.dart:816-827 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"296c026e03a5587752f47bca044afd7596a39fca26d0d0cce3a0322b664250e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/desktop/setting/external_proxy.dart:171-183 | lib/ui/mobile/setting/proxy.dart:160-172 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/external_proxy.dart\u0060 and \u0060lib/ui/mobile/setting/proxy.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/external_proxy.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4df82d8093212a0af2124f4b859161213fe9d4f681f73deca1e429d40a13d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:496-508 | lib/ui/desktop/setting/request_rewrite.dart:563-575 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2447636aa0ab52faa4ccd0bf600c4e1169055c559548aff01f263c606df7ae2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:374-386 | lib/ui/mobile/setting/request_map/map_local.dart:380-392 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"d05ebc2d309c7b3fb6b7a99bfe111c21d7e3c3e8374d5569d4c631a8cc6216cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:234-246 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:226-238 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6e08d8e47136c65c20f199aa15c833af64eb44699e140619bd842bc5d4f331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/ui/desktop/setting/script.dart:578-590 | lib/ui/mobile/setting/script.dart:627-639 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3d027e16fe8737098036e7f8fdbe1e07a96b6302458b57cb69e9fc1742ad6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lib/ui/desktop/setting/script.dart:637-648 | lib/ui/mobile/setting/script.dart:722-734 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc62064e4ee0d74d3d964bbcd06d88d92c8d13497fe178c873aa18fb68adb156"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): lib/ui/desktop/setting/script.dart:957-969 | lib/ui/mobile/setting/script.dart:1058-1068 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25f4d3c1e906264dfdaff6693ff7b4a399bfb5cdc9f30c794b0dea19d67c0bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lib/ui/mobile/setting/preference.dart:54-66 | lib/ui/mobile/setting/ssl.dart:90-101 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/preference.dart"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"028c85cc549d61018f1064e9af25247f75b3415b797f37547ddc2a04a449fa46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lib/ui/mobile/setting/weak_network.dart:386-397 | lib/ui/mobile/setting/weak_network.dart:573-585 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/weak_network.dart"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"debf0dec60ed88fc2ce3eb00481b61052f8c2557d1166cc98672e1641387f39b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 9): lib/ui/desktop/setting/request_breakpoint.dart:253-263 | lib/ui/desktop/setting/request_crypto.dart:264-274 | lib/ui/desktop/setting/request_map.dart:287-296 | lib/ui/desktop/setting/script.dart:837-848 | lib/ui/mobile/setting/request_breakpoint.dart:149-159 | lib/ui/mobile/setting/request_crypto.dart:149-159 | lib/ui/mobile/setting/request_map.dart:208-217 | lib/ui/mobile/setting/request_rewrite.dart:262-273 | lib/ui/mobile/setting/script.dart:932-943 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/desktop/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"05cd0c550706cc2351777edfee3d8fb07d1bec0a6947c7bd9db4513f48e95c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): lib/ui/desktop/setting/request_breakpoint.dart:534-545 | lib/ui/desktop/setting/request_map.dart:594-605 | lib/ui/desktop/setting/request_rewrite.dart:714-725 | lib/ui/mobile/setting/request_map.dart:563-574 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/desktop/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"dba3908be72eae330d83184c9ae9645fef013dd258a6cfd10560f19aa13df86b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/ui/desktop/left_menus/favorite.dart:260-271 | lib/ui/desktop/left_menus/history.dart:299-310 | lib/ui/mobile/request/favorite.dart:397-408 \u2014 before extracting anything, compare \u0060lib/ui/desktop/left_menus/favorite.dart\u0060 and \u0060lib/ui/mobile/request/favorite.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/left_menus/favorite.dart"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa7b9d9f8140dfa664498080d4378e7d390fa6f26b78e802dd4fb4c63766579"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/utils/css_formatter.dart:117-128 | lib/utils/js_formatter.dart:147-158 | lib/utils/js_formatter.dart:167-178 \u2014 before extracting anything, compare \u0060lib/utils/css_formatter.dart\u0060 and \u0060lib/utils/js_formatter.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/css_formatter.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"112ffe6149fc0acaafb4f2da59bb7cea005c04ceda7ee86bcf970c2c30389839"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/content/web_socket.dart:184-195 | lib/ui/toolbox/websocket_request.dart:599-610 \u2014 before extracting anything, compare \u0060lib/ui/content/web_socket.dart\u0060 and \u0060lib/ui/toolbox/websocket_request.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/web_socket.dart"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"5556aceb076fa33380689c1b038c6ba0e29781675490325ad709cfb412bd79a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/desktop/request/repeat.dart:123-134 | lib/ui/mobile/request/repeat.dart:223-234 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/repeat.dart\u0060 and \u0060lib/ui/mobile/request/repeat.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/repeat.dart"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"5529d45fb7920e57638fe1c114f47d4b516374ee14fd22f6d235d3f4a88a4bbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/desktop/setting/environment.dart:153-164 | lib/ui/mobile/setting/environment.dart:156-167 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/environment.dart\u0060 and \u0060lib/ui/mobile/setting/environment.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/environment.dart"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6b27c53b7476e94f5f1085f8892037ddce7f5977cda3ab64225408a7fd6a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/desktop/setting/environment.dart:318-329 | lib/ui/mobile/setting/environment.dart:347-358 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/environment.dart\u0060 and \u0060lib/ui/mobile/setting/environment.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/environment.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"e34a08c41fc926875e7f4ecba0e90547109ccb97b939a3d5926a10c60305a665"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:130-141 | lib/ui/desktop/ssl/client_cert.dart:105-116 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d028d845f5730aa0e35b5d1ef594819216c1697140cbfea22558c4fdb488498b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:523-534 | lib/ui/mobile/setting/hosts.dart:483-494 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"d291904a016b39cf93a58ddce0cd514db6b7101d8d02ab79b9f8323e903d5b0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:496-507 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:484-495 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b36280941a6adbeed970c3025bd8295d4fb5ad32c201973cc67e6a2da22536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:595-606 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:582-593 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9681f6b09255e5b582476b40b167537975b736c0db51a195b5e8c50c6ffea3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:213-224 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:213-224 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"9155cde30e0e45ccb587dc56b0dee4aa83c0602b1b978e1c2d43aa72d94ddd80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201312 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:494-502 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:486-497 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"1361cfbfdca0583edaafde110df283aa621a48506fa24d47fce3be45f0e3c0f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/desktop/setting/script.dart:923-934 | lib/ui/mobile/setting/script.dart:1030-1041 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a0c6ed7be4dee764afb16cc1eab0e0ad0c096c9f4059fa270b22b6931ab767"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:555-566 | lib/ui/mobile/setting/weak_network.dart:423-433 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86d25d70466d51f66a06cb8a4040926cab8ca432ddd1b1177b7b1e21cd29970"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/ui/mobile/setting/app_filter.dart:66-77 | lib/ui/mobile/setting/app_filter.dart:225-236 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/app_filter.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61c29ed9ec31b17e74eb39e704a2b5ccdb4a3f0ba7c6035d6ca3604b1094987"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/utils/har.dart:39-50 | lib/utils/har.dart:88-99 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/har.dart"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5fd711cc18ac1c12642726b867f0df3aafcd34beda41003c56bcea3abb7dd32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): lib/ui/desktop/setting/filter.dart:177-187 | lib/ui/desktop/setting/hosts.dart:367-377 | lib/ui/desktop/setting/request_rewrite.dart:177-187 | lib/ui/desktop/setting/script.dart:193-203 | lib/ui/mobile/setting/filter.dart:151-161 | lib/ui/mobile/setting/hosts.dart:327-337 | lib/ui/mobile/setting/request_rewrite.dart:109-119 | lib/ui/mobile/setting/script.dart:143-153 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/filter.dart\u0060 and \u0060lib/ui/desktop/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8edc5c2d4f70ee02d0866b01d571ce0ff8e391a0298f092817e3b3caa4696b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): lib/ui/content/web_socket.dart:185-195 | lib/ui/content/web_socket.dart:201-211 | lib/ui/toolbox/websocket_request.dart:600-610 | lib/ui/toolbox/websocket_request.dart:616-626 \u2014 before extracting anything, compare \u0060lib/ui/content/web_socket.dart\u0060 and \u0060lib/ui/toolbox/websocket_request.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/web_socket.dart"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f4e9e4e2740c61ceb295f3f68d9fe85c2a8e32869f2ff8173f83342c46c976"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 4): lib/ui/desktop/setting/request_map.dart:289-296 | lib/ui/desktop/setting/request_rewrite.dart:322-329 | lib/ui/mobile/setting/request_map.dart:210-217 | lib/ui/mobile/setting/request_rewrite.dart:264-274 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7b0eb7727d57774480f8d401b7fd63b927ddc9b5df4c23d785303d64cdb51f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): lib/ui/desktop/setting/request_map/map_local.dart:355-365 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:576-586 | lib/ui/mobile/setting/request_map/map_local.dart:361-371 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:563-573 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"15350f3b4bf8982139b650183967127ee421d1d486bc7e0a6cacfcba3244c07c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 4): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:310-320 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:432-441 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:301-311 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:420-429 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a9347cce3789d70d73770121a531506a199e0683d5b95885e2b3d12fa0dd05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): lib/ui/toolbox/cert_hash.dart:65-75 | lib/ui/toolbox/qr_code_page.dart:78-88 | lib/ui/toolbox/regexp.dart:69-79 | lib/ui/toolbox/timestamp.dart:69-79 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/cert_hash.dart"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d178bc4c80d3fb1e52249c0e70e6e975b546c7d0d6d99dde288c1fa21b68b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/ui/desktop/setting/request_breakpoint.dart:101-111 | lib/ui/desktop/setting/request_crypto.dart:67-77 | lib/ui/desktop/setting/request_rewrite.dart:74-84 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/desktop/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"325683c13d720d0e4da114c9e313e34726766c8fe8276446fbd961f6cc23380f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/ui/desktop/setting/request_crypto.dart:332-342 | lib/ui/desktop/setting/request_map.dart:334-344 | lib/ui/desktop/setting/script.dart:886-896 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_crypto.dart\u0060 and \u0060lib/ui/desktop/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_crypto.dart"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04e061df57ad64b4164784352e912347e5ce4b74e71a55c961a2ff7fdfddc54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): lib/ui/toolbox/text_diff.dart:331-340 | lib/ui/toolbox/text_editor.dart:267-277 | lib/ui/toolbox/xml_viewer.dart:163-172 \u2014 before extracting anything, compare \u0060lib/ui/toolbox/text_diff.dart\u0060 and \u0060lib/ui/toolbox/text_editor.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/text_diff.dart"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd7c9f0047f3936705b01e8686489df33a776befa9a124088f2d26045d740d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/mcp/protocol/mcp_actions.dart:498-508 | lib/mcp/protocol/mcp_actions.dart:701-711 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8093bda56dee84c969b2ad10b160a3541c310c587df1bcad2061cd71399a1db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/content/web_socket.dart:129-139 | lib/ui/toolbox/websocket_request.dart:544-554 \u2014 before extracting anything, compare \u0060lib/ui/content/web_socket.dart\u0060 and \u0060lib/ui/toolbox/websocket_request.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 90 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/web_socket.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1b69a1c761118c7902cb82b5180fa856e731a370b3c7c3764e7bc1257fb6b88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/left_menus/history.dart:306-316 | lib/ui/mobile/request/history.dart:353-363 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/left_menus/history.dart"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"07afb3887b30e4db9cc6b03e260a181a54c8814fe4a9ff7cb5c9c9a2f4386b65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/ui/desktop/request/repeat.dart:228-237 | lib/ui/mobile/request/repeat.dart:116-126 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/repeat.dart\u0060 and \u0060lib/ui/mobile/request/repeat.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/repeat.dart"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0e3da24a5b3c553938b8d7b13f0cdd8655cad074a556a6f44eb0d0d519861b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:139-149 | lib/ui/mobile/request/request_editor.dart:97-107 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5c3e4ad51fb489bccc962a36a20c07ec855cb6825e9763b29bb94644a72309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:330-340 | lib/ui/mobile/request/request_editor.dart:130-140 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc267b297bde27068125d4b0760d27895e533f07b1bba6e864f48c0562960b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:636-646 | lib/ui/mobile/request/request_editor.dart:618-628 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcdcea963877c1d2900dc0437fa7ca4b67252d83d01ed75dcea2eadd1c527e01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:104-114 | lib/ui/mobile/setting/hosts.dart:74-84 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"6717d88a332b6f2e67a3c4f35d4504bcc9924fbf4e045275c084ab659cfc9ae4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/ui/desktop/setting/request_breakpoint.dart:426-435 | lib/ui/desktop/setting/request_rewrite.dart:577-587 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"581301e273a710a042215f7e585a3d4830f702c73a67435046ec79f3552bab64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/setting/request_breakpoint.dart:437-447 | lib/ui/desktop/setting/request_rewrite.dart:589-599 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 70 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"e735eaee4c42afe9756512582066955d06821d4476c3ae0548e94164243a7347"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/setting/request_crypto.dart:560-570 | lib/ui/desktop/setting/request_crypto.dart:582-592 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_crypto.dart"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"0758eb0ae0cd7c4a8e8bf9ba8e840ef051881929ccd3436ec15d9f56daa5ea31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:109-119 | lib/ui/mobile/setting/request_map.dart:68-77 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"473c045c9d8e4b8ddb62988b890aa8da18192def23318de6a47b02f00e938049"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:166-176 | lib/ui/mobile/setting/request_map.dart:113-123 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"a989c8f538f27b554489636d8ae2395a26130ee246d1b68f9af2d1b978187453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:484-494 | lib/ui/desktop/setting/request_rewrite.dart:543-553 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1ae960da2d4b3fca92ad64341626d17504382e688e6e45cb0731befd4b4d00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:240-250 | lib/ui/mobile/setting/request_map/map_local.dart:246-256 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e129b26a68498364184722aa95ee85dafa7d8e61d0a1972718e8e69c837d7ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/ui/desktop/setting/request_rewrite.dart:645-655 | lib/ui/mobile/setting/request_rewrite.dart:530-539 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 and \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_rewrite.dart"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c2a8ac6394af90e05f77bda730ac7cb0370174330c9e5bf333d7a1cf0fb118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:100-110 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:97-107 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f58cb4b682fab3de79a447877624a37714968b6e074719a2ae17f99bf25c9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:247-257 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:240-250 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d095af186c4b6895638996114270a45c39134ab88a43bc38d5527efb31d222b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:287-297 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:270-280 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3716a1e7de6ee49f76001f1dee16c5faa7b96b96ddcc8e4a58dfd7d244c654c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:81-91 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:83-93 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d267ebed690c655fea867617f2f1506f0282caaede3ba4f4217df66768f9d4f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/setting/script.dart:983-993 | lib/ui/mobile/setting/script.dart:1092-1102 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0370efee1f3f9a2eb1e24622f2836ddd946a4651a8fa2394342d0b55792d18d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:528-538 | lib/ui/mobile/setting/weak_network.dart:394-404 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdcb94d011b4532766d401341d8f307d0fe47f07a109a24417601411cd064cdb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:723-733 | lib/ui/mobile/setting/weak_network.dart:582-592 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"276386fffed527b0f9608963a2a366acd986af0c9127e5b0d08dd209abd141b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/desktop/toolbar/mcp_panel.dart:310-320 | lib/ui/mobile/setting/mcp.dart:84-94 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/toolbar/mcp_panel.dart"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a751fbc9595e07b071714b61f8ad4d7a9a46fade4fed142d5de9e032efce11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/ui/mobile/setting/request_rewrite.dart:514-524 | lib/ui/mobile/setting/script.dart:489-499 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_rewrite.dart"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebd1b00807b3401b3d38d5fb7aac95061043a19f771429b85e21a28b690dc85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/utils/css_formatter.dart:99-109 | lib/utils/js_formatter.dart:132-142 \u2014 before extracting anything, compare \u0060lib/utils/css_formatter.dart\u0060 and \u0060lib/utils/js_formatter.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/css_formatter.dart"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"39f29dea7dd2dfe7af6cfca9e4036f8ee61521ba1e9d5dd871fa80ee20b6f99c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 4): lib/ui/desktop/setting/request_crypto.dart:496-503 | lib/ui/desktop/setting/request_crypto.dart:532-539 | lib/ui/mobile/setting/request_crypto.dart:494-503 | lib/ui/mobile/setting/request_crypto.dart:536-545 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_crypto.dart"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cebf2cffc80307afb35433bcd7df3c834006e41e57e02c552384bff3193ff7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): lib/ui/desktop/setting/request_map.dart:544-553 | lib/ui/desktop/setting/request_rewrite.dart:642-651 | lib/ui/mobile/setting/request_map.dart:462-471 | lib/ui/mobile/setting/request_rewrite.dart:527-536 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"5039402dcc0aee4efe78ec82942785014575781c80d65b68286616163666661b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): lib/ui/desktop/setting/request_map/map_local.dart:372-381 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:593-602 | lib/ui/mobile/setting/request_map/map_local.dart:378-387 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:580-589 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"af63c839ba8e3dc963e4b77846e65fdaa775359bc6a48f3ebdb32cd48663229e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): lib/ui/desktop/ssl/ssl.dart:104-113 | lib/ui/desktop/ssl/ssl.dart:168-177 | lib/ui/mobile/setting/ssl.dart:207-216 | lib/ui/mobile/setting/ssl.dart:248-257 \u2014 before extracting anything, compare \u0060lib/ui/desktop/ssl/ssl.dart\u0060 and \u0060lib/ui/mobile/setting/ssl.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/ssl.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"621edcbd4c3c0938f070997d86d27bee780d1a88ac65fb3c0b513a80d1ab53cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): lib/ui/toolbox/json_viewer.dart:92-101 | lib/ui/toolbox/text_diff.dart:88-97 | lib/ui/toolbox/text_editor.dart:127-136 | lib/ui/toolbox/xml_viewer.dart:79-88 \u2014 before extracting anything, compare \u0060lib/ui/toolbox/json_viewer.dart\u0060 and \u0060lib/ui/toolbox/text_diff.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/json_viewer.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59757bb89200ec49a3c105debd26062c2f4b70631095f3a207bd32e7b73e30c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/mcp/protocol/mcp_actions.dart:416-425 | lib/mcp/protocol/mcp_actions.dart:498-507 | lib/mcp/protocol/mcp_actions.dart:701-710 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"70e25aac6dd052a3f2809d1d8dd2d61bdb4fcbeaafee73cf1d780d77992992c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/ui/desktop/setting/request_map.dart:501-510 | lib/ui/desktop/setting/request_rewrite.dart:568-577 | lib/ui/mobile/setting/request_map.dart:502-511 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdc89a599851fa4a520d91c67b0a1c78d5f5a045f633a117c86a9b3eac8afd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u201310 lines \u00D7 2): lib/mcp/protocol/mcp_actions.dart:157-162 | lib/mcp/protocol/mcp_actions.dart:164-173 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"b596a7c1d5b39e7166ce53d66b7a949c5d6092c01ce17db37976fdd4ece266e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/mcp/protocol/mcp_actions.dart:251-260 | lib/mcp/protocol/mcp_server.dart:331-343 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ed15e5d4e2705f2edf34df489b832d84d39ef76ccbefc257e68e355d9c5399"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/mcp/protocol/mcp_actions.dart:358-367 | lib/mcp/protocol/mcp_actions.dart:1136-1145 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca35b3998c8d27c7fcd2a06cb313aee56e297410fb5a368f538ec40514e0765"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/network/components/manager/client_cert_manager.dart:73-82 | lib/network/components/manager/environment_manager.dart:119-128 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/manager/client_cert_manager.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ebfa76d0ea0b5f78bbaad5ab4b0bad95226446c2ec74f13fd0c9f410c499d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): lib/ui/content/body.dart:515-524 | lib/ui/content/body.dart:532-538 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c59bc8b5ff395a6cdfb7fa7b7bafa9b39bcd528a6ebe24e6abf9fef82fbdb37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/debug/breakpoint_executor.dart:49-58 | lib/ui/desktop/debug/breakpoint_executor.dart:66-75 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/debug/breakpoint_executor.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeea14aeeadd822eefccf8daf7e2232586797d0ee36172b3fc7280ecbdd630dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/left_menus/history.dart:219-228 | lib/ui/mobile/request/history.dart:191-200 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/left_menus/history.dart"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"72fd29964ffe9b65477b9c118f9396936e54a810ab48de11890ac025b2aec507"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:655-664 | lib/ui/mobile/request/request_editor.dart:636-645 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8f04d7fc6d033b2ad63094298ad1d02b127ebcaa5197ca51fa5507011da267"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:855-864 | lib/ui/mobile/request/request_editor.dart:847-856 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6141f625ab674907fdd1804a9284a066e64b8f7aae7ca442bb6ff0102e3d52e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/environment.dart:120-129 | lib/ui/mobile/setting/environment.dart:91-100 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/environment.dart\u0060 and \u0060lib/ui/mobile/setting/environment.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/environment.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cb9b0f6ac8761bffeb5ce7062b5040a38f9a232cc45eefe2950c7e4478ebdd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/request_block.dart:128-137 | lib/ui/mobile/setting/request_block.dart:92-101 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_block.dart\u0060 and \u0060lib/ui/mobile/setting/request_block.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_block.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9dab4d8ef948a369e37a46e5c406e1cdf808831dab66cd0140fd6d34a8fb6b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/request_breakpoint.dart:384-393 | lib/ui/mobile/setting/request_breakpoint.dart:423-432 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/mobile/setting/request_breakpoint.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3850da6d6aee856130916479e108a2173f9e9c18acb428875c3191c112d96b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/request_crypto.dart:91-100 | lib/ui/mobile/setting/request_breakpoint.dart:58-67 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_crypto.dart\u0060 and \u0060lib/ui/mobile/setting/request_breakpoint.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_crypto.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9647a778a152580d36969678b9d8d995bcc935918b369688a18c668a48ae2d4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/request_rewrite.dart:695-704 | lib/ui/mobile/setting/request_rewrite.dart:655-664 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 and \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_rewrite.dart"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d6dbe3eb460c23e85e702afe9abf892de502683cd5c34aaf9e02cc31b93837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:115-124 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:110-119 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"611367772259d16e7b3ec57d55d686a3f562b20373a6692763abd06be9ec647a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:161-170 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:153-162 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d0997e78b57f98657af977bd88d67c58137903da4ca9c6e05db68b882d596f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:227-236 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:227-236 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"94fc0f0766cdf1f1eb8f62604b0550e97c6c1f482ab7415908f47acc8fcd03dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/script.dart:510-519 | lib/ui/mobile/setting/script.dart:567-576 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"0923b73f7c603831aca3a87d3624d8bb568a637a783561f936bfb2dd63041f7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/script.dart:525-534 | lib/ui/mobile/setting/script.dart:578-587 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb3bca07214c9fc5b163b50526c26323f0459d32bf395d43ad6702892b483e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/script.dart:712-721 | lib/ui/mobile/setting/script.dart:805-814 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"306b1aac12a583a977390af18b5062a74ef0eb81f20d78d4c1214920c3debd88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/script.dart:851-860 | lib/ui/mobile/setting/script.dart:946-955 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"071e70b0df08f2a45b36b50c17138c9d9b5d23e94ea21fa7a50aed70511c441e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): lib/ui/desktop/ssl/ssl.dart:296-305 | lib/ui/mobile/setting/ssl.dart:334-342 \u2014 before extracting anything, compare \u0060lib/ui/desktop/ssl/ssl.dart\u0060 and \u0060lib/ui/mobile/setting/ssl.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/ssl.dart"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"53cb667e290a9c1ceaadfe5dbaa1bbb85a1f43813a6541804b7dd74d46ff0e41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): lib/ui/mobile/menu/bottom_navigation.dart:369-376 | lib/ui/mobile/menu/drawer.dart:237-246 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/menu/bottom_navigation.dart"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e949e88a1bad33c65edbcfe4c2d32bb76c85d13a1954f3eb71b0c79e3cdc0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/mobile/setting/app_filter.dart:109-118 | lib/ui/mobile/setting/app_filter.dart:269-278 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/app_filter.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b791018f990fc1284ae42351780037136caa413b2439479bb84b3449409abe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/mobile/setting/preference.dart:197-206 | lib/ui/mobile/setting/preference.dart:211-220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/preference.dart"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"31425225b97b02556e1e71b2ca11c9ae4e4f28c6e51d9b87d6bdf8464f5a96f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/mobile/setting/weak_network.dart:454-463 | lib/ui/mobile/setting/weak_network.dart:619-628 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/weak_network.dart"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"2860279fad5b28e9bb4f0b578040a33aef75bd326278f9a107b6464f9b988e56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/toolbox/text_editor.dart:318-327 | lib/ui/toolbox/xml_viewer.dart:197-206 \u2014 before extracting anything, compare \u0060lib/ui/toolbox/text_editor.dart\u0060 and \u0060lib/ui/toolbox/xml_viewer.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 110 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/text_editor.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c2bda6a9f7adb3bcd0193884220820b22e681fc00d1a18c44abdfc90ecc373c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): lib/ui/desktop/request/request_editor.dart:624-632 | lib/ui/mobile/request/request_editor.dart:607-615 | lib/ui/toolbox/json_viewer.dart:302-310 | lib/ui/toolbox/text_diff.dart:415-423 | lib/ui/toolbox/text_editor.dart:342-350 | lib/ui/toolbox/xml_viewer.dart:220-228 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f047d120883c3f00d981a509f377d069c2e79f34424497c79d19a3b0d5129ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): lib/ui/desktop/setting/request_map/map_local.dart:197-205 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:391-399 | lib/ui/mobile/setting/request_map/map_local.dart:203-211 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:382-390 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"afddd7a571464b0f1a3488ea0b571c029b0ee4129339829fc82f6a5c368e82c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/mcp/protocol/mcp_server.dart:196-204 | lib/mcp/protocol/mcp_server.dart:208-216 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_server.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dbca41590571dab96dc4fe166c5e0883a8fabd9b44e6bacb620f9d21477341d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/network/util/cert/der.dart:288-296 | lib/network/util/cert/der.dart:313-321 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/der.dart"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16c5f72a01e2b01744d2699507e6d3ac12f960612ae6d2189d5e9a9aa1de6a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/left_menus/favorite.dart:79-87 | lib/ui/mobile/request/favorite.dart:116-124 \u2014 before extracting anything, compare \u0060lib/ui/desktop/left_menus/favorite.dart\u0060 and \u0060lib/ui/mobile/request/favorite.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/left_menus/favorite.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0a81dd9d28e8c37ede8c2579efba751a465291cb818b523c6af111866c1d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/request/domains.dart:238-246 | lib/ui/desktop/request/request_sequence.dart:163-175 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/domains.dart\u0060 and \u0060lib/ui/desktop/request/request_sequence.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/domains.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d343b9b1c94f0c8a01060809f3f9aa51ee6046f6dd02c63e052440ba52b768"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/about.dart:68-76 | lib/ui/mobile/widgets/about.dart:82-90 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/about.dart\u0060 and \u0060lib/ui/mobile/widgets/about.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/about.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a60fee65c0e999ec9420f98c30e307675afdee8ab4dd489fbba853f3a39e85b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/filter.dart:163-171 | lib/ui/desktop/setting/hosts.dart:341-349 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/filter.dart\u0060 and \u0060lib/ui/desktop/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebed58150e93ea3b0ead7df09a521a8ed14b187a3ce5ed02897612c114456d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/filter.dart:259-267 | lib/ui/mobile/setting/filter.dart:210-218 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/filter.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f0b3d09ebdcb90feb9f228dd42ecacd4e50013db720ae8563e5b77308d26ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/ui/desktop/setting/filter.dart:274-282 | lib/ui/desktop/setting/request_map.dart:259-266 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/filter.dart\u0060 and \u0060lib/ui/desktop/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd07b314113c67105d7c2d400d4ff63d138da263e35eecd2ff8663ab204f425"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:540-548 | lib/ui/mobile/setting/hosts.dart:499-507 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":540}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb24468c73d5decf4e436f14b7a9f457e6b0219f91c64e2978f49b0639019a1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/request_block.dart:64-72 | lib/ui/mobile/setting/request_block.dart:27-35 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_block.dart\u0060 and \u0060lib/ui/mobile/setting/request_block.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_block.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f3ccc6adcc24f6fb362e860a21f284eed1a9c1e5dc8cb41b9d230706727bb26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/request_block.dart:101-109 | lib/ui/mobile/setting/request_block.dart:65-73 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_block.dart\u0060 and \u0060lib/ui/mobile/setting/request_block.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_block.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"1871b050b93f4c95082033ae368df2a24c90b5ae4195282ee7b5dbfacf216073"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/ui/desktop/setting/request_block.dart:164-172 | lib/ui/mobile/setting/request_block.dart:145-152 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_block.dart\u0060 and \u0060lib/ui/mobile/setting/request_block.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_block.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"cecfe0fb3f6ad9ffd5ad536aaf2d4ad56908c53a198909ab2a14e183d1ccb2c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/request_breakpoint.dart:124-132 | lib/ui/mobile/setting/request_breakpoint.dart:54-62 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/mobile/setting/request_breakpoint.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9afa0150c7f0217ac596dc1936f5a0746f205667c437160afe5a89459f0c5c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/request_breakpoint.dart:137-145 | lib/ui/mobile/setting/request_breakpoint.dart:67-75 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/mobile/setting/request_breakpoint.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"78234617b8d109c0a11d27cf522e620b1f78563c0d03c806d00a399606db88bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:70-78 | lib/ui/desktop/setting/script.dart:89-97 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/desktop/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"02d78a48b22ac3f6bc0bee81c7591a1feb0cc9489fb8e2aea38f7777bdbb6045"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:148-156 | lib/ui/desktop/setting/script.dart:172-180 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/desktop/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b15d2e7358483b9b5d9f20b3cd91c20f35083bc6bf4f8f93e79310394be9c75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:255-263 | lib/ui/mobile/setting/request_map.dart:187-195 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"d841a04e17e3df5d03b8015d65be0d1dd930edea2026b8db850207a82c55a0ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:399-407 | lib/ui/mobile/setting/request_map.dart:355-363 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1ee96075a93981db38061c22f3908d83030ca459bbb29217d0be717cdee8ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:530-538 | lib/ui/desktop/setting/request_rewrite.dart:628-636 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"186147e83f736180a557179d17083c0f504ba70a95bc0b5c41d525b8d390edd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:97-105 | lib/ui/mobile/setting/request_map/map_local.dart:101-109 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"51dc28d55a1fde6a72bd0ad1ab2662082690fcd266eb6d69728aa39a0bdbe70c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:111-119 | lib/ui/mobile/setting/request_map/map_local.dart:114-122 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ecc8cc8dc887e0f45844a6dd4a3165244ab0d7452201df3e8b3de9150393872"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:381-389 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:372-380 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"653c8aade57f6a76fa3a8761382605fb9c24216ae69819899f058f70f2784f7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:163-171 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:168-176 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fff200044280485445c604e2af32229991978044eca4f2ea13d19c49739f7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:250-258 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:249-257 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"8230ee0fa63a6111ad8e78c879df0b9520bfe282a33ef7023ddabe5d1baffcd6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:294-302 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:290-297 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"1000edd8761125146b8e3d35155d550dfab830bfb67d09e0bb8ffc9f79f10354"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:509-517 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:504-512 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f6d3fec647236c760aa8426a70f05594841fec71f5d9a82ce295dcd1cfb217"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:178-185 | lib/ui/desktop/setting/weak_network.dart:857-865 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"035a3fb5a81862811e7287657194ba291457ac82419cfc56b47debce3e7ba34b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/mobile/request/favorite.dart:434-442 | lib/ui/mobile/request/request.dart:476-484 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/request/favorite.dart"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"727862b69690ff3786cfb30414068f5b304a7bffaf90d7260857e2fca2a34645"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/mobile/setting/client_cert.dart:243-251 | lib/ui/mobile/setting/report_servers.dart:184-192 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/client_cert.dart"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"41cc4956a6d1fb947e6bab80eee4f525de481f3471e22a64c1c52ea3cdf4e0bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/mobile/setting/filter.dart:388-396 | lib/ui/mobile/setting/request_map.dart:362-370 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/filter.dart"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d117d9127cdf7e9a4495f20921370956f2cef04ece386ce078b2b22eb4ebe36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/mobile/setting/request_breakpoint.dart:193-201 | lib/ui/mobile/setting/request_crypto.dart:366-374 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/mobile/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 120 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_breakpoint.dart"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d46643d9cf6e9b538557313c3cef8fdc70f1db328208986a698784c092cff7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/mobile/setting/request_breakpoint.dart:332-340 | lib/ui/mobile/setting/request_breakpoint.dart:354-362 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_breakpoint.dart"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d268dff1fbe21cd2faf7f8b5f62f7829435a11fb1bd87b6d78f68134071aad7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/mobile/setting/request_rewrite.dart:421-429 | lib/ui/mobile/setting/script.dart:1067-1075 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_rewrite.dart"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a3b24c68b819d1543ecc018e164c35b6322f37b232653d6a60ef39bd996de8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/toolbox/json_viewer.dart:267-275 | lib/ui/toolbox/xml_viewer.dart:186-194 \u2014 before extracting anything, compare \u0060lib/ui/toolbox/json_viewer.dart\u0060 and \u0060lib/ui/toolbox/xml_viewer.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/json_viewer.dart"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3565d8e71187492501bf843cc01f2336866646db3f1b01de0a18d0faec3ce3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/toolbox/json_viewer.dart:320-328 | lib/ui/toolbox/xml_viewer.dart:241-249 \u2014 before extracting anything, compare \u0060lib/ui/toolbox/json_viewer.dart\u0060 and \u0060lib/ui/toolbox/xml_viewer.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 124 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/json_viewer.dart"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"93e10025459c2d2a4c475fee3c8c8c7f344cb7bb8296700b094d26df7b296620"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): lib/ui/mobile/setting/filter.dart:240-247 | lib/ui/mobile/setting/hosts.dart:224-231 | lib/ui/mobile/setting/request_map.dart:261-268 | lib/ui/mobile/setting/request_rewrite.dart:213-220 | lib/ui/mobile/setting/script.dart:887-894 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/filter.dart"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cef368ce7705f075668aa6794cff8b5922c9579d2e3ffa61d2f7122546a32ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/ui/desktop/left_menus/favorite.dart:266-273 | lib/ui/desktop/left_menus/history.dart:305-312 | lib/ui/mobile/request/favorite.dart:403-410 | lib/ui/mobile/request/history.dart:352-359 \u2014 before extracting anything, compare \u0060lib/ui/desktop/left_menus/favorite.dart\u0060 and \u0060lib/ui/mobile/request/favorite.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 56 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/left_menus/favorite.dart"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"567e78645de3e9c0b88423e4833470e6e93ef2b7d69d4b5de87a19c148ca2dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/ui/desktop/setting/request_breakpoint.dart:547-554 | lib/ui/desktop/setting/request_map.dart:608-615 | lib/ui/desktop/setting/request_rewrite.dart:727-734 | lib/ui/mobile/setting/request_map.dart:577-584 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/desktop/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcd28dad4727f4ecb80fdb2dcb28a5fd54080621867e9d93ec9dd3b083539364"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/ui/desktop/setting/request_map/map_local.dart:388-395 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:608-615 | lib/ui/mobile/setting/request_map/map_local.dart:394-401 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:595-602 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"75665ef531f0d33e02b91779e944cb6f10098a58d0396c927d3897a4985bf366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/mcp/protocol/mcp_actions.dart:509-516 | lib/mcp/protocol/mcp_actions.dart:713-720 | lib/mcp/protocol/mcp_actions.dart:751-758 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc450b0bebb2e9a97f4c7e368f688c32253f487d57699e961eeb0b13701ea1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 4): lib/ui/desktop/setting/filter.dart:254-261 | lib/ui/desktop/setting/request_map.dart:237-242 | lib/ui/desktop/setting/rewrite/rewrite_update.dart:443-450 | lib/ui/desktop/setting/script.dart:784-789 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/filter.dart\u0060 and \u0060lib/ui/desktop/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"c19adb2a3cf253eeb3fab2f68e5775eb1102e1151203eb1eda305a304993d557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/ui/desktop/setting/request_breakpoint.dart:128-135 | lib/ui/desktop/setting/request_crypto.dart:91-98 | lib/ui/mobile/setting/request_breakpoint.dart:58-65 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/desktop/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f6ee6af144b70a88c568f99072a90aecb5b56fcf06ba4b5164bc19b714e115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/ui/desktop/setting/request_crypto.dart:543-550 | lib/ui/desktop/setting/request_crypto.dart:565-572 | lib/ui/desktop/setting/request_crypto.dart:587-594 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_crypto.dart"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3f57b820206bbf9224c4ae1d8ce3dc2803abfb8f2f9ef034fd866344e0afbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/ui/desktop/setting/script.dart:507-514 | lib/ui/mobile/setting/script.dart:564-571 | lib/ui/mobile/setting/script.dart:705-712 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"66919289c36a58b49e04078f80f03c3fb1e79d500c6bda79fe88baaa1b7eaa15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/ui/mobile/request/request_editor.dart:1275-1282 | lib/ui/mobile/setting/request_breakpoint.dart:332-339 | lib/ui/mobile/setting/request_breakpoint.dart:354-361 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/request/request_editor.dart"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b3745f99b08843beb38d27b9a16432389d2e6d45cec6882f81c8f078f0e243"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/ui/mobile/setting/client_cert.dart:109-116 | lib/ui/mobile/setting/request_rewrite.dart:388-395 | lib/ui/mobile/setting/script.dart:1006-1013 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/client_cert.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba884a9dbb61e64a0c3c1e3f342f1e56e63eb09c8834f6b37ecb9f84c6097420"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/ui/toolbox/json_viewer.dart:266-274 | lib/ui/toolbox/text_diff.dart:368-375 | lib/ui/toolbox/xml_viewer.dart:185-193 \u2014 before extracting anything, compare \u0060lib/ui/toolbox/json_viewer.dart\u0060 and \u0060lib/ui/toolbox/text_diff.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/json_viewer.dart"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2be06ed78f8f11fa4c0560662ceef871fe8a1040eacdd20529eb25daa76682c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): lib/mcp/protocol/mcp_actions.dart:922-929 | lib/mcp/protocol/mcp_actions.dart:961-967 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f918e8441a6e82a60fb6580878f564d292788cd1a574f12a3ef27154c966c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/component/domain_add_dialog.dart:35-42 | lib/ui/mobile/setting/request_block.dart:206-213 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/domain_add_dialog.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59695de45d2e18290caa8fb5ea03d97d8d4c5584bd0b943e95a7c5bdc11fdc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/content/menu.dart:64-71 | lib/ui/content/menu.dart:80-87 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/menu.dart"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61a3ce705f5f50764b699694ed8a41246607ff1fdb2d51f6a6aa7a2a952334d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:288-295 | lib/ui/mobile/request/request_editor.dart:282-289 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b13f6fa45332354b9045b813511aaadaa1d6961a9b80b67a498b45d4b38083"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:946-953 | lib/ui/mobile/request/request_editor.dart:948-955 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"832ef36d7f7236aaea8a6e80885546725fa1568acf19ba11d37a91eef1266ff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/setting/environment.dart:291-298 | lib/ui/mobile/setting/environment.dart:321-328 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/environment.dart\u0060 and \u0060lib/ui/mobile/setting/environment.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/environment.dart"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4ce42231779fa33955ec68981b84e1cfc2aa0cf099af09233e8abfc2fa518e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:312-319 | lib/ui/mobile/setting/request_map.dart:234-241 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"606793328f47d1cb0833da6ce80315cf7b833909a85ea29e408aae9145affa36"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:94-101 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:139-146 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c85558d828846ac30cce8a6302fd513f615134e35721b4f3cf59c5048c533f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/setting/request_rewrite.dart:394-401 | lib/ui/mobile/setting/request_rewrite.dart:415-422 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 and \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_rewrite.dart"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"da948e9d1f576e70b179b43151b9ef8c77374578baf6ff69fd8adc32283426da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/setting/request_rewrite.dart:555-562 | lib/ui/desktop/setting/script.dart:434-441 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 and \u0060lib/ui/desktop/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_rewrite.dart"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0607f44fe184c8087b244a5ebbd873cfe884b9a99c084dcf0b5ea1498c10565"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:142-149 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:134-141 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0ad65bb887d601e94201f2ed23ab0213672240942223129fe4e869aa8fd8cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): lib/ui/desktop/setting/script.dart:800-806 | lib/ui/mobile/setting/script.dart:911-918 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"4675a5685dd57ddb34d475f5c37512de2df83f2f3685c47b5ee2a0c9571dd6a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): lib/ui/desktop/toolbar/mcp_panel.dart:877-883 | lib/ui/mobile/setting/mcp.dart:316-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/toolbar/mcp_panel.dart"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e76ac3729c134a1476d1999983047290efd3e220e186f613c464c8061d20d3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/mobile/request/favorite.dart:385-392 | lib/ui/mobile/request/request.dart:467-474 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/request/favorite.dart"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa13d74601747ed0057dd71315fd0816a0f1f3bc5199fbf10825aaaeaacbfabf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/mobile/request/favorite.dart:444-451 | lib/ui/mobile/request/request.dart:486-493 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/request/favorite.dart"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6184dedbf89966a83216de63580ebb2e545419aab36efdcb87e7b3f5e26b1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/mobile/setting/app_filter.dart:97-104 | lib/ui/mobile/setting/app_filter.dart:256-263 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/app_filter.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d842b85f3c159eb60d6c7763f03f6ce89539ba0fb6a7084ff0688c76cbe6d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/toolbox/aes_page.dart:160-167 | lib/ui/toolbox/aes_page.dart:178-185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/aes_page.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05599ca4a1fecb4027b04e62495851253232c59a526f1dbdc2d138829e66258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): lib/ui/desktop/setting/script.dart:494-500 | lib/ui/desktop/setting/script.dart:505-511 | lib/ui/desktop/setting/script.dart:563-569 | lib/ui/mobile/setting/script.dart:551-557 | lib/ui/mobile/setting/script.dart:562-568 | lib/ui/mobile/setting/script.dart:616-622 | lib/ui/mobile/setting/script.dart:650-656 | lib/ui/mobile/setting/script.dart:703-709 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"14d99fad27b05db8f42e6fbf1a51d50042f0cc4c06658a34c5b2717a7ed64a50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): lib/ui/component/search_condition.dart:261-267 | lib/ui/component/search_condition.dart:274-280 | lib/ui/component/search_condition.dart:287-293 | lib/ui/component/search_condition.dart:300-306 | lib/ui/component/search_condition.dart:313-319 | lib/ui/component/search_condition.dart:326-332 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/search_condition.dart"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f53348ddffaeaa1a30941e225ada30139c8408a94d93c0d157f62ab2d5eb49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): lib/ui/desktop/setting/request_breakpoint.dart:101-107 | lib/ui/desktop/setting/request_crypto.dart:67-73 | lib/ui/desktop/setting/request_map.dart:70-76 | lib/ui/desktop/setting/request_rewrite.dart:74-80 | lib/ui/desktop/setting/script.dart:89-95 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/desktop/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ae922e397dabc0ae38cb20ad65a4253ddcc8a4d213fe1799acd3a3fcf410f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): lib/ui/desktop/setting/request_map/map_local.dart:204-210 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:398-404 | lib/ui/desktop/setting/rewrite/rewrite_update.dart:404-410 | lib/ui/mobile/setting/request_map/map_local.dart:210-216 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:398-404 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b175cdb6af1835c6652c693d1a05af0607a4f688bbfd2129e79450466ab843"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): lib/ui/desktop/setting/request_map.dart:128-135 | lib/ui/desktop/setting/script.dart:145-152 | lib/ui/mobile/setting/request_map.dart:83-89 | lib/ui/mobile/setting/script.dart:97-104 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/desktop/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 142 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"787de026bf36b8ddb6842b968b9968e26404c6c1a48b991a7b04880f08b6ef0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): lib/ui/desktop/setting/request_map/map_local.dart:133-139 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:189-195 | lib/ui/mobile/setting/request_map/map_local.dart:136-142 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:180-186 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"c780a32e6fc6d00a89051d08208e23834454dce950f7197a452a4d9f4700f03e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/mcp/protocol/mcp_server.dart:280-292 | lib/mcp/protocol/mcp_server.dart:312-318 | lib/mcp/protocol/mcp_server.dart:390-403 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_server.dart"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fcddf7ad1c8268ad511a0139cbc7f78f863d318ab23721f17be45310feac4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20137 lines \u00D7 4): lib/ui/content/menu.dart:186-192 | lib/ui/content/menu.dart:196-202 | lib/ui/content/menu.dart:206-212 | lib/ui/content/menu.dart:215-219 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/menu.dart"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"34ff42e15c4c9e47f0b3f6b2fe968c06f35573e3c78f0ceb8a0e16e22d6a34ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/ui/mobile/setting/request_block.dart:132-138 | lib/ui/mobile/setting/request_rewrite.dart:390-396 | lib/ui/mobile/setting/script.dart:1008-1014 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_block.dart"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"250f7dda4da2aaed190a474cb2ed7dd6e2c9dce2d7a75e62ce65ead14b6bb355"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/network/channel/channel.dart:90-96 | lib/network/channel/channel.dart:104-110 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/channel.dart"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"12bddb6deee4ac28e972cbf8fec66bb1284303aed2d51850bec3367bd48975f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/network/components/manager/network_condition_manager.dart:55-61 | lib/network/components/manager/request_block_manager.dart:45-51 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/manager/network_condition_manager.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b27b11cee7cace13304615e06b664e0566db0e65828508208a04948ade9103"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/network/util/cert/x509.dart:793-799 | lib/network/util/cert/x509.dart:800-806 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/x509.dart"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bfb15f1d4cb03e0945adc9d212eb845da40200a3b96480a2968bc485ca83922"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/left_menus/replay_tasks.dart:130-136 | lib/ui/mobile/request/replay_tasks.dart:123-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":"lib/ui/desktop/left_menus/replay_tasks.dart"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"96efe9bb0393ebadfe3b28fb078d3f67bc6e59e85a7c9c760919837ae7db1acd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/request/repeat.dart:311-317 | lib/ui/mobile/request/repeat.dart:313-319 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/repeat.dart\u0060 and \u0060lib/ui/mobile/request/repeat.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/repeat.dart"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cfea39b8d1f4b67b9f27fcbc30d19056e5e65eff791cfa7312a3d938c0dd18c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:740-746 | lib/ui/mobile/request/request_editor.dart:737-743 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c97c17eccf9348b3110542f9c1142503d6599502b36d40c49bbc0e01c37a484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): lib/ui/desktop/setting/about.dart:118-123 | lib/ui/mobile/widgets/about.dart:134-140 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/about.dart\u0060 and \u0060lib/ui/mobile/widgets/about.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 35 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/about.dart"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f09db1221e8c058a5568e954d088852801a5cddf6655a2addbd2b099d4199c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:97-103 | lib/ui/desktop/setting/request_block.dart:57-63 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"97208d081e13c6c32b71ed627c952a50448e1302b424932875895f095f7a4fa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:279-285 | lib/ui/mobile/setting/hosts.dart:253-259 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d83b8f2b546998d561ff3315f95889670efa4fe50346dedcd6c672ff21b200f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/request_block.dart:112-118 | lib/ui/mobile/setting/request_block.dart:76-82 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_block.dart\u0060 and \u0060lib/ui/mobile/setting/request_block.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 108 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_block.dart"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"08132382e10d23865fab5c80eb559a338c7042cf000b9b9f9b762ba240b134a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/request_breakpoint.dart:57-63 | lib/ui/mobile/setting/request_breakpoint.dart:208-214 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/mobile/setting/request_breakpoint.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3a13efa97cc15ee2ee31cc09ff0bedfbdac6c57ffa92ee6da7bdb78bc3dc445"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/request_breakpoint.dart:194-200 | lib/ui/mobile/setting/request_breakpoint.dart:103-109 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/mobile/setting/request_breakpoint.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 113 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb08efe9419f0b64bd8320d5599eaed120dc53132ebf976d5fe523e0e3cdc145"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:245-251 | lib/ui/mobile/setting/request_map.dart:177-183 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc592fded99a87ca4f6e5b310e9482fe7b8c7c6e90da391975f5b8554efb4db5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/script.dart:432-438 | lib/ui/mobile/setting/script.dart:487-493 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"626751aef12d138fd9404de7caaabdc15b492154982f31cc2310511de7f6f258"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20137 lines \u00D7 3): lib/ui/desktop/request/report_servers.dart:126-128 | lib/ui/desktop/ssl/client_cert.dart:263-269 | lib/ui/desktop/ssl/client_cert.dart:341-347 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/report_servers.dart"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de83593e19b253805672648c3ab829ff496b713131eb86af60b772f1efbafb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/ssl/ssl.dart:225-231 | lib/ui/desktop/ssl/ssl.dart:276-282 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/ssl.dart"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7790cc653d920277adaa67bcdbdc2575ab3505f8fbb8b20f292ff764946e65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/mobile/setting/request_rewrite.dart:167-173 | lib/ui/mobile/setting/script.dart:846-852 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 138 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_rewrite.dart"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"15197cba80f895541489e3ce9e5ec430853ab62b47f8d52765516510a3d7b3e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): lib/ui/toolbox/text_diff.dart:342-348 | lib/ui/toolbox/xml_viewer.dart:174-179 \u2014 before extracting anything, compare \u0060lib/ui/toolbox/text_diff.dart\u0060 and \u0060lib/ui/toolbox/xml_viewer.dart\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 67 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/text_diff.dart"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"01d74b26137f99845fd70cbc0c25c3afb0dd52360e5ac51f74fd6bcfce15dba9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/utils/crypto_body_decoder.dart:120-126 | lib/utils/crypto_body_decoder.dart:132-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/crypto_body_decoder.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"454e4e4a345de7ee6aee2a070e5b5f3600f4fb4316c5427c7c2884bdfd8e464d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): lib/ui/desktop/setting/request_crypto.dart:547-552 | lib/ui/desktop/setting/request_crypto.dart:569-574 | lib/ui/desktop/setting/request_crypto.dart:591-596 | lib/ui/desktop/setting/request_crypto.dart:616-621 | lib/ui/desktop/setting/request_crypto.dart:653-658 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_crypto.dart"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8d1698cbc861f533c637acea786fc1f12c808b283a355699ffb321a4782ff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): lib/ui/desktop/setting/request_map.dart:245-250 | lib/ui/desktop/setting/request_rewrite.dart:253-258 | lib/ui/mobile/setting/request_map.dart:177-182 | lib/ui/mobile/setting/request_rewrite.dart:180-185 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5bc1049ca96befd1c41ec749fa2cc1e0923a21179c0b9b3857e9ca9f5167977"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 4): lib/ui/desktop/setting/request_rewrite.dart:555-559 | lib/ui/desktop/setting/script.dart:434-438 | lib/ui/mobile/setting/request_rewrite.dart:514-519 | lib/ui/mobile/setting/script.dart:489-494 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 and \u0060lib/ui/desktop/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 61 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_rewrite.dart"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c30b769acf96408024d325870584f028d0142e9f1fc871ff0c5f3fe7c66b2c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/mcp/protocol/mcp_actions.dart:313-318 | lib/mcp/protocol/mcp_actions.dart:402-407 | lib/mcp/protocol/mcp_actions.dart:988-993 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb230a08ce2516221efa8999a3aff25824c66d28a54b3e491affe335536a005d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/ui/desktop/setting/hosts.dart:136-142 | lib/ui/desktop/ssl/client_cert.dart:111-117 | lib/ui/mobile/setting/hosts.dart:101-106 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b930636d5cd350324d97bade922dc910f6efb658913008fd08c96b3d9ff059"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/ui/desktop/setting/request_map.dart:312-317 | lib/ui/mobile/setting/request_map.dart:234-239 | lib/ui/mobile/setting/request_rewrite.dart:288-293 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5393e1ead961850c3d063725fa976393273aa24282e7dde6c4aa6940c7820ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 3): lib/ui/desktop/setting/weak_network.dart:165-169 | lib/ui/desktop/setting/weak_network.dart:762-766 | lib/ui/mobile/setting/weak_network.dart:612-617 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5000fc7a68c258e4a5ddfb19c60ee003bc397b498faaf31d29a2e1a166812a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/desktop/setting/request_rewrite.dart:245-250 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:437-442 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_rewrite.dart"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a72554b8401a589c1af554de579e2e1606754c1bfab175b226a84490833281f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:633-638 | lib/ui/mobile/setting/weak_network.dart:497-502 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"65cef0e258214ea9299cf3d5d10b2450a76b3d5caa2e552586077245947d5052"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:696-701 | lib/ui/mobile/setting/weak_network.dart:552-558 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"0748e851285a8c683e0562ebd770025b7d5aa4f55ce3d1f1b09eda5b1fa75718"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:785-790 | lib/ui/mobile/setting/weak_network.dart:649-654 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85a8b62731acbf172487c32e70dbf537c6461b184a0505f643d28cd6ecf0bfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:850-855 | lib/ui/mobile/setting/weak_network.dart:701-706 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"052b1d6122727b11825e2451907f7025f9cbc8e055e570417bf5d02a05c7ff3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/mobile/setting/request_map.dart:169-175 | lib/ui/mobile/setting/script.dart:853-858 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 94 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_map.dart"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"67de5def7a7730a8535a5a0fce748754a0b4d0194f8f639281dd6d7ad87d68bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/mobile/setting/request_map/map_local.dart:129-134 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:173-178 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 51 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_map/map_local.dart"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"158340ed8333cfc67dcc3974446eb588001742224981e9230df70c48f9326066"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): lib/ui/desktop/request/report_servers.dart:82-86 | lib/ui/desktop/setting/request_breakpoint.dart:439-443 | lib/ui/desktop/setting/request_breakpoint.dart:546-550 | lib/ui/desktop/setting/request_map.dart:607-611 | lib/ui/desktop/setting/request_rewrite.dart:591-595 | lib/ui/desktop/setting/request_rewrite.dart:726-730 | lib/ui/mobile/setting/request_map.dart:576-580 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/desktop/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/report_servers.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7986ef161949294b8bfadca435feef1bc1e02fcb795f66dbe9222ffde8dd7cea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): lib/ui/desktop/setting/request_breakpoint.dart:425-429 | lib/ui/desktop/setting/request_map.dart:509-513 | lib/ui/desktop/setting/request_rewrite.dart:576-580 | lib/ui/mobile/setting/request_map.dart:510-514 | lib/ui/mobile/setting/request_rewrite.dart:570-574 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/desktop/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81e9f2418bf81d6d6f002e5e2b0c6cf7a1c091f62ff310b08b8c320ab259bac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): lib/ui/desktop/setting/weak_network.dart:165-169 | lib/ui/desktop/setting/weak_network.dart:699-703 | lib/ui/desktop/setting/weak_network.dart:762-766 | lib/ui/mobile/setting/weak_network.dart:612-616 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b8618db2d995fae4519fcde19469696e0ecce2bef8fc58cecd0b7d6288958a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/ui/desktop/setting/request_breakpoint.dart:196-200 | lib/ui/desktop/setting/request_crypto.dart:210-214 | lib/ui/mobile/setting/request_breakpoint.dart:105-109 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_breakpoint.dart\u0060 and \u0060lib/ui/desktop/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 106 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"676ca14535fcedcb91f4277ea7bcfa2b15195b6eb908f58c0c92513a4aed0a8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/ui/desktop/setting/request_map/map_local.dart:248-252 | lib/ui/desktop/setting/rewrite/rewrite_replace.dart:455-459 | lib/ui/mobile/setting/request_map/map_local.dart:254-258 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 102 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"4592a3c9c5186c6973f0ded248e856b272620f200ce6ba2d58bf6e689222d7bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): lib/ui/desktop/setting/request_map.dart:239-243 | lib/ui/desktop/setting/request_rewrite.dart:246-250 | lib/ui/mobile/setting/request_rewrite.dart:173-177 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:438-442 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/desktop/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 141 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2676e750c61e32784d41b588fb82aff156c35ad8c95ff86d35b5746d1da19b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/ui/desktop/setting/weak_network.dart:697-701 | lib/ui/desktop/setting/weak_network.dart:759-764 | lib/ui/mobile/setting/weak_network.dart:554-558 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"174406b9a4e9a26b4d96b61fe3e918889740c394727527a0f2bc2855a51da0ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/ui/desktop/setting/weak_network.dart:850-855 | lib/ui/mobile/setting/weak_network.dart:136-140 | lib/ui/mobile/setting/weak_network.dart:701-706 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1d6ba831c8e04553f1a287efd74125f909c33be35464b4025ce08ffa054147"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/desktop/setting/environment.dart:134-138 | lib/ui/mobile/setting/environment.dart:104-108 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/environment.dart\u0060 and \u0060lib/ui/mobile/setting/environment.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/environment.dart"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"1904c6db0f9c41c50611186d1e7d6271c156fa365a95771de5713f9ea503f364"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/desktop/setting/environment.dart:312-316 | lib/ui/mobile/setting/environment.dart:341-345 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/environment.dart\u0060 and \u0060lib/ui/mobile/setting/environment.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/environment.dart"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d702fb6055d0efff89ff96d57dafa32b1606a1280049c0a3ec2324ec141eab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/desktop/setting/filter.dart:57-61 | lib/ui/desktop/setting/request_block.dart:51-55 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f853d7fa500615efd40b1365962acb3f3148cc66f93db7cb97978dc4f6ce0ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/ui/desktop/setting/filter.dart:152-156 | lib/ui/mobile/setting/filter.dart:128-132 | lib/ui/mobile/setting/request_rewrite.dart:78-82 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/filter.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 72 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b852efc6bf67b241d6da14159868aa33b23e2fad73cf4ac2df9f4b2a2a7cc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:91-95 | lib/ui/desktop/ssl/client_cert.dart:75-79 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7e68f616e9d37837f7593ce1b8e2d1e96bd1a68ed3dea9c0925f186387dd08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:133-137 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:127-131 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"627cc4f67a023eaf7723fde2dab11ea8ab5528cff5a1d6081309c9e2b51578af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:175-179 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:180-184 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1883c2e52f1d2d5cb2f77e4c34be8c51dd855bd9fba1d953394f31b5b43842"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:390-394 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:383-387 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7247873f23000d4dd8fcd5ec28ff974243ec76cfef040be437d38b01925b86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/desktop/setting/script.dart:402-406 | lib/ui/mobile/setting/script.dart:417-421 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"0851b956fe798e2c0273042c9e0abed724842c79c7cfb62837b9948bfbb1553f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:254-258 | lib/ui/desktop/setting/weak_network.dart:914-920 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc07ae7425cc71d067e34bb4bb01780194645b2af7f4782e98192b36d1df0a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/mobile/setting/ssl.dart:586-590 | lib/ui/mobile/setting/ssl.dart:716-720 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/ssl.dart"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d0122ea4b5f59f190aa686531dff19c289ef4ed2310a9b2b4a971073c8d999"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/mobile/widgets/about.dart:69-73 | lib/ui/mobile/widgets/about.dart:95-99 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/widgets/about.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b66c20c060bff31f2ddffe17cf6faec9446a023089aacb38b2a57003918cf0aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/toolbox/js_run.dart:150-155 | lib/ui/toolbox/regexp.dart:186-190 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/js_run.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"b439b9435ada4f84336cc3c9aaea37682ae9dc978f1673bb1f89ce2544c62948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/toolbox/qr_code_page.dart:180-184 | lib/ui/toolbox/qr_code_page.dart:298-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/qr_code_page.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"276415e3e6d0b6c55af85f4cf705e01c1d8ee6028190a0a5f86b35e8c25a3eb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u201311 lines \u00D7 7): lib/ui/desktop/setting/hosts.dart:260-262 | lib/ui/desktop/setting/request_crypto.dart:350-351 | lib/ui/desktop/setting/request_crypto.dart:352-354 | lib/ui/desktop/setting/request_map.dart:321-331 | lib/ui/desktop/setting/request_rewrite.dart:280-282 | lib/ui/desktop/setting/request_rewrite.dart:284-286 | lib/ui/desktop/setting/script.dart:873-883 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/desktop/setting/request_crypto.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd74bfdbec2509f1945c065fad11397491840d29d3fec31a4bb90ec5b1d68121"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/network/components/manager/client_cert_manager.dart:204-208 | lib/network/components/manager/hosts_manager.dart:170-174 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/manager/client_cert_manager.dart"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"8453f930a542f9cf3e030d44dfe01b7e193ffef224146f12b6b94d4edb8fbe3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): lib/ui/desktop/request/domains.dart:95-104 | lib/ui/desktop/request/request_sequence.dart:108-118 | lib/ui/mobile/request/domians.dart:184-194 | lib/ui/mobile/request/request_sequence.dart:201-211 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/domains.dart\u0060 and \u0060lib/ui/desktop/request/request_sequence.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/domains.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74dce45e7464e8fda422564a7985c0d898e7683166fc404fe6d6065176bda10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/desktop/request/domains.dart:131-136 | lib/ui/desktop/request/request_sequence.dart:123-128 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/domains.dart\u0060 and \u0060lib/ui/desktop/request/request_sequence.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/domains.dart"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a1e7a070c5aa7a0d45be78cafa32e9ced91f558d1537d925ab9ff81b2a3f02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/request/list.dart:73-79 | lib/ui/mobile/request/list.dart:59-65 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/list.dart"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f50437db9ac9236fe4641a9ca5632526197a046920ff263e555af61c754b632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/request/repeat.dart:70-76 | lib/ui/mobile/request/repeat.dart:68-74 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/repeat.dart\u0060 and \u0060lib/ui/mobile/request/repeat.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/repeat.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e321f3a38d91fe9a19f9e40594a0e63cb27335f961eb25b7bb35530470a346b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/request/report_servers.dart:295-302 | lib/ui/mobile/setting/report_servers.dart:85-91 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/report_servers.dart\u0060 and \u0060lib/ui/mobile/setting/report_servers.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/report_servers.dart"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffe9e3b03766b23d8f899eda75cb715bf51c0c5aa2a68c6f1640d6f5ad5a2d95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/desktop/request/request_editor.dart:843-848 | lib/ui/mobile/request/request_editor.dart:835-840 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/request_editor.dart\u0060 and \u0060lib/ui/mobile/request/request_editor.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 232 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"288fcae7f90f4f98b96c19506d990ce4a3c64df149bfd48fc0ce3b86589150c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/setting/external_proxy.dart:44-51 | lib/ui/mobile/setting/proxy.dart:27-34 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/external_proxy.dart\u0060 and \u0060lib/ui/mobile/setting/proxy.dart\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 128 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/external_proxy.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"d95571d5aca9d2d771536077b8b81c58206ecb524b6b95f4cb0e93b3229d308c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:52-59 | lib/ui/mobile/setting/hosts.dart:56-63 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8217856c38c3ee5a6ed8091004c43087d994f53c5dce53f27268a0676836364"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/hosts.dart:466-474 | lib/ui/mobile/setting/hosts.dart:429-437 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/hosts.dart\u0060 and \u0060lib/ui/mobile/setting/hosts.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 290 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/hosts.dart"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cda4172729f98a81359e6dd2da623ef5bab20b0b2ad3787eb7e6a8afb08736b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:414-420 | lib/ui/mobile/setting/request_map.dart:379-385 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"42801849e3ea82b08422d9fd2ba82779b7545464693e747f951e0125bd20dfaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/desktop/setting/request_map.dart:580-584 | lib/ui/mobile/setting/request_map.dart:549-553 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_map.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 269 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map.dart"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"6449748435cbad9b3eceae8d7652e2620a281bfd55d3694e531c2faaf8a5b5ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:279-288 | lib/ui/mobile/setting/request_map/map_local.dart:285-294 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf031d29608b437a39bdfdc2500a9dc2a18c1fcf58c5cfb1c5a73a7d6f344b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:290-296 | lib/ui/mobile/setting/request_map/map_local.dart:296-302 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a88c435ef45af3461867456d22a36eca5a0bf195218242ec7cb90ad17e53930"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/request_map/map_local.dart:316-322 | lib/ui/mobile/setting/request_map/map_local.dart:322-328 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/request_map/map_local.dart\u0060 and \u0060lib/ui/mobile/setting/request_map/map_local.dart\u0060 as WHOLE FILES: this scan already matched 22 separate duplicated blocks between them, totalling at least 271 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_map/map_local.dart"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab0642847eca87df0e66c5cabf233aa25556816da51ee2c338840efa48d0bb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:260-264 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:253-257 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee0a086686bf0e62d961d65aeb95bcd0528cd7a8fd5185a12f70675978fe6b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:486-494 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:474-482 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"08423096805eb38faf5e56b8c74f27ec38a9ae15997125acd3e4d5a1ebb92bcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_replace.dart:535-541 | lib/ui/mobile/setting/rewrite/rewrite_replace.dart:523-529 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"50840e841d5b57b65658f61a75a2728e2510d0e721465b69771cd00bc44d31df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:154-161 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:159-166 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bb17fd660c71c20cf273527b8cda95cf5936195f22f9732c8916f729e181d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/desktop/setting/rewrite/rewrite_update.dart:307-311 | lib/ui/mobile/setting/rewrite/rewrite_update.dart:302-306 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 as WHOLE FILES: this scan already matched 19 separate duplicated blocks between them, totalling at least 228 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce22f7b195307875ecc29bf99a895d77daf5792e7f0375df5d14421834f5702"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/script.dart:975-981 | lib/ui/mobile/setting/script.dart:1084-1090 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/script.dart\u0060 and \u0060lib/ui/mobile/setting/script.dart\u0060 as WHOLE FILES: this scan already matched 25 separate duplicated blocks between them, totalling at least 296 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc56d5b611354834c51a2cfe6877c83fdff9c83b6fdd1523c45a050e91aaa961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:430-436 | lib/ui/mobile/setting/weak_network.dart:303-309 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"151c547cb2f306a78bc53fdb6bc24b7f88e448d2895da3983a865708f062c4b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:645-654 | lib/ui/mobile/setting/weak_network.dart:509-518 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0ec009dd6538f710a6af94fd460c80005150ce6cff53aac07bb9c67c646177"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/ssl/client_cert.dart:57-64 | lib/ui/mobile/setting/client_cert.dart:48-55 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/client_cert.dart"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbc2c7fb2a11a4e2423280bb5c50731279a9d344140270fc00bba7bf09349ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/ui/desktop/toolbar/weak_network_indicator.dart:36-44 | lib/ui/mobile/menu/weak_network_tile.dart:52-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/toolbar/weak_network_indicator.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d93cac6d2052d01f526414266cd99d1900a6501b6597ac64060b0b98eac6a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/widgets/highlight.dart:81-88 | lib/ui/mobile/widgets/highlight.dart:81-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/widgets/highlight.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"fddac8d5a0bdec67bd6bb57c9e3c94f84fac8a801fa0be453e0d615fc946358b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/mobile/setting/request_map.dart:442-448 | lib/ui/mobile/setting/request_rewrite.dart:497-503 \u2014 before extracting anything, compare \u0060lib/ui/mobile/setting/request_map.dart\u0060 and \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 157 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/request_map.dart"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0a5067933d0de67e13b3206133eb13870813b68ad7cc5614eeffaada2b26a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/ui/toolbox/json_viewer.dart:152-157 | lib/ui/toolbox/text_editor.dart:140-145 | lib/ui/toolbox/xml_viewer.dart:104-109 \u2014 before extracting anything, compare \u0060lib/ui/toolbox/json_viewer.dart\u0060 and \u0060lib/ui/toolbox/text_editor.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. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/json_viewer.dart"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0cad31103a3e766e2ab855ba6eb7b2ea20c43397f5828c832419647feedf10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/ui/toolbox/json_viewer.dart:292-299 | lib/ui/toolbox/text_diff.dart:389-396 | lib/ui/toolbox/xml_viewer.dart:210-217 \u2014 before extracting anything, compare \u0060lib/ui/toolbox/json_viewer.dart\u0060 and \u0060lib/ui/toolbox/text_diff.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 49 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/json_viewer.dart"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"663b23919913219f9aada8cdb09d42fff805ecd75c2a022e4acbb75dbcbb3673"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/utils/css_formatter.dart:23-28 | lib/utils/js_formatter.dart:23-28 \u2014 before extracting anything, compare \u0060lib/utils/css_formatter.dart\u0060 and \u0060lib/utils/js_formatter.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/css_formatter.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"f28df8edc21c32b92a82a2c2362f9e0c4de9e1332bce811c2b331d848b4941d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/utils/css_formatter.dart:135-139 | lib/utils/js_formatter.dart:189-193 \u2014 before extracting anything, compare \u0060lib/utils/css_formatter.dart\u0060 and \u0060lib/utils/js_formatter.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/css_formatter.dart"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"1408005f550a88540155e8ec878cd1147f126d6caa7c10d9e5ad0725f5eb860c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/utils/css_formatter.dart:141-146 | lib/utils/js_formatter.dart:195-200 \u2014 before extracting anything, compare \u0060lib/utils/css_formatter.dart\u0060 and \u0060lib/utils/js_formatter.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/css_formatter.dart"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49d97b0ca3cdb2403bf08eee50c2944f23567121e51471524a445ae005c8a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/mcp/protocol/mcp_actions.dart:1226-1231 | lib/mcp/protocol/mcp_server.dart:454-459 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/protocol/mcp_actions.dart"},"region":{"startLine":1226}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fbca45092f782257b9dfb8a175050d3ed8fd91b1d26185d8605ca6686f1dc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/ui/desktop/request/report_servers.dart:276-283 | lib/ui/mobile/setting/report_servers.dart:66-73 \u2014 before extracting anything, compare \u0060lib/ui/desktop/request/report_servers.dart\u0060 and \u0060lib/ui/mobile/setting/report_servers.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 30 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/report_servers.dart"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ccce30d2d415c9901aa82505f7ace65b69314b905dcf81abf8abf02f85e0e55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/network/components/manager/network_condition_manager.dart:104-111 | lib/network/components/manager/network_condition_manager.dart:315-322 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/manager/network_condition_manager.dart"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"704b3e4c922598f77d0b6451941523f2afd8b501d9749e820525085f53d55979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/desktop/left_menus/replay_tasks.dart:91-96 | lib/ui/mobile/request/replay_tasks.dart:79-84 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/left_menus/replay_tasks.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e328c6d472389b9c8c0e45c95ba8ae4ee9e2c1f4e0f339e8cfb5611714e2e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/ui/desktop/setting/weak_network.dart:309-315 | lib/ui/mobile/setting/weak_network.dart:85-91 \u2014 before extracting anything, compare \u0060lib/ui/desktop/setting/weak_network.dart\u0060 and \u0060lib/ui/mobile/setting/weak_network.dart\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 158 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/weak_network.dart"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"017a8ae69a5681e3a877cc247f3593b81a9006b6bda6317bbe09960230e013cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/ui/desktop/ssl/client_cert.dart:66-70 | lib/ui/mobile/setting/client_cert.dart:57-61 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/client_cert.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aced2be146432c3c60dcc7817b4455fd91ed50a5a04354d5c8816b89f76220e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/ui/desktop/ssl/client_cert.dart:127-132 | lib/ui/mobile/setting/client_cert.dart:141-146 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/client_cert.dart"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ec8d9186e7da50d229dc4d84a07f8ba378054005b1a539ae33910f9d87aa18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): android/app/src/main/kotlin/com/network/proxy/plugin/VpnServicePlugin.kt:21-25 | android/app/src/main/kotlin/com/network/proxy/plugin/VpnServicePlugin.kt:49-53 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/network/proxy/plugin/VpnServicePlugin.kt:21\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/network/proxy/plugin/VpnServicePlugin.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"f308777fa69738c0188b133b8b68647c4ba286bac01047b8dfea25efc1db9195"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): android/app/src/main/kotlin/com/network/proxy/vpn/socket/SocketChannelReader.java:53-62 | android/app/src/main/kotlin/com/network/proxy/vpn/socket/SocketChannelWriter.java:48-58 \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 \u0060android/app/src/main/kotlin/com/network/proxy/vpn/socket/SocketChannelReader.java:53\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/network/proxy/vpn/socket/SocketChannelReader.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0256a7225823a0cf47a7e23faebc78ebd2fe5b77ed7655a012ee96ea4d9d4d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): tool/mqtt_proxy_smoke.py:63-67 | tool/mqtt_proxy_smoke.py:112-116 \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":"tool/mqtt_proxy_smoke.py"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"689089b1320bd2a68cdf10799346189d5d3466ab4afae4e5b4642a841c0355d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201310 lines \u00D7 2): ios/Runner/Handlers/MethodHandler.swift:68-77 | ios/Runner/Handlers/MethodHandler.swift:102-108 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note 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":"ios/Runner/Handlers/MethodHandler.swift"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ab5471d505d02e92f86d418092eb11b7a55d8a27be86f702015c4852c53ba8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _RulesPageState (LCOM4 7): _RulesPageState\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/left_menus/rules.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eba79dd482bdaa43c086c5f4360a47bffd6b4c0ebbc83a43613bfb2e6a4802b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RequestRewriteState (LCOM4 6): RequestRewriteState\u0027s methods fall into 6 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 6 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_rewrite.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f100ef7d93842ab6f19738c035a14171b047794896c5441900363de2cb54ed6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: MobileHomeState (LCOM4 5): MobileHomeState\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/mobile.dart"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa556be37216b6d59e9707659a50dcceb77b5f3f96ce8574000d1fcd1c2c56e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DomainRequests (LCOM4 4): DomainRequests\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/domains.dart"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f7adf1ace73f1d287e048711a2e0123834dd15cf98ed901259d700a95a177a7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _SettingState (LCOM4 4): _SettingState\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/setting.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdbc1a060a8bc8c1443aa94bc217db79e2a7575f1fec9fd9699689a1fd11105a"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ead1f65dfa544d3c28aa08c47d9db4be4adab0a4f282daf96a17875242449788"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D14","level":"error","message":{"text":"Banned license: proxy_manager: \u0060proxy_manager\u0060 0.0.3 is resolved by this repository\u0027s pubspec.lock outside its dev_dependencies, and every licence pub.dev detected in it is one this policy bans (\u0060gpl-3.0\u0060). Where a package carries several licences it is charged only when all of them are banned. Replace the package, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"982e7bf31039134b5d86352ab4310e37d294de569de2dac64e6a010be72d6cbb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ui/content/panel.dart: lib/ui/content/panel.dart changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in NetworkTabState.build at line 211. 2 of those changes were fix/bug commits, and the other 10 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:56:26 \u002B08:00\u0027 --until=\u00272026-11-07 14:56:26 \u002B08:00\u0027 --full-history --no-merges -- lib/ui/content/panel.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/panel.dart"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"50f389571b31295256c29243a813d0ec9dea0fac3b1835ecea188aaa6ef8085b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/network/channel/channel_dispatcher.dart: lib/network/channel/channel_dispatcher.dart changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in ChannelDispatcher.channelRead at line 96. 5 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:56:26 \u002B08:00\u0027 --until=\u00272026-11-07 14:56:26 \u002B08:00\u0027 --full-history --no-merges -- lib/network/channel/channel_dispatcher.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/channel_dispatcher.dart"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f11d8654ab1b52a457b8e2fdc85b9d967e179f1c68bfe3a04a3f5f0d4ac70bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ui/content/body.dart: lib/ui/content/body.dart changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in HttpBodyState.titleWidget at line 281. 1 of those changes was a fix/bug commit, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:56:26 \u002B08:00\u0027 --until=\u00272026-11-07 14:56:26 \u002B08:00\u0027 --full-history --no-merges -- lib/ui/content/body.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"44bcf70616b04ff281ff8c3a0b9b2cabf0f95170a4cd922295c5f8899809b405"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/network/http/codec.dart: lib/network/http/codec.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in HttpCodec.decode at line 106. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:56:26 \u002B08:00\u0027 --until=\u00272026-11-07 14:56:26 \u002B08:00\u0027 --full-history --no-merges -- lib/network/http/codec.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/codec.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2299fafbb742ce57b488b448ff294644e92454dffcab7eb4bf92edba9f7446"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/network/http/h2/h2_codec.dart: lib/network/http/h2/h2_codec.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in Http2Codec.parseHttp2Packet at line 117. 4 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:56:26 \u002B08:00\u0027 --until=\u00272026-11-07 14:56:26 \u002B08:00\u0027 --full-history --no-merges -- lib/network/http/h2/h2_codec.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/h2/h2_codec.dart"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4804de54632ed2a7b26c78d95d95a8ebbda45679a592ebe012414a2f76df317"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ui/configuration.dart: lib/ui/configuration.dart changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in AppConfiguration.toJson at line 283. 2 of those changes were fix/bug commits, and the other 8 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:56:26 \u002B08:00\u0027 --until=\u00272026-11-07 14:56:26 \u002B08:00\u0027 --full-history --no-merges -- lib/ui/configuration.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/configuration.dart"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"f853969be44832272fc39f9e079240a60dec478ffb6626bcdc25b164570a3406"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/network/channel/network.dart: lib/network/channel/network.dart changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in Server.ssl at line 196. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:56:26 \u002B08:00\u0027 --until=\u00272026-11-07 14:56:26 \u002B08:00\u0027 --full-history --no-merges -- lib/network/channel/network.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/network.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"71577cb6d6dc26d8f6f9525c27e849a82e0704533d0994727de054218e773d51"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/network/handle/http_proxy_handle.dart: lib/network/handle/http_proxy_handle.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in HttpProxyChannelHandler._getRemoteChannel at line 201. 3 of those changes were fix/bug commits, so the churn is repair rather than feature work. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:56:26 \u002B08:00\u0027 --until=\u00272026-11-07 14:56:26 \u002B08:00\u0027 --full-history --no-merges -- lib/network/handle/http_proxy_handle.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/handle/http_proxy_handle.dart"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff2719262f66cdb64ff8e7f9a93e8d4e3d256e9300ccb49ef33f5abfc4d9955"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ui/mobile/request/request_editor.dart: lib/ui/mobile/request/request_editor.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in _HttpState._bodyToolbar at line 649. 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-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:56:26 \u002B08:00\u0027 --until=\u00272026-11-07 14:56:26 \u002B08:00\u0027 --full-history --no-merges -- lib/ui/mobile/request/request_editor.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/request/request_editor.dart"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"371706abd34c184d70c9b5ed25afc9aa82b3036723dc7cad365a8d68643f2453"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ui/toolbox/toolbox.dart: lib/ui/toolbox/toolbox.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in _ToolboxState.build at line 75. 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-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:56:26 \u002B08:00\u0027 --until=\u00272026-11-07 14:56:26 \u002B08:00\u0027 --full-history --no-merges -- lib/ui/toolbox/toolbox.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/toolbox.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e53eb5ecaf175d1ba2aad7d450c40b36907ef67e556cc3388374b30bc6803462"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/ui/content/web_socket.dart: lib/ui/content/web_socket.dart changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in Websocket.build at line 26. 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-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:56:26 \u002B08:00\u0027 --until=\u00272026-11-07 14:56:26 \u002B08:00\u0027 --full-history --no-merges -- lib/ui/content/web_socket.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/web_socket.dart"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"67de61887da84006145afd20fa136d18245b985ec7ac8c96fdcbd6549b98064b"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/network/channel/channel_context.dart: lib/network/channel/channel_context.dart changed 3 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is H2ToH1FrameStripper.strip at line 309), UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(network): per-hop ALPN decoding and h2\u003C-\u003Eh1 translation (fix #969)\u201D; \u201Cfix: preserve HTTP/2 stream order and HAR protocol evidence\u201D; \u201Cfix: support h2c prior-knowledge capture and forwarding\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-09..2026-11-07, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-09 14:56:26 \u002B08:00\u0027 --until=\u00272026-11-07 14:56:26 \u002B08:00\u0027 --full-history --no-merges -- lib/network/channel/channel_context.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/channel_context.dart"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"300684b069d9ecda7f9de2581596e89c8f0ea15d222f4f8ae071b51869c0721a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: responseXML? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/js/xhr.dart"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6a25747c1817f29471d2d38a911e2dec5283ad5f9f9151b2dd917272d24222d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //   // TODO \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/js/xhr.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"69370859d2ec5880caea3429b82c2af5500d5faae06d559ee7241518e7510c64"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO should allocate new byte array? \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":"android/app/src/main/kotlin/com/network/proxy/vpn/socket/SocketChannelReader.java"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd407b7bf542cad79415697846c2dc969fcf6a124910755f69774374f6801aac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO What does 60 mean? \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":"android/app/src/main/kotlin/com/network/proxy/vpn/socket/SocketChannelReader.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"da695109c7b16f50eaed8e30444d1790cae8de25624192abd9fe28f7c311c033"}},{"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":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 4 project(s) overshoot their size bounds, lowering Project Cohesion to 5.0/10. The most over is \u0060(repository root)\u0060 (72016 LoC, 592 module-visible types across 52 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3a8d165362f79a04bb6364256d61e8f2bec48c8cdf8ec01b7e9feb8b45cc9f64"},"properties":{"commitSha":"e335f8e1a37589f0a6b3458169a484c1da8879c4"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dd909aa4038ca8e9770b6f1e2ebe9a7298332abb5237c1175567dd39931dfe6f"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: mobile.dart \u2194 curl.dart: \u0060lib/ui/mobile/mobile.dart\u0060 (context ui) and \u0060lib/utils/curl.dart\u0060 (context utils) sit in DIFFERENT parts of the tree yet change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060a950c71d\u0060 feat: add \u0027Copy as fetch\u0027 functionality (#685); \u0060853348f1\u0060 hex viewer; \u00609a558c53\u0060 \u652F\u6301websocket \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/mobile.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"957cfa16bb716102bb2e929954d6d6e755ee1da8ee6816659408d1eb5e0d42e2"}},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: body.dart \u2194 curl.dart: \u0060lib/ui/content/body.dart\u0060 (context ui) and \u0060lib/utils/curl.dart\u0060 (context utils) sit in DIFFERENT parts of the tree yet change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060853348f1\u0060 hex viewer; \u00609a558c53\u0060 \u652F\u6301websocket; \u006026857ecc\u0060 \u4FEE\u590D\u8BE6\u60C5\u8BF7\u6C42\u91CD\u5199\u586B\u5145\u57DF\u540D\u9519\u8BEF\u95EE\u9898\uFF0C\u8BF7\u6C42\u7F16\u8F91\u91CD\u53D1\u54CD\u5E94\u4F53\u67E5\u770B\u589E\u52A0\u591A\u79CD\u683C\u5F0F\uFF0C\u8BE6\u60C5Body\u4F53\u589E\u52A0\u5FEB\u901F\u89E3\u7801\u5165\u53E3 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7476ab04293d7033315fedeb6911f50c40d4994f9f6022df72126d43a2e8166f"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: domains.dart \u2194 request_sequence.dart: \u0060lib/ui/desktop/request/domains.dart\u0060 and \u0060lib/ui/desktop/request/request_sequence.dart\u0060 change together 69% of the time (9 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u006057a42f0f\u0060 feat(ui): align desktop request rows and overview with homepage design; \u0060adaf2ebe\u0060 feat(export): refactor export functionality and improve request/respo\u2026; \u0060e8116905\u0060 feat(request): streamline state management and optimize search \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/domains.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4c1d6901819d562c5c631d67689fc4c1dcf75a755774f98526c7cee8daaae51"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: filter.dart \u2194 request_rewrite.dart: \u0060lib/ui/mobile/setting/filter.dart\u0060 and \u0060lib/ui/mobile/setting/request_rewrite.dart\u0060 change together 69% of the time (11 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u0060d15d6c24\u0060 request edit send loading; \u006082736566\u0060 fix ipad share; \u0060d95741bb\u0060 Remove file_selector dependency \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/filter.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af49a597dcbe6aa3df6ee18ea1a7157babf408381183268c5101bdb7145f8fa7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: favorite.dart \u2194 request.dart: \u0060lib/ui/desktop/left_menus/favorite.dart\u0060 and \u0060lib/ui/desktop/request/request.dart\u0060 change together 64% of the time (16 of the 25 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 16 shared commits counted here, the most recent 3 are \u0060dbc0ac1d\u0060 refactor(window): simplify window creation by removing DPI handling; \u0060bc058c1c\u0060 feat(graphql): add support for GraphQL operation name (#697); \u0060f418a205\u0060 add request breakpoint functionality (#669)(#660)(#386) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/left_menus/favorite.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"958ed61bb25d84a8a3a5d6ee4e3cd116d884b503d156ac5dbed837693683f25a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: favorite.dart \u2194 request.dart: \u0060lib/ui/mobile/request/favorite.dart\u0060 and \u0060lib/ui/mobile/request/request.dart\u0060 change together 64% of the time (16 of the 25 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 16 shared commits counted here, the most recent 3 are \u0060bc058c1c\u0060 feat(graphql): add support for GraphQL operation name (#697); \u0060f37330a5\u0060 The script supports multiple URL matching; \u0060abaf62eb\u0060 Rewrite request modification to add regular matching test \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/request/favorite.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f21c374dc116952acbb219c6496e1d676711ce4654d170ff423c9d12966cb98"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: mobile.dart \u2192 desktop.dart, filter.dart, about.dart: \u0060lib/ui/mobile/mobile.dart\u0060 changes together with 3 other files \u2014 \u0060lib/ui/desktop/desktop.dart\u0060, \u0060lib/ui/mobile/setting/filter.dart\u0060, \u0060lib/ui/mobile/widgets/about.dart\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/mobile.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"558ba94b19603386b5a09b08b1279e48d6ba0cbdfd1c8c8b819851a77590d18b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: history.dart \u2194 history.dart: \u0060lib/ui/desktop/left_menus/history.dart\u0060 and \u0060lib/ui/mobile/request/history.dart\u0060 change together 56% of the time (15 of the 27 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 15 shared commits counted here, the most recent 3 are \u0060d95741bb\u0060 Remove file_selector dependency; \u006029e1227d\u0060 desktop automatic memory cleanup; \u0060f4e3489a\u0060 History supports replaying all requests (#246) (at that commit the file was still \u0060lib/ui/desktop/left/history.dart\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/left_menus/history.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d959fe5749b49d994b47740c7b251a88d644257ddaf94b389809516d3d7462a2"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: channel_dispatcher.dart \u2194 h2_codec.dart: \u0060lib/network/channel/channel_dispatcher.dart\u0060 and \u0060lib/network/http/h2/h2_codec.dart\u0060 change together 55% of the time (11 of the 20 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 11 shared commits counted here, the most recent 3 are \u006000a81c06\u0060 fix(network): per-hop ALPN decoding and h2\u003C-\u003Eh1 translation (fix #969); \u0060db597218\u0060 fix: preserve HTTP/2 stream order and HAR protocol evidence; \u00605ae3d28a\u0060 fix: support h2c prior-knowledge capture and forwarding \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/channel_dispatcher.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4234ebbec45d3b9f1f6236b4b0ed743f6c1cfd1d3f0fa98af47d42eb356ddb86"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ssl.dart \u2194 ssl.dart: \u0060lib/ui/desktop/ssl/ssl.dart\u0060 and \u0060lib/ui/mobile/setting/ssl.dart\u0060 change together 50% of the time (21 of the 42 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 21 shared commits counted here, the most recent 3 are \u0060f913b4ae\u0060 Modify document URL (at that commit the file was still \u0060lib/ui/desktop/toolbar/ssl/ssl.dart\u0060); \u0060a9424601\u0060 request rewrites file select suffix (at that commit the file was still \u0060lib/ui/desktop/toolbar/ssl/ssl.dart\u0060); \u006088c4d96a\u0060 android System certificate name (at that commit the file was still \u0060lib/ui/desktop/toolbar/ssl/ssl.dart\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/ssl.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4d113bdfce997b5fedf512c565d797573578c13b25cc19fc88bc208b778151c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: filter.dart \u2194 ssl.dart: \u0060lib/ui/desktop/setting/filter.dart\u0060 and \u0060lib/ui/desktop/ssl/ssl.dart\u0060 change together 50% of the time (12 of the 24 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 12 shared commits counted here, the most recent 3 are \u0060505a5511\u0060 zxing qr code (at that commit the files were still \u0060lib/ui/desktop/toolbar/setting/filter.dart\u0060 and \u0060lib/ui/desktop/toolbar/ssl/ssl.dart\u0060); \u006031aab41b\u0060 Support multiple theme colors (at that commit the files were still \u0060lib/ui/desktop/toolbar/setting/filter.dart\u0060 and \u0060lib/ui/desktop/toolbar/ssl/ssl.dart\u0060); \u0060ea3828ed\u0060 \u8BF7\u6C42\u91CD\u5199 (at that commit the files were still \u0060lib/ui/desktop/toolbar/setting/filter.dart\u0060 and \u0060lib/ui/desktop/toolbar/ssl/ssl.dart\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ee4bc9a3c604250e65329dddbaab0e50b84263869efda4ab581d6585214268"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: rewrite_replace.dart \u2194 rewrite_update.dart: \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_update.dart\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006087a548bc\u0060 feat(editor): update CodeForge integration for enhanced text editing \u2026; \u0060abaf62eb\u0060 Rewrite request modification to add regular matching test; \u0060be30d202\u0060 Desktop rewrite request modification to add regular matching test \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5adc60ca7205a70d6fe455f1303435e053583c952ac7e59c51741a10a0a7ee8e"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: rewrite_update.dart \u2194 rewrite_replace.dart: \u0060lib/ui/desktop/setting/rewrite/rewrite_update.dart\u0060 and \u0060lib/ui/mobile/setting/rewrite/rewrite_replace.dart\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006087a548bc\u0060 feat(editor): update CodeForge integration for enhanced text editing \u2026; \u0060abaf62eb\u0060 Rewrite request modification to add regular matching test (at that commit the file was still \u0060lib/ui/desktop/toolbar/setting/rewrite/rewrite_update.dart\u0060); \u0060be30d202\u0060 Desktop rewrite request modification to add regular matching test (at that commit the file was still \u0060lib/ui/desktop/toolbar/setting/rewrite/rewrite_update.dart\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_update.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81d410d65eb8fb8ec522d017b024ee8bde7fb8948adcab397e5bede58ac491e7"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: http_proxy_handle.dart \u2194 body_reader.dart: \u0060lib/network/handle/http_proxy_handle.dart\u0060 and \u0060lib/network/http/parse/body_reader.dart\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u00605979bd5c\u0060 external proxy support authentication (#303) (at that commit the files were still \u0060lib/network/handler.dart\u0060 and \u0060lib/network/http/body_reader.dart\u0060); \u0060c2eb1af4\u0060 \u663E\u793A\u5F02\u5E38\u8BF7\u6C42 (at that commit the files were still \u0060lib/network/handler.dart\u0060 and \u0060lib/network/http/body_reader.dart\u0060); \u006069b1577c\u0060 \u5F53\u54CD\u5E94\u4F53\u5927\u65F6\u5F02\u6B65\u52A0\u8F7Djson (at that commit the files were still \u0060lib/network/handler.dart\u0060 and \u0060lib/network/http/body_reader.dart\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/handle/http_proxy_handle.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"956180dbdece278c290b88fc89e8baaf2d963e8f25ef93106c2dd84cc29e216f"}},{"ruleId":"IC1","level":"warning","message":{"text":"Empty method body \u2014 does nothing with its inputs: \u0060toRequestsView\u0060 takes parameters but its body is empty \u2014 it accepts inputs and does nothing. Either implement it or remove it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/mobile.dart"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"e450e75a4b85320fa32d3062241e50cbb467321c6df60a885f0fea89c535eb82"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"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":"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":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"S1","level":"error","message":{"text":"TLS certificate validation disabled: \u0060onBadCertificate\u0060 returning \u0060true\u0060 is set on a TLS client, so every peer certificate is accepted \u2014 including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic \u2014 the connection is encrypted to the attacker, not to the intended host. Remove the callback so \u0060dart:io\u0060 validates the peer. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: load its CA into a \u0060SecurityContext\u0060 (\u0060setTrustedCertificatesBytes\u0060) and pass it as \u0060HttpClient(context: \u2026)\u0060 / \u0060SecureSocket.connect(\u2026, context: \u2026)\u0060, which keeps the chain and hostname checks on. A callback that must exist should compare the presented certificate with a pinned fingerprint, never return \u0060true\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/channel.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d1b2b2e643bcc61c454a272abab24f1567ad50a865db9a6f02afafbb3fc94d7"}},{"ruleId":"S1","level":"error","message":{"text":"TLS certificate validation disabled: \u0060onBadCertificate\u0060 returning \u0060true\u0060 is set on a TLS client, so every peer certificate is accepted \u2014 including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic \u2014 the connection is encrypted to the attacker, not to the intended host. Remove the callback so \u0060dart:io\u0060 validates the peer. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: load its CA into a \u0060SecurityContext\u0060 (\u0060setTrustedCertificatesBytes\u0060) and pass it as \u0060HttpClient(context: \u2026)\u0060 / \u0060SecureSocket.connect(\u2026, context: \u2026)\u0060, which keeps the chain and hostname checks on. A callback that must exist should compare the presented certificate with a pinned fingerprint, never return \u0060true\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/channel.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"76b434c4d6af857710bde1838dbc3ee6f71ec7fa697295941e77ea3f2531e877"}},{"ruleId":"S1","level":"error","message":{"text":"TLS certificate validation disabled: \u0060onBadCertificate\u0060 returning \u0060true\u0060 is set on a TLS client, so every peer certificate is accepted \u2014 including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic \u2014 the connection is encrypted to the attacker, not to the intended host. Remove the callback so \u0060dart:io\u0060 validates the peer. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: load its CA into a \u0060SecurityContext\u0060 (\u0060setTrustedCertificatesBytes\u0060) and pass it as \u0060HttpClient(context: \u2026)\u0060 / \u0060SecureSocket.connect(\u2026, context: \u2026)\u0060, which keeps the chain and hostname checks on. A callback that must exist should compare the presented certificate with a pinned fingerprint, never return \u0060true\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/network.dart"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4f1482fb0e8b4c08f81a1fa8ab0040d91c10585ba806517fb7c26b39fc3f5a"}},{"ruleId":"S1","level":"error","message":{"text":"TLS certificate validation disabled: \u0060onBadCertificate\u0060 returning \u0060true\u0060 is set on a TLS client, so every peer certificate is accepted \u2014 including one an attacker presents. Chain, expiry, revocation and hostname are all skipped, so an attacker on the network path can present any certificate and read or rewrite the traffic \u2014 the connection is encrypted to the attacker, not to the intended host. Remove the callback so \u0060dart:io\u0060 validates the peer. If the server presents a self-signed or privately-issued certificate, trust THAT issuer rather than every certificate: load its CA into a \u0060SecurityContext\u0060 (\u0060setTrustedCertificatesBytes\u0060) and pass it as \u0060HttpClient(context: \u2026)\u0060 / \u0060SecureSocket.connect(\u2026, context: \u2026)\u0060, which keeps the chain and hostname checks on. A callback that must exist should compare the presented certificate with a pinned fingerprint, never return \u0060true\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/js/xhr.dart"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4a410db9a6831725b9ee79750683fcc8bb775f947673846737a473d48b021a"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha256.convert(\u2026)\u0060 from \u0060package:crypto\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/js/md5.dart"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"94068ac8d0290c4de25178d2c5d4cd779f726231b111db4a4b1705abc20225b6"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha256.convert(\u2026)\u0060 from \u0060package:crypto\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/x509.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d61a2006f8cc919ce0dd993850907dacceba12adb08a00b2a561c178440a8e1"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha256.convert(\u2026)\u0060 from \u0060package:crypto\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/crypto.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"50fdfea9b6aa3ccd2a12c8f0ea8ecd4c491dc609f8e212027931cc176c61745a"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha256.convert(\u2026)\u0060 from \u0060package:crypto\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/crypto.dart"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d052180f7b799bdc8bb025cbf453fc03dd826e15b822ea9df3977bc6ebf1f9b4"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak hash algorithm: MD5/SHA1 is computed here, and both are collision-broken. If this digest protects anything \u2014 a signature, an integrity or tamper check, a credential, or any value an attacker can influence \u2014 that is a real weakness: use SHA-256\u002B (\u0060sha256.convert(\u2026)\u0060 from \u0060package:crypto\u0060) for content integrity, or a KDF (bcrypt/Argon2/scrypt) for password storage. If it only derives a non-security identifier (a cache key, an avatar URL, an ETag), collision resistance carries no security consequence here; make that intent explicit instead \u2014 a non-cryptographic hash such as xxhash or murmurhash says it in code \u2014 since the algorithm alone cannot distinguish the two uses. Where a protocol this code does not own fixes the digest (a k-anonymity range query, a legacy signature format), the protocol decides; say so beside the call."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/encoder.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b91a770eabbdd64bd3b63bf96162e0425cbd5da77928c3746c842eb568b6d48e"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak cipher: DES / 3DES / RC4 / RC2 / Blowfish is deprecated or broken. Use AES-GCM \u2014 \u0060GCMBlockCipher(AESEngine())\u0060 in pointycastle, or \u0060AES(key, mode: AESMode.gcm)\u0060 in \u0060package:encrypt\u0060 \u2014 with a fresh 12-byte IV per message and the authentication tag checked on decrypt."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/pkcs12.dart"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c0231385f33e3301c619d37be6e52d83a76314cb8326c263ac89f79e637103"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak cipher: DES / 3DES / RC4 / RC2 / Blowfish is deprecated or broken. Use AES-GCM \u2014 \u0060GCMBlockCipher(AESEngine())\u0060 in pointycastle, or \u0060AES(key, mode: AESMode.gcm)\u0060 in \u0060package:encrypt\u0060 \u2014 with a fresh 12-byte IV per message and the authentication tag checked on decrypt."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/pkcs12.dart"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bcf798d92b3b7038293acbea0c83ba857f2527a2132c508ce22590fb53966d"}},{"ruleId":"S1","level":"warning","message":{"text":"Weak cipher: DES / 3DES / RC4 / RC2 / Blowfish is deprecated or broken. Use AES-GCM \u2014 \u0060GCMBlockCipher(AESEngine())\u0060 in pointycastle, or \u0060AES(key, mode: AESMode.gcm)\u0060 in \u0060package:encrypt\u0060 \u2014 with a fresh 12-byte IV per message and the authentication tag checked on decrypt."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/pkcs12.dart"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1322384f12a262aaa9b1df91a8080e7b31e1d3d9a3085293b7027367ebb81d"}},{"ruleId":"S1","level":"note","message":{"text":"No app-layer HTTPS enforcement detected: This repository runs an HTTP server that is not bound to the loopback interface alone \u2014 or binds it at an address its source does not spell out \u2014 and nothing in its Dart source secures the transport: no \u0060HttpServer.bindSecure\u0060 or \u0060securityContext:\u0060, no \u0060Strict-Transport-Security\u0060 header, no \u0060X-Forwarded-Proto\u0060 read from a TLS-terminating proxy \u2014 so its traffic may cross the network in clear text. (\u22122.0 on this card.) The server: lib/mcp/transport/mcp_http_server.dart:55 \u2014 \u0060HttpServer.bind(\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8697c7a8b4c37084f15e81b8ec84d4cf62954730be74a0816d39b2127a21fd9b"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: None of the 11 security response headers the OWASP Secure Headers Project recommends (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options, \u2026) is set on a response this repository\u0027s Dart server sends \u2014 defense in depth, even when a proxy could set them. (\u22122.0 on this card.) The server: lib/mcp/transport/mcp_http_server.dart:55 \u2014 \u0060HttpServer.bind(\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd19c680309417e132c0be93c2002123f0664b42afe6172b1319da65a6a57ba7"}},{"ruleId":"X1","level":"warning","message":{"text":"\u0060async\u0060 callback passed to \u0060forEach\u0060: \u0060forEach\u0060 takes a \u0060void\u0060 callback and never awaits what it returns, so the Future each \u0060async\u0060 call returns is dropped: nothing can await it, the code after this loop runs before any of the awaited work has finished (a function that \u0060await\u0060s around this loop still returns early, and a resource it closes next is closed under the work), and an error is never handled \u2014 it surfaces as an uncaught asynchronous error, which terminates a command-line program and reaches only the zone\u0027s error handler in Flutter. Iterate with \u0060for (final item in items) { await \u2026 }\u0060 when the work must run in order, or \u0060await Future.wait(items.map((item) async { \u2026 }))\u0060 when it may run concurrently, so the enclosing function finishes only when the work does and its failures reach the caller. Where firing and forgetting is genuinely intended, make the callback\u0027s whole body a \u0060try { \u2026 } catch (e) { \u2026 }\u0060 that handles the failure, so it cannot escape."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/js/xhr.dart"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dbb1fee248141291dc8b93b3371c2deb3c3866e6081a8529b75a006dd853513"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!serverUrl.startsWith(\u0027http://\u0027) \u0026\u0026 !serverUrl.startsWith(\u0027https://\u0027)\u0060 appears character-identically in 3 files \u2014 lib/network/components/report_server_interceptor.dart, lib/ui/desktop/request/report_servers.dart, lib/ui/mobile/setting/report_servers.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/report_server_interceptor.dart"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4d78082aa5ecc4badb941d908c4b6c521034ed2b903d73bb8c94f2b16bedba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(HardwareKeyboard.instance.isMetaPressed || HardwareKeyboard.instance.isControlPressed) \u0026\u0026 event.logicalKey == LogicalKeyboardKey.keyW\u0060 appears character-identically in 17 files \u2014 lib/ui/content/body.dart, lib/ui/content/panel.dart, lib/ui/desktop/request/request_editor.dart, lib/ui/desktop/setting/request_breakpoint.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba12bee16b19e5dfb46f792de3cd68ebfcd1a80b7255c10f31e96f89e23f71bf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(type == RewriteType.replaceResponseBody || type == RewriteType.replaceRequestBody) \u0026\u0026 rewriteItem.bodyType != ReplaceBodyType.file.name\u0060 appears character-identically in 2 files \u2014 lib/ui/desktop/setting/rewrite/rewrite_replace.dart, lib/ui/mobile/setting/rewrite/rewrite_replace.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb51ce672023e207bbbada69beb72354953d268a3bf01a6b614b4d53bf358372"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(widget.source == RequestEditorSource.breakpointRequest || widget.source == RequestEditorSource.breakpointResponse) \u0026\u0026 !executed\u0060 appears character-identically in 2 files \u2014 lib/ui/desktop/request/request_editor.dart, lib/ui/mobile/request/request_editor.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"515fc4b29f24bba33597959c1aeeb1e11f846f6eeb2a6b912ab719758be56947"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060HardwareKeyboard.instance.isLogicalKeyPressed(LogicalKeyboardKey.escape) \u0026\u0026 Navigator.canPop(context)\u0060 appears character-identically in 5 files \u2014 lib/ui/desktop/setting/request_breakpoint.dart, lib/ui/desktop/setting/request_crypto.dart, lib/ui/desktop/setting/request_map.dart, lib/ui/desktop/setting/request_rewrite.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_breakpoint.dart"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"020b6c679cc472561aa8aca3c41c7a30ca78eba8e505bd91a310e5ca1fa5dcd4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060HardwareKeyboard.instance.isMetaPressed || HardwareKeyboard.instance.isControlPressed\u0060 appears character-identically in 7 files \u2014 lib/ui/desktop/setting/filter.dart, lib/ui/desktop/setting/hosts.dart, lib/ui/desktop/setting/request_breakpoint.dart, lib/ui/desktop/setting/request_crypto.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/filter.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"265a856d6a493ab1a92e6741d7b060c5e2a600b701d232b69e30cf73ca0f54a0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Platforms.isDesktop() \u0026\u0026 widget.windowId != null\u0060 appears character-identically in 8 files \u2014 lib/ui/toolbox/cert_hash.dart, lib/ui/toolbox/json_viewer.dart, lib/ui/toolbox/qr_code_page.dart, lib/ui/toolbox/regexp.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/cert_hash.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b08b1f9ed83b66dbc445f9b1aa83038da7de7c7e4c2db9ba849db74e60a177"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_bodyLanguage == _BodyLanguage.formData || _bodyLanguage == _BodyLanguage.formUrl\u0060 appears character-identically in 2 files \u2014 lib/ui/desktop/request/request_editor.dart, lib/ui/mobile/request/request_editor.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0d8237bcfe9943d519fec0bd9e46d1046f834e19b0ca3cb39465cd6d7dc8227"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_bodyLanguage == _BodyLanguage.none || _bodyLanguage == _BodyLanguage.formData || _bodyLanguage == _BodyLanguage.formUrl\u0060 appears character-identically in 2 files \u2014 lib/ui/desktop/request/request_editor.dart, lib/ui/mobile/request/request_editor.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/request/request_editor.dart"},"region":{"startLine":674}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4d504ce1e0329ec2544f6a54c791e62c56ead7af3e9d478cab7b7c536ae85b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_i \u003C _src.length \u0026\u0026 (_src[_i] == \u0027 \u0027 || _src[_i] == \u0027\\t\u0027 || _src[_i] == \u0027\\n\u0027 || _src[_i] == \u0027\\r\u0027)\u0060 appears character-identically in 2 files \u2014 lib/utils/css_formatter.dart, lib/utils/js_formatter.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/css_formatter.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"f968893ad79cab0fc115fb38493dc961174efa4c79fd0a5cb077014e1ff9ada7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_useRemote \u0026\u0026 script.text.trim().isEmpty\u0060 appears character-identically in 2 files \u2014 lib/ui/desktop/setting/script.dart, lib/ui/mobile/setting/script.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":675}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d97cc7c00c15c5510da36d8439343aa175a0a934504bf865076d9a6d5713333"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060await Platforms.isIpad() \u0026\u0026 context.mounted\u0060 appears character-identically in 4 files \u2014 lib/ui/content/menu.dart, lib/ui/mobile/setting/request_rewrite.dart, lib/ui/mobile/setting/script.dart, lib/utils/export_request.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/menu.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b52170ef9794eda815ee3ce2014938055da4e38b1fb25ff90282ac801cc266"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bodyString.startsWith(\u0027{\u0027) \u0026\u0026 bodyString.endsWith(\u0027}\u0027) || bodyString.startsWith(\u0027[\u0027) \u0026\u0026 bodyString.endsWith(\u0027]\u0027)\u0060 appears character-identically in 4 files \u2014 lib/ui/desktop/setting/rewrite/rewrite_replace.dart, lib/ui/desktop/setting/rewrite/rewrite_update.dart, lib/ui/mobile/setting/rewrite/rewrite_replace.dart, lib/ui/mobile/setting/rewrite/rewrite_update.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"46b1cf7fc0a706fa165110a857532d05766ccad641f4c40cb2a592fe1cfbb4dc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060bytes.isNotEmpty \u0026\u0026 (bytes[0] == 0x7B || bytes[0] == 0x5B)\u0060 appears character-identically in 2 files \u2014 lib/ui/content/web_socket.dart, lib/ui/toolbox/websocket_request.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/web_socket.dart"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"e341b7b11f442ddcb971ac991d98a6d57009e0ad550c94c8657e324dd77aeef4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c == \u0027 \u0027 || c == \u0027\\t\u0027 || c == \u0027\\n\u0027 || c == \u0027\\r\u0027\u0060 appears character-identically in 2 files \u2014 lib/utils/css_formatter.dart, lib/utils/js_formatter.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/css_formatter.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb147d4be4f881d85e4b03e63a4e1c5187a2f1989f5b047ac87830c0139913ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060code.startsWith(\u0027zh\u0027) || code == \u0027th\u0027 || code == \u0027ja\u0027 || code == \u0027ko\u0027\u0060 appears character-identically in 2 files \u2014 lib/ui/desktop/setting/environment.dart, lib/ui/mobile/setting/environment.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/environment.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f34162cfe2ef20cb235fc7a627fc21c3cb2f98fdf3536e42ae6a6a6b22311f1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060element.name == name || element.label == name\u0060 appears character-identically in 2 files \u2014 lib/network/components/manager/request_map_manager.dart, lib/network/components/manager/rewrite_rule.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/manager/request_map_manager.dart"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"042ce424c2757fc64b620a5660cd58729149aa29a5f7af29e29e86046c31c618"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event is KeyDownEvent \u0026\u0026 event.logicalKey == LogicalKeyboardKey.escape\u0060 appears character-identically in 2 files \u2014 lib/ui/component/context_menu.dart, lib/ui/desktop/setting/setting.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/context_menu.dart"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"d187a66c91f7b3f2e8da87c7ff033a8c1609920690d816629555b03995f0f2ec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060host.startsWith(\u0027[\u0027) \u0026\u0026 host.endsWith(\u0027]\u0027)\u0060 appears character-identically in 2 files \u2014 lib/network/channel/host_port.dart, lib/network/channel/network.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/host_port.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"35167d6ddb8621f5137aa26744a2e9cbc0cbf1da4033d7709abfb1ccc5b6676c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item != widget.historyTask.history \u0026\u0026 item.requests != null \u0026\u0026 item.requestLength != item.requests?.length\u0060 appears character-identically in 2 files \u2014 lib/ui/desktop/left_menus/history.dart, lib/ui/mobile/request/history.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/left_menus/history.dart"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84f8bd80528e891cfd7ab6b2326d8b3c28d778ef0e1f699d6acbc8b7a05495e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.remoteUrl != null \u0026\u0026 item.remoteUrl!.trim().isNotEmpty\u0060 appears character-identically in 3 files \u2014 lib/network/components/manager/script_manager.dart, lib/ui/desktop/setting/script.dart, lib/ui/mobile/setting/script.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/manager/script_manager.dart"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"6375ac5866937233e7786d67d6e7a8f47bf97575df514806d8d4bb38f705a0a1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.remoteUrl == null || item.remoteUrl!.trim().isEmpty\u0060 appears character-identically in 2 files \u2014 lib/ui/desktop/setting/script.dart, lib/ui/mobile/setting/script.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":964}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcfb78a2df906d1d9fe44121244c88f4b69d720f107b31e8f4ac33a41a6c3037"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.type == RewriteType.replaceRequestBody || item.type == RewriteType.replaceResponseBody\u0060 appears character-identically in 2 files \u2014 lib/ui/desktop/setting/rewrite/rewrite_replace.dart, lib/ui/mobile/setting/rewrite/rewrite_replace.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3e77a0ac100d692f1f6869d280f5345751f966ed0fd18a624f6f46fbc6922c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060item.type == RewriteType.replaceRequestHeader || item.type == RewriteType.replaceResponseHeader\u0060 appears character-identically in 2 files \u2014 lib/ui/desktop/setting/rewrite/rewrite_replace.dart, lib/ui/mobile/setting/rewrite/rewrite_replace.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/rewrite/rewrite_replace.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde225f110f35b3f89c0d65ac85bcf9eaf2e494221506c6e6cc5497b011cf4ea"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ivSource == \u0027manual\u0027 \u0026\u0026 (val == null || val.trim().isEmpty)\u0060 appears character-identically in 2 files \u2014 lib/ui/desktop/setting/request_crypto.dart, lib/ui/mobile/setting/request_crypto.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/setting/request_crypto.dart"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"58fc4a55d2ca9e2e41e6dda8f426242973d030a2f47107ff184605429d54f51c"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060getMapText\u0060 is public and takes \u0060Map\u003CString, dynamic\u003E map\u0060 from its caller, and it calls itself at line 322 (\u0060getMapText\u0060) with a piece of \u0060map\u0060 \u2014 and nowhere in \u0060getMapText\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. \u0060jsonDecode\u0060 sets no nesting limit: 2 MB of brackets parse to a million levels, while a walk like this one throws \u0060StackOverflowError\u0060 from about 20,000 levels \u2014 40,000 bytes (Dart 3.13 VM; on the web the limit is the browser\u0027s stack). That is an \u0060Error\u0060, not an \u0060Exception\u0060: an \u0060on Exception catch\u0060 around the call does not stop it, so the request, the frame or the isolate fails with it. Thread a depth argument through \u0060getMapText\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/json/json_text.dart"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca87fa6dd8d3b0cccc766a61d7db81df6f6827b8daf93b743bed833103c645c"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060isRequestUnchanged\u0060 is public, takes a document from its caller (line 161) and hands it to \u0060_deepEquals\u0060, which calls itself at line 172 (\u0060_deepEquals\u0060) with a piece of \u0060a\u0060 (and at line 179) \u2014 and nowhere in \u0060_deepEquals\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. \u0060jsonDecode\u0060 sets no nesting limit: 2 MB of brackets parse to a million levels, while a walk like this one throws \u0060StackOverflowError\u0060 from about 20,000 levels \u2014 40,000 bytes (Dart 3.13 VM; on the web the limit is the browser\u0027s stack). That is an \u0060Error\u0060, not an \u0060Exception\u0060: an \u0060on Exception catch\u0060 around the call does not stop it, so the request, the frame or the isolate fails with it. Thread a depth argument through \u0060_deepEquals\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/js/script_engine.dart"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"a459a70be74fd484ea61660ea32ca42bbf4775d809a8f0c38b99014ef08ec149"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_ReportServerEditPageMobileState\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_nameCtrl\u0060 itself (line 176, \u0060TextEditingController\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_nameCtrl.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, \u0060TextEditingController\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_nameCtrl.dispose();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/report_servers.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d04bb2f0ab350540151135f12e76f4d206a625f632e049c27bcd4a4f169b87"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_ReportServerEditPageMobileState\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_matchUrlCtrl\u0060 itself (line 177, \u0060TextEditingController\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_matchUrlCtrl.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, \u0060TextEditingController\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_matchUrlCtrl.dispose();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/report_servers.dart"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e0f653fde8da393492d0a09e57e8263038561f039082a5e36a069816da08ef"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_ReportServerEditPageMobileState\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_serverUrlCtrl\u0060 itself (line 178, \u0060TextEditingController\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_serverUrlCtrl.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, \u0060TextEditingController\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_serverUrlCtrl.dispose();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/report_servers.dart"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"616f604ec25d1fe3e46da6be2133d0ba7901b7d161b279fba962bb633ba26e42"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_PCCertState\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_tabController\u0060 itself (line 81, \u0060TabController\u0060), which makes that instance its own. Nothing in the class releases it \u2014 no \u0060_tabController.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, \u0060TabController\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_tabController.dispose();\u0060 in \u0060dispose()\u0060 before \u0060super.dispose()\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/pc_cert.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"08976ec53c0670d51299410d6fbb6ad893510913caff733cfa98a38be1ab38b8"}},{"ruleId":"X18","level":"warning","message":{"text":"Owned disposable field is never released: \u0060_ScriptConsoleState\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 226, \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":"lib/ui/desktop/setting/script.dart"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e362b83cb34c086ebee20cd97b0b409a7a01ca2c9b03b278c84d1eb98bdb26b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/crypto_body_decoder.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1010b917dbf41629c5ddc71e0dedba8cd36de43031d4dead3b10e987d214fad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/crypto_body_decoder.dart"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f05e801593d5d84004996912bb3f6fcf4e875f6e17059f6c2355bc0e6f2a6e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/crypto_body_decoder.dart"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"72e24254a7eb26f8459c3f90dc5f6b546dc4efbeb1d5d2919777cc471f7e2fe5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/crypto_body_decoder.dart"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d19cb3aed7b825c71097d29b719f94619e2eacc1dd0f0125059145dd6addc5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/css_formatter.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"97a05eb2823f7f3d4d08797e8ef9712b0f1e40ef92ceea2ed9543f86d5b91ed2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/curl.dart"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c04951f7b566eef01850835b27aaed0ff54e44e2c26c0d1911adad7b75753bb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/html_formatter.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"514763e3e423d89b37c6262ecadd9c3beb4e8cc4f700c097b38cc5e45f1ba518"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/js_formatter.dart"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d6c2e7e8b9c1e36150fd0b575d5628f3ba68460d962f84b2a249b9ccf7d8cf1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/lang.dart"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"06679f1dcc998ed5c76169a6e5a3ca81599af80205ad45f34eba49ce873874c0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/lang.dart"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d58bb0ebf242c84aafd49857fbf1f66c396ee968e861145150509a88c68a303"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/multipart.dart"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"383f7199783dfd87eafaa6d3fb96977cf36feab7dbef12b8c88ebf52509b860c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/python.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"44412e555028faed2418c32fd7671bbb44a60052e3fd6dbe027cc5d49687df28"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/quick_share.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab02aad1551deacb7fe2c8eab0fb9236b0c9400e5f4482a674ab6d109409b9b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/xml_formatter.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2262778689411c08af187f278e98d01e505286f0b1116b5b8fa6e53c2ebadb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/cert_hash.dart"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"649c0b81db5a1091b85386885d53aac91926813fea2795177d9f3eaaf6bb6e3d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/websocket_request.dart"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad42a1fea3d84545f2a1bbd3eabd84ff4a46b0dbd74582ab470be313bce2703"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/websocket_request.dart"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2594064f5f27c2c5bb5da531dcbd0ed157503db30d7ec75b48316c10914b4c7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/websocket_request.dart"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa4bffca1b29ec6c54274f204e154a2057322d115663c313bdf716bb9f8d3c2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/websocket_request.dart"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"5da1522e66e64f6dc9066c02874bf21b362e6b856c105532db07a6ab7fd55b96"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/toolbox/websocket_request.dart"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"8287ebbbd2108afafd0bd03ca6c396856a42643164970a37513531cb5b71134a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/mobile.dart"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"3248f9c733598cf99b228d80bc25e95bc3e5513d6c8d384894faefa55659801a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/mobile/setting/client_cert.dart"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"9196bcacd5756902e940f16ce09c8e8ae5c90030757335273550bf59bbcc5c16"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/launch/launch.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9bed07034427caf60ab7846a73422a56e90942f7aec35f89bf7fcbf3e3fa9b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/toolbar/mcp_panel.dart"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1189c3045050595b93d2ab3ca9226d1e95316e84152be9e5818b0473086b71c1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/toolbar/mcp_panel.dart"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"9042928c1b2af570e7c3b38b4a6bb19956a9b064370489a57b432e579ff7d2d7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/cert_installer.dart"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b6cf55a632546d7631ee5dc4ac3a8f1c65464dd4973a294518c337f1064ca4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/desktop/ssl/client_cert.dart"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"96555b168596d6725d90b896546d14a03ddb3d15780cd63e5a8bdab4d8a7eaf8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb3a781623956fd060a9a71280f6a9a3926c6fe275d44c6176e4381a2724926a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3e5e9accc2f13103f25608a433c4b8180bab6d4641fe81b52187a6f97df35f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/body.dart"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"6485f4d342af9d6fbab67b1c2abee85e8eb72924a6f7048c3372a33bf391a976"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/panel.dart"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"751781beccaeba0d4730b4be7139add1ac1c0aeac49244b1b27b23ced788f643"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/panel.dart"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2dab3fc8ebd5a2cc03bf8c4a743a42cd39dbf904b8473ee3347adbdcc1dd3cf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/panel.dart"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c419c72c2cedd3ec7732288d0c3612859315f937dacae746cb0a9421bca4b7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/web_socket.dart"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"8589ec4b9687e6455f11842e5cf8a35adbc1f9548c0788d2de9c87d9f1cf2361"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/content/web_socket.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf1e73cc5b4aeb3f7c6bb26fd838d7b867d3d947b7f333b7f5e3455e438012a1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/search/highlight_text_document.dart"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae630c50be21f5b95b48d815f93bd9602cbf0712114fd307669cdcf3a7cd247e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/search/highlight_text_document.dart"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"db785169309fec2f5236900955ef00fbffe8832d20cdc34a72548076329f56c5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/component/model/search_model.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0d1fa3d6fa0688524391792b2845d657156099154e1a171b5e63aff62abec1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/desktop_update_service.dart"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4318aef17fed0f6d1a2d574afc73237a18669f0d0c359dfb532b589860c9cc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/desktop_update_service.dart"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cbf6e78dd7271c03d944aa8ada34bca2997136f9a9ff92eb8e182975e79971d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/desktop_update_service.dart"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf9065f43708aa43766a83b0323a734b11d5a2462507897f9c60b8d4e10d848"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/desktop_update_service.dart"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1b47096ce1a877bf6c0f8aea9cfab62d15a407932943d7dc68c230d14a5fd9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/macos_zip_updater.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c11c484d78876f3e1faeaf6b61429b5189ac1918414b4cda0981d3dd1dbd319"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/macos_zip_updater.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"29579a4291c506d3bff09e2b997b139af6a16eec10de43acf5dbeda247974f2a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/macos_zip_updater.dart"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"e372e891e7eeed62fd67c101f397321a35c92b6645139f2439ac2ecad1c755d1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/macos_zip_updater.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5935d90f000a023a530bdcc9874df899742de011d61e10406241a03542ee5f8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/windows_zip_updater.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"86fa2d5ae921f92a9b8de41853f49aadd633b9b6b1f5b58861e6da3118dfeac2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/windows_zip_updater.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa9379162d8fa7a68447a09151326e266c2ea1b8e48a3cda1263e7c34b65add"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/windows_zip_updater.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"e325cd15e438358987d2f326b510903c8fe4109e1a8fe9dd0803a22dde0ec8a6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/ui/app_update/windows_zip_updater.dart"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f05912af3c7f62ddc4016842ea08ae411f874a348dfec0d5b50d6584a4966824"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/util/cert/x509.dart"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55e474dd0e34a7274e7fffbd07dfa3223fb89b3f4d9450e05ba484e912ead5a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/http.dart"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6395180cad04622e695b9ead1e129982afa807fb84b806923556e122f88e57"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/http.dart"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9a5349a83fb12d7e9c4eaaca2b849723e3e01dd118fdcd540a7c39f0847bd5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/http/http_client.dart"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e452f7c90ddcf1cd19e3bb8a9d4577835afa8f2ebbaf20108aa4c2b4a01fbca"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/manager/client_cert_manager.dart"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c1a2fe819546c9cf29a7fc1d03b833c9bb31e15b49311ef257ca50d6ba5fe5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/manager/client_cert_manager.dart"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a608c286e618196d2622ff7361c36645d72443d8a5e63995608a1f3b9f3fb5c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/components/manager/environment_manager.dart"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe1d64df30554aa42e9d716e63b65347f296fb2adcb27c8edee9ebc687e9112"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060on 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":"lib/network/components/js/xhr.dart"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ddab1dabcf20358869a3c36803a992b13f1f332faaf9ce1d06702a39bac640"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/network.dart"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eee087fc7d93405991ec5360c43d9bd86a895871429a32834d1ce9f0da7490a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/network/channel/network.dart"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e74b27e96de22174c88f40dea67570555039e2ac58f2a33e35af48fd7de26a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/transport/mcp_http_server.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72a6f5dbaf37e8d979965d8ae650e6e718c023b0f53b2e975ee3bc43385e5bb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/capture/flow_store.dart"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"575305533a0aec55a7256314f0430c3383ba440bb679f766bba975381daf5bd8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/mcp/capture/flow_view.dart"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e4e64d1593a7bdc1aeaf6421f7ce706f0a071519638f3689e076e1f90bb229e"}},{"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":"android/app/src/main/kotlin/com/network/proxy/vpn/ConnectionHandler.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de67ee65902f3649839cbedaaf65664db23743d7ee428fe5439bd770bbb72d7"}}],"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-295","guid":"a706c4e2-1232-8859-ae2e-17aa2d41f8e2","name":"Improper Certificate Validation","shortDescription":{"text":"Improper Certificate Validation"},"helpUri":"https://cwe.mitre.org/data/definitions/295.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-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":"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."]}]}