{"$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":"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":"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":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX1","name":"Captive dependencies","shortDescription":{"text":"Captive dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/AX1"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"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":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"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":"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":"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":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"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":"SystemWatcher.poll (cyclomatic 55): SystemWatcher.poll has cyclomatic complexity 55 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcher.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf172f0f82404567817fb494a90bb816d957bf7ae52540f4763758272f7fa292"}},{"ruleId":"D1","level":"warning","message":{"text":"TermKeyListener.mapControlChar (cyclomatic 55): TermKeyListener.mapControlChar has cyclomatic complexity 55 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c56c819380720922049d1d91483ce535f5b953eb4f6ff0e1f401ab8783904cc"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._applyHeadlessEvent (cyclomatic 51): _ScanScreenState._applyHeadlessEvent has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"a614f2f184516ae1804f2a57cc0602c2617183371de5609d61d4e661fcd0984b"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._applyHeadlessEvent (cyclomatic 51): _ScanScreenState._applyHeadlessEvent has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"c949d41507e7daf891abf5cfbd3d37cd55f2dbddbc8345e6d3a677e621220b86"}},{"ruleId":"D1","level":"warning","message":{"text":"FullUnicodeLine.setChar (cyclomatic 38): FullUnicodeLine.setChar has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"3732de037ed3b1e9921119bd5e07702870df4c9974ac6d1d42d37d1852841608"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalEmulator.doEscLeftSquareBracket (cyclomatic 37): TerminalEmulator.doEscLeftSquareBracket has cyclomatic complexity 37 (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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e476b66b709daf605e660ad4482f64e0b4b89b201a5f7926dedb848716ae538"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalEmulator.selectGraphicRendition (cyclomatic 36): TerminalEmulator.selectGraphicRendition has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e0bcf388e25ba7367401a9dfc6bc70915112c806932fc808d81a4a5113f443b"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._scanFiles (cyclomatic 35): _ScanScreenState._scanFiles has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c2ef6e4c6831a1b4f941524e65de17eebdee445e909a600c63ada6e44d1431"}},{"ruleId":"D1","level":"warning","message":{"text":"TermKeyListener.keyDown (cyclomatic 35): TermKeyListener.keyDown has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e765d53ad3c81325985612d13f72be46ec0065dc13a518ded5d5aa268e0b64d"}},{"ruleId":"D1","level":"warning","message":{"text":"FullVpnController._connectInternal (cyclomatic 34): FullVpnController._connectInternal 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/vpn/services/full_vpn_backend.dart"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6db90bd1a303e38a4abdc9af998808b36c1d5b262b78bbb1d959bfe327a774"}},{"ruleId":"D1","level":"warning","message":{"text":"MainActivity.configureFlutterEngine (cyclomatic 34): MainActivity.configureFlutterEngine has cyclomatic complexity 34 (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":"android/app/src/main/kotlin/com/colourswift/cssecurity/MainActivity.kt"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06d309e563d66d2f74075543cf5c99284824956105595fe55b0c3219ffecb46"}},{"ruleId":"D1","level":"warning","message":{"text":"_CleanerDetailScreenState.build (cyclomatic 33): _CleanerDetailScreenState.build has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/detail_screen.dart"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb07c6406799483c1d48a44bba1b0121642da082d94d1ca3032dd485945633f"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._applyHeadlessEvent (cyclomatic 33): _ScanScreenState._applyHeadlessEvent has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa239e09a231d9c6885b68ee17bf9cceaa43b1eb6a8a678774806e315b8d32d"}},{"ruleId":"D1","level":"warning","message":{"text":"_FullVpnModeScreenState._connectionScreen (cyclomatic 33): _FullVpnModeScreenState._connectionScreen has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/full_vpn_mode_screen.dart"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"268b3888f6a7bd5cf2c3f1bed389566c8257fd5df4cf35c30babf796b301b33d"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalEmulator.process (cyclomatic 33): TerminalEmulator.process has cyclomatic complexity 33 (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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb384c5890b81d80ad108e63036ae525ffe921b22cb0b17af3b3a59822f2319d"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsScreenState.build (cyclomatic 32): SettingsScreenState.build has cyclomatic complexity 32 (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/screens/settings/settings_screen.dart"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"d657f77f183e0bf90954ded1d023f48c5c3696f9e6c0ddd6cc03f643b080b3fd"}},{"ruleId":"D1","level":"warning","message":{"text":"VpnConnectionController.runConnect (cyclomatic 32): VpnConnectionController.runConnect has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/vpn/backend_port/core/VpnConnectionController.kt"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ec9a26a3001b37c7ed97ff6d42b3c0cadb4d41fae9a8190cd60d5406db65c1"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalEmulator.updateSize (cyclomatic 31): TerminalEmulator.updateSize has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b3cd6ca166cf5127a6a0d9a22cb98ff066dad545b889fbea245f0ca4cbd57b"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscriptScreen.internalGetTranscriptText (cyclomatic 31): TranscriptScreen.internalGetTranscriptText 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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TranscriptScreen.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0bebd7b1e441b835a94c23bf1510e30afbb58093721cb05c1646e1d6e77dc8"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemWatcherUserService.externalSnapshot (cyclomatic 28): SystemWatcherUserService.externalSnapshot 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":"android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c910ad3e612974724e9ac26ac2b371c59077bed8ba557d237eefd5ee8b8565"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._runSingleFileScan (cyclomatic 27): _ScanScreenState._runSingleFileScan 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/screens/home/scan_screen.dart"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"477252e47777c35545dc50f42ae14910baff3baf7b5d5310b7ab11312c6daf66"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._runSingleFileScan (cyclomatic 27): _ScanScreenState._runSingleFileScan 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/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"481919c71ca4d5a283130639b7899af4ab63406fd72e02babb2b96d5c396dbcf"}},{"ruleId":"D1","level":"warning","message":{"text":"_NetworkAdvancedScreenState._blocklistsTab (cyclomatic 26): _NetworkAdvancedScreenState._blocklistsTab has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fd72e852def382e5f1874a0caaf64580ff30a38f7faee498da6b0b52fc61d7"}},{"ruleId":"D1","level":"warning","message":{"text":"_NetworkAdvancedScreenState._blocklistsTab (cyclomatic 26): _NetworkAdvancedScreenState._blocklistsTab has cyclomatic complexity 26 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"5265d11ec838469c23dc2bf6b3301d3cff0ccd6d93cc9624bc1bce29247ce0bf"}},{"ruleId":"D1","level":"warning","message":{"text":"_AvHomeScreenState._loadProtectionState (cyclomatic 24): _AvHomeScreenState._loadProtectionState has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home_screen.dart"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"850f9cdf38a0327671da7fdd9d31547743d6c4f9ca82aec25e74fcbe771dda76"}},{"ruleId":"D1","level":"warning","message":{"text":"SystemWatcher.selectFsAttribution (cyclomatic 24): SystemWatcher.selectFsAttribution has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcher.kt"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"272b2394cce324519f9bdadeaa2d8e8a5d3fceea7d1fe890273c54877217bb50"}},{"ruleId":"D1","level":"warning","message":{"text":"AXTerminalPlugin.register (cyclomatic 24): AXTerminalPlugin.register has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/bridge/AXTerminalPlugin.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"daef6735bf7c97df7b946d207b4aedd56dd43254b08091e98d30177bbf9da47d"}},{"ruleId":"D1","level":"warning","message":{"text":"TranscriptScreen.drawText (cyclomatic 24): TranscriptScreen.drawText has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TranscriptScreen.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d3322e72d368d83667451441162dc83a8bd9f0448a2f3ba1ea48f247a93509"}},{"ruleId":"D1","level":"warning","message":{"text":"EmulatorView.createLinks (cyclomatic 24): EmulatorView.createLinks has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca422cd6a3e7aa4f526918395543a4406c50bd23b14a2ae79498f8460b908f6"}},{"ruleId":"D1","level":"warning","message":{"text":"ScanWorker._entry (cyclomatic 23): ScanWorker._entry 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/screens/scan/main_scan_ui/scan_isolate_worker.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"0527260ca6c1a12540ad4cb61a239b362b8742e2e97842cb362828845290441b"}},{"ruleId":"D1","level":"warning","message":{"text":"crate::android::app::src::main::jniLibs::trimmed_Engine::av_scan_inner (cyclomatic 23): crate::android::app::src::main::jniLibs::trimmed_Engine::av_scan_inner 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":"android/app/src/main/jniLibs/trimmed_Engine.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee9aa0229514ee9e39af982738ac6633cf569dc7ee63325219c0b27ee3903e5"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._runSingleAppScan (cyclomatic 22): _ScanScreenState._runSingleAppScan has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"157e2469c34502503ee58f3bfa6ba9b9f4e9712dca3cd3477f25b6b1a11fb1c6"}},{"ruleId":"D1","level":"warning","message":{"text":"_CleanerLitePaneState.build (cyclomatic 22): _CleanerLitePaneState.build has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_lite_screen.dart"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd24a327b28bbb3c1806932ede1019935fce39ec4bcb6b4d6ba81e383074e8c"}},{"ruleId":"D1","level":"warning","message":{"text":"ScanWorker._entry (cyclomatic 22): ScanWorker._entry has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"b166b58f07cd2509f2dc8463109dd9b8ce62660e41aa629e7ba44ea1c55eb480"}},{"ruleId":"D1","level":"warning","message":{"text":"FullVpnController.fetchUsage (cyclomatic 22): FullVpnController.fetchUsage has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: FullVpnController.statusText (cyclomatic 26) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca031f799fdd7fa3f41e50eb43a7d016b410aaf4c9c7063ad48a51d0fca0f3e"}},{"ruleId":"D1","level":"warning","message":{"text":"PurchaseService._handlePurchaseUpdates (cyclomatic 22): PurchaseService._handlePurchaseUpdates has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/purchase_service.dart"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e186dcdb23412a0702276cea65e989bf127e2ca1977dc88512304cf2aad70a"}},{"ruleId":"D1","level":"warning","message":{"text":"RealtimeProtectionService._runScheduledScan (cyclomatic 22): RealtimeProtectionService._runScheduledScan has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"51b4bc5f6c50b4e6179e36dd7c7d10001e69956a1968174095b1f7eb2c46645c"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalController._buildCommands (cyclomatic 22): TerminalController._buildCommands has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal_controller.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"f598a1a008e1cbbb54e6f1d7bf89bd7dc01a3d1baef58819f1fe8f5321fcfc6e"}},{"ruleId":"D1","level":"warning","message":{"text":"FullVpnController.fetchUsage (cyclomatic 22): FullVpnController.fetchUsage has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/vpn/services/full_vpn_backend.dart"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"992729966c3e9e05fd9785ab26a728f0f434f528ea6c0fcd4189609b548d7964"}},{"ruleId":"D1","level":"warning","message":{"text":"InterceptOutputStream.processByte (cyclomatic 22): InterceptOutputStream.processByte has cyclomatic complexity 22 (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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/bridge/PtyTermSession.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"703ba1ba9ed85985ffdcd57a29d8f624b024a1d70831dc5a358e5f8412534499"}},{"ruleId":"D1","level":"warning","message":{"text":"UnicodeTranscript.blockCopy (cyclomatic 22): UnicodeTranscript.blockCopy has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0fcb0694418b8bdc22f8d7c788759abc2408b28cf9fe709c7e3070ae77bc43"}},{"ruleId":"D1","level":"warning","message":{"text":"UnicodeTranscript.resize (cyclomatic 22): UnicodeTranscript.resize has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"af2bc87892a22b379a13aded21a1beaafbebedc756f7de755ce3d22166da2583"}},{"ruleId":"D1","level":"warning","message":{"text":"_NetworkAdvancedScreenState._usageCard (cyclomatic 21): _NetworkAdvancedScreenState._usageCard 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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26d976a384ada589acff105016034de1909c4dc3a4ecd6503a3b6531d98ac7b"}},{"ruleId":"D1","level":"warning","message":{"text":"_NetworkAdvancedScreenState._usageCard (cyclomatic 21): _NetworkAdvancedScreenState._usageCard 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/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d45b32991e23d3cf60b23a99a58d77f9d1e389e74995f0f7d2965e881df576d"}},{"ruleId":"D1","level":"warning","message":{"text":"FastAppsPlugin.onMethodCall (cyclomatic 21): FastAppsPlugin.onMethodCall has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/MainActivity.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"3637fc8e96e59fbde90f66afab3b303e7b1700357236bc65967f953170763b85"}},{"ruleId":"D1","level":"warning","message":{"text":"DeviceAppsPlugin.onMethodCall (cyclomatic 21): DeviceAppsPlugin.onMethodCall has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/device_apps-2.2.0/android/src/main/java/fr/g123k/deviceapps/DeviceAppsPlugin.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53cc2dc0f430c89690439c6e99ce6530103542a529df1a955e6f890bb0f5da5"}},{"ruleId":"D1","level":"warning","message":{"text":"PurchaseService._buySubscriptionBasePlan (cyclomatic 20): PurchaseService._buySubscriptionBasePlan has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/purchase_service.dart"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"55d4a42de5c8c7b404ccb48fb5da000c5e00831b85eed2e72d1f7173f3980b8f"}},{"ruleId":"D1","level":"warning","message":{"text":"QuarantineService.listAll (cyclomatic 20): QuarantineService.listAll has cyclomatic complexity 20 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/quarantine_service.dart"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc4ea641e76c1668c49d14bc34b069d6c46d3c5c0097bd1385eadd5d2a5ada0"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalEmulator.doEscLSBQuest (cyclomatic 20): TerminalEmulator.doEscLSBQuest has cyclomatic complexity 20 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d554450fbdcc06a6e01e0f1e85e861d89714cd6804dcde9c16a526029763846"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScheduledScansScreenState.build (cyclomatic 19): _ScheduledScansScreenState.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/screens/scan/scheduled_scan_screen.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a60d777f655b348f026040ad8ef1b6cec85eed06eee5fcdcffbae7034c53fe1"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._runSmartScan (cyclomatic 19): _ScanScreenState._runSmartScan has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7225b7e0b84199d1d4f314c48e375c15788ceb0827abba1f9446beaebf3fec6"}},{"ruleId":"D1","level":"warning","message":{"text":"CommunitySubmissionService.processManualDetections (cyclomatic 19): CommunitySubmissionService.processManualDetections has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/scan api/community_submissions/community_submission_service.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e45b1df1557dfb079e978f4dab942bec5e18033ce616501721d1358491fec45"}},{"ruleId":"D1","level":"warning","message":{"text":"_ProScreenState.build (cyclomatic 18): _ProScreenState.build has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/pro/pro_screen.dart"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b41fc55d70c43ed5fcda3e64d068a53c2b3efed5b521c490b584182ad7a890"}},{"ruleId":"D1","level":"warning","message":{"text":"_CleanerLitePaneState._runCleaner (cyclomatic 18): _CleanerLitePaneState._runCleaner 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/screens/scan/cleaner_lite_screen.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeacf19c128835d574587a5dcef65936445a2eb04a83a1cb2a2e99d17929ad83"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._runSingleAppScan (cyclomatic 18): _ScanScreenState._runSingleAppScan 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/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7bf80ca16c40143f421be05d9753d685e894ed7f26ec8f4881f19bd770a516"}},{"ruleId":"D1","level":"warning","message":{"text":"LiteVpnController._fetchExitLocation (cyclomatic 18): LiteVpnController._fetchExitLocation 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/screens/vpn/lite_vpn_controller.dart"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"56dff70b77d9188c34c6c670166695902a39dca037d984736f99f40b0e345bf7"}},{"ruleId":"D1","level":"warning","message":{"text":"RealtimeProtectionService._scanSingleFile (cyclomatic 18): RealtimeProtectionService._scanSingleFile has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"4638d553366a32217fe20689762ab9585be2737d7974a46434b266c4317c458f"}},{"ruleId":"D1","level":"warning","message":{"text":"UnicodeTranscript.getLine (cyclomatic 18): UnicodeTranscript.getLine 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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51bfaaebbaa1c72218b1e02422f5edec0ea51f4ac90ff27b7878a50027c81da"}},{"ruleId":"D1","level":"warning","message":{"text":"ApkAnalyserController.analyseApk (cyclomatic 17): ApkAnalyserController.analyseApk 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/screens/apkAnalyser/apk_analyser_controller.dart"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac260e018f216a622c4b48ae5faaa8d065911051b5be231dd19fbfeec510921c"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._runHeadlessMultiScan (cyclomatic 17): _ScanScreenState._runHeadlessMultiScan 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/screens/home/scan_screen.dart"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4608cfbcb8937d6670bd8f3d40fc4de7750c5ef719a4728d132efa473daa91"}},{"ruleId":"D1","level":"warning","message":{"text":"_CleanerLitePaneState._card (cyclomatic 17): _CleanerLitePaneState._card 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/screens/scan/cleaner_lite_screen.dart"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f08b00d5aab19e9282cdcff89ff42358c49c0d5c9925bae3563c1fec09c58be"}},{"ruleId":"D1","level":"warning","message":{"text":"_CleanerProPaneState._scanLogs (cyclomatic 17): _CleanerProPaneState._scanLogs 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/screens/scan/cleaner_pro_screen.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"be7a550d905d5ab9131db0ab884e2969fe87d229b18ae370f46c91cc1e2e35d1"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._runHeadlessMultiScan (cyclomatic 17): _ScanScreenState._runHeadlessMultiScan 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/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c0580745f15f29a92cf9c5ac95f6bb99cc6b13dbecc011c23582001beea9f0"}},{"ruleId":"D1","level":"warning","message":{"text":"UnicodeTranscript.charWidth (cyclomatic 17): UnicodeTranscript.charWidth has cyclomatic complexity 17 (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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1312a0c32aa570279a4eff84df9e35cfb3dc18fb7d270943a8f4803e55ecb54"}},{"ruleId":"D1","level":"warning","message":{"text":"PaintRenderer.drawTextRun (cyclomatic 17): PaintRenderer.drawTextRun has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/render/PaintRenderer.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfe0cddd21cb405bf26154c3c1c36843e9c63b1d6fb1347b84c7fad6ad45a538"}},{"ruleId":"D1","level":"warning","message":{"text":"crate::android::app::src::main::jniLibs::trimmed_Engine::init_engine_any (cyclomatic 17): crate::android::app::src::main::jniLibs::trimmed_Engine::init_engine_any has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/jniLibs/trimmed_Engine.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed13650da87900005b34a80aa811a636dbc25036c41b9b9ce5866e320bdaa541"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._startScan (cyclomatic 16): _ScanScreenState._startScan 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/foundation.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43456da2ae362ca0fa4affba74123165f7d3ec85c4ffa10306af07a4f1e948e"}},{"ruleId":"D1","level":"warning","message":{"text":"_SafeWebViewScreenState._verifyAndLoad (cyclomatic 16): _SafeWebViewScreenState._verifyAndLoad 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/screens/link checker/webview_screen.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a9304a04fca7ab3c2cc865347e9c86c5d1bc3c6ae14ecdfd74ba8f7dea12aac"}},{"ruleId":"D1","level":"warning","message":{"text":"_AppManagerScreenState.build (cyclomatic 16): _AppManagerScreenState.build has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_app_manager_screen.dart"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4703dcb4ab3094847f47f3961fd648cfb8eae0d94d5dc563fab4c571d5d374"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._buildResult (cyclomatic 16): _ScanScreenState._buildResult 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/screens/scan_screen.dart"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"b239896a23afb557ec06b9ed24b353db4878fa59e7eaa5e28ff21ab69fc5f114"}},{"ruleId":"D1","level":"warning","message":{"text":"_ScanScreenState._runSingleFileScan (cyclomatic 16): _ScanScreenState._runSingleFileScan 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/screens/scan_ui_screen.dart"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3182dbeee5d46e430466413e82a22804b254db8d2f6babc5a2cdb450a7f7eae"}},{"ruleId":"D1","level":"warning","message":{"text":"ScanController.scanFiles (cyclomatic 16): ScanController.scanFiles has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/scan_controller.dart"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"e672880cd05aa0de71c6eb48015e6798a092e56eeeef5977a830f5fe2d53d0d4"}},{"ruleId":"D1","level":"warning","message":{"text":"CSForegroundService.startPackageReceiver (cyclomatic 16): CSForegroundService.startPackageReceiver has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0523ec56e04dc2b045a0258fcf4a80f26abea45e9ac9f84d2339011ea66bdd"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemWatcher.poll (cognitive 91): SystemWatcher.poll has cognitive complexity 91 (threshold 15). Drivers by points: if/else 37 (62 pts), boolean chains 12, loops 8 (10 pts), match/switch 2 (4 pts), error handling 2 (3 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcher.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2ec072c7c37287aba61da640dd816a0a3f05b59a2f84b92eec24cea663b4d1"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._applyHeadlessEvent (cognitive 85): _ScanScreenState._applyHeadlessEvent has cognitive complexity 85 (threshold 15). Drivers by points: if/else 44 (77 pts), boolean chains 8 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"1826605713e1ac7f830260875c1c3c95dbf6d8cc1d332085ca4ed3fd751d4efa"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._applyHeadlessEvent (cognitive 85): _ScanScreenState._applyHeadlessEvent has cognitive complexity 85 (threshold 15). Drivers by points: if/else 44 (77 pts), boolean chains 8 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"648f7da972f902992fcd75c9d868bfd87da5fd2e62bceab95f45a229cb32e561"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptScreen.internalGetTranscriptText (cognitive 75): TranscriptScreen.internalGetTranscriptText has cognitive complexity 75 (threshold 15). Drivers by points: if/else 23 (57 pts), loops 4 (11 pts), boolean chains 4, error handling 1 (3 pts) (nesting depth added 43). To reduce it, split the body into named stages: move each independent step or branch into 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/colourswift/cssecurity/terminal/emulator/TranscriptScreen.java"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"16450c5da2d96cc244a100ac50d08339d82c2c688b19fb0ff6eaa717d763028f"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeProtectionService._runScheduledScan (cognitive 72): RealtimeProtectionService._runScheduledScan has cognitive complexity 72 (threshold 15). Drivers by points: if/else 13 (40 pts), error handling 6 (17 pts), ternaries 2 (12 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 49). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef76c48eb516ac4c26f1200ce5d04da99a39e99fae6143667b5881e41853354"}},{"ruleId":"D2","level":"warning","message":{"text":"EmulatorView.createLinks (cognitive 69): EmulatorView.createLinks has cognitive complexity 69 (threshold 15). Drivers by points: if/else 16 (37 pts), loops 9 (23 pts), ternaries 2 (8 pts), boolean chains 1 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2902ff3dd8f92e15afae93d7a3a8434d4a488084cdbb7163cba0567966e8fd8"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._scanFiles (cognitive 68): _ScanScreenState._scanFiles has cognitive complexity 68 (threshold 15). Drivers by points: if/else 19 (40 pts), loops 5 (11 pts), boolean chains 8, error handling 2 (8 pts), ternaries 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c904c2522e8107dc44102263367f6aad0ae72d9f43d628428f30d6e774a2d2c"}},{"ruleId":"D2","level":"warning","message":{"text":"FullUnicodeLine.setChar (cognitive 66): FullUnicodeLine.setChar has cognitive complexity 66 (threshold 15). Drivers by points: if/else 34 (51 pts), boolean chains 10, ternaries 1 (3 pts), loops 1 (2 pts) (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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"873e6938b3dc6793a571215e7509164d5b3de3c21869b017ba4cd24279098f7f"}},{"ruleId":"D2","level":"warning","message":{"text":"PurchaseService._handlePurchaseUpdates (cognitive 62): PurchaseService._handlePurchaseUpdates has cognitive complexity 62 (threshold 15). Drivers by points: if/else 12 (45 pts), error handling 2 (10 pts), boolean chains 6, loops 1 (nesting depth added 41). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/purchase_service.dart"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b35871df9cb89dc522e3f27355e37c86efec77d97b867222e40f199a420a0d"}},{"ruleId":"D2","level":"warning","message":{"text":"UnicodeTranscript.blockCopy (cognitive 60): UnicodeTranscript.blockCopy has cognitive complexity 60 (threshold 15). Drivers by points: if/else 17 (43 pts), loops 4 (12 pts), boolean chains 5 (nesting depth added 34). To reduce it, split the body into named stages: move each independent step or branch into 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/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc653bda1a6f103113f3aae30a49a98369bba4890ecf419e7b7b5dd2882ba29b"}},{"ruleId":"D2","level":"warning","message":{"text":"TermKeyListener.mapControlChar (cognitive 56): TermKeyListener.mapControlChar has cognitive complexity 56 (threshold 15). Drivers by points: if/else 31 (33 pts), boolean chains 23 (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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java"},"region":{"startLine":429}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd0208af07be0dbddee3d0717d7253f701940696823092eb1ca40817bcd3f73"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._applyHeadlessEvent (cognitive 55): _ScanScreenState._applyHeadlessEvent has cognitive complexity 55 (threshold 15). Drivers by points: if/else 28 (49 pts), boolean chains 6 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff7f5a09c1d41d31b7bb3778b8ab41eb232397f76da509bb58945238f034db7"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemWatcherUserService.externalSnapshot (cognitive 54): SystemWatcherUserService.externalSnapshot has cognitive complexity 54 (threshold 15). Drivers by points: if/else 14 (35 pts), boolean chains 8, loops 4 (6 pts), error handling 2 (5 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"32946084d1601efdde3c4930761e4b1c4a12782e6dc256ab3f9c7e80ff9d8660"}},{"ruleId":"D2","level":"warning","message":{"text":"FastAppsPlugin.onMethodCall (cognitive 53): FastAppsPlugin.onMethodCall has cognitive complexity 53 (threshold 15). Drivers by points: if/else 13 (27 pts), error handling 6 (18 pts), loops 2 (6 pts), boolean chains 1, match/switch 1 (nesting depth added 30). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/MainActivity.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd9057384e33710170e061036056cf1110ddb19af93500587eadb2e4efdda7f"}},{"ruleId":"D2","level":"warning","message":{"text":"crate::android::app::src::main::jniLibs::trimmed_Engine::av_scan_inner (cognitive 51): crate::android::app::src::main::jniLibs::trimmed_Engine::av_scan_inner has cognitive complexity 51 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 7 (19 pts), match/switch 2 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/jniLibs/trimmed_Engine.rs"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf826c765256638895cb4c0014415ab6f454c63733b8b0e4b36fe387311566b"}},{"ruleId":"D2","level":"warning","message":{"text":"_AvHomeScreenState._loadProtectionState (cognitive 48): _AvHomeScreenState._loadProtectionState has cognitive complexity 48 (threshold 15). Drivers by points: if/else 10 (19 pts), error handling 6 (17 pts), ternaries 3 (7 pts), boolean chains 5 (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/screens/home_screen.dart"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6328f2caec05805785aae6d0c1c709c4353763dae443755dc4b480b9493eb5"}},{"ruleId":"D2","level":"warning","message":{"text":"UnicodeTranscript.resize (cognitive 45): UnicodeTranscript.resize has cognitive complexity 45 (threshold 15). Drivers by points: if/else 19 (34 pts), loops 3 (7 pts), boolean chains 4 (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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"364a199c4ad4e3b1d64dfdc9a28c7c0d25e5a35d379664c2b57b171da675158d"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._runSingleFileScan (cognitive 44): _ScanScreenState._runSingleFileScan has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 6, error handling 2 (5 pts), ternaries 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5702fc2fea04c553290c0a8da3e1ee7a582b2339356d8277610c2162ab3f24e"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._runSingleFileScan (cognitive 44): _ScanScreenState._runSingleFileScan has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 6, error handling 2 (5 pts), ternaries 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d5e4df474166230e44005a644720569a69b364f617e02ad35dc6e4b8fac7b45"}},{"ruleId":"D2","level":"warning","message":{"text":"FullVpnController._connectInternal (cognitive 44): FullVpnController._connectInternal has cognitive complexity 44 (threshold 15). Drivers by points: if/else 26 (36 pts), boolean chains 4, error handling 2, loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/vpn/services/full_vpn_backend.dart"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"383bb930900ed8e5a8f5fafc0d91060fd9a3d6f95868af19a289802c744ee851"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalEmulator.selectGraphicRendition (cognitive 44): TerminalEmulator.selectGraphicRendition has cognitive complexity 44 (threshold 15). Drivers by points: if/else 29 (37 pts), boolean chains 6, loops 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c1df47506b943201e65054228748737356e4fb5411e416669e2b6c091f2d15"}},{"ruleId":"D2","level":"warning","message":{"text":"TermKeyListener.keyDown (cognitive 44): TermKeyListener.keyDown has cognitive complexity 44 (threshold 15). Drivers by points: if/else 20 (37 pts), boolean chains 6, match/switch 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d231a4b5d23488953643472785ec79fcf492fb8dbcecf7f92165710d3e940e8"}},{"ruleId":"D2","level":"warning","message":{"text":"_CleanerDetailScreenState.build (cognitive 43): _CleanerDetailScreenState.build has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 18 (22 pts), if/else 12 (15 pts), boolean chains 6 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/detail_screen.dart"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"636870563bf3e6d6f770f5611d00323d2786eb30001da3206cd2f54f0ad293ad"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalEmulator.updateSize (cognitive 43): TerminalEmulator.updateSize has cognitive complexity 43 (threshold 15). Drivers by points: if/else 25 (33 pts), boolean chains 6, loops 3 (4 pts) (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"4927cbc213a939dcc8e0066c8ab6d7e3bcc9f2fcf90f44e146535f54a27f3672"}},{"ruleId":"D2","level":"warning","message":{"text":"AXTerminalPlugin.register (cognitive 41): AXTerminalPlugin.register has cognitive complexity 41 (threshold 15). Drivers by points: if/else 15 (31 pts), error handling 2 (6 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 21). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/bridge/AXTerminalPlugin.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"36edccfbd37d71ef79e6da36826236e404cab78b50524de1bb88a1255ffb16e6"}},{"ruleId":"D2","level":"warning","message":{"text":"ScanWorker._entry (cognitive 40): ScanWorker._entry has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (27 pts), loops 2 (8 pts), boolean chains 4, error handling 1 (nesting depth added 24). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"80224e4cb2845e727e0ac55e65435bf33adbaba41f6b8199ed5bf2c444f6984b"}},{"ruleId":"D2","level":"warning","message":{"text":"ScanWorker._entry (cognitive 38): ScanWorker._entry has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 2 (6 pts), boolean chains 5, error handling 4 (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/screens/scan/main_scan_ui/scan_isolate_worker.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"4160dc216ece83ee463d2cc9d2089390533d31da7be6904ea623e9743813186d"}},{"ruleId":"D2","level":"warning","message":{"text":"ScanWorker._entry (cognitive 37): ScanWorker._entry has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 2 (6 pts), boolean chains 5, error handling 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/screens/scan_ui_screen.dart"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e59044ae81b61713a4d09e2cc3cd14f02792224b63ba24fee362004ce0a358"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsScreenState.build (cognitive 37): SettingsScreenState.build has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 15 (20 pts), if/else 13 (15 pts), boolean chains 1, match/switch 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings/settings_screen.dart"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e983774433f325e4c97ec1de0ae666ceae2afec4c38173aaef4b1825eb6b8a"}},{"ruleId":"D2","level":"warning","message":{"text":"CommunitySubmissionService.processManualDetections (cognitive 37): CommunitySubmissionService.processManualDetections has cognitive complexity 37 (threshold 15). Drivers by points: if/else 10 (22 pts), error handling 2 (6 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/scan api/community_submissions/community_submission_service.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"8972aaba6787975c170c65a87577c04416f85909e5d67745cc1f3ab6ed43b6dc"}},{"ruleId":"D2","level":"warning","message":{"text":"MainActivity.configureFlutterEngine (cognitive 37): MainActivity.configureFlutterEngine has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (24 pts), match/switch 6 (7 pts), error handling 3 (6 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/MainActivity.kt"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28c68149d7f6a6c199f1beef9039529ab69a5ba788192d9e0ad177657823c45"}},{"ruleId":"D2","level":"warning","message":{"text":"VpnConnectionController.runConnect (cognitive 37): VpnConnectionController.runConnect has cognitive complexity 37 (threshold 15). Drivers by points: if/else 23 (29 pts), boolean chains 4, match/switch 1 (2 pts), error handling 1, loops 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/vpn/backend_port/core/VpnConnectionController.kt"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6a814453450daabf2eb265759722ad0aafd1f42cc6e186bdaec4c1bd495f1f"}},{"ruleId":"D2","level":"warning","message":{"text":"TranscriptScreen.drawText (cognitive 37): TranscriptScreen.drawText has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (27 pts), boolean chains 7, error handling 2, 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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TranscriptScreen.java"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df8cbd6f18090b76c8caea701b08efd57ffebfa7ff2e684be27c9b15c8d0914"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._runRapidScan (cognitive 36): _ScanScreenState._runRapidScan has cognitive complexity 36 (threshold 15). Drivers by points: if/else 7 (27 pts), error handling 2 (6 pts), loops 1 (3 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4254999f137105e3ac1b5c06135401048e3ae9d3686674a349f4b206df51b57"}},{"ruleId":"D2","level":"warning","message":{"text":"_CleanerProPaneState._scanLogs (cognitive 35): _CleanerProPaneState._scanLogs has cognitive complexity 35 (threshold 15). Drivers by points: if/else 7 (18 pts), error handling 2 (8 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_pro_screen.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e7718bb0f4703b5ba3395a97bca536ac8c76b9b7fa24466ba456093a9eaecf"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemWatcher.selectFsAttribution (cognitive 35): SystemWatcher.selectFsAttribution has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (25 pts), boolean chains 10 (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/colourswift/cssecurity/rtp/SystemWatcher.kt"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8a2866e85d1f6f1c1b57c08de8ad6fa493d5915684f566ded74690b319b5094"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._startScan (cognitive 33): _ScanScreenState._startScan has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (24 pts), loops 3 (6 pts), boolean chains 2, error handling 1 (nesting depth added 18). 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/foundation.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"73a74280937a75c6742410ffdfb5754b12018cdb959cf53ce2950098c152626c"}},{"ruleId":"D2","level":"warning","message":{"text":"crate::android::app::src::main::jniLibs::trimmed_Engine::init_engine_any (cognitive 33): crate::android::app::src::main::jniLibs::trimmed_Engine::init_engine_any has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (28 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/jniLibs/trimmed_Engine.rs"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e586e53a567e02d7f8d6cba89cb8c5d5b275248e5b5f0fb19200f009502c83"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._runSmartScan (cognitive 32): _ScanScreenState._runSmartScan has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (21 pts), boolean chains 6, loops 3 (4 pts), error handling 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/screens/scan_screen.dart"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"9620258e5eeedd4d9ce5e3b3eaee4d579ab535619a386fb2a2c99fee93a0bd36"}},{"ruleId":"D2","level":"warning","message":{"text":"_FullVpnModeScreenState._connectionScreen (cognitive 32): _FullVpnModeScreenState._connectionScreen has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 24, boolean chains 5, if/else 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/full_vpn_mode_screen.dart"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa56bfc56cd9a91b0e166bcf64870fe556d87eca7a4d50fcdf7f080941a8a78"}},{"ruleId":"D2","level":"warning","message":{"text":"QuarantineService.listAll (cognitive 32): QuarantineService.listAll has cognitive complexity 32 (threshold 15). Drivers by points: error handling 5 (12 pts), if/else 5 (11 pts), boolean chains 8, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/quarantine_service.dart"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"67806b8dff40b00fa9484ecf438d06a4b36875dc290f15e8bfcd8cc00955bea1"}},{"ruleId":"D2","level":"warning","message":{"text":"ScanWorker._entry (cognitive 32): ScanWorker._entry has cognitive complexity 32 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 2 (6 pts), boolean chains 4, error handling 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/scan_controller.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc365b6c0fa8a86144f64a2d32e847db47479a0586f753e740b8fe3bdece23d5"}},{"ruleId":"D2","level":"warning","message":{"text":"ScanController.scanFiles (cognitive 32): ScanController.scanFiles has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/scan_controller.dart"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebea970aa81c225f72ca28055d344d318025d6263651973ccf0c85d4963a1b32"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeProtectionService._scanSingleFile (cognitive 30): RealtimeProtectionService._scanSingleFile has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 3, error handling 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"f933adfbfa066c7fa49694d574250c7dc84eeefd335f3d79beadecfbee206d59"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._runSingleAppScan (cognitive 29): _ScanScreenState._runSingleAppScan has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 4, ternaries 2 (4 pts), error handling 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/screens/home/scan_screen.dart"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f6ccaaf289a90ec7f9343d29f0d20a43b08279a63f7b9c937d619d9990cf09"}},{"ruleId":"D2","level":"warning","message":{"text":"_NetworkAdvancedScreenState._loadUsage (cognitive 29): _NetworkAdvancedScreenState._loadUsage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 3 (10 pts), boolean chains 2, error handling 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d6efb88ce2635c3dc59050ce29a2ff496a077fe80a4d6e37294e6954582470b"}},{"ruleId":"D2","level":"warning","message":{"text":"_NetworkAdvancedScreenState._loadUsage (cognitive 29): _NetworkAdvancedScreenState._loadUsage has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (16 pts), ternaries 3 (10 pts), boolean chains 2, error handling 1 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"a428f61de347afa5788af029036b8046a1f137460cf1794f9ced888d2d5b084e"}},{"ruleId":"D2","level":"warning","message":{"text":"LiteVpnController._fetchExitLocation (cognitive 29): LiteVpnController._fetchExitLocation has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 4, error handling 1 (2 pts), loops 1, ternaries 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/screens/vpn/lite_vpn_controller.dart"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"8911c6f228ba2ad58ef51dea43b3a82d03733db0641ed92939bb13bc31cf82fc"}},{"ruleId":"D2","level":"warning","message":{"text":"AvHomeScreenState._startUpdate (cognitive 28): AvHomeScreenState._startUpdate has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (19 pts), error handling 2 (5 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/screens/home/home_screen.dart"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c11f717185a23cc76171005c481a8e67bcf77c17307d5738c25abd130ed84e"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsScreenState._loadAccountInfo (cognitive 28): SettingsScreenState._loadAccountInfo has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 4 (12 pts), error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings/settings_screen.dart"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6dc0be577da4abca6621e6721fba9937a2cec7d02ac27b7a08ebaad192d934a"}},{"ruleId":"D2","level":"warning","message":{"text":"PaintRenderer.drawTextRun (cognitive 28): PaintRenderer.drawTextRun has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/render/PaintRenderer.java"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b806242e232f1405482cc0f0cc651e0e29b812627cb5132815ff31b271e5337"}},{"ruleId":"D2","level":"warning","message":{"text":"ApkAnalyserController.analyseApk (cognitive 27): ApkAnalyserController.analyseApk has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 3, ternaries 1 (2 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/screens/apkAnalyser/apk_analyser_controller.dart"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"145cf79f3371315d15ae2fc7758f9c1ab84c6d12250fccba0dbac0f9750d55fb"}},{"ruleId":"D2","level":"warning","message":{"text":"FullVpnController.fetchUsage (cognitive 27): FullVpnController.fetchUsage has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 5, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"540d37e9ffde36f8a7c79841f2cd7303de9255fd3dc35b92f04da6d1ccee8666"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeProtectionService._engineCloudScan (cognitive 27): RealtimeProtectionService._engineCloudScan has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 4 (8 pts), loops 1 (3 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02ca63da31223fdd1f544c99075a2121628d747547dd4adf78a6be8b9727902"}},{"ruleId":"D2","level":"warning","message":{"text":"FullVpnController.fetchUsage (cognitive 27): FullVpnController.fetchUsage has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 5, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/vpn/services/full_vpn_backend.dart"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ed7b561402f8625f0b6fba5ec785871fd4715bbac479faaa46c2bb6876ef9d"}},{"ruleId":"D2","level":"warning","message":{"text":"_QuarantineScreenState.build (cognitive 26): _QuarantineScreenState.build has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2 (6 pts), ternaries 2 (4 pts), boolean chains 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/screens/quarantine/quarantine_screen.dart"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"c049fc1bcd307886fb4c2a8cc5652eb6d07090abf55375e1ffcd96af2e4f9599"}},{"ruleId":"D2","level":"warning","message":{"text":"_NetworkAdvancedScreenState._usageCard (cognitive 26): _NetworkAdvancedScreenState._usageCard has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 10 (13 pts), if/else 6 (8 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"cadddaf9ea73ab0a528700407816edba40d85bb4a7aaafa1ace3155a057fb1f0"}},{"ruleId":"D2","level":"warning","message":{"text":"_NetworkAdvancedScreenState._usageCard (cognitive 26): _NetworkAdvancedScreenState._usageCard has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 10 (13 pts), if/else 6 (8 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":974}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb51238398b00f66272dfa44d112460c4c6113cf7ddf1e08e0be2897d03db4f2"}},{"ruleId":"D2","level":"warning","message":{"text":"ApkAnalyserBridge.extractDeepSignals (cognitive 26): ApkAnalyserBridge.extractDeepSignals has cognitive complexity 26 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 3 (6 pts), boolean chains 1, error handling 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/apkanalyser/ApkAnalyserBridge.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cbdd197f9a44d93514e42f7660999ebf11008c7f4a4f769cac39eff31e1a57"}},{"ruleId":"D2","level":"warning","message":{"text":"UnicodeTranscript.getLine (cognitive 26): UnicodeTranscript.getLine has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 6 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9f2674fa3baf2a9ad9edcc6542dd3e8fb464792436b77c4e5426c8897cfcd29"}},{"ruleId":"D2","level":"warning","message":{"text":"_SafeWebViewScreenState._verifyAndLoad (cognitive 25): _SafeWebViewScreenState._verifyAndLoad has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 2 (3 pts), boolean chains 2, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/link checker/webview_screen.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee78a616429a68748960e7df4d749c00fbd84ab6e3c5aae672ec1597c92db484"}},{"ruleId":"D2","level":"warning","message":{"text":"_AppManagerScreenState._batchUninstall (cognitive 25): _AppManagerScreenState._batchUninstall has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (16 pts), error handling 3 (7 pts), boolean chains 1, 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/screens/scan/cleaner_app_manager_screen.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce191cc8ccc3ea371c29539596a0b7f374191f297d2c6111f703b26c6f7515d"}},{"ruleId":"D2","level":"warning","message":{"text":"_NetworkAdvancedScreenState._blocklistsTab (cognitive 25): _NetworkAdvancedScreenState._blocklistsTab has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, ternaries 10, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"4404ddbeeccd3ac33e40097f47755d6b34dd8ff72a26ea53d4124675b88076e5"}},{"ruleId":"D2","level":"warning","message":{"text":"_NetworkAdvancedScreenState._blocklistsTab (cognitive 25): _NetworkAdvancedScreenState._blocklistsTab has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, ternaries 10, boolean chains 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"a68b84a5fb546a16a14bd4fae8c1c33f8e51d480d7578beec3c18e76959a7cb1"}},{"ruleId":"D2","level":"warning","message":{"text":"AlpineInstaller.extractAlpine (cognitive 25): AlpineInstaller.extractAlpine has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (17 pts), error handling 1 (4 pts), match/switch 1 (3 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/bridge/alpinstaller.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a21dff35bb3433f83aab3d55be9eaf48c03a7f2d9ce1ed5926aa72cfdfdf57"}},{"ruleId":"D2","level":"warning","message":{"text":"DeviceAppsPlugin.onMethodCall (cognitive 25): DeviceAppsPlugin.onMethodCall has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 9, match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/device_apps-2.2.0/android/src/main/java/fr/g123k/deviceapps/DeviceAppsPlugin.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec5a19ec98b47c40596939a7270b10350f7eaca1a4cb69540e662fd221b9659"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._runHeadlessMultiScan (cognitive 24): _ScanScreenState._runHeadlessMultiScan has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 6 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62fe3b65797efd8b84c0a05ffcb370927300438e823dd85bdadc13372a19cb0"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._runHeadlessMultiScan (cognitive 24): _ScanScreenState._runHeadlessMultiScan has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 6 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"321144905db33aaf3be6fdd6d2b8210cd07a04082d137abb0aac0d10dadb6d61"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._runSingleAppScan (cognitive 24): _ScanScreenState._runSingleAppScan has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4, ternaries 2 (4 pts), error handling 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/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"415c969bad27612f49710f91ffd66b2a5d5601dbef7a661ab77a4531f70e89e1"}},{"ruleId":"D2","level":"warning","message":{"text":"_NetworkAdvancedScreenState._setCloudEnabled (cognitive 24): _NetworkAdvancedScreenState._setCloudEnabled has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 4 (8 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/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"839d8898e3365790e4a22cd46d145b080e3855579a06e109c8e2bb4088070748"}},{"ruleId":"D2","level":"warning","message":{"text":"PurchaseService._buySubscriptionBasePlan (cognitive 24): PurchaseService._buySubscriptionBasePlan has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 6, 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/services/purchase_service.dart"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f2d404432c924cefddf967bb68eef163586020d513793eb184f59a94da3639"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._runSingleAppScan (cognitive 23): _ScanScreenState._runSingleAppScan has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), error handling 1 (2 pts), boolean chains 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/screens/scan_ui_screen.dart"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9edf3f7e7ca3b2105f70380756c1c92f610aef96c673647e2054e1d2cb1325"}},{"ruleId":"D2","level":"warning","message":{"text":"DeviceApps.getInstalledApplications (cognitive 23): DeviceApps.getInstalledApplications has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (14 pts), error handling 2 (6 pts), loops 1 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/device_apps-2.2.0/lib/src/plugin.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c38ef08579750fd3969c5153d3b545d32002924eecc16a1b575ae2cf687caf2"}},{"ruleId":"D2","level":"warning","message":{"text":"FullVpnController.fetchServerStatus (cognitive 23): FullVpnController.fetchServerStatus has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 1 (4 pts), error handling 1 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/vpn/services/full_vpn_backend.dart"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"09081dd185171e1047e6e2baf077fb255c3779dd1f98fd844cfa9a97742aee35"}},{"ruleId":"D2","level":"warning","message":{"text":"EmulatorView.onDraw (cognitive 22): EmulatorView.onDraw has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 4, loops 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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"575ca60099caba437118c58d8c41565d755365be693f8493ef0a67d7e619cc04"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanModesScreenState._startMode (cognitive 21): _ScanModesScreenState._startMode has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5 (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/screens/home/scan_modes_screen.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5694c78eed079bd4a5daf7fab6ba84eba944c790bdb15637b612a98447b8a2"}},{"ruleId":"D2","level":"warning","message":{"text":"_CleanerLitePaneState.build (cognitive 21): _CleanerLitePaneState.build has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 12, boolean chains 7, if/else 2. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_lite_screen.dart"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d4658e91d6f02cbdf3f73ab3172c19b0d79819378b514289ec076f32242f0c"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._runSingleFileScan (cognitive 21): _ScanScreenState._runSingleFileScan has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 2, error handling 1 (2 pts), ternaries 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":963}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ea8098c77e0b2f6b0963483239b91bbaee5ae8b23f76a17aff63c1d151bdcf"}},{"ruleId":"D2","level":"warning","message":{"text":"_NetworkAdvancedScreenState._setCloudEnabled (cognitive 21): _NetworkAdvancedScreenState._setCloudEnabled has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), error handling 2 (5 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d685cc050403d388f90cb3b0ab32155047156799a1f80ba308e7dca207ede0d"}},{"ruleId":"D2","level":"warning","message":{"text":"QuarantineService._runLegacyMigration (cognitive 21): QuarantineService._runLegacyMigration has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (4 pts), loops 1 (2 pts), ternaries 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/quarantine_service.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a30f7cc3d6b5f53c3f77bf3c5124d084bde9163102a06b1e21a93f34de1d46"}},{"ruleId":"D2","level":"warning","message":{"text":"CSForegroundService.startPackageReceiver (cognitive 21): CSForegroundService.startPackageReceiver has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 2, error handling 1, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f1823be1e6e375618b6daacccbbe617e34e0697f7be0f694eea50877c375892"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemWatcherUserService.installAlpine (cognitive 21): SystemWatcherUserService.installAlpine has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (13 pts), error handling 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77714050824315834ce9b98b63ca6baeb6ee45954bb0a72cf023011171270a2"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalEmulator.emit (cognitive 21): TerminalEmulator.emit has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf9e0c32b8f41166d112c8d58eba53325d1ce976f998478561dcbe48d3fb7e5"}},{"ruleId":"D2","level":"warning","message":{"text":"_AppManagerScreenState.build (cognitive 20): _AppManagerScreenState.build has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 10 (12 pts), if/else 5 (6 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/screens/scan/cleaner_app_manager_screen.dart"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62db5e6dbbf9c3de12accd82e73ff9f1dda932ff0353034fb26e3e507f7d366"}},{"ruleId":"D2","level":"warning","message":{"text":"FullVpnController._postConnectRefresh (cognitive 20): FullVpnController._postConnectRefresh has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 3 (6 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/vpn/services/full_vpn_backend.dart"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec8a360814c8fadee58bbb6162379b51365ed988949d51a20030e33926304d9"}},{"ruleId":"D2","level":"warning","message":{"text":"FullVpnController._syncWithRuntime (cognitive 20): FullVpnController._syncWithRuntime has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4 (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/vpn/services/full_vpn_backend.dart"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"685280e3224da0aef9f152a54a3f4a5fbc6d5f76fe9ff2ca57e8347928f905d5"}},{"ruleId":"D2","level":"warning","message":{"text":"_LinkCheckScreenState._verifyAndLoad (cognitive 19): _LinkCheckScreenState._verifyAndLoad has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 2, ternaries 1 (2 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/link checker/link_check_screen.dart"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f0adf1a07a47baee0d905ffd3228ded311b40888369ac3650dadca9935b764"}},{"ruleId":"D2","level":"warning","message":{"text":"_CleanerLitePaneState._runCleaner (cognitive 19): _CleanerLitePaneState._runCleaner has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 1 (4 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_lite_screen.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef808698012d304746401fd9d83efd3ca10df2e23d5fa2495a1f549ce4a8824f"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._checkAndStart (cognitive 19): _ScanScreenState._checkAndStart has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"80add1d60a40e0941ae824427011c2b7bc8be2538905bd32ab883d53a24041a2"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._runHeadlessMultiScan (cognitive 19): _ScanScreenState._runHeadlessMultiScan has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"06bd3de2c37d23df0fa58591ed394364b6d148f8e40907a87806b988e874d729"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._checkAndStart (cognitive 19): _ScanScreenState._checkAndStart has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 1 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":887}}}],"partialFingerprints":{"codehealthFindingId/v1":"999f1a8cbde047c51a22ccf1c4600fd9830ebb98218321ae6a0eba8bf4d14408"}},{"ruleId":"D2","level":"warning","message":{"text":"InterceptOutputStream.processByte (cognitive 19): InterceptOutputStream.processByte has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), match/switch 3 (4 pts), boolean chains 1 (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/bridge/PtyTermSession.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"30df82c2badd5a6eae74a7210156f8d8bcc5812a9cce41774106c7818055022a"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalEmulator.process (cognitive 19): TerminalEmulator.process has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47ab01259e8ec2a4b13b6c618c1fa279f64ee223dbf459ba99ddabca8cbb73d"}},{"ruleId":"D2","level":"warning","message":{"text":"TermKeyListener.handleKeyCode (cognitive 19): TermKeyListener.handleKeyCode has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"0712a07b1451800b9ab046defe368261e9429223b2a5105522d5f28001edc476"}},{"ruleId":"D2","level":"warning","message":{"text":"_LinkCheckScreenState._loadHistory (cognitive 18): _LinkCheckScreenState._loadHistory has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (2 pts), error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/link checker/link_check_screen.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0896fe1c5a4a7d76a2a938f5b3c0fca85e7a47ad0a5686ba02088a76af7a7b8"}},{"ruleId":"D2","level":"warning","message":{"text":"_CleanerLitePaneState._card (cognitive 18): _CleanerLitePaneState._card has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 8 (11 pts), if/else 4 (5 pts), boolean chains 1, match/switch 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/screens/scan/cleaner_lite_screen.dart"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9db5feb7e66d2ee710949c9d8a519398d680b3688b641a9ae1ac0747e5648ba"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScheduledScansScreenState.build (cognitive 18): _ScheduledScansScreenState.build has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9, boolean chains 5, if/else 4. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/scheduled_scan_screen.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c624d2a3b6e4dc79a0bcd16d5489d31755b76ec03c6a908cce1af776c048a0c"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._runSingleFileScan (cognitive 18): _ScanScreenState._runSingleFileScan has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"207f8df7e73144a8708250bda39ab3029a29a4e1d3b4f9df1125d0d5307cbfc0"}},{"ruleId":"D2","level":"warning","message":{"text":"_AvFolderPickerState._load (cognitive 18): _AvFolderPickerState._load has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (8 pts), loops 2 (5 pts), ternaries 1 (3 pts), error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/widgets/av_folder_picker.dart"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"04885b8ac094c0c52d29e3655a1edabedaae170040cfdf4425be443b350bd530"}},{"ruleId":"D2","level":"warning","message":{"text":"SystemWatcherUserService.recordEvent (cognitive 18): SystemWatcherUserService.recordEvent has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ee68605bac6fbe54fd614f8beec18f2eb09424bb53df8982d472d328a5f468"}},{"ruleId":"D2","level":"warning","message":{"text":"CSWireGuardService.withIpv6Support (cognitive 18): CSWireGuardService.withIpv6Support has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 2, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/vpn/wireguard/CSWireGuardService.kt"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb1a9fedf8f15f406e43ad4a7192b8daade811f85b132abae507c2e4b0b7503d"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalEmulator.handleUTF8Sequence (cognitive 18): TerminalEmulator.handleUTF8Sequence has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9b6313c50cfa7b18376e1b18ce687a7fda94586375d446e13661b29ae82b232"}},{"ruleId":"D2","level":"warning","message":{"text":"UnicodeTranscript.getLineColor (cognitive 18): UnicodeTranscript.getLineColor has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 5 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"c80e38b32d69ac64a2dcd4708b71dbbd2d9625791d843a61013c03c239de6c2f"}},{"ruleId":"D2","level":"warning","message":{"text":"AvHomeScreenState._loadProtectionState (cognitive 17): AvHomeScreenState._loadProtectionState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), error handling 2 (5 pts), ternaries 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f85abb25cef70b0610097debd9041c8cd1d9f7c4380a71a6af213171f84aa100"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._cloudVerifyOne (cognitive 17): _ScanScreenState._cloudVerifyOne has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), ternaries 2 (4 pts), loops 1 (3 pts), boolean chains 1, 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/screens/home/scan_screen.dart"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"157433a820db4c54bebd00f2328782b9dbdf5b6aa9f43ec08661649d28dd7d9e"}},{"ruleId":"D2","level":"warning","message":{"text":"_ProScreenState.build (cognitive 17): _ProScreenState.build has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 11, boolean chains 5, if/else 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/pro/pro_screen.dart"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"93118782299c714ae0f0a87c7cff65805c2f6e7d23386dcec6aa63d44050feab"}},{"ruleId":"D2","level":"warning","message":{"text":"_ScanScreenState._cloudVerifyOne (cognitive 17): _ScanScreenState._cloudVerifyOne has cognitive complexity 17 (threshold 15). Drivers by points: if/else 3 (8 pts), ternaries 2 (4 pts), loops 1 (3 pts), boolean chains 1, 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/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9b4b23b4df0762db2ed4aae385353d04aa4c7b4be8b52cbb83280e505a2dcef"}},{"ruleId":"D2","level":"warning","message":{"text":"PurchaseService.priceInfoForBasePlan (cognitive 17): PurchaseService.priceInfoForBasePlan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/purchase_service.dart"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b92087f87d9736a868ca259b434cb7e7d5e5e9a1ae015bc2f51795b17cb0552"}},{"ruleId":"D2","level":"warning","message":{"text":"RealtimeProtectionService._scanInstalledApp (cognitive 17): RealtimeProtectionService._scanInstalledApp has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 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/services/realtime_protection_service.dart"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac66e3c59e2d52f9e976074c846db419d1704ab2500a66d9a1938533de9463b7"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalController._runRapidScan (cognitive 17): TerminalController._runRapidScan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 1 (3 pts), boolean chains 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/terminal/terminal_controller.dart"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab38201cd6b34aa6aeb1d12eafccb0f0e0ff2f9d07b4ac456f8884950f4f1b26"}},{"ruleId":"D2","level":"warning","message":{"text":"_LinkCheckScreenState._checkLink (cognitive 16): _LinkCheckScreenState._checkLink has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 1, error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/link checker/link_check_screen.dart"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"98547f8dbc90dd1760f329b1680a88b1645b3caaf9abf2c1f1872933b1389a00"}},{"ruleId":"D2","level":"warning","message":{"text":"_LinkCheckScreenState._analyseTab (cognitive 16): _LinkCheckScreenState._analyseTab has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, ternaries 5 (6 pts), boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/link checker/link_check_screen.dart"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f62f64b9e379d761c6917661f8c9a31ef8ff194fed7e5911987e6d1c703bb3c"}},{"ruleId":"D2","level":"warning","message":{"text":"_PermissionsIntroScreenState.build (cognitive 16): _PermissionsIntroScreenState.build has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8 (9 pts), if/else 5, boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/permissions_intro_screen.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"3033ddfbd40007ee0f8bf34983d29eaf1018b756d9c677c476463bf7897d66f7"}},{"ruleId":"D2","level":"warning","message":{"text":"_CleanerLitePaneState.ensureStoragePermission (cognitive 16): _CleanerLitePaneState.ensureStoragePermission has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 1 (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/screens/scan/cleaner_lite_screen.dart"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fde6d33d9dfebff1446109550247098690f4eb4c18749bf07f75b2a7931bed8"}},{"ruleId":"D2","level":"warning","message":{"text":"_FullVpnSettingsScreenState._usageAndServerPanel (cognitive 16): _FullVpnSettingsScreenState._usageAndServerPanel has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (4 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings/full_vpn_settings_screen.dart"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f623ec2d1d6c96fd6622017e1c49f890cf68cb1e35f088e3464f748da4f308"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalController._buildCommands (cognitive 16): TerminalController._buildCommands has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 2, ternaries 2, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal_controller.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"b29bd76561b58e817178b3dc739a515227f8e799777bb525c67860eb1844f965"}},{"ruleId":"D2","level":"warning","message":{"text":"_ConsoleScreenState._startSession (cognitive 16): _ConsoleScreenState._startSession has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 1 (3 pts), error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal_screen.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"194bafd58934c90871e0a25abc7d82cb42f583155a807386e9b10c9dea445279"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalEmulator.doEscLSBQuest (cognitive 16): TerminalEmulator.doEscLSBQuest has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), match/switch 3 (5 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":925}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e45f03f0cf5bbc06b6663ca1d212ccf4d4c2249359fde5385054234c6345030"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ScanScreenState: ClassTooLong \u2014 1690 significant lines (blank, comment-only and punctuation-only lines excluded), 70 methods. The bar is 400 significant lines; this is 1290 over it, 4.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab2a627cb43c20df6246f0ba50f96de58d9b210590894cc93f0a46cfab70495"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ScanScreenState: ClassTooLong \u2014 1630 significant lines (blank, comment-only and punctuation-only lines excluded), 67 methods. The bar is 400 significant lines; this is 1230 over it, 4.08\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b0570bef77487fe54e3b7c1cf8a8f86dd562fe9024f63ee1a45e62d9a0a813"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: home/scan_screen.dart: FileTooLong \u2014 1750 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: _ScanScreenState (71-2384). The bar is 500 significant lines; this is 1250 over it, 3.50\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/screens/home/scan_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ebcee327b3d83f055bb1f0cb2112f0e14c11866aa291f379c552b083ff533f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: main_scan_ui/scan_screen.dart: FileTooLong \u2014 1726 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: _ScanScreenState (116-2349). The bar is 500 significant lines; this is 1226 over it, 3.45\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/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ff232c85a5ed18dd4370a0f1b2938ff639b41d29866ad28066108a90a406088"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsScreenState.build: MethodTooLong \u2014 build runs 336 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 236 over it, 3.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings/settings_screen.dart"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"70793ace97d9ff70f6c9d27132fef7d147d504280a77fd7a57241831f608dfba"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/scan_ui_screen.dart: FileTooLong \u2014 1583 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: _ScanScreenState (296-1929). The bar is 500 significant lines; this is 1083 over it, 3.17\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/screens/scan_ui_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21992de971bc56b18b397498a04709a83d76587634d243123a8529869a7a511d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ScanScreenState: ClassTooLong \u2014 1195 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 795 over it, 2.99\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/screens/scan_ui_screen.dart"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f446f13ac5c252c9a2fdc1bebac52d130a5627ae7c669dbc3b4e53136c0b5f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TerminalEmulator: ClassTooLong \u2014 1152 significant lines (blank, comment-only and punctuation-only lines excluded), 84 methods. The bar is 400 significant lines; this is 752 over it, 2.88\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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b637452081d8df4e07e5e1115d0e42a77337f6782e7085ea615cfff72dfb1c8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ScheduledScansScreenState.build: MethodTooLong \u2014 build runs 281 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 181 over it, 2.81\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/scheduled_scan_screen.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f58d907c5869122cb891512e976e9b2313a1ed2e921890faa6c00b71abca4e4"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TerminalEmulator: TooManyMethods \u2014 84 methods. The bar is 30 methods; this is 54 over it, 2.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd322cbe61f4e7f3177a741af8604da2caf8f856543e77d3e4a63128383890d8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AvHomeScreenState: ClassTooLong \u2014 988 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 588 over it, 2.47\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/screens/home/home_screen.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab9b02a8bf12b6362d8b01546b02e7375c80dbac2e8d21c9af87e4e9b8329df"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FullVpnController: TooManyMethods \u2014 74 methods. The bar is 30 methods; this is 44 over it, 2.47\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/vpn/services/full_vpn_backend.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"19cf0b166a4f73a95312a56221118dc27f33cf4b8c4aa26657240c4c9b07ec48"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsScreenState: ClassTooLong \u2014 966 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 566 over it, 2.42\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/screens/settings/settings_screen.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9bec94eef6fc5395a333511f34371c78efc83efb34acc0af5f16ee94498fa56"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: home/home_screen.dart: FileTooLong \u2014 1189 significant lines (blank, comment-only and punctuation-only lines excluded), about 83% of them inside a single declaration: AvHomeScreenState (61-1480). The bar is 500 significant lines; this is 689 over it, 2.38\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/screens/home/home_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"887f8c029a8307d1ad8ea958c1245c8350c1b6323994de2e319843cfa7bbedbd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MainActivity.configureFlutterEngine: MethodTooLong \u2014 configureFlutterEngine runs 234 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 134 over it, 2.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/MainActivity.kt"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c8b7ccd2f448b206aef90022606fd7546763afd523359ad56b86751f1624091"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: emulator/TerminalEmulator.java: FileTooLong \u2014 1167 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: TerminalEmulator (42-2017). The bar is 500 significant lines; this is 667 over it, 2.33\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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f75ad997ab3f177578085036cd5ffbcd2779d1547ba78d19409b4149be1628"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _ScanScreenState: TooManyMethods \u2014 70 methods. The bar is 30 methods; this is 40 over it, 2.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d47cfaedce69712869a11dc7b6970e66fd880d758f7623ebe08d337a3dc464"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FullVpnController: ClassTooLong \u2014 914 significant lines (blank, comment-only and punctuation-only lines excluded), 74 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/vpn/services/full_vpn_backend.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"883abef5cc6e73ba8e84fd0bc201ac9f5f180b87a3f8701604f18f2d60188358"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _NetworkAdvancedScreenState: ClassTooLong \u2014 912 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 512 over it, 2.28\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/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea1dae26cab953c9757a27e8f685e524db382b10786cd7ebdd6e39fcc74b0b0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: EmulatorView: TooManyMethods \u2014 68 methods. The bar is 30 methods; this is 38 over it, 2.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fcb079d69b3e0048c517c67e63949c3ee861fece40690e88d304120cc6a40c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _AvHomeScreenState: ClassTooLong \u2014 899 significant lines (blank, comment-only and punctuation-only lines excluded), 38 methods. The bar is 400 significant lines; this is 499 over it, 2.25\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/screens/home_screen.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5195372045644488935fab1a4d2855c1331a21ef2ee3e6769a1104b6fca522"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CleanerDetailScreenState.build: MethodTooLong \u2014 build runs 224 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 124 over it, 2.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/screens/scan/detail_screen.dart"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6d9dc0a4f585321334b76c0455e3c3c0ce3c9c45563fe30d338c4088364faf"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _FullVpnModeScreenState._connectionScreen: MethodTooLong \u2014 _connectionScreen runs 224 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 124 over it, 2.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/screens/vpn/full_vpn_mode_screen.dart"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7761e007568eb2ca634667f18d15beefeaab3124374b4a22b3bdc1424fa3c12"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EmulatorView: ClassTooLong \u2014 894 significant lines (blank, comment-only and punctuation-only lines excluded), 68 methods. The bar is 400 significant lines; this is 494 over it, 2.24\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a57a5ed0154c4569b67a4ceb59b57be1ba0b2e25380955c14fcefaba5b52c3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _ScanScreenState: TooManyMethods \u2014 67 methods. The bar is 30 methods; this is 37 over it, 2.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8603935a65759b97ab0d624eeff1a2ba8d7bc02b638acd1496f0b8a1d4fb84"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/settings_screen.dart: FileTooLong \u2014 1113 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: SettingsScreenState (44-1388). The bar is 500 significant lines; this is 613 over it, 2.23\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/screens/settings/settings_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"840628688a365f87b900f975b12a8e5aaa3bd415adee24a80ee5d4f563c5f288"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EmulatorView.onCreateInputConnection: MethodTooLong \u2014 onCreateInputConnection runs 220 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 120 over it, 2.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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":649}}}],"partialFingerprints":{"codehealthFindingId/v1":"d761029743649bc7ce7db5d3c78db8946f7a70b3f701b13300e8768974f464f2"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SystemWatcher.poll: MethodTooLong \u2014 poll runs 214 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 114 over it, 2.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcher.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db8293046709f65e6106e17de98e5ffbd897c27823756c48d6e80fb4b55a200"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _NetworkAdvancedScreenState: ClassTooLong \u2014 834 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods. The bar is 400 significant lines; this is 434 over it, 2.09\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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"97235ca06a4635eebec5be59d3d4aedb2b5c2ec494a765c7dfdbbe1bde4cb7d9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ScanScreenState._buildResultThreats: MethodTooLong \u2014 _buildResultThreats runs 207 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1909}}}],"partialFingerprints":{"codehealthFindingId/v1":"7407fdba3d66d2ac8ede53bde2b5b05fec1b8cebd07e67efe84c6a498bc2631e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ScanScreenState._buildResultThreats: MethodTooLong \u2014 _buildResultThreats runs 207 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 107 over it, 2.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc9a4e73f13435d6a8c3c69a03fd95107b476ba2f7ebe29e53afeb4985050b8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ProScreenState.build: MethodTooLong \u2014 build runs 201 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 101 over it, 2.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/pro/pro_screen.dart"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"3540f0428c089f41988d9041a34aff36b2c4716da243a80858b13f6e652741e1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/scan_screen.dart: FileTooLong \u2014 991 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 491 over it, 1.98\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/screens/scan_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"398f22e106c32fec536bb8e06c0bb87076f05574a1e2081438cdc700a02ac20c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vpn/NetworkProtectionScreen.dart: FileTooLong \u2014 980 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: _NetworkAdvancedScreenState (75-1253). The bar is 500 significant lines; this is 480 over it, 1.96\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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b79f7b23e0361d7446f06ac55cc659f479b778592f2116d9427f59840994514d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: screens/home_screen.dart: FileTooLong \u2014 956 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: _AvHomeScreenState (42-1346). The bar is 500 significant lines; this is 456 over it, 1.91\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/screens/home_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b30c968d5e10d74e24b025fbcb8cf16fd2b313ecfd881fb62a44ce7b7190e8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: view/EmulatorView.java: FileTooLong \u2014 939 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: EmulatorView (77-1760). The bar is 500 significant lines; this is 439 over it, 1.88\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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"00e6c9ac587068e41ef91fea23ae5f02e7a27bc50e614929f0103b03a6f920fb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: FullVpnController: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e64738c67b9571d28d3975d90abf280bc515e6efc803581449cd99e6966653"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dns/NetworkProtectionScreen.dart: FileTooLong \u2014 932 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: _NetworkAdvancedScreenState (25-1310). The bar is 500 significant lines; this is 432 over it, 1.86\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd86590196b2e970510a1f198b0cb803d09d6c85c3c716ee7f69556368d102f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/full_vpn_backend.dart: FileTooLong \u2014 928 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: FullVpnController (18-1309). The bar is 500 significant lines; this is 428 over it, 1.86\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/vpn/services/full_vpn_backend.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6694bdea5cadd93039b129771212e11915f22152a767867b02b43b8b65b66354"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CleanerLitePaneState.build: MethodTooLong \u2014 build runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_lite_screen.dart"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"39437e2f65d3f58da1dd2668968409e1dfea7f7f24c5e736a9c8993f5dddbaca"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _ScanScreenState: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"386cc3bf9f8e96556e5e441e3a6bee399113d6cb01d80797bc21b5eb736cd353"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FullVpnController: ClassTooLong \u2014 675 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 400 significant lines; this is 275 over it, 1.69\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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e5eb3b8ad08de29a8111e5875e0c20cea5ae4ca6290f3f366641b98cca7e6f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scan api/headless_scan.dart: FileTooLong \u2014 818 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 318 over it, 1.64\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/services/scan api/headless_scan.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d8b59eb783c625e9f17518a34103480b4791c81a32a992e44969282e4a9f6d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _LinkCheckScreenState: ClassTooLong \u2014 645 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 245 over it, 1.61\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/screens/link checker/link_check_screen.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5eb940c1bd0f8afa2ccf626bb25d4220b6b3a9402e44252f3bdaac46cd0dc64"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AvHomeDrawer.build: MethodTooLong \u2014 build runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/av_home_drawer.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a5832d9a49d678cb36363fa36d64f28cfeef06692d2ec2afc567c02344dc97"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _FullVpnModeScreenState: ClassTooLong \u2014 639 significant lines (blank, comment-only and punctuation-only lines excluded), 12 methods. The bar is 400 significant lines; this is 239 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/full_vpn_mode_screen.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"193ec12e5ef837e18af29f82cc46d6da6b712fa4a88ce3a2edfd5fa6e38e7261"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _FullVpnSettingsScreenState._usageAndServerPanel: MethodTooLong \u2014 _usageAndServerPanel runs 158 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 58 over it, 1.58\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings/full_vpn_settings_screen.dart"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"79080732424814be14dee1ff034a2517fe7d55ffe76fee310313eddf42130e7f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AvHomeScreenState: 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/screens/home/home_screen.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"508ad41066c9e1465e0777d5180098d4af69ca28981d00039eb71dd57a1f4b0b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RealtimeProtectionService: ClassTooLong \u2014 617 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 217 over it, 1.54\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"67eed54e193a1bc30dcd31c9d1b88daecd09d87ec3e3d0c53b90d2265ad1d6e1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _PasswordManagerScreenState: ClassTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 216 over it, 1.54\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/screens/password manager/password_manager_screen.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"088ce9e979753894c8b4b7bb468f6a970e913a2a480391329d7c8290b513f327"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _NetworkAdvancedScreenState: ClassTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded), 26 methods. The bar is 400 significant lines; this is 213 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"c92327cf1a4e3eb824e56b6b2f46cb723c6864a05b2934727f6b7676602b640c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DeviceSecuritySignalLoader.loadSignals: MethodTooLong \u2014 loadSignals runs 153 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 53 over it, 1.53\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/screens/home/device_security_screen.dart"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"952a19f3db7dfa133cc55039d322370ddaae1ace0253c373596ab2b6f9c29fcb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _NetworkAdvancedScreenState._blocklistsTab: MethodTooLong \u2014 _blocklistsTab runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"643b1d4cf3b3ade3ad4558dc593cdd150e1846db2d46f235c01087a6ee326d28"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _NetworkAdvancedScreenState._blocklistsTab: MethodTooLong \u2014 _blocklistsTab runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\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/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"406061e075dba1c3933f1702dee23f99cd1bec554812630d859f152924d0991b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalEmulator.doEscLeftSquareBracket: MethodTooLong \u2014 doEscLeftSquareBracket runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":1173}}}],"partialFingerprints":{"codehealthFindingId/v1":"2741a80cf982c52207dda131fe4b0078742d93094b2cb8e747e949a05c4a59e9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vpn/AdvancedNetworkProtection_screen.dart: FileTooLong \u2014 753 significant lines (blank, comment-only and punctuation-only lines excluded), about 81% of them inside a single declaration: _NetworkAdvancedScreenState (71-936). The bar is 500 significant lines; this is 253 over it, 1.51\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/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2660c3729adad59c130557540cebd9e6d8645f76b87bd07da3e3fb3f49eea8c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SystemWatcher: ClassTooLong \u2014 600 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods. The bar is 400 significant lines; this is 200 over it, 1.50\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":"android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcher.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec30a4d83b622fee3db40d75f91350c1627237685553679d5cff08f3e488fd9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: scan/cleaner_lite_screen.dart: FileTooLong \u2014 749 significant lines (blank, comment-only and punctuation-only lines excluded), about 65% of them inside a single declaration: _CleanerLitePaneState (35-685). The bar is 500 significant lines; this is 249 over it, 1.50\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/screens/scan/cleaner_lite_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6bcaae9068d4c4327d65cd022d0b08f9c0166bda999f678c0a43f1e34e22e1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _QuarantineScreenState.build: MethodTooLong \u2014 build runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/quarantine/quarantine_screen.dart"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef1eb52699c7d0a613a3eef4a0543a7963753694f8ae3d38a82f6e42dde185e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LiteVpnController: TooManyMethods \u2014 44 methods. The bar is 30 methods; this is 14 over it, 1.47\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/screens/vpn/lite_vpn_controller.dart"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"2da83a33dcf03d1e83b9f11bb637e916c03a2d442f32c10bb9ad4791ab613526"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ScanScreenState._buildScanningMain: MethodTooLong \u2014 _buildScanningMain runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\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/screens/home/scan_screen.dart"},"region":{"startLine":1569}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86eeb63e948835043305efee70d4fd68be3e51b739bcac87e884a9a0917996c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ScanScreenState._buildScanningMain: MethodTooLong \u2014 _buildScanningMain runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\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/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"45db84249ee4eb8bbde1222940a9e914638b019a0920db03bfd6b09499a8d78c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SettingsScreenState: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings/settings_screen.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e6627b2106bc6f5896ad065e8148e7cf94ddaffa0af2b0129510e43cb990e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/realtime_protection_service.dart: FileTooLong \u2014 710 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: RealtimeProtectionService (36-903). The bar is 500 significant lines; this is 210 over it, 1.42\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90fa26becd96dc262463f3ec2b8b98a588b345f5b6ed2d27db4a0fe1f0d0baaa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vpn/full_vpn_mode_screen.dart: FileTooLong \u2014 695 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: _FullVpnModeScreenState (20-913). The bar is 500 significant lines; this is 195 over it, 1.39\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/full_vpn_mode_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40848e699a5dc63968c706d5da23c2323a4c293afcb1ff9644896224465db383"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: services/full_vpn_backend.dart: FileTooLong \u2014 689 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: FullVpnController (16-947). The bar is 500 significant lines; this is 189 over it, 1.38\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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5aa011501fa04060924a2f8ca0b3b64ee985cf71fe06713d093a444ff7aff678"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ScanScreenState._buildResult: MethodTooLong \u2014 _buildResult runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"42982e4f28780ba5fdc5ab50464f00408859265fb99794eb0e8d4e0284474599"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalController._buildCommands: MethodTooLong \u2014 _buildCommands runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal_controller.dart"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e619cca676d6734d57f42b40bf631216d4515e68c8fe4297148586e4ccbbf6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ProScreenState: ClassTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 139 over it, 1.35\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/screens/pro/pro_screen.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f87d7dd30df4e36d31605ec700932dd2b8cd16aa41e6e287dc275fa210f708"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: apkAnalyser/apk_analyser.dart: FileTooLong \u2014 673 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: _ApkAnalyserScreenState (20-696). The bar is 500 significant lines; this is 173 over it, 1.35\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/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13989c56d6f59ffe287c51c533de25d15ce2700181ad9a1e566fe097fb500f2b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: link checker/link_check_screen.dart: FileTooLong \u2014 669 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: _LinkCheckScreenState (21-939). The bar is 500 significant lines; this is 169 over it, 1.34\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/link checker/link_check_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef4fdf068c134f7bc571914f5313c09b5216170852e06188035e7786102b6455"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _FullVpnSettingsScreenState: ClassTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 135 over it, 1.34\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/screens/settings/full_vpn_settings_screen.dart"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2243cf8f0860b16065add3c7c8567ba088b756d3d153c2d4743e01bfb589db8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: VpnConnectionController: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\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":"android/app/src/main/kotlin/com/colourswift/cssecurity/vpn/backend_port/core/VpnConnectionController.kt"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a54afc8391e6b7289babec476caacb31358e61980d80556ce19917e0278bce5"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CSForegroundService: ClassTooLong \u2014 508 significant lines (blank, comment-only and punctuation-only lines excluded), 23 methods. The bar is 400 significant lines; this is 108 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e1e4dcf36942b272aa9bed03457a1216f1b26b7f399ccd357fcf91a4dc64ec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _AvHomeScreenState: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home_screen.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b58cbf9cc3163b107e0f3488a347bfde94929d35037e035886275d7d6904638"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: home/device_security_screen.dart: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 133 over it, 1.27\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/screens/home/device_security_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4cab53a45e2b67ef8765a933227b57e40e3e8a89a0657efd07a655ca25fe6af"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: password manager/password_manager_screen.dart: FileTooLong \u2014 633 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: _PasswordManagerScreenState (22-908). The bar is 500 significant lines; this is 133 over it, 1.27\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/password manager/password_manager_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6a4af91e6a1980ee6615017a681c2509f4d38bc45f054a06d4aaabae1950ec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CleanerLitePaneState._runCleaner: MethodTooLong \u2014 _runCleaner runs 126 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 26 over it, 1.26\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_lite_screen.dart"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"b922ba928fa955cfcdb14d4ad0a41ffe47788b22149b43271e2996122a851a40"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cssecurity/MainActivity.kt: FileTooLong \u2014 629 significant lines (blank, comment-only and punctuation-only lines excluded), about 76% of them inside a single declaration: MainActivity (202-899). The bar is 500 significant lines; this is 129 over it, 1.26\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":"android/app/src/main/kotlin/com/colourswift/cssecurity/MainActivity.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"217b4a1fa2516d66874d4d4de337185abbcac933e7ebdcbdc4c026d792f6691b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rtp/SystemWatcher.kt: FileTooLong \u2014 626 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: SystemWatcher (25-882). The bar is 500 significant lines; this is 126 over it, 1.25\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":"android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcher.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"935545716a07ed58bca98b780c490963a7c724f4e98db83340a8da41242d1172"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _CleanerLitePaneState: ClassTooLong \u2014 489 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 89 over it, 1.22\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_lite_screen.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6635424a9e4f22da0346ed083f6f371f9ea46bd0012151b0ba55f8c9a7946e3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TermKeyListener: ClassTooLong \u2014 487 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 87 over it, 1.22\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e8666ba029cef9fad8b0ffe70417f04c2c09dca4536ca98535941abcaa90aaa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _NetworkAdvancedScreenState: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d208c36f7431be400fe2316906e0491bc1a1d893ffa7e70b315fa1403a88927"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MainActivity: ClassTooLong \u2014 480 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 80 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/MainActivity.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"0213e5247fc5b523d0bdaed190e5c3be71eb45a5a3f6043f0f31a74659858fe4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: FullVpnController._connectInternal: MethodTooLong \u2014 _connectInternal 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/vpn/services/full_vpn_backend.dart"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"251a79c656005d292e0454a78ebc743d90042fb297b02891e7c6b7ba6baa1b33"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ApkAnalyserScreenState: ClassTooLong \u2014 472 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 72 over it, 1.18\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af3339d5154032937a0e6792825ac37ba79141c5603a714dc19ccf2189cdf90"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _LinkCheckScreenState._analyseTab: MethodTooLong \u2014 _analyseTab runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/link checker/link_check_screen.dart"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"deeb24ee17f3382ac790251f660ac4db4ed9b1e752e38e2f6ceb12fb121c7dc1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TermSession: 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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TermSession.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2d8747e145914999854764d568049a34803fd7fd2246d0459f03400165cc23"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TerminalEmulator.updateSize: MethodTooLong \u2014 updateSize runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb7e1634096b3d867578dbbcfe55e8e9f9117233c0dc8788599701063ce6898"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AvHomeScreenState.build: MethodTooLong \u2014 build runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"679ed824ea745065c3d3111313f2e7d892b91852c77f2a697afde60c0807669e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AvHomeScreenState._openScanDrawer: MethodTooLong \u2014 _openScanDrawer runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home_screen.dart"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"26efefb64b90dca00852683a6fdfb376b3b1b9d30631d631f5584881aa8601dd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: core/VpnConnectionController.kt: FileTooLong \u2014 572 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 72 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":"android/app/src/main/kotlin/com/colourswift/cssecurity/vpn/backend_port/core/VpnConnectionController.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3adc63f5687a05e1b8136f65ee0aa9a421a6cb735a3b8187240811094c2176"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _LinkCheckScreenState._viewTab: MethodTooLong \u2014 _viewTab 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/screens/link checker/link_check_screen.dart"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"208aa9cfaefb4d58622d56089c3d23df0628ad82fce6edc5a81572841d0e3148"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _NetworkAdvancedScreenState: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67005fdbc132b45069e721c77ae371f46d897cfada647c6d54f5af4765b5261"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ProScreenState._openPlanPicker: MethodTooLong \u2014 _openPlanPicker runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/pro/pro_screen.dart"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fadfd8c24bd66d093dc105148501f59098fdc775a260a492f728407cd1fa102"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsProCard.build: MethodTooLong \u2014 build runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings/widgets/settings_pro_card.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"41dbb59d4508e827e999371d55dd7318f9bac3233b30b56414feb55a54349513"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AXTerminalPlugin.register: MethodTooLong \u2014 register runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/bridge/AXTerminalPlugin.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d46eae3d1fcd029b6377119082a3b95421701aa10fe55722e780cdf71a9840e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: emulator/UnicodeTranscript.java: FileTooLong \u2014 557 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: UnicodeTranscript (48-848). The bar is 500 significant lines; this is 57 over it, 1.11\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cb22e52673d95b5d3fb22dc6127665be0d048bb677aaf389085a55f84e2e16c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PermissionsIntroScreenState.build: MethodTooLong \u2014 build runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/permissions_intro_screen.dart"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"8efc3aedac1ef35663043e44840705217c42583f6235a956df5310c7d0daa701"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pro/pro_screen.dart: FileTooLong \u2014 549 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: _ProScreenState (16-766). The bar is 500 significant lines; this is 49 over it, 1.10\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/screens/pro/pro_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"745e8f5927e03d797be7a21854b5e4c15cdbcbf4e06897070ed17dc5cebddc77"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: settings/full_vpn_settings_screen.dart: FileTooLong \u2014 546 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: _FullVpnSettingsScreenState (17-802). The bar is 500 significant lines; this is 46 over it, 1.09\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/screens/settings/full_vpn_settings_screen.dart"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd1b2ffd94f67ddd1c991dc49a9386a78f2c4ad522f5f97f56431483b11718c1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AvHomeScreenState._startUpdate: MethodTooLong \u2014 _startUpdate 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/screens/home/home_screen.dart"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2055238a3c861ed2ed1fa753fb7fc690afa546d702c757ffbd7524273e0f5c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cssecurity/CSForegroundService.kt: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: CSForegroundService (33-777). The bar is 500 significant lines; this is 38 over it, 1.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"595ee4c33fbc59a7d6f8905e55d26bc25a82f9b3adb84a43d7b906261e3abc5e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: VpnConnectionController.runConnect: MethodTooLong \u2014 runConnect runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/vpn/backend_port/core/VpnConnectionController.kt"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"1417e5fe11f0f676c985ad59408f72de941d5c776a6a351c1b0090d74d509583"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _CleanerLitePaneState._card: MethodTooLong \u2014 _card runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_lite_screen.dart"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab2cb27e2c174b1cf9a943a378742750668bde24f0c28fd4f51e2e2776cab27"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _FullVpnLocationMapCardState.build: MethodTooLong \u2014 build runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76a253bb92843e88d3fcc7350d58a4be58cd1f9d66344a1251b902308519758"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TermKeyListener.initKeyCodes: MethodTooLong \u2014 initKeyCodes 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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c76d24370102704afd857873963c9914c6c6d2d53fef1af449631f1abfb5e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _AvHomeScreenState._startUpdate: MethodTooLong \u2014 _startUpdate 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/screens/home_screen.dart"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"661eecce651979140ddf9716e5d9dffacba6ff587b3236f0228da0dd937b5a85"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UnicodeTranscript: 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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"467fc73271aa593f40d01a1ab35b1af02cd35e60eda27cdacc0132be9f6e2dbf"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: _ScanScreenState: 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/screens/scan_screen.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f4b4aab368c04eea93c1add04c9316016942cf60f627fa7954268f2d8ecdb9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ScanScreenState._applyHeadlessEvent: MethodTooLong \u2014 _applyHeadlessEvent runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"78060bb83d31a56fd1e91c62b61ce5bbfe1ea0be6590d61d996c5366e9df6479"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ScanScreenState._applyHeadlessEvent: MethodTooLong \u2014 _applyHeadlessEvent runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be781d605f32e1306268f5bafa2bba860ee0b352d85728720e03d02a104bad3"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: UnicodeTranscript: ClassTooLong \u2014 411 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 11 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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c8f3c94a672b17c448e98a5b27fa9eccec1709739f746bc4bac726dddf2166"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: _ScheduledScansScreenState: ClassTooLong \u2014 408 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 8 over it, 1.02\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/scheduled_scan_screen.dart"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d26f51c0129310c48a227a40f0d04e68f1a374dab6ad2cab64315520af09155"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ScanScreenState._runSingleFileScan: MethodTooLong \u2014 _runSingleFileScan 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/screens/home/scan_screen.dart"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"7910b6405a44b73baa8e4d939ed762c1b6d9436dc80b2ecb0b3fd3ac973712e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _PasswordManagerScreenState.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/screens/password manager/password_manager_screen.dart"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"131b46456ae181cd3f6ce5d6075db7f840ab677a594a570a4c90b567a5daa8eb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _ScanScreenState._runSingleFileScan: MethodTooLong \u2014 _runSingleFileScan 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/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"71bc39d6cad9352c1c0371507fe3735c1e9278ca356d073b21b9917558773a70"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: jniLibs/trimmed_Engine.rs: FileTooLong \u2014 502 significant lines (blank, comment-only and punctuation-only lines excluded, and inline test code \u2014 #[cfg(test)] modules and bare #[test] functions \u2014 not counted), declaring 40 free functions. The bar is 500 significant lines; this is 2 over it, 1.00\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":"android/app/src/main/jniLibs/trimmed_Engine.rs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1736b5190c9a7a25f46f1ed228029ddc81ef67984724b07cc4dffd997bbf465b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 58 shared lines): lib/screens/home/scan_screen.dart:1772-1907 | lib/screens/home/scan_screen.dart:1909-2197 | lib/screens/scan/main_scan_ui/scan_screen.dart:1737-1872 | lib/screens/scan/main_scan_ui/scan_screen.dart:1874-2162 \u2014 These 4 members are variants of one another: a block of 58 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c24862e40d1615f989e8396a9db48f05eca6aa2ac8759c10b9255f6dc70fdd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 21 shared lines): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:616-717 | lib/screens/vpn/AdvancedNetworkProtection_screen.dart:980-1060 | lib/screens/vpn/NetworkProtectionScreen.dart:1297-1379 | lib/screens/vpn/dns/network_live_logs_screen.dart:50-132 \u2014 These 4 members are variants of one another: a block of 21 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"c919117cb6bbafc690ad11df563ce463acd9aea58ae0d6141c8a17b93cf2d130"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 68 shared lines): lib/screens/home/scan_screen.dart:380-493 | lib/screens/scan/main_scan_ui/scan_screen.dart:424-537 | lib/screens/scan_ui_screen.dart:573-677 \u2014 These 3 members are variants of one another: a block of 68 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"72177ba53d06b41fe6432c33050bd49e6d370f5af5ee7463bcd7c85ad969a0da"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): lib/screens/vpn/NetworkProtectionScreen.dart:1146-1252 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:1215-1309 \u2014 These two members are variants of one another: 48 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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3a541941210f8406598cf6bcb6a6b46b989e6be8f72a4d309241a910dd9678"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): lib/screens/home/scan_screen.dart:763-783 | lib/screens/permissions_intro_screen.dart:30-61 | lib/screens/scan/main_scan_ui/scan_screen.dart:67-87 | lib/screens/scan_screen.dart:299-337 | lib/screens/scan_ui_screen.dart:887-922 | lib/services/scan_controller.dart:211-230 | lib/terminal/terminal_controller.dart:116-137 \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/screens/home/scan_screen.dart"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9b8e59a6ef4ed43b190ad7e9d83250b5183b6429051456c6e58b73355c0c1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): lib/screens/home/scan_screen.dart:839-966 | lib/screens/home/scan_screen.dart:1010-1128 | lib/screens/scan/main_scan_ui/scan_screen.dart:838-965 | lib/screens/scan/main_scan_ui/scan_screen.dart:1002-1093 | lib/screens/scan_screen.dart:686-745 | lib/screens/scan_ui_screen.dart:963-1052 | lib/screens/scan_ui_screen.dart:1131-1215 \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/screens/home/scan_screen.dart"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a26b62cf9a7e6c994b14729c58f5a2c4fb3cb32aadf240c55951b8572807393"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): lib/screens/home/scan_modes_screen.dart:227-293 | lib/screens/home/scan_screen.dart:2260-2307 | lib/screens/scan/main_scan_ui/scan_screen.dart:2225-2272 | lib/screens/scan_ui_screen.dart:1809-1866 | lib/screens/scan_ui_screen.dart:1868-1915 \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/screens/home/scan_modes_screen.dart"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"b75b4557a1876686145f711b300c667ebd8404d07e6e880b5b48b12cf9909272"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/screens/apkAnalyser/apk_analyser.dart:185-267 | lib/screens/apkAnalyser/apk_analyser.dart:743-860 | lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:36-144 | lib/screens/scan_ui_screen.dart:1958-2066 \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/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1a9e0e2262e728ab9d09209e4bd070683279917903dad87d6afec3e81670247"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/screens/apkAnalyser/apk_analyser.dart:352-409 | lib/screens/home/scan_screen.dart:1350-1401 | lib/screens/scan/main_scan_ui/scan_screen.dart:1315-1366 | lib/screens/settings/settings_screen.dart:875-931 \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/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"33692fa6897994b7409a25b8bc183f18bba532ca9739e20955233a47f85a7e50"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:22-112 | lib/screens/scan_screen.dart:94-164 | lib/screens/scan_ui_screen.dart:109-197 | lib/services/scan_controller.dart:91-161 \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/screens/scan/main_scan_ui/scan_isolate_worker.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb3cfd0f40ad5e608841eed1b4954e1da52227f7934353b94bbc023f5292a79"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): lib/screens/vpn/services/full_vpn_backend.dart:627-650 | lib/screens/vpn/services/full_vpn_backend.dart:652-678 | lib/vpn/services/full_vpn_backend.dart:838-861 | lib/vpn/services/full_vpn_backend.dart:863-889 \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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"15eac42465e98d7f7da68153dd1e75aa7017c00707bfbd82e14b39d746114bd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (154 corresponding lines): lib/screens/home/home_screen.dart:890-1051 | lib/screens/home_screen.dart:261-414 \u2014 These two members are one piece of code written twice and then edited apart: 154 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":890}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e412517d02b2fc99cc7f295437da52f6873f174c926bc1dc561725df1eff8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (87 corresponding lines): lib/screens/password manager/password_manager_screen.dart:324-410 | lib/screens/password manager/password_manager_screen.dart:412-502 \u2014 These two members are one piece of code written twice and then edited apart: 87 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/password manager/password_manager_screen.dart"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"e69bdd3a394a617fe7ad0a77209b2d43236927235e634a56c6ffbeb65098d146"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (80 corresponding lines): lib/screens/vpn/NetworkProtectionScreen.dart:318-397 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:298-377 \u2014 These two members are one piece of code written twice and then edited apart: 80 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea5bc152035e9ae643e0c5ccfc2540f72bba4d63a210e64a5747496d94f2445"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): lib/screens/home/home_screen.dart:282-371 | lib/screens/home_screen.dart:150-221 \u2014 These two members are one piece of code written twice and then edited apart: 72 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc35b9490b22d88c8d99373e1dc2a0ef4f33dce75b41ec33d40db6d989bc3bbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (65 corresponding lines): lib/screens/home/av_home_feature_row.dart:21-85 | lib/screens/home/av_home_primary_control.dart:28-103 \u2014 These two members are one piece of code written twice and then edited apart: 65 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/av_home_feature_row.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"394f0f8778618c774ccef7a690415fa61fb849c3276b07a25e19bc150a31294d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): lib/screens/home/scan_screen.dart:2199-2258 | lib/screens/scan/main_scan_ui/scan_screen.dart:2164-2223 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":2199}}}],"partialFingerprints":{"codehealthFindingId/v1":"921e8b239a88c42e15f27848cf63ec18dd4cab6918c15290d2cec8c8c7dcc179"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): lib/screens/vpn/NetworkProtectionScreen.dart:213-266 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:176-228 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efa86def8e4a0daef6c5a488e778bd440629cae3ba543ca42eea96daa2992e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): lib/screens/vpn/services/full_vpn_location_map.dart:212-267 | lib/vpn/services/full_vpn_location_map.dart:407-462 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b819c13cb2b2c5e52d740d22882002700da207100ed9ab4631d9a9845d3094"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (59 corresponding lines): lib/screens/vpn/NetworkProtectionScreen.dart:796-854 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:776-834 \u2014 These two members are one piece of code written twice and then edited apart: 59 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"94139358ca599a8954b06e0f2e58170b789652d941d89810b1e09a191f7a3e5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (62 corresponding lines): lib/screens/home_screen.dart:1132-1205 | lib/screens/scan/scan_limits_screen.dart:105-166 \u2014 These two members are one piece of code written twice and then edited apart: 62 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home_screen.dart"},"region":{"startLine":1132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c760fecee7da294fe2e895bb9effe9f29d54d4948ad47761a0d96eaa003b59b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): lib/screens/vpn/services/full_vpn_backend.dart:566-613 | lib/vpn/services/full_vpn_backend.dart:778-824 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdacc6d99791641e08a8bc94fbd1fe04aa5ab75ccf59601d29f2adbf5f82232"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (60 corresponding lines): lib/screens/home/device_security_screen.dart:750-818 | lib/screens/settings/widgets/settings_setting_tile.dart:19-78 \u2014 These two members are one piece of code written twice and then edited apart: 60 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/device_security_screen.dart"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be5e44c6b18fbc9b3d8d2acf5d8dcdf07ddf857dda8029a8394cced68f0f107"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt:569-622 | android/app/src/main/kotlin/com/colourswift/cssecurity/MainActivity.kt:663-715 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cad63dd47f42a3b7740c216f9f6e82f8ad5b522961bba6ea7beee011d612164"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): lib/screens/scan/detail_screen.dart:107-141 | lib/screens/scan/detail_screen.dart:143-177 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/detail_screen.dart"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ff52f6510d264d06cbc10d73a798a7e2512e142243488708dc344fb6989f5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): lib/screens/home/scan_screen.dart:1269-1325 | lib/screens/scan/main_scan_ui/scan_screen.dart:1234-1290 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"322d8eb178159d4c14facf4047c7662c351a3fd0deaac1b206795c74c8a2e907"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): lib/screens/vpn/services/full_vpn_backend.dart:290-321 | lib/vpn/services/full_vpn_backend.dart:419-455 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f27b781f3527419ff3b2b6353dba98b9110087fc24ff8e89ee1d0eab3b297e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): lib/screens/vpn/services/full_vpn_backend.dart:868-910 | lib/vpn/services/full_vpn_backend.dart:1199-1255 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad0d3a7b01965a0a8e04b35078b2042241bbc30a89b0ffa4127c23b1aa35a778"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:41-54 | lib/screens/vpn/NetworkProtectionScreen.dart:45-58 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0286a2c1f94716738c494fddb9c7263cda22a94057323d294c5d2b9406e34da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): lib/screens/vpn/full_vpn_footer_nav.dart:14-47 | lib/widgets/footer_nav.dart:14-49 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/full_vpn_footer_nav.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"34776d88d68db0f56a48b8a940f82fb25a67697157074dcbb54727af0ce88175"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): lib/screens/home/home_screen.dart:852-888 | lib/screens/home_screen.dart:223-259 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"36fd689079798140fe1efbe7a5b2507bd76d9f386762b24f91f538d0fe80de5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): lib/screens/vpn/services/full_vpn_backend.dart:255-288 | lib/vpn/services/full_vpn_backend.dart:345-376 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"df08ff662d18d246874d9fbb943ee131265221a2654206444365f1dcd47c9c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lib/screens/scan/cleaner_app_manager_screen.dart:151-174 | lib/screens/scan/cleaner_pro_screen.dart:82-114 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_app_manager_screen.dart"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae2c3b061a909d6f0950688903c11b53f9545ebbadce7cb348be2751a7a1e94"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/screens/home/scan_screen.dart:640-656 | lib/screens/scan/main_scan_ui/scan_screen.dart:684-700 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"5935976f93746a3704e895bec023370b9f6032572c53ae6fb706bc1399e87e4b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): lib/screens/home/av_home_drawer.dart:251-281 | lib/screens/home/av_home_drawer.dart:295-325 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/av_home_drawer.dart"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1f24583e44db1995b008edd4c6cf739a07125c4035c9dbc0bc573789e72a56b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/screens/home/home_screen.dart:1752-1761 | lib/screens/home/security_report_screen.dart:597-607 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93550ff4fda9524507866c25ddc2f9addf3d48284ddf8327551f19cfa885e28"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 26\u002B corresponding lines): lib/terminal/terminal_controller.dart:419-444 | lib/terminal/terminal_controller.dart:446-472 | lib/terminal/terminal_controller.dart:499-527 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 26 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal_controller.dart"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"038c1294f0b3d5a2318d7d4504a58ecb3b3cdd446376977f0630d282d00698be"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java:817-839 | android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java:911-931 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab79e884ce138236fd4a9a62e17dae0daa9850ff468160e5884a7903eabbc61a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/screens/scan/main_scan_ui/log_buffer.dart:9-20 | lib/screens/scan_ui_screen.dart:30-41 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/log_buffer.dart"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"8566e1aa7bca89539e3aa949b8661a251a791746c3446edfb0a7b12760e469b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 31\u002B corresponding lines): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:719-749 | lib/screens/vpn/NetworkProtectionScreen.dart:856-888 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:836-874 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 31 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f5f1822f830652762989d631475eee03b9ab6176d9191851e554e5fac366cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): lib/screens/quarantine/quarantine_screen.dart:81-114 | lib/screens/quarantine/quarantine_screen.dart:165-190 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/quarantine/quarantine_screen.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33fc462876f1026f8e832938d7aa0aaeaacb7981dc4a2d330f071ff74ca4e70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/screens/vpn/NetworkProtectionScreen.dart:281-298 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:262-278 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"659300533b4bd8d1b9e32ef6939166a080d985309570c5dbc075963c5cd9109c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): plugins/usage_stats-fixed/android/src/main/kotlin/io/github/parassharmaa/usage_stats/NetworkStats.kt:22-53 | plugins/usage_stats-fixed/android/src/main/kotlin/io/github/parassharmaa/usage_stats/NetworkStats.kt:63-91 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/usage_stats-fixed/android/src/main/kotlin/io/github/parassharmaa/usage_stats/NetworkStats.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e385cffa3e6c619831c800a0ba96e4798b4bb5af5d0424b71ac49c9aac966a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): lib/services/purchase_service.dart:113-136 | lib/services/purchase_service.dart:477-504 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/purchase_service.dart"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a00ee33e74a5bd2f64d0ddc3d916ba09551e45927efc4cf4f7180880945028"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): lib/screens/vpn/NetworkProtectionScreen.dart:466-490 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:446-470 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":466}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44fedec87daaea154538ad3e003ea172228de040326a8349013b0e9969c370c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): lib/screens/scan_screen.dart:1001-1024 | lib/screens/scanscreen.dart:57-77 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":1001}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e505a293cf529fdbe434d5c69cdc215d1d431d9c2512170e9da3928d8a7c7a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:148-165 | lib/screens/vpn/NetworkProtectionScreen.dart:185-202 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"696ff865cb67a70bb598b743bb000f910bba9e1bb21aaa1a1ba070a82ee8172d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): plugins/usage_stats-fixed/android/src/main/kotlin/io/github/parassharmaa/usage_stats/UsageStats.kt:14-32 | plugins/usage_stats-fixed/android/src/main/kotlin/io/github/parassharmaa/usage_stats/UsageStats.kt:56-74 | plugins/usage_stats-fixed/android/src/main/kotlin/io/github/parassharmaa/usage_stats/UsageStats.kt:76-94 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/usage_stats-fixed/android/src/main/kotlin/io/github/parassharmaa/usage_stats/UsageStats.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e56ef93d21c8b296d7019e6795d35847ba968263ef62c29410ee00167f6cb04"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:955-972 | lib/screens/vpn/NetworkProtectionScreen.dart:1272-1289 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad50c590f68da0478becbb84c8a34b040a7abd173eda1d6aff811f0eff068a29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): lib/screens/scan_ui_screen.dart:355-374 | lib/services/realtime_protection_service.dart:527-551 | lib/services/realtime_protection_service.dart:553-579 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"34bd23c162041abbbc6c5da52265c4bb34ba453c283cb2c0404732cb1bc1d9c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/screens/scan_screen.dart:1314-1343 | lib/screens/scanscreen.dart:184-205 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":1314}}}],"partialFingerprints":{"codehealthFindingId/v1":"87372a1ca1a9385efec9e00651125393adfd656bf3d5b8096bf94e864879e3d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): lib/screens/vpn/dns/NetworkProtectionScreen.dart:148-165 | lib/screens/vpn/dns/network_live_logs_screen.dart:25-42 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f82bdd908a755a156f94cb683fe143fe8f88bd75f3b109977ccd3c11982b1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/screens/home/home_screen.dart:1533-1546 | lib/screens/home/security_report_screen.dart:528-542 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ba4f3f3fd530c1c25e0426dc35e611c2d8aac3dd0ed5eb6f95d84a1aad999c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): lib/screens/vpn/services/full_vpn_backend.dart:532-559 | lib/vpn/services/full_vpn_backend.dart:740-771 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a8fb1c0dcd9efe3e07af57646ff7bfa6ce495a3633ce19d3b80b55da193dac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): lib/screens/vpn/services/full_vpn_backend.dart:746-764 | lib/vpn/services/full_vpn_backend.dart:1070-1095 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c591110e274ae3065db5eea921b8d48e46bb676dd5d00dd3e6621c219145a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/utils/worker_hash_isolate.dart:34-49 | lib/utils/worker_scan_isolate.dart:34-49 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/worker_hash_isolate.dart"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"874269297ca5a4be6ed98c557f97162192e8073fa3da8bcd36c870c23f7a3aba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/screens/scan_screen.dart:256-278 | lib/screens/scan_ui_screen.dart:679-707 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"965e4e3f544132da66aac0bf15fdd1fea08b1b6b810c1f9a09a313071b018f78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): android/app/src/main/kotlin/com/colourswift/cssecurity/ShizukuBridge.kt:196-216 | android/app/src/main/kotlin/com/colourswift/cssecurity/ShizukuBridge.kt:221-237 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/ShizukuBridge.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f3402ef5eac9fd595b111ce12f5fa6973c72f240bb102ca98df3c6cdfe02ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/screens/vpn/services/full_vpn_location_map.dart:119-130 | lib/vpn/services/full_vpn_location_map.dart:193-210 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee159806b55afdbd94743006e2aa540ad3b0457a9b9c9f7a6572ad8cf161563b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/services/purchase_service.dart:153-164 | lib/services/purchase_service.dart:166-177 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/purchase_service.dart"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"02eead30a28d31ded9e78ca5d2e3b45e4d19e61986528565dafd3f6a48bd0171"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/screens/home/security_report_screen.dart:563-567 | lib/screens/home/security_report_screen.dart:588-595 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/security_report_screen.dart"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"71715f1a62256dacf944171f640e0a40b40b73f2ef39d551fe1881d770a2d7ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/screens/apkAnalyser/apk_analyser_controller.dart:605-615 | lib/screens/scan/detail_screen.dart:189-198 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/apkAnalyser/apk_analyser_controller.dart"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f34a62501e8442663c3d968e076c77c186a187b155173ca2e29633e4cca6d74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 10\u002B corresponding lines): plugins/usage_stats-fixed/lib/usage_stats.dart:28-37 | plugins/usage_stats-fixed/lib/usage_stats.dart:39-48 | plugins/usage_stats-fixed/lib/usage_stats.dart:50-60 | plugins/usage_stats-fixed/lib/usage_stats.dart:62-72 | plugins/usage_stats-fixed/lib/usage_stats.dart:74-84 | plugins/usage_stats-fixed/lib/usage_stats.dart:86-103 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/usage_stats-fixed/lib/usage_stats.dart"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"be07a6c76588cb3c7f0500625a73762251d38d38946beb0636d6373d03862d63"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/screens/vpn/services/full_vpn_backend.dart:511-530 | lib/vpn/services/full_vpn_backend.dart:718-738 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9cff9b9c741e6e2a99c9b25a34ba5f0202e1eb8e7f8a133dbfeec9e36c5cb54"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 16\u002B corresponding lines): android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt:152-167 | android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt:169-191 | android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt:420-435 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"03887bdd26ffad8dd93b72d7ecaa60b51236adfe3b6b09f3f7209269292c8b47"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): android/app/src/main/kotlin/com/colourswift/cssecurity/vpn/backend_port/storage/FlutterPrefsBridge.kt:101-115 | android/app/src/main/kotlin/com/colourswift/cssecurity/vpn/wireguard/CSWireGuardService.kt:301-315 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/vpn/backend_port/storage/FlutterPrefsBridge.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5dc316179eb5517c3688604b250399733bec9b15d242437c397ef485f362a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): lib/terminal/sys_info.dart:43-52 | lib/terminal/terminal_controller.dart:354-363 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/sys_info.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffae34dcb181cd716dcf690a4b12e3cb7443ca2bc695534cffc8511b4a3a76b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java:767-776 | android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java:778-787 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce45def6f36882a43656eab7f53388545c525e2e72dc25497ab89cbed296b1e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/screens/scan_screen.dart:27-33 | lib/services/scan_controller.dart:31-38 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3001ca4c5064e5f1fdc3c65b55ceb867f77dee67a7a3900e2c6d926b641d1f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/screens/vpn/services/full_vpn_backend.dart:196-210 | lib/vpn/services/full_vpn_backend.dart:262-280 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f1d8b241f3c9de3db51f2efd8fde3d91ccbdd3a4478af43d33248dabadcc9a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/vpn/services/full_vpn_backend.dart:69-77 | lib/vpn/services/full_vpn_backend.dart:79-87 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/vpn/services/full_vpn_backend.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6a39220814c9fd9d1228889b651c74138183758512ed60d7614fa16b7efb69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/screens/vpn/services/full_vpn_location_map.dart:91-105 | lib/vpn/services/full_vpn_location_map.dart:163-177 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b3b30eba466d4ae08b3297f59c9c67072dc86cd3ec46d7ae29c34a5fe739fd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): android/app/src/main/jniLibs/trimmed_Engine.rs:566-575 | android/app/src/main/jniLibs/trimmed_Engine.rs:758-768 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/jniLibs/trimmed_Engine.rs"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a62c86f8ad54d8998836022073c165cc33cfc45e90bca7b38e025506116fb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/vpn/services/full_vpn_backend.dart:130-139 | lib/vpn/services/full_vpn_backend.dart:141-148 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/vpn/services/full_vpn_backend.dart"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c8d15ea60495b6a6722fe2f9ee07b18113e1f84df2c5d3b7de9be8de3de8fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/utils/exclusions_store.dart:110-115 | lib/utils/exclusions_store.dart:117-122 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/exclusions_store.dart"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"929b9de2368128f9152e104ffbf4aa71cf132f358346f141dae2e39bf9a8e82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): plugins/device_apps-2.2.0/android/src/main/java/fr/g123k/deviceapps/DeviceAppsPlugin.java:187-201 | plugins/device_apps-2.2.0/android/src/main/java/fr/g123k/deviceapps/DeviceAppsPlugin.java:203-219 | plugins/device_apps-2.2.0/android/src/main/java/fr/g123k/deviceapps/DeviceAppsPlugin.java:280-296 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/device_apps-2.2.0/android/src/main/java/fr/g123k/deviceapps/DeviceAppsPlugin.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"9895afb721be8f3b185cbdba7c06bc1c0d06a7a1028a5df4a50f4c3dccd93d8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/services/scan_session_service.dart:22-37 | lib/services/scan_session_service.dart:70-83 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/scan_session_service.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58304ac3548fbef8e6e20c162336bbcd67da969f6e5d611b8627f94c455d6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/screens/scan_screen.dart:983-999 | lib/screens/scan_ui_screen.dart:1217-1232 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e1de1ea63cc7b27b44e09074b0b506d28d26a53241d8e42beeaf2a2ad99985"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/screens/home/device_security_screen.dart:828-842 | lib/screens/home_screen.dart:1116-1130 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/device_security_screen.dart"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"a443759f3f9ff4f49aef1197dbdee11b202f5a9585442a32c1acc70da2886209"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/screens/home/home_screen.dart:1502-1513 | lib/screens/home/security_report_screen.dart:27-38 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab2959e30574d51300be95f860994ae8fd5d3724ca1076186415be3e6fec82d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/screens/vpn/services/full_vpn_backend.dart:226-236 | lib/vpn/services/full_vpn_backend.dart:297-310 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdde0268680d92fa3ab0d8d6a05a11803e5b6bb8b30cdc89e3cc0009d8a7d5d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/utils/worker_hash_isolate.dart:25-32 | lib/utils/worker_scan_isolate.dart:25-32 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/worker_hash_isolate.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3ae731746c5dd50ad1223917361ca941209874ab2a1650237184aa45f4b72d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 8\u002B corresponding lines): lib/widgets/antivirus_bridge.dart:399-406 | lib/widgets/antivirus_bridge.dart:420-434 | lib/widgets/antivirus_bridge.dart:436-448 | lib/widgets/antivirus_bridge.dart:450-462 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/widgets/antivirus_bridge.dart"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2638e321f56d04cea160ca0a5f1e887bcc2f3af1021f80e062e7a7664b35be3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/screens/home/scan_screen.dart:785-791 | lib/screens/scan/main_scan_ui/scan_screen.dart:807-813 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"366cee99f418923f357e09abb66023b308bd5e18df3717c1004985d68008a834"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/vpn/services/full_vpn_backend.dart:312-323 | lib/screens/vpn/services/full_vpn_backend.dart:238-246 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/vpn/services/full_vpn_backend.dart"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"c418ae8f5d0aa966d8d6429e58c2c18c564382f4e6123410895ca7baf995d6aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): lib/vpn/services/full_vpn_location_map.dart:179-191 | lib/screens/vpn/services/full_vpn_location_map.dart:107-117 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"1486e0c95aa076688c51edb1baef2da2351b66800d02b0beed05626e2aee22e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/screens/home/scan_modes_screen.dart:37-45 | lib/screens/settings/settings_screen.dart:226-233 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_modes_screen.dart"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6dff69159a332352111fca5ed562491b645d6440024b1dfc3a4c9985032087c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/screens/vpn/services/full_vpn_location_map.dart:75-82 | lib/vpn/services/full_vpn_location_map.dart:127-134 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"542fbddb97a2c46af2f103e1c02b0d76884578665e0ac8f5632c9f675929bc89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/screens/scan/scheduled_scan_screen.dart:66-72 | lib/screens/settings/settings_screen.dart:310-317 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/scheduled_scan_screen.dart"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"a755afb93dff78051247f68f1ebd3d3296df5cec060d909172cbc6281a171489"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 6\u002B corresponding lines): lib/screens/home/home_screen.dart:1103-1112 | lib/screens/home_screen.dart:122-127 | lib/screens/scan_screen.dart:225-230 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 6 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"0acd1723559f7be71d2afa50d3bfc267c785be6bdfcb2945adf783bccf72e771"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/screens/home/scan_screen.dart:2329-2332 | lib/screens/scan/main_scan_ui/scan_screen.dart:2294-2297 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"99d1bc950716b3194449c631cf52165ba9565f9d205322b2df96e448ebd05e56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/screens/home_screen.dart:138-142 | lib/screens/permissions_intro_screen.dart:71-79 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home_screen.dart"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"072e36b6e7711fa9e08f9b23e741ee54cdbd0aef89fa6236f8a7e880b3ec23d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/screens/home/home_screen.dart:1053-1057 | lib/screens/home_screen.dart:416-419 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c1eb5fdcb43457148f8005c496fc9c7908e43b84a69877c7f1d4c3931770ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): android/app/src/main/kotlin/com/colourswift/cssecurity/vpn/VpnModeSwitcher.kt:15-21 | android/app/src/main/kotlin/com/colourswift/cssecurity/vpn/VpnNotificationActionReceiver.kt:182-188 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/vpn/VpnModeSwitcher.kt"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a19401820e489c457d07a8edafbafed23ed662f0301a698062dd3b5fa18374f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): lib/screens/scan/cleaner_app_manager_screen.dart:55-59 | lib/screens/scan/detail_screen.dart:103-105 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_app_manager_screen.dart"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3c600be2e81a693decca1bec08525bef29dbdbb2aeda17279759f960abc901b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/screens/vpn/services/full_vpn_backend.dart:561-564 | lib/vpn/services/full_vpn_backend.dart:773-776 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"b248a1229a6dc2255476204f0157632f2c926bf09eab7d3e22c47686727ab64a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/screens/home/home_screen.dart:180-183 | lib/screens/home_screen.dart:78-81 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d2597f1eaa010a31fb959e75711d16352488cf18f107095d361200e9522a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): lib/screens/password manager/Password_Settings_Screen.dart:35-42 | lib/screens/password manager/password_manager_screen.dart:66-72 | lib/screens/settings/settings_screen.dart:204-208 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/password manager/Password_Settings_Screen.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"574667e170551090b69843bb010420ff77373a9cff93295fedef06a7751baf5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/screens/vpn/NetworkProtectionScreen.dart:1141-1144 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:1135-1138 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c3395575c277388d1836301927c801546e62e57e17ebf55ab70fb1151df9bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/main.dart:42-47 | lib/services/update_service.dart:36-39 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"80412fe9ca1962cefb2b71d22cf09c6f36edc861d5fa4dfd3bc1d6be89db1577"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:124-130 | lib/screens/vpn/NetworkProtectionScreen.dart:158-165 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfa0b6aa0b3ec39fc6256d0e032e4e188360cba24ef3a789be79e4449ebc82c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/screens/home/home_screen.dart:1295-1299 | lib/screens/home_screen.dart:817-822 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3af815ea18daa3cd6d887da1d7d6ce7b25088ec3772194af0cdea7168cdcff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/screens/scan/main_scan_ui/scan_log_listener.dart:13-16 | lib/widgets/scan_log_listener.dart:14-17 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_log_listener.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5914c50d49e8e7b76743873cc1d2ec93a436aca5dc8326a962c96c835c09ef7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/screens/vpn/services/full_vpn_backend.dart:212-218 | lib/vpn/services/full_vpn_backend.dart:282-289 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"61cc0bb61dbb9525878164b7a75b0fdf8e58b725e0e9a6b8ef7f69b1107455e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/screens/vpn/services/full_vpn_backend.dart:795-798 | lib/vpn/services/full_vpn_backend.dart:1126-1129 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92020d32fd2b2154531c21aeca44a60330bf11383a11f68b03f3f394d55f89c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/services/defs_auto_update_service.dart:14-17 | lib/services/scan api/community_submissions/community_submission_service.dart:28-31 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/defs_auto_update_service.dart"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c0a51005e23ddd9cd0d3c2105abf58ab6e888203aa2bdf26e5ec36dde0384d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (268 lines \u00D7 2): lib/screens/home/scan_screen.dart:1909-2176 | lib/screens/scan/main_scan_ui/scan_screen.dart:1874-2141 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:1909\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1909}}}],"partialFingerprints":{"codehealthFindingId/v1":"89990b18521693d84adddc151956da63fd11b980e8e313b7e527465f851587fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (216 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:579-794 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:559-774 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"91b081a6ea9526b225066ffa922da75db641ee649a259715ff0a51ce2e2da894"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (177 lines \u00D7 2): lib/screens/home/scan_screen.dart:1588-1764 | lib/screens/scan/main_scan_ui/scan_screen.dart:1553-1729 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:1588\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1588}}}],"partialFingerprints":{"codehealthFindingId/v1":"b890add39f28337a1e6c7dbe33e1243edd29860a5dd7a2e074f289d63acb52f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (142 lines \u00D7 2): lib/screens/home/scan_screen.dart:237-378 | lib/screens/scan/main_scan_ui/scan_screen.dart:281-422 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"59d5b6ba32b547e5d9e1cbb90cdf4f41e2a4dc29053ced48d34e1a6a6c1054ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (114\u2013116 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:978-1093 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:974-1087 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf0bd8d96639ae98b771ccbe11de098e8da00750ebea4fe225339d22bb6e92e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (136 lines \u00D7 2): lib/screens/home/scan_screen.dart:1772-1907 | lib/screens/scan/main_scan_ui/scan_screen.dart:1737-1872 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1772}}}],"partialFingerprints":{"codehealthFindingId/v1":"35ad4a9aba25fbd7428960bb57fa8d9878672ed1494bf54dea710de60ff8bf9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (101 lines \u00D7 2): lib/screens/home/scan_screen.dart:1167-1267 | lib/screens/scan/main_scan_ui/scan_screen.dart:1132-1232 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":1167}}}],"partialFingerprints":{"codehealthFindingId/v1":"9583135155f92694afbf82dfe756ebc0e0d6e05f83fed1314a82379a89d146f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (97 lines \u00D7 2): lib/screens/home/scan_screen.dart:869-965 | lib/screens/scan/main_scan_ui/scan_screen.dart:868-964 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:869\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"397e91aeb1894c33d04f44204b9daca56cb90217817bbde18d19d67ab854c86b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (96 lines \u00D7 2): lib/screens/home/home_screen.dart:956-1051 | lib/screens/home_screen.dart:319-414 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/home_screen.dart:956\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6ac0c3fe561179dd99731aada2e900af43d5cc84ba724e4731a5c26ad6ce76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (88 lines \u00D7 2): lib/screens/home/scan_screen.dart:1040-1127 | lib/screens/scan/main_scan_ui/scan_screen.dart:1005-1092 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:1040\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"85e14b1dd312bf029a914a2c0d89bb304d14b653597aa61b43c097b47dcb9072"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (80 lines \u00D7 2): lib/screens/home/scan_screen.dart:1471-1550 | lib/screens/scan/main_scan_ui/scan_screen.dart:1436-1515 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1471}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9da1a6430a4dd390b9ce2442a086aa93c88c606a2f0fe0ddf0f33cffaf4d59e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (74 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:323-396 | lib/vpn/services/full_vpn_backend.dart:457-530 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f970c29170bc1f411fab04d3e07923ab03de6a3ca6487dc5d6c0a1b3c4e56c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:190-254 | lib/screens/scan_ui_screen.dart:2112-2176 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28c0de988dacd62212641152111e589b9ff17b6ef7d70683f43bb4a84ed33e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (105 lines \u00D7 2): lib/screens/home/scan_screen.dart:380-484 | lib/screens/scan/main_scan_ui/scan_screen.dart:424-528 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:380\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc14aca32dbbffeac99a59a4eb66b129ed4a028d0085fe51bf74fc1583940b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (53 lines \u00D7 2): lib/screens/vpn/full_vpn_footer_nav.dart:49-101 | lib/widgets/footer_nav.dart:51-103 \u2014 before extracting anything, compare \u0060lib/screens/vpn/full_vpn_footer_nav.dart\u0060 and \u0060lib/widgets/footer_nav.dart\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/full_vpn_footer_nav.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"9740c19b7f812ac8741fafee18e3e9609b902b0b476fa546f56776fba71fc6e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): lib/screens/home/scan_screen.dart:2210-2258 | lib/screens/scan/main_scan_ui/scan_screen.dart:2175-2223 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:2210\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":2210}}}],"partialFingerprints":{"codehealthFindingId/v1":"7871fe5fe873442c39f01c6bbc267e7ab1dabe6f0df74963b7a0eaf5fe3372c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:806-854 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:786-834 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/NetworkProtectionScreen.dart:806\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060p\u0060 to \u0060_UpstreamPreset\u0060 in one and \u0060UpstreamPreset\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5840377152bd6aa96c3bb22fa1734093a56064d3ef6b491b7ae949ca2c267b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 3): lib/screens/home/scan_screen.dart:2260-2307 | lib/screens/scan/main_scan_ui/scan_screen.dart:2225-2272 | lib/screens/scan_ui_screen.dart:1868-1915 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":2260}}}],"partialFingerprints":{"codehealthFindingId/v1":"47eb56a7baa7d747a6cbbacc38d6ebf2368da7c0486c4092171c7988078f3a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:801-844 | lib/screens/vpn/NetworkProtectionScreen.dart:1096-1139 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:1090-1133 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:801\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"571793e4f96a50afaef8e165f975da6405214b0c025c0e0b5081d5fde61063ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): lib/screens/home_screen.dart:1150-1191 | lib/screens/scan/scan_limits_screen.dart:119-160 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home_screen.dart:1150\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/screens/home_screen.dart:1147\u0060 calls \u0060InkWell\u0060, \u0060circular\u0060 and \u0060lib/screens/scan/scan_limits_screen.dart:118\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home_screen.dart"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f7eadfbf5a216b6ada165133a7f845e7d39111a99d16086f0c5d5c59717fa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:36-77 | lib/screens/scan_ui_screen.dart:1958-1999 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd41ee711a4bfa61df4f441c6280b7e9d2e22e456764fc82a32cfe8ad056450"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:566-607 | lib/vpn/services/full_vpn_backend.dart:778-819 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/services/full_vpn_backend.dart:566\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/screens/vpn/services/full_vpn_backend.dart:609\u0060 calls \u0060toString\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart:821\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d9e84800715480d23da40a0a2fe99b65022a1814ad72874e9ec59a54c7e0ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): lib/screens/home/scan_screen.dart:1286-1325 | lib/screens/scan/main_scan_ui/scan_screen.dart:1251-1290 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:1286\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb690280763207eaf4542290e833c91d9d89221b213f3db0cf4a1498ce2abcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36\u201339 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:218-256 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:183-218 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/NetworkProtectionScreen.dart:218\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fd1503e2c1ae264789edd3496fad696f34051d28bf083d4b257bfe5c4069db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): lib/screens/home/home_screen.dart:334-371 | lib/screens/home_screen.dart:184-221 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/home_screen.dart:334\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"834651431229108e328c7dd90f566e3bd9c8de30c3d767485b94164181dee209"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37\u201338 lines \u00D7 2): lib/screens/scan_screen.dart:122-159 | lib/services/scan_controller.dart:120-156 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/services/scan_controller.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan_screen.dart:122\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9bd7d1dfb00843830106377b620a16af9a38246c7871f07385f7a33bd62f978"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:939-976 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:935-972 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c5f180667dc6636905a63b05b8e3634ce3107ab5b7b495b9c9788cedde5a9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): lib/screens/home/scan_screen.dart:2334-2370 | lib/screens/scan/main_scan_ui/scan_screen.dart:2299-2335 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":2334}}}],"partialFingerprints":{"codehealthFindingId/v1":"fae546742706282dec6d20c1a47c312f1d151cf99e4e3533fec7afafe9d31f35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (54 lines \u00D7 2): lib/screens/apkAnalyser/apk_analyser.dart:269-322 | lib/screens/apkAnalyser/apk_report_screen.dart:119-172 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7def4179a3fc6e053f244131d227565fafbde3588c8332d059139a684c4aeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): lib/screens/home/scan_screen.dart:495-530 | lib/screens/scan/main_scan_ui/scan_screen.dart:539-574 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e6253e4c18b38fd8d004ed6db168fca218079b542fcd6778c7ca2bf37e0b17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:412-447 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:392-427 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"c875265f793f29f080ee166a2e5465e0a311d54c21bc1c1bf192c3ac122d5c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (83 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:1297-1379 | lib/screens/vpn/dns/network_live_logs_screen.dart:50-132 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/network_live_logs_screen.dart\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 162 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/NetworkProtectionScreen.dart:1297\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":1297}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0ffefa1a1476370118599b355274a25d90675d86cdef0d4b577ff81aa38168"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): lib/screens/home/scan_screen.dart:1369-1401 | lib/screens/scan/main_scan_ui/scan_screen.dart:1334-1366 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:1369\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1369}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12e36f3b136c3933a2f3d57f14669d4346cd05cd31b575f51b50863d6c7fb3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): lib/screens/vpn/services/full_vpn_location_map.dart:235-267 | lib/vpn/services/full_vpn_location_map.dart:430-462 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_location_map.dart\u0060 and \u0060lib/vpn/services/full_vpn_location_map.dart\u0060 as WHOLE FILES: this scan already matched 7 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/services/full_vpn_location_map.dart:235\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"be3a97cd1b0d91ce4fffbfd1e9deab6e06961230f8b704d6b6bab0b98c1c64e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): lib/screens/home/home_screen.dart:852-883 | lib/screens/home_screen.dart:223-254 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/home_screen.dart:852\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd019afac37d10a0341726a80ea2cd9209867f546eaf9356b27c0f9cb5dec592"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201331 lines \u00D7 3): lib/screens/home/scan_screen.dart:1570-1598 | lib/screens/scan/main_scan_ui/scan_screen.dart:1535-1563 | lib/screens/scan_ui_screen.dart:1419-1449 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:1570\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/screens/home/scan_screen.dart:1566\u0060 calls \u0060_buildScanningMain\u0060 and \u0060lib/screens/scan_ui_screen.dart:1418\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5737c55439816e8ce7ddb9ca6b02dc5fbca5662636487aa957b640cdc0fdae5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): lib/screens/home/scan_screen.dart:1269-1298 | lib/screens/scan/main_scan_ui/scan_screen.dart:1234-1263 | lib/screens/scan_ui_screen.dart:1338-1367 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:1269\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1269}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f52a70fa857b9f4df2f411375413616397cb342df0e8a805add3318f5fd91f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): lib/screens/password manager/password_manager_screen.dart:345-374 | lib/screens/password manager/password_manager_screen.dart:441-470 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/password manager/password_manager_screen.dart:345\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/password manager/password_manager_screen.dart"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"f655a71977e53418902b0a2edb0c034070cd5a7e907712f3ac6e5cddaad38318"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:1177-1203 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:1241-1269 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/NetworkProtectionScreen.dart:1177\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e634a47cd55d1355382a8daf116bf9e8fcc04d679b2d7607f629d4c892e0a15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): lib/screens/home/home_screen.dart:910-937 | lib/screens/home_screen.dart:278-305 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/home_screen.dart:910\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaae602e74a1f63f45b40107331393e422eba9b5359515ba0ab399072c39b926"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): lib/screens/home/scan_screen.dart:716-743 | lib/screens/scan/main_scan_ui/scan_screen.dart:760-787 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af9ad4a80772464523122900cf872bbbf8d6de1866ccb916f367c011391128e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201328 lines \u00D7 2): lib/screens/scan_screen.dart:657-684 | lib/screens/scan_ui_screen.dart:1104-1129 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan_screen.dart:657\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"c47fb87f1e595745888bb3030cac0c8a35763568f01ec3649b28d50ace32117f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:492-549 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:472-529 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"4edba2969d4f74c5360572b69db70e0b3f0f609d293e65d8b30b90a884452ee0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:652-678 | lib/vpn/services/full_vpn_backend.dart:863-889 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ed6eaed40dad1d45cd5b60a4b5fd6662eb94d3df35a4a0a67dd62b0531bf17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 3): lib/screens/permissions_intro_screen.dart:31-56 | lib/screens/scan_screen.dart:305-330 | lib/screens/scan_ui_screen.dart:892-916 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 122 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/screens/permissions_intro_screen.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"312be0166a9dd3e78a3d0058680f02d56605e7f58bc89123f8549a99941ecb5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): lib/screens/scan_screen.dart:1404-1428 | lib/services/scan_controller.dart:409-434 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/services/scan_controller.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/scan_screen.dart"},"region":{"startLine":1404}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7e50f6fb5dbc83cb8bf538d09542ef63c43694414a1185ea754ff2e3a1ed45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201326 lines \u00D7 2): lib/services/purchase_service.dart:338-362 | lib/services/purchase_service.dart:390-415 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/services/purchase_service.dart:338\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/purchase_service.dart"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee43e1707415cf1c48f4e22c4c753f1bc5a839aac5a9e9f1587340ba361d5e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3): lib/screens/home/home_screen.dart:704-728 | lib/screens/home/scan_screen.dart:1433-1457 | lib/screens/scan/main_scan_ui/scan_screen.dart:1398-1422 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/home_screen.dart:704\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc7b769d5c2f82adab437af05db55f40c22889660249f8803eb2ff2b705df17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): lib/screens/scan/scheduled_scan_screen.dart:405-429 | lib/screens/scan/scheduled_scan_screen.dart:472-496 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/scheduled_scan_screen.dart:405\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/scheduled_scan_screen.dart"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d8f3f7e5f980e28a6197e2bf3960f19d8a5feb437f0188cac6db1efe6c00cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): lib/screens/apkAnalyser/apk_analyser.dart:353-376 | lib/screens/home/scan_screen.dart:1353-1376 | lib/screens/scan/main_scan_ui/scan_screen.dart:1318-1341 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/apkAnalyser/apk_analyser.dart:353\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"353ba261c9aa35fd9e85e4c0bd025fc99b586cebf3c8fa4968fea27ec28076d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): lib/screens/home/scan_screen.dart:854-877 | lib/screens/scan/main_scan_ui/scan_screen.dart:853-876 | lib/screens/scan_ui_screen.dart:968-991 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"8964fd1a9eaa8b3cf5d4d97d04daf7714913ba39061ead43aa3b77942e1ce1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:991-1036 | lib/screens/vpn/NetworkProtectionScreen.dart:1309-1354 | lib/screens/vpn/dns/network_live_logs_screen.dart:62-107 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:991\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":991}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b51a65d4c75208ff6a63b64dd4d55418b769f353defd5a29fe60c03973eb244"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): lib/screens/scan/scan_limits_screen.dart:220-243 | lib/screens/scan/scheduled_scan_screen.dart:219-241 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/scan_limits_screen.dart:220\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/scan_limits_screen.dart"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"16bbfd3fb129124b83ce3e2b9c7f1494aadd2bcd65535e2c42b063082fad649b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:627-650 | lib/vpn/services/full_vpn_backend.dart:838-861 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9f26aac8838dded760595fe1ce70388e81aa047c53d2b2a99760d163531899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): lib/screens/home/home_screen.dart:292-313 | lib/screens/home_screen.dart:154-176 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/screens/home/home_screen.dart:314\u0060 calls \u0060_initVpn\u0060 and \u0060lib/screens/home_screen.dart:177\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"8930b6de1c7ea9b47d41d7618ef040de4aada96711f78a60a6d87f60fd46f2d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/screens/home/home_screen.dart:1079-1101 | lib/screens/home_screen.dart:441-463 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba86b682e82d90f6b4351356c544b3166e326884ce15cf30bb02fc04dce19ffc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): lib/screens/quarantine/quarantine_screen.dart:491-512 | lib/screens/quarantine/quarantine_screen.dart:608-630 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/quarantine/quarantine_screen.dart:491\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/quarantine/quarantine_screen.dart"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ef50377ffd130e46fa8919a389cfdea8f4b0b2fdc5d71e7292c4f2c022252ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:45-67 | lib/screens/scan_ui_screen.dart:130-152 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:45\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/screens/scan_ui_screen.dart:127\u0060 calls \u0060exit\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:42\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_isolate_worker.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5842b43eeab2e537ab58f281a83c07ee761da9f45ebb308a104ddd7ce08640b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): lib/screens/home/scan_screen.dart:2199-2220 | lib/screens/scan/main_scan_ui/scan_screen.dart:2164-2185 | lib/screens/scan_ui_screen.dart:1748-1769 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:2199\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":2199}}}],"partialFingerprints":{"codehealthFindingId/v1":"2066f89228fde1ba8556df5f3bcbfb79e4e292687ec96903176253aece2e3867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3): lib/screens/settings/full_vpn_settings_screen.dart:328-349 | lib/screens/settings/full_vpn_settings_screen.dart:365-386 | lib/screens/settings/full_vpn_settings_screen.dart:408-429 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings/full_vpn_settings_screen.dart:328\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings/full_vpn_settings_screen.dart"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ce48409b99fb5a18e1e4ffa8bab57bbf1ded6ce50875694f7ee9a90cdf97aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/screens/apkAnalyser/apk_analyser.dart:193-214 | lib/screens/apkAnalyser/apk_analyser.dart:748-769 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/apkAnalyser/apk_analyser.dart:193\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46e2dd08259be95c64660c8bdccf05240ab12902d1799d24ca14401e1f8947f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:92-113 | lib/screens/scan_ui_screen.dart:2014-2035 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:92\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"5518088941fd2991559403823a7d43fccce1f745c77cbfbbacbf2e99f1667bdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201322 lines \u00D7 2): lib/screens/settings/full_vpn_settings_screen.dart:70-90 | lib/screens/vpn/full_vpn_mode_screen.dart:203-224 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings/full_vpn_settings_screen.dart:70\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings/full_vpn_settings_screen.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2cb7a85494cffecf1055116dcb25e13abaa4d52fe21730de876d6276bba327"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201322 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:302-321 | lib/vpn/services/full_vpn_backend.dart:434-455 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/services/full_vpn_backend.dart:302\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"13144a67ce66ccaa01830649905bcd7cac4b75d007c00a5a2e776b3a1431657e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:845-866 | lib/vpn/services/full_vpn_backend.dart:1176-1197 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":845}}}],"partialFingerprints":{"codehealthFindingId/v1":"5caaa89969f2b6b3192aef73e27ceeadd2f3296a0d1c75f73fbdbbe025e50d34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3): lib/screens/home/scan_screen.dart:408-428 | lib/screens/scan/main_scan_ui/scan_screen.dart:452-472 | lib/screens/scan_ui_screen.dart:597-617 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:408\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a9b74f9edd79e2199aebf3a68f0b57072542bc0af4b64ea147e628de358608"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/screens/home/av_home_feature_row.dart:36-56 | lib/screens/home/scan_modes_screen.dart:242-262 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/av_home_feature_row.dart:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/av_home_feature_row.dart"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45066de4ebf8b8205876c1ea0c63f3918879eb31c698c605d8c2482a3f38774"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): lib/screens/home/scan_screen.dart:44-65 | lib/screens/scan/main_scan_ui/scan_screen.dart:89-110 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"55094663320b7d18ae104e45d6697a82ccf7372dc8783f8ecf80977809af908d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/screens/home/scan_screen.dart:211-231 | lib/screens/scan/main_scan_ui/scan_screen.dart:255-275 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b7bfedd3a8e68607cdfa3ad744267518619b4b72a8ccf02d4f09cb8a1c0f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/screens/scan_ui_screen.dart:1721-1741 | lib/screens/scan_ui_screen.dart:1784-1804 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan_ui_screen.dart:1721\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":1721}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d8ddf155518d0c155f44e6ee3717da06cc3b1a79e2fd23c2735ae7eb51e4a9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:470-490 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:450-470 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/NetworkProtectionScreen.dart:470\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fda7236e9e248f9a5c731f5738188a26886f5bbcff8cd2ee5649948b3d2119"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:856-876 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:836-856 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/NetworkProtectionScreen.dart:856\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d6df3e245f4555585267c3fbb4735ce0289820e14ffff7d6454944225fd153"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): lib/screens/home/scan_screen.dart:1880-1899 | lib/screens/home/scan_screen.dart:2174-2193 | lib/screens/scan/main_scan_ui/scan_screen.dart:1845-1864 | lib/screens/scan/main_scan_ui/scan_screen.dart:2139-2158 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:1880\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7171e0ee346f61bab3d4ca537fd24bf221171178408e10984589fd73018da86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 3): lib/screens/apkAnalyser/apk_analyser.dart:552-571 | lib/screens/home/av_home_feature_row.dart:66-85 | lib/screens/home/scan_modes_screen.dart:274-293 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/apkAnalyser/apk_analyser.dart:552\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"f924dc46f53fbaf7aa14d3ec18d17517aafa0e2d5fed41c470429155d6e3932e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 3): lib/screens/home/scan_screen.dart:430-449 | lib/screens/scan/main_scan_ui/scan_screen.dart:474-493 | lib/screens/scan_ui_screen.dart:618-636 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:430\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42176055721299e30825587be548f900d28c855c898f366bcf1290bdc710948"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201320 lines \u00D7 3): lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:61-76 | lib/screens/scan_ui_screen.dart:146-161 | lib/services/scan_controller.dart:102-121 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/scan/main_scan_ui/scan_isolate_worker.dart"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d708711d9a5956d8893102ab0b582e2c264397e8684e8d7264e3c2d4de9792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/screens/home/scan_screen.dart:154-173 | lib/screens/scan/main_scan_ui/scan_screen.dart:198-217 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"900bcf79af052709b979d4e1f41903e15c4b57abf9a54e46c187d5c9933ca08f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/screens/home/scan_screen.dart:764-783 | lib/screens/scan/main_scan_ui/scan_screen.dart:68-87 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa3ce88fdcf33f052c518ca07b712e60878e7a8ba5465da65b2d0a4f092c757"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:25-43 | lib/services/scan api/headless_scan.dart:134-153 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart\u0060 and \u0060lib/services/scan api/headless_scan.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 45 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_isolate_worker.dart"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b5c649d00f9771963baa1e1026f5fc3ec9b4ffc8e9031ea9af279e0e24bea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:93-112 | lib/screens/scan_ui_screen.dart:178-197 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:93\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_isolate_worker.dart"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca0c7182f52f9635bef2555401c01ba1ce370ec1cc3b54c70f1ed321a92186c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_log_listener.dart:33-52 | lib/widgets/scan_log_listener.dart:34-53 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_log_listener.dart\u0060 and \u0060lib/widgets/scan_log_listener.dart\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_log_listener.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5cfb32189740f851ba06e1100122a5e63a19c3e8e16400758490b34cf65171b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): lib/screens/scan_screen.dart:934-953 | lib/services/scan_controller.dart:355-373 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/services/scan_controller.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan_screen.dart:934\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead7143f34a11e3dcc18c575729d8b8a531a0722182d5746c756e20d6b452962"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:318-337 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:298-317 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/NetworkProtectionScreen.dart:318\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d6f0e27cb139cd380697a8d414d7bd12bf0bb233eb38c0ab86dd5cd840e60ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): lib/screens/vpn/services/full_vpn_location_map.dart:397-416 | lib/vpn/services/full_vpn_location_map.dart:548-567 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_location_map.dart\u0060 and \u0060lib/vpn/services/full_vpn_location_map.dart\u0060 as WHOLE FILES: this scan already matched 7 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/services/full_vpn_location_map.dart:397\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ce654dc1715c2fb17b9a058f545ea688835f3d771d5d1b3ae5712e8ab92b97"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:751-769 | lib/screens/vpn/NetworkProtectionScreen.dart:890-908 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:876-894 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart:897\u0060 calls \u0060of\u0060 and \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:772\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"f757a0c98f80ba51480578979e622671a3422315fb5eb338eb6442809b6e5174"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/screens/home/home_screen.dart:1059-1077 | lib/screens/home_screen.dart:421-439 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"010bc752fa9a9738d27069ee9c34b2a96991e2c3d01f987b33ac93d1e8be409a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/screens/home/scan_screen.dart:2309-2327 | lib/screens/scan/main_scan_ui/scan_screen.dart:2274-2292 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":2309}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cba66e324d45721f0b834e852a713891b983fc76b5d7848fdf2cec533e145f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201319 lines \u00D7 2): lib/screens/scan_ui_screen.dart:360-374 | lib/services/realtime_protection_service.dart:561-579 \u2014 before extracting anything, compare \u0060lib/screens/scan_ui_screen.dart\u0060 and \u0060lib/services/realtime_protection_service.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan_ui_screen.dart:360\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"47eb9a7de7ea7c3c7550648e5bfdf618a6e6bfec815949df8e49c0b53bf25246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:528-545 | lib/screens/vpn/AdvancedNetworkProtection_screen.dart:596-614 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:528\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ff82f6e2f1c8d49d219f60c22b5da3e5138a23904eac1847c59996c314194e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:886-904 | lib/vpn/services/full_vpn_backend.dart:1222-1238 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/services/full_vpn_backend.dart:886\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d1d492ab61ba84ed2db3bcf729d8d65ee6d25e3fe3f662a616448c652bb5e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201318 lines \u00D7 3): lib/screens/home/scan_screen.dart:300-312 | lib/screens/scan/main_scan_ui/scan_screen.dart:344-356 | lib/screens/scan_ui_screen.dart:508-525 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:300\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"b379e627d1e3d8350b04282c72424dc9d4e227eaba2d63293d973154e6e464d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): lib/screens/home/scan_screen.dart:476-493 | lib/screens/scan/main_scan_ui/scan_screen.dart:520-537 | lib/screens/scan_ui_screen.dart:660-677 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:476\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"809fe0596bf5b5ab694ac48e89fda9fddfedef8f2265d5264d2e54f099f8fb21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:315-332 | lib/screens/vpn/NetworkProtectionScreen.dart:466-483 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:446-463 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:315\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/screens/vpn/NetworkProtectionScreen.dart:484\u0060 calls \u0060_loadUsage\u0060 and \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:333\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"d322e7f811e518287b77df57621c98256012411839a1558d7e1f65e34c747bec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/screens/home/scan_modes_screen.dart:261-278 | lib/screens/settings/widgets/settings_setting_tile.dart:48-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_modes_screen.dart:261\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_modes_screen.dart"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"413666e8b7f2e48ba3392af6414dec299478251860fc4b561cf1ad052f154cc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/screens/home/scan_screen.dart:562-579 | lib/screens/scan/main_scan_ui/scan_screen.dart:606-623 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c7a42575203f96c18acaa7ebee479bfcd3216797cdf168f570f8712e3ed27f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/screens/home/scan_screen.dart:594-611 | lib/screens/scan/main_scan_ui/scan_screen.dart:638-655 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe1d177f34ff676fda455a4f4388b1d5aa0ac0e91b5a9ee800fcbe6b7e7c566e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/screens/home/security_report_screen.dart:242-259 | lib/screens/home/security_report_screen.dart:398-415 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/security_report_screen.dart:242\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/security_report_screen.dart"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"302f2b2711d1b4597a156205d7687905f871782fbcd7690f9b92cc7cb97ed4a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:446-475 | lib/vpn/services/full_vpn_backend.dart:623-652 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf557cc20ed5ee426f7d93757c00c6cf9e1fa61206c1a4fcdc1b260a6884ca7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:766-783 | lib/vpn/services/full_vpn_backend.dart:1097-1114 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f97ea0467477ebecd4bb9470c3014f1291bc57f64fe1ce3903f3494d64fcfcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 4): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:657-673 | lib/screens/vpn/AdvancedNetworkProtection_screen.dart:1006-1021 | lib/screens/vpn/NetworkProtectionScreen.dart:1324-1339 | lib/screens/vpn/dns/network_live_logs_screen.dart:77-92 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:657\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"208618b2ad508ae0a0ad48234611fe72448cf8964ce4a17e4e705cf35316a776"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): lib/screens/home/av_home_drawer.dart:189-204 | lib/screens/home/scan_screen.dart:1488-1504 | lib/screens/scan/main_scan_ui/scan_screen.dart:1453-1469 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/av_home_drawer.dart:189\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/av_home_drawer.dart"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2eaf9543f6d70eba58fc354c36ed04fd206c5d5a7fb6b1b91cfb9d4559b36cdf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201317 lines \u00D7 3): lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:23-37 | lib/screens/scan_ui_screen.dart:110-124 | lib/services/scan api/headless_scan.dart:131-147 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:23\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:38\u0060 calls \u0060free\u0060 and \u0060lib/screens/scan_ui_screen.dart:125\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_isolate_worker.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"d36ff59ed72bb494ee50e4bf94af81031527d8aec8f97c5fde60549a2579e661"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/screens/apkAnalyser/apk_analyser.dart:369-385 | lib/screens/settings/settings_screen.dart:894-910 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/apkAnalyser/apk_analyser.dart:369\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c77b55d080410a12e84525a5972c0d21166b4ecfeea97927bd1913ba6f4bc44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/screens/home/ring_pulse.dart:12-28 | lib/screens/home_screen.dart:1357-1373 \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/screens/home/ring_pulse.dart"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f941c4d4f37c21024ac6320ab507a759104ca7452b9728a4506e1405da7eb199"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/screens/home/scan_screen.dart:679-695 | lib/screens/scan/main_scan_ui/scan_screen.dart:723-739 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e7aa1b3bec8b5fb628327dcd125fd45d8d216ee6e4bf77be82d0f753d59c99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/screens/home/scan_screen.dart:745-761 | lib/screens/scan/main_scan_ui/scan_screen.dart:789-805 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df6d8e51128803b8dadf8abfa103b30e99f856436afefa8f4dca3372574328d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/screens/scan/scheduled_scan_screen.dart:287-303 | lib/screens/scan/scheduled_scan_screen.dart:325-341 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/scheduled_scan_screen.dart:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/scheduled_scan_screen.dart"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d90c9c7999929df7fff1d1307d7aa871462dd1fc9d6586f4f1197aa0802a188"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:355-371 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:335-351 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/NetworkProtectionScreen.dart:355\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":355}}}],"partialFingerprints":{"codehealthFindingId/v1":"15cf000dfc585428522b3c91ff2637755ff287fb66399b333b7e24815956b41f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:514-530 | lib/vpn/services/full_vpn_backend.dart:722-738 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/services/full_vpn_backend.dart:514\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a15589e74a087fefee3f4f01b0703c083e923e2201340140295ea2212267f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/screens/vpn/services/full_vpn_location_map.dart:212-230 | lib/vpn/services/full_vpn_location_map.dart:407-425 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_location_map.dart\u0060 and \u0060lib/vpn/services/full_vpn_location_map.dart\u0060 as WHOLE FILES: this scan already matched 7 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/services/full_vpn_location_map.dart:212\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3f4b973647a5434e7816a26299e58ecdfaf6eacc47abf6b6b9887f8b49d01d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/screens/vpn/services/full_vpn_location_service.dart:19-35 | lib/vpn/services/full_vpn_location_service.dart:21-37 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_location_service.dart\u0060 and \u0060lib/vpn/services/full_vpn_location_service.dart\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_location_service.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"74960a82db6fed3c7ff9685034ea0b1b074dc3e4fb43121fc9179300243ca5dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/screens/vpn/services/full_vpn_location_service.dart:43-59 | lib/vpn/services/full_vpn_location_service.dart:45-61 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_location_service.dart\u0060 and \u0060lib/vpn/services/full_vpn_location_service.dart\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_location_service.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6aada08d92404621b2bd79a99306f4cf9bacba592931b60b1740fff2f5c9386"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/services/purchase_service.dart:116-132 | lib/services/purchase_service.dart:198-214 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/purchase_service.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"195d30d444a07354b7e1738f0c5873f60ca64c850ff39f17cc7e3573b44f46ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): lib/services/realtime_protection_service.dart:644-660 | lib/services/realtime_protection_service.dart:740-756 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/services/realtime_protection_service.dart:644\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6937ca2aaaeaa903841ac12c279dd8c54045ed0e8d0fd3ae9b0a8e2285fb219"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201329 lines \u00D7 4): lib/screens/home/scan_screen.dart:1837-1863 | lib/screens/home/scan_screen.dart:2040-2068 | lib/screens/scan/main_scan_ui/scan_screen.dart:1802-1828 | lib/screens/scan/main_scan_ui/scan_screen.dart:2005-2033 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:1837\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/screens/home/scan_screen.dart:1836\u0060 calls \u0060SizedBox\u0060, \u0060Padding\u0060 and \u0060lib/screens/home/scan_screen.dart:2040\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1837}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a3bf83ad189c44728939a8b5604bea63598b148f9cfcd6ab856fa0629ba4ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:298-313 | lib/screens/vpn/NetworkProtectionScreen.dart:449-464 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:429-444 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 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/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b80c7b2c3d5e2eafb4f65eba767a551fc2d9604cb21b833158052583b239e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:552-567 | lib/screens/vpn/NetworkProtectionScreen.dart:801-816 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:781-796 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060p\u0060 to \u0060_UpstreamPreset\u0060 in one and \u0060UpstreamPreset\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/screens/vpn/NetworkProtectionScreen.dart:818\u0060 calls \u0060of\u0060 and \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:569\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f87c2114a8021c71a4bb9b91e6c0c38ff6927b0864aec469bee2311171981e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/screens/home/av_home_drawer.dart:251-266 | lib/screens/home/av_home_drawer.dart:295-310 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/av_home_drawer.dart:251\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/av_home_drawer.dart"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"532775aa83bcabe84e14781a0548605c2b7e3099713dfb8e6fb859e02ea32c9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/screens/home/scan_screen.dart:968-983 | lib/screens/scan/main_scan_ui/scan_screen.dart:967-982 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc9dd564cf7f15eab602c1f8acdcd403cf4b927e46a6efa2cf72cf3d85a4cd0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): lib/screens/scan_screen.dart:94-108 | lib/services/scan_controller.dart:91-106 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/services/scan_controller.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan_screen.dart:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4281b46cf29dcd837607368512fe0e9a49dd5a745497a7483948902407da035"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): lib/screens/vpn/dns/NetworkProtectionScreen.dart:332-345 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:361-376 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3f477969002d5d63f0d94120276dd8d85935888cb7f35ea23a7d0d0441d1d08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/screens/vpn/full_vpn_mode_screen.dart:381-396 | lib/screens/vpn/full_vpn_mode_screen.dart:419-434 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/full_vpn_mode_screen.dart:381\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/full_vpn_mode_screen.dart"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2e3b0cf356904a19f5467cfd7862f7168222e43e7c2de4575a88f9c419d147e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): lib/screens/apkAnalyser/apk_analyser.dart:365-379 | lib/screens/home/scan_screen.dart:1365-1379 | lib/screens/scan/main_scan_ui/scan_screen.dart:1330-1344 | lib/screens/settings/settings_screen.dart:890-904 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/apkAnalyser/apk_analyser.dart:365\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b9d52e2cf1234b9c1487d856b8b10f8169ca5cef32dcd525713c9525334501"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/screens/apkAnalyser/apk_analyser.dart:913-927 | lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:196-210 | lib/screens/scan_ui_screen.dart:2118-2132 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/apkAnalyser/apk_analyser.dart:913\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":913}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60d1fb3909d215bae4fc0e9d857779329e33ea2fc37dc08c58d700827a36fbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/screens/home/home_screen.dart:874-888 | lib/screens/home_screen.dart:245-259 | lib/screens/scan/scheduled_scan_screen.dart:132-146 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/home_screen.dart:874\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd54bbe05e1549160afe9c69b591809630150f2250e9e934d489ca0410855cd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/screens/home/scan_screen.dart:793-807 | lib/screens/scan/main_scan_ui/scan_screen.dart:815-829 | lib/screens/scan_ui_screen.dart:924-938 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"35aeb85618135333f461d9331a3d79ce05a9f48da1091fb5ab838a0cbb6e1609"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): lib/screens/home/security_report_screen.dart:243-257 | lib/screens/home/security_report_screen.dart:327-341 | lib/screens/home/security_report_screen.dart:399-413 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/screens/home/security_report_screen.dart:414\u0060 calls \u0060Padding\u0060, \u0060fromLTRB\u0060 and \u0060lib/screens/home/security_report_screen.dart:342\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/security_report_screen.dart"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91c2f62d8a1539da4ffe7eb27240f7ec2171ac97c2ca581aa8ac072804356b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/screens/home/scan_screen.dart:824-837 | lib/services/scan_controller.dart:233-247 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/services/scan_controller.dart\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 31 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d3d30cd875d442ccf0da773c4f6bdfb00a02f79a27af9284324ae3d32f6b521"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/screens/home/scan_screen.dart:1409-1423 | lib/screens/scan/main_scan_ui/scan_screen.dart:1374-1388 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1409}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc989682a89377a8c07f0a4c851ea772026aa455b841707ab77e7e082a696e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/screens/scan_screen.dart:394-408 | lib/screens/scan_ui_screen.dart:947-961 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 122 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/screens/scan_screen.dart"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f3a357d59d1beebf66cd828674972812ac092e0648076db4505a234d5d1b530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): lib/screens/settings/widgets/settings_pro_card.dart:45-58 | lib/screens/settings/widgets/settings_pro_card.dart:123-137 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings/widgets/settings_pro_card.dart:45\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings/widgets/settings_pro_card.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"03fb4c6e8c474f4ad64496e3261faab25b544e85f93739d51c3ea6db7503a361"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:148-162 | lib/screens/vpn/NetworkProtectionScreen.dart:185-199 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:148\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/screens/vpn/NetworkProtectionScreen.dart:181\u0060 calls \u0060_loadUsage\u0060 and \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:144\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e0afd15fc120c38d08528cff947160b6221c8207e664d235c562661ed0f49f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:686-700 | lib/screens/vpn/AdvancedNetworkProtection_screen.dart:1033-1047 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:686\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"363a646a50ee4b342199517aa8e7dc312d40c668b8883f35ab57c2d7032dbf82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:784-798 | lib/screens/vpn/NetworkProtectionScreen.dart:923-937 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 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/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"7297a952f8dd081dac7a7ec629f1a063f9f3345cd57468d1483c01a85f447845"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:955-969 | lib/screens/vpn/NetworkProtectionScreen.dart:1272-1286 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:955\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d2ede62dadb94e00da802ff0f8050aeb2158a831511d711913f0e7f7dbf362"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:1222-1234 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:1284-1298 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/NetworkProtectionScreen.dart:1222\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"6895fb6ede75e4befe6dcdd67085946d9c12aa1e60c40fb2ddd8f8b291b322e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): lib/screens/home/scan_screen.dart:953-966 | lib/screens/home/scan_screen.dart:1115-1128 | lib/screens/scan/main_scan_ui/scan_screen.dart:952-965 | lib/screens/scan/main_scan_ui/scan_screen.dart:1080-1093 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:953\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c1e4e05dbd620bc0b00acc1a494b782d47e94071a8e7fd4acc51686cfaa0db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/screens/home/home_screen.dart:853-866 | lib/screens/home_screen.dart:224-237 | lib/screens/scan/scheduled_scan_screen.dart:111-124 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/home_screen.dart:853\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"c69ec2e45deff981c551fb76e5a0ab77c204696f55931940f471ce832c4a1472"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): lib/screens/home/scan_screen.dart:285-296 | lib/screens/scan/main_scan_ui/scan_screen.dart:329-340 | lib/screens/scan_ui_screen.dart:494-507 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:285\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/screens/scan_ui_screen.dart:493\u0060 calls \u0060_appendScanLog\u0060 and \u0060lib/screens/home/scan_screen.dart:284\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"429652898f2a7f6f127a6d6bc71d8f57b1d1fa41d5ff30faf20251101be49a82"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/screens/home/scan_screen.dart:664-677 | lib/screens/scan/main_scan_ui/scan_screen.dart:708-721 | lib/screens/scan_ui_screen.dart:811-824 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"109e8bc74d082e59af12b5f27dea06cce0c3f58db92a3268838a182ed85ee13a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/screens/home/scan_screen.dart:1038-1051 | lib/screens/scan_screen.dart:707-722 | lib/screens/scan_ui_screen.dart:1143-1156 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:1038\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"d26d236ca1558dc4ecb44ad3ef8b20aca4dcee82c071aa1719435d860ec31a73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): lib/screens/home/scan_screen.dart:1039-1052 | lib/screens/scan/main_scan_ui/scan_screen.dart:1004-1017 | lib/screens/scan_ui_screen.dart:1144-1157 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b42e83fb6b014660e98bff4eb1ea8233852c550d256f8279ad59416d7b84a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:175-188 | lib/screens/vpn/NetworkProtectionScreen.dart:228-241 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:192-203 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:175\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb2f02234771f5f9f706ae85b4aa9450a96b818bdaa668cfbd76388443b90e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/screens/home/device_security_screen.dart:258-271 | lib/screens/home/device_security_screen.dart:767-780 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/device_security_screen.dart:258\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/device_security_screen.dart"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0bc2a74b7822a4ecce2005239290058c9a42c1e8b5de93921d4cd4d2f606814"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/screens/scan_ui_screen.dart:1589-1602 | lib/screens/scan_ui_screen.dart:1764-1777 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan_ui_screen.dart:1589\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":1589}}}],"partialFingerprints":{"codehealthFindingId/v1":"69b99e8757504ac06f8fee63277d3435cbcd91cb95a0a7021fed563087557fc3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:728-741 | lib/screens/vpn/NetworkProtectionScreen.dart:867-880 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:728\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"be13ac2398e4ccebb0fb09eb618153cd4f20d746701c1ccedc9261bdeb2cb769"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/services/realtime_protection_service.dart:676-689 | lib/services/realtime_protection_service.dart:749-762 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb83e577d5e7efee2585713806adf9c43a21d0de9f4b97142b065bf84e5db2c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/services/realtime_protection_service.dart:694-707 | lib/services/realtime_protection_service.dart:760-773 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/services/realtime_protection_service.dart:694\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/services/realtime_protection_service.dart:709\u0060 calls \u0060unawaited\u0060, \u0060_saveIndex\u0060 and \u0060lib/services/realtime_protection_service.dart:774\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"6540ee04da3ded284d0aef89209bd25f0dfc060fdcc196773311c68ffd7a9eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4): lib/screens/home/scan_screen.dart:892-904 | lib/screens/home/scan_screen.dart:1067-1079 | lib/screens/scan/main_scan_ui/scan_screen.dart:891-903 | lib/screens/scan/main_scan_ui/scan_screen.dart:1032-1044 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:892\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1f25fe8b3b31d184328a03e496c036d5c7cf4537ce4c830b6d1dceb1f6e181"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): lib/screens/scan/scan_limits_screen.dart:116-127 | lib/screens/scan/scan_limits_screen.dart:227-239 | lib/screens/scan/scheduled_scan_screen.dart:225-237 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/scan_limits_screen.dart:116\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/scan_limits_screen.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"411defec437e922edbe9da3aa710a7898dba762215379f361cbbf22c29aed612"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/screens/scan/scheduled_scan_screen.dart:363-375 | lib/screens/scan/scheduled_scan_screen.dart:438-450 | lib/screens/scan/scheduled_scan_screen.dart:505-517 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/scheduled_scan_screen.dart:363\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/scheduled_scan_screen.dart"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"883e56877f51513cab746fb1b5266a271de4e88559fce26edc323bdd77ca3c4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:574-586 | lib/screens/vpn/NetworkProtectionScreen.dart:825-837 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:805-817 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:574\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060p\u0060 to \u0060_UpstreamPreset\u0060 in one and \u0060UpstreamPreset\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc923e0460bb53dfb52a5e405bc51f0ac5b3944b50063a7fa0fd5b47d756af1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/screens/home/av_home_feature_row.dart:21-33 | lib/screens/home/av_home_primary_control.dart:28-40 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/av_home_feature_row.dart:21\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/av_home_feature_row.dart"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8db9fbe5dd7a36d232185bfcd8fcfd466c78b3e6f4b8d4c26d9b5b63018e7fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/screens/home/home_screen.dart:207-219 | lib/services/realtime_protection_service.dart:126-138 \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/screens/home/home_screen.dart"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"40dca5235674194db2b943ab21f62e27b3026b95476df8088d127e1569b6adc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/screens/home/home_screen.dart:1738-1750 | lib/screens/home/security_report_screen.dart:549-561 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cdb5fa6f72f991245309ca85d7f3dc0f8949a663f4cb89b97123f291996eeae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/screens/home/scan_screen.dart:183-195 | lib/screens/scan/main_scan_ui/scan_screen.dart:227-239 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e91b62c9ce26c50960838eaa47ac594bec9143634999ec5a7836b04516f4a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/screens/home/scan_screen.dart:532-544 | lib/screens/scan/main_scan_ui/scan_screen.dart:576-588 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"474ace21652c8cd1a1809a513155536a59a3abfb24a7935f21f02553713ad31c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/screens/home/scan_screen.dart:626-638 | lib/screens/scan/main_scan_ui/scan_screen.dart:670-682 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"470898bb75cdcfd6bea7df732384714ffb521a4073f95d91055827b5d83ca02e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/screens/home_screen.dart:1099-1111 | lib/screens/link checker/link_check_screen.dart:712-724 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home_screen.dart:1099\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home_screen.dart"},"region":{"startLine":1099}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7331cbd8346f1203627503f3d8d8b6875bff957b3cbf0f2e72dff0d49176ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/screens/pro/pro_screen.dart:208-220 | lib/screens/pro/pro_screen.dart:402-414 \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/screens/pro/pro_screen.dart"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70a0c11e64544441045dd410d27d0fb2882af6a768f2b88cd89ee6560262291"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/screens/pro/pro_screen.dart:264-276 | lib/screens/pro/pro_screen.dart:436-448 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/pro/pro_screen.dart:264\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/pro/pro_screen.dart"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"6756f83c90ba63b2c3f71faae1ffad4732993e7e5ccecb6783f3c41f2dbc079c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:251-263 | lib/screens/vpn/NetworkProtectionScreen.dart:379-391 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:251\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"94eae6bcec40f9e50bf56d1fc0993fc231d507a8e7f9d34490144f0ffb04e310"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:286-298 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:266-278 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/NetworkProtectionScreen.dart:286\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"819a75218fb8062402bbe58447b78bfa5fd1661554feae546c7ad3e863cad0b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:290-300 | lib/vpn/services/full_vpn_backend.dart:419-431 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/services/full_vpn_backend.dart:290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2f70576614f7ca79dd0eaea5786202a9632b9262967f2e8ceea5bec6ab16de6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lib/services/realtime_protection_service.dart:815-826 | lib/services/realtime_protection_service.dart:829-841 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/services/realtime_protection_service.dart:829\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d22e74c7217c7f3d595187f32314ced42a678a13849c08180434ec783fd5ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/services/realtime_protection_service.dart:822-834 | lib/services/realtime_protection_service.dart:856-868 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/services/realtime_protection_service.dart:822\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5484e708516d33964c517763237287add7933aebb45c9c0aaee3ec0874feab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): lib/services/scan_controller.dart:214-226 | lib/terminal/terminal_controller.dart:119-130 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/services/scan_controller.dart:214\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/scan_controller.dart"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa843e494058f3f03cc2add384776f966d522241a5d64bb30a4237e8d324454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/screens/home/scan_screen.dart:121-132 | lib/screens/scan/main_scan_ui/scan_screen.dart:165-176 | lib/screens/scan_ui_screen.dart:334-345 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/screens/home/scan_screen.dart:118\u0060 calls \u0060MethodChannel\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart:161\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2ca14040f81e6457bc92479e20fc0337260ea4e278d5ef4dcab60eb3881bad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:154-165 | lib/screens/vpn/NetworkProtectionScreen.dart:191-202 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:154-165 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:154\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeaf79e0d80d486668aca3d965b7a73cbfaec1e92d3e35cdc31590a06887a6b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:268-279 | lib/screens/vpn/NetworkProtectionScreen.dart:399-410 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:379-390 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/screens/vpn/NetworkProtectionScreen.dart:396\u0060 calls \u0060_loadUsage\u0060 and \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:265\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be39d934a30233bfa838c38cd613b223ea724c5f65158a1b91f439906e0d4a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/home/home_screen.dart:896-907 | lib/screens/home_screen.dart:266-277 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/home_screen.dart:896\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"afba683517edb3b125d11c354072c9667904977bf11af609dac63ad0315cb502"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/home/scan_screen.dart:645-656 | lib/screens/scan/main_scan_ui/scan_screen.dart:689-700 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:645\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90fb3f4873d153c51ea257c7d77e2591a7154be8f2b2e674400e1a962f9622d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/home/scan_screen.dart:1154-1165 | lib/screens/scan/main_scan_ui/scan_screen.dart:1119-1130 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"9114f5ff50e78aa5938fab47a85ff98659d4efc30df8aef0fcee1a8e17cd4adf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/link checker/link_check_screen.dart:558-569 | lib/screens/link checker/link_check_screen.dart:830-841 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/link checker/link_check_screen.dart:558\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/link checker/link_check_screen.dart"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"44915ab284fc7d6a157484730a7ab84fbbc236756358df646b9f02309c40a3d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:79-90 | lib/screens/scan_ui_screen.dart:2001-2012 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:79\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ad49d5ee73115be3cd95eff06af350fc8bc7ff8a06695b70cd40bc14bb02c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:119-130 | lib/screens/scan_ui_screen.dart:2041-2052 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:119\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"78682f06a5b548dfe25870aafcad0d7cb09d268323a2bf6bcc2ce246b0a32fda"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:79-90 | lib/screens/scan_ui_screen.dart:164-175 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_isolate_worker.dart"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"529964e4c82cf54b31e8b6ceef41dca4810c347fc11c361fcdeee4912ad804ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/scan_screen.dart:81-92 | lib/services/scan_controller.dart:78-89 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/services/scan_controller.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"40136699f2729bb80027b78c95d6a0e2b7df30e8e27ba642b364147bf647774a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/scan_screen.dart:530-541 | lib/screens/scan_screen.dart:546-557 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan_screen.dart:530\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5ee7d6510794e11bce00c2eb1d1cbb478adf44eaa135694c2d5f031955225e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/scan_ui_screen.dart:1067-1078 | lib/screens/scan_ui_screen.dart:1081-1092 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan_ui_screen.dart:1067\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e17f99a10ef232a2bda95a79fab52cba57228d249ec6d704c09ff7bf663c2e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:237-248 | lib/screens/vpn/AdvancedNetworkProtection_screen.dart:355-366 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:352\u0060 calls \u0060_saveCloudPrefs\u0060, \u0060getInstance\u0060 and \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:235\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc512dfe667d5d9c9c465e7b4d477bc68dcccb2b27cb0127ce518514f0c5a382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:771-782 | lib/screens/vpn/NetworkProtectionScreen.dart:910-921 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 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/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6eb469ccef271b43b28be016d013f02fd6282df49a958caa01a71edc2485abc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201312 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:1146-1153 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:1215-1226 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/NetworkProtectionScreen.dart:1146\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f8fd7bc37a99646bc83b09c95f291a2ef8940f15502bc4baf23c82f757611e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:255-266 | lib/vpn/services/full_vpn_backend.dart:345-356 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/services/full_vpn_backend.dart:255\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2a3dcd3e8e8b73f9cb1f3397aab5bcdadb53119753c1c0bc7f6ff97f42bf867"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): lib/screens/home/scan_modes_screen.dart:229-239 | lib/screens/home/scan_screen.dart:2266-2276 | lib/screens/scan/main_scan_ui/scan_screen.dart:2231-2241 | lib/screens/scan_ui_screen.dart:1810-1820 | lib/screens/scan_ui_screen.dart:1874-1884 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_modes_screen.dart:229\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_modes_screen.dart"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a3ce8ed3a891a20f49e381eb8f76a21fc968352744ce642e0ef4c25784499e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): lib/screens/home/scan_screen.dart:1795-1805 | lib/screens/home/scan_screen.dart:1941-1951 | lib/screens/scan/main_scan_ui/scan_screen.dart:1760-1770 | lib/screens/scan/main_scan_ui/scan_screen.dart:1906-1916 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:1795\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1795}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ae77fbe9a9e640145023bb489f63c02768fba735d0ca777004da5de8219c9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): lib/screens/vpn/services/full_vpn_backend.dart:628-638 | lib/screens/vpn/services/full_vpn_backend.dart:653-663 | lib/vpn/services/full_vpn_backend.dart:839-849 | lib/vpn/services/full_vpn_backend.dart:864-874 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7befab7325df6ea59347bf4e047d57358ffac8ac85e24de172f73e9898a0efb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/screens/home/scan_screen.dart:268-278 | lib/screens/scan/main_scan_ui/scan_screen.dart:312-322 | lib/screens/scan_ui_screen.dart:473-483 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:268\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad6902b5959bb384188077c99b00df5461ba075d3ce15c6d7272ab645948a07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/screens/home/scan_screen.dart:1338-1348 | lib/screens/scan/main_scan_ui/scan_screen.dart:1303-1313 | lib/screens/scan_ui_screen.dart:1406-1416 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cb09ea4a0bab74a3c08ecebb6b4338cdcfeefdd0b5cc35b158356e492438ac5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/screens/home/scan_screen.dart:2372-2382 | lib/screens/scan/main_scan_ui/scan_screen.dart:2337-2347 | lib/screens/scan_ui_screen.dart:1917-1927 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":2372}}}],"partialFingerprints":{"codehealthFindingId/v1":"73bf157c6b74ad03564e5d7019aea60be2397f017a10374eda3b8de054067f53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:962-972 | lib/screens/vpn/NetworkProtectionScreen.dart:1279-1289 | lib/screens/vpn/dns/network_live_logs_screen.dart:32-42 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:962\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":962}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e329589c2e52c3f4830922800becd396b4ce3da50c824d911355f6652e4858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): lib/services/purchase_service.dart:118-128 | lib/services/purchase_service.dart:200-210 | lib/services/purchase_service.dart:480-490 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/services/purchase_service.dart:118\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/purchase_service.dart"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"b42713614ccd394d99d6e0a992e173e5a46be8505998b4c887147339183e63aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/screens/apkAnalyser/apk_analyser.dart:767-776 | lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:69-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/apkAnalyser/apk_analyser.dart:767\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"848dcd2d4f0301af60839657792fd98c77c2526c89110269346c9b8b0258266a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/screens/home/scan_screen.dart:704-714 | lib/screens/scan/main_scan_ui/scan_screen.dart:748-758 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":704}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d18bf8e283e7a1f3b6ce7039c3fe961ae1e0c573c65409f2b19f38c26107345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/screens/home/scan_screen.dart:1130-1140 | lib/screens/scan/main_scan_ui/scan_screen.dart:1095-1105 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d1763ed0d1a71360c78dc468a43413ad219481e26c06d5d4c41ec9d091ea539"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/screens/home/scan_screen.dart:1142-1152 | lib/screens/scan/main_scan_ui/scan_screen.dart:1107-1117 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"72ce7f496742becb7c10585e6668cca7fc0730668d932eb2ebcc9300b323bc55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/screens/link checker/link_check_screen.dart:661-671 | lib/screens/link checker/webview_screen.dart:163-173 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/link checker/link_check_screen.dart:661\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/link checker/link_check_screen.dart"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a15f836e3e5e2e1314b0e384a4a6ba4a1d0ba1e770799803b9f24c178245dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/screens/link checker/link_check_screen.dart:905-915 | lib/screens/scan/cleaner_screen.dart:35-45 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/link checker/link_check_screen.dart:905\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/link checker/link_check_screen.dart"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"b210d0ef6b00ffc65b9025b8d01685fa993d7bbe1883bfa7923053759cbb7003"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/screens/scan/cleaner_app_manager_screen.dart:360-370 | lib/screens/scan/detail_screen.dart:430-440 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/cleaner_app_manager_screen.dart:360\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_app_manager_screen.dart"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1b26b5469e18466f8d38493e7457c0c7a438ae33ebbb6e932be15f2e918825"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/screens/scan_screen.dart:725-735 | lib/services/scan_controller.dart:273-282 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/services/scan_controller.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan_screen.dart:725\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b12c8366899a07ba8797da32a19535dfdfd911be8dc121b690db9da543aa30b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/screens/settings/full_vpn_settings_screen.dart:56-66 | lib/screens/vpn/full_vpn_mode_screen.dart:188-198 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings/full_vpn_settings_screen.dart:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/screens/settings/full_vpn_settings_screen.dart:54\u0060 calls \u0060of\u0060 and \u0060lib/screens/vpn/full_vpn_mode_screen.dart:186\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings/full_vpn_settings_screen.dart"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"5351b4f7a46f71485d30f09550c9f3afdf102288e6036f027bba5983fe62f893"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/screens/settings/full_vpn_settings_screen.dart:620-630 | lib/screens/settings/full_vpn_settings_screen.dart:661-671 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings/full_vpn_settings_screen.dart:620\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings/full_vpn_settings_screen.dart"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"807ff96e276b78051a6884085280a94b04e43a1d05a0fc70b7f614396249d131"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): lib/screens/settings/widgets/settings_account_card.dart:40-50 | lib/screens/settings/widgets/settings_pro_card.dart:113-122 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/settings/widgets/settings_account_card.dart:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/settings/widgets/settings_account_card.dart"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"61ecd63b0630b5cffa09b46becfbd3dfeef552dcdc385740acd59337ac69d4c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:615-625 | lib/vpn/services/full_vpn_backend.dart:826-836 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b537e546b771473554a3c238d066b749efc3a6db5ccdc401989f7c485075d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:833-843 | lib/vpn/services/full_vpn_backend.dart:1164-1174 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"a437749ff3a93a850b186b130f921f1acbd2279ba49b5c00a84659f1af1899c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:924-934 | lib/vpn/services/full_vpn_backend.dart:1286-1296 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/services/full_vpn_backend.dart:924\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"682f9829330028b4259e2a4850a26e9e6a6a3875bec00c7d4d551f7bdd1d7451"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/terminal/terminal_controller.dart:240-250 | lib/terminal/terminal_controller.dart:278-288 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/terminal/terminal_controller.dart:240\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal_controller.dart"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b2573bc7ea98be91158b4c4dd256a4c292145244105c9907a0921f45e65df9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/terminal/terminal_controller.dart:420-430 | lib/terminal/terminal_controller.dart:447-457 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/terminal/terminal_controller.dart:420\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal_controller.dart"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba09ea670e6127d558c0c6d9562ed27a23c2bfc81a84ed6e9cc723bdfc2a5c61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/terminal/terminal_controller.dart:434-444 | lib/terminal/terminal_controller.dart:517-527 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/terminal/terminal_controller.dart:434\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal_controller.dart"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ac469db3721d6fdf80406443944082f51e82425004663859089c56b2df4015"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): lib/screens/home_screen.dart:676-685 | lib/screens/home_screen.dart:695-704 | lib/screens/home_screen.dart:714-723 | lib/screens/home_screen.dart:733-742 | lib/screens/home_screen.dart:752-761 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home_screen.dart:676\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home_screen.dart"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1a57a5ea50ca5d3c3fd41d557a7d6b4c1a829eb2e029f101a394529fe4f36a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:150-159 | lib/screens/vpn/AdvancedNetworkProtection_screen.dart:958-967 | lib/screens/vpn/NetworkProtectionScreen.dart:187-196 | lib/screens/vpn/NetworkProtectionScreen.dart:1275-1284 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:150\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:160\u0060 calls \u0060_bumpUi\u0060 and \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:968\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"b05675975a9aedee4ba680f03f296c954b57573e61ce73644cfb94f263ba6c42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/screens/home/home_screen.dart:643-652 | lib/screens/settings/widgets/settings_account_card.dart:71-80 | lib/screens/settings/widgets/settings_account_card.dart:100-109 \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/screens/home/home_screen.dart"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"88462d0ed53f2b308fe55ed736a5c7c2ec0156daee8c4bb2812877b28bf0fa63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): lib/screens/home/home_screen.dart:961-969 | lib/screens/home_screen.dart:324-332 | lib/screens/link checker/link_check_screen.dart:545-554 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/home_screen.dart:961\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"e64a0547a92d79b0cf06aebbc7e7b6c83126ef0b9a9b87966d0cd21753353c4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/screens/home/scan_screen.dart:456-465 | lib/screens/scan/main_scan_ui/scan_screen.dart:500-509 | lib/screens/scan_ui_screen.dart:640-649 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:456\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"d977a49d0f920c1d40ffe476abfccdef0c8589ca76d60bf6753ed1e26f624c99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/screens/home/scan_screen.dart:640-649 | lib/screens/scan/main_scan_ui/scan_screen.dart:684-693 | lib/screens/scan_ui_screen.dart:795-804 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:640\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/screens/home/scan_screen.dart:650\u0060 calls \u0060toString\u0060, \u0060toInt\u0060 and \u0060lib/screens/scan_ui_screen.dart:805\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff48d0550737bbb943c93917a947c48f2fd06248db3b1de3a563e754a4533f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/screens/home/scan_screen.dart:681-690 | lib/screens/scan/main_scan_ui/scan_screen.dart:725-734 | lib/screens/scan_ui_screen.dart:827-836 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"7550a80a63fc88ca0a4e19c7740ff55d0aee0c33487a2982f3db4c6349073a86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_log_listener.dart:18-27 | lib/widgets/scan_log_listener.dart:19-28 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_log_listener.dart\u0060 and \u0060lib/widgets/scan_log_listener.dart\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_log_listener.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"532888c6ee1528e620ea4f27eaf61698fd8e85a80e1285a2983ef1bff2405b80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:551-560 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:531-540 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a33b9b269680c5ed06cd0e5d1683525c95c300ff4fdba7beddab44c7440ce6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/screens/vpn/dns/NetworkProtectionScreen.dart:150-159 | lib/screens/vpn/dns/network_live_logs_screen.dart:28-37 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart:150\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart:160\u0060 calls \u0060_bumpUi\u0060 and \u0060lib/screens/vpn/dns/network_live_logs_screen.dart:38\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ff5d6082ec645f5d0bf903c0417ce8a0bae31a31f87ded01e4a31f7d3bb14ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/screens/vpn/full_vpn_mode_screen.dart:622-631 | lib/screens/vpn/full_vpn_mode_screen.dart:640-649 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/full_vpn_mode_screen.dart:622\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/full_vpn_mode_screen.dart"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd9cfe250e301f3bb804041bd7860e38c663e4e962e654183a4735f25c04abb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201310 lines \u00D7 2): lib/screens/vpn/lite_vpn_controller.dart:238-245 | lib/vpn/services/full_vpn_backend.dart:905-914 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/lite_vpn_controller.dart:238\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/lite_vpn_controller.dart"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a56edf55e4c324e1618bce8946830ddb919c766167b660eb3667f36a785b2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): lib/screens/home/scan_screen.dart:766-774 | lib/screens/permissions_intro_screen.dart:37-45 | lib/screens/scan/main_scan_ui/scan_screen.dart:70-78 | lib/screens/scan_screen.dart:311-319 | lib/screens/scan_ui_screen.dart:896-904 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:766\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2acd27de43d4fc74165f9ffc1c8315792e7ea049c3977ee803618d5cc2fa2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/screens/vpn/full_vpn_mode_screen.dart:572-580 | lib/screens/vpn/full_vpn_mode_screen.dart:622-630 | lib/screens/vpn/full_vpn_mode_screen.dart:640-648 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/full_vpn_mode_screen.dart:572\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/full_vpn_mode_screen.dart"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"3219855524ae2288bcfb0df72e425ed44958fe97fe70d75f20ad606b20337216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): lib/screens/vpn/services/full_vpn_backend.dart:256-264 | lib/vpn/services/full_vpn_backend.dart:346-354 | lib/vpn/services/full_vpn_backend.dart:379-387 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/services/full_vpn_backend.dart:256\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"dee94cb55cce2a0ac55274a029968e46e88757a62c7b11187731d81273184c5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/screens/home/av_home_drawer.dart:82-90 | lib/screens/home/av_home_drawer.dart:130-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/av_home_drawer.dart:82\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/av_home_drawer.dart"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f08f63a4a94e4e5d01f57fde40fceef95a8c2a52f1c2773bd5192f0c8f03eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): lib/screens/permissions_intro_screen.dart:234-242 | lib/screens/permissions_intro_screen.dart:293-300 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/permissions_intro_screen.dart:234\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/permissions_intro_screen.dart"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"b88e668617eef2a44bb720da4a2b558285e90dc36ecbda64ba81b855317860e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/screens/scan_ui_screen.dart:358-366 | lib/services/realtime_protection_service.dart:529-539 \u2014 before extracting anything, compare \u0060lib/screens/scan_ui_screen.dart\u0060 and \u0060lib/services/realtime_protection_service.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan_ui_screen.dart:358\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7d1dc847243d1a25a0135a253e5e8fa2488e4760decec234e609fead282466"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:785-793 | lib/vpn/services/full_vpn_backend.dart:1116-1124 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"a06df9691dae62e64365c3efc930ed10abc7a56767e7aa7876555c7354c683eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/screens/home/scan_screen.dart:768-775 | lib/screens/scan/main_scan_ui/scan_screen.dart:72-79 | lib/services/scan_controller.dart:218-225 | lib/terminal/terminal_controller.dart:122-129 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d7d39c2bdd91be691a018635a0397a0a6cc2ff8074675f17ebf1c9281271cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/screens/permissions_intro_screen.dart:223-230 | lib/screens/permissions_intro_screen.dart:236-243 | lib/screens/permissions_intro_screen.dart:294-301 | lib/widgets/engine_setup.dart:219-226 \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/screens/permissions_intro_screen.dart"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe6580e37f514c333ebbc27da40efb8dda8fb8ccf0c243ee7ca2eb19274c7557"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20138 lines \u00D7 8): lib/services/theme/theme_manager.dart:196-199 | lib/services/theme/theme_manager.dart:200-207 | lib/services/theme/theme_manager.dart:208-215 | lib/services/theme/theme_manager.dart:216-223 | lib/services/theme/theme_manager.dart:224-231 | lib/services/theme/theme_manager.dart:232-234 | lib/services/theme/theme_manager.dart:237-239 | lib/services/theme/theme_manager.dart:243-245 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/services/theme/theme_manager.dart:196\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/theme/theme_manager.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12a82418c0162d91e5055397b060b041f0e45d1c8fee3374289c8c51fa10f18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): lib/screens/home/scan_screen.dart:827-834 | lib/screens/scan/main_scan_ui/scan_screen.dart:50-56 | lib/services/scan_controller.dart:237-244 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:827\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"c245c0cef9143b924b90069c0f33be03064bd0c83056e8b393dbb61c4ea1d914"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/screens/scan_ui_screen.dart:359-366 | lib/services/realtime_protection_service.dart:530-539 | lib/services/realtime_protection_service.dart:560-569 \u2014 before extracting anything, compare \u0060lib/screens/scan_ui_screen.dart\u0060 and \u0060lib/services/realtime_protection_service.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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan_ui_screen.dart:359\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ccc45e512432fc5b6f2796161a5c847ac4a68b9f9d35bb4c18f577f4432d862"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/screens/scan/detail_screen.dart:378-385 | lib/screens/scan/detail_screen.dart:402-409 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/detail_screen.dart:378\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/detail_screen.dart"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62f451c9da7a957fd903997bd0552d50da1f63c5ae89c627a66bb2e57287c2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/screens/scan/main_scan_ui/log_buffer.dart:13-20 | lib/screens/scan_ui_screen.dart:34-41 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/log_buffer.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/main_scan_ui/log_buffer.dart:13\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/log_buffer.dart"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcee87a217f88146085abf8126f92ddd85cd996a4130b61fd2335a99ada2167"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/screens/vpn/full_vpn_mode_screen.dart:464-471 | lib/screens/vpn/full_vpn_mode_screen.dart:859-866 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/screens/vpn/full_vpn_mode_screen.dart:463\u0060 calls \u0060toString\u0060 and \u0060lib/screens/vpn/full_vpn_mode_screen.dart:858\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/full_vpn_mode_screen.dart"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8d15a81b082310290bbf199f1bbff175718da4882edae5c53f1dccb2e605c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/vpn/services/full_vpn_backend.dart:70-77 | lib/vpn/services/full_vpn_backend.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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/vpn/services/full_vpn_backend.dart"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"58026e84b5c94b12d3b2f9af21c97760d478da1db735d6d8d28b67d0e79f3be2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/foundation.dart:133-140 | lib/foundation.dart:242-248 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/foundation.dart:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/foundation.dart"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e2059b48ff306f83ff4b92b64bf5dfcfaa1a5f6bfa2a1fb6351eaf70ca6d88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/screens/scan/cleaner_app_manager_screen.dart:157-163 | lib/screens/scan/cleaner_pro_screen.dart:90-96 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/cleaner_app_manager_screen.dart:157\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_app_manager_screen.dart"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e65de8cfc2b4cef20c75ea4b3fecdcf2ae1f6b85da02a12c1dae923927ce86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/screens/scan_screen.dart:1027-1033 | lib/screens/scan_screen.dart:1125-1131 \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/screens/scan_screen.dart"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb7e50084b8f23dc39163301875e9719e12f1e2321652b0a50c20252825f4ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:818-824 | lib/vpn/services/full_vpn_backend.dart:1149-1155 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"d612283ae123b3fa06a6f045dd0e71ef806458cf92512dd00132c8707b76b815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/services/realtime_protection_service.dart:726-732 | lib/services/realtime_protection_service.dart:783-789 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/services/realtime_protection_service.dart:726\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f0cdcdc826c00db44cf5465acc07f3bb407ef1e5aff3b3ca987492963424eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/screens/scan/cleaner_app_manager_screen.dart:77-83 | lib/screens/scan/detail_screen.dart:114-119 | lib/screens/scan/detail_screen.dart:150-155 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan/cleaner_app_manager_screen.dart:77\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_app_manager_screen.dart"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaca70b64e972967ef9a6e791979a69f423e97d46f435106d60b423cac0dd339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:205-216 | lib/screens/vpn/NetworkProtectionScreen.dart:268-279 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:249-260 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 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/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"125c8393e438b7e50859a3c1c33a9950474af31751f05e7ea4868a5d464089c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/screens/home/home_screen.dart:1752-1759 | lib/screens/home/security_report_screen.dart:597-604 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/home_screen.dart:1752\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/home_screen.dart"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"021571335288266dcfc153df189a795ec72935ae10d3a19a3cda63dfbbc37cad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/screens/home/scan_screen.dart:972-976 | lib/screens/scan/main_scan_ui/scan_screen.dart:971-975 | lib/services/realtime_protection_service.dart:624-628 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/home/scan_screen.dart:972\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"380ce37df910ee052b2e3d35a46fce209602dff2741613a925ee22641630f0b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:45-54 | lib/screens/vpn/NetworkProtectionScreen.dart:49-58 | lib/screens/vpn/dns/network_protection_models.dart:26-35 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:45\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf53b41ce908dee7a555ecece0e1a54f06c78f7e57da05f0d9ff1328f9dfbcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 5): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:648-650 | lib/screens/vpn/AdvancedNetworkProtection_screen.dart:653-655 | lib/screens/vpn/AdvancedNetworkProtection_screen.dart:998-1002 | lib/screens/vpn/NetworkProtectionScreen.dart:1316-1320 | lib/screens/vpn/dns/network_live_logs_screen.dart:69-73 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:651\u0060 calls \u0060of\u0060 and \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:648\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b646f2d1d481aad135fabb7ac80334dd24c7b82c1fa97300b6008683490b6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:562-570 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:542-550 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"617b3e23b5f67159653b53989e6960e5e9085b7dac373d8371055e00d732b118"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/screens/vpn/dns/NetworkProtectionScreen.dart:177-182 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:231-235 \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/screens/vpn/dns/NetworkProtectionScreen.dart"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79ce59c98e1ecc96e9f8c9ff2d529179ae1dc5dd127cb701d23516d75226e99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/screens/home/home_screen.dart:173-178 | lib/screens/home_screen.dart:71-76 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/home_screen.dart"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a372968816c48544b3dae4b937245abfcfcde4575040bb21b62d432ac9a47a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/screens/home/home_screen.dart:185-190 | lib/screens/home_screen.dart:83-88 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/home_screen.dart"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eef1148305dd283a80a524e44fa2ab2b00fd6c8c53e1eea3d4a129d7758f43a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/screens/home/home_screen.dart:262-267 | lib/screens/home_screen.dart:96-101 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/home_screen.dart"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be5da387f5c363f86bba7e538f1ed4b27fd12b5e719bc1f5c3f9c1721cf5c14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/screens/home/home_screen.dart:269-274 | lib/screens/home_screen.dart:103-108 \u2014 before extracting anything, compare \u0060lib/screens/home/home_screen.dart\u0060 and \u0060lib/screens/home_screen.dart\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 334 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/home_screen.dart"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a4cf868ede76f253ce382cad02f738c02b538fb765180fa5d8a7c2b232bf55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): lib/screens/home/scan_screen.dart:142-152 | lib/screens/scan/main_scan_ui/scan_screen.dart:186-196 | lib/screens/scan_screen.dart:206-216 | lib/screens/scan_ui_screen.dart:376-386 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"de173d80e606a44597bb9da8f6731570eb40f37b60f32f078eb3adc4f33d4cff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/screens/home/scan_screen.dart:175-181 | lib/screens/scan/main_scan_ui/scan_screen.dart:219-225 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"8713a322342d99ec0186db25477b0cd34e18630c691510b2a9682eaa4f9f899a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/screens/home/scan_screen.dart:548-558 | lib/screens/scan/main_scan_ui/scan_screen.dart:592-602 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d42d42562397a0d5b7e4b540bcc713935195e3b6f971a8b4492f9a14481219"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/screens/home/scan_screen.dart:581-592 | lib/screens/scan/main_scan_ui/scan_screen.dart:625-636 | lib/screens/scan_ui_screen.dart:741-752 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"54fa7be73caebd015b321a75326764be70932829ffec3df0382b7538944446ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): lib/screens/home/scan_screen.dart:613-624 | lib/screens/scan/main_scan_ui/scan_screen.dart:657-668 | lib/screens/scan_ui_screen.dart:771-782 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"763062b893ba70e906c68095364c7ca40d81b4861d4cf9b93f7e7a560ddfe6ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): lib/screens/home/scan_screen.dart:816-821 | lib/screens/scan/main_scan_ui/scan_screen.dart:831-836 | lib/screens/scan_screen.dart:381-386 | lib/screens/scan_ui_screen.dart:940-945 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e914ebb5075e590718700f4f64856bd0ad78ce609d292e76da33b3cd797780"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): lib/screens/home/scan_screen.dart:1327-1336 | lib/screens/scan/main_scan_ui/scan_screen.dart:1292-1301 | lib/screens/scan_ui_screen.dart:1395-1404 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"04758bba314feff6641d36849238e0a4d13da1db4b3c9afe2e22c38e8e7500f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/screens/home/scan_screen.dart:1403-1407 | lib/screens/scan/main_scan_ui/scan_screen.dart:1368-1372 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1403}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6bee30b38af8aa7e29bd51ebefadf09390aecea56af760694f89c93b1e7224b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/screens/home/scan_screen.dart:1425-1431 | lib/screens/scan/main_scan_ui/scan_screen.dart:1390-1396 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1425}}}],"partialFingerprints":{"codehealthFindingId/v1":"611a04ef64fc49a6052de20d64e8cccaf391464ecc9c9a6b6472de7d44292cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/screens/home/scan_screen.dart:1459-1463 | lib/screens/scan/main_scan_ui/scan_screen.dart:1424-1428 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":1459}}}],"partialFingerprints":{"codehealthFindingId/v1":"621a14c27376dbfd0e72049ea7cd870c9376f476924516318443547326ba33ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/screens/home/scan_screen.dart:1465-1469 | lib/screens/scan/main_scan_ui/scan_screen.dart:1430-1434 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/home/scan_screen.dart"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c95d9492675b23a6eb220e92a0c68784d0d6a53aa64524921a84e2a6ed74a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/screens/home/scan_screen.dart:1555-1563 | lib/screens/scan/main_scan_ui/scan_screen.dart:1520-1528 \u2014 before extracting anything, compare \u0060lib/screens/home/scan_screen.dart\u0060 and \u0060lib/screens/scan/main_scan_ui/scan_screen.dart\u0060 as WHOLE FILES: this scan already matched 80 separate duplicated blocks between them, totalling at least 2389 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"027b473b95462e799d956fd2c77ae9252df6227047cb65b3019174f5d9ee66dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/screens/link checker/link_check_screen.dart:165-169 | lib/screens/link checker/webview_screen.dart:62-66 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/link checker/link_check_screen.dart"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"135fb93e0ebb2a871f6b9bf92468e10c5c7e61ceb16620696a8d0a9328ce7691"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/screens/scan/main_scan_ui/log_buffer.dart:24-31 | lib/screens/scan_ui_screen.dart:45-52 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/log_buffer.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: 91% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/log_buffer.dart"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ca2c06b03a8079c859838f780664289c8744f149c56faa21cf651afba9cf2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:22-28 | lib/screens/scan_ui_screen.dart:1944-1950 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/scan/main_scan_ui/scan_installed_app_sheet.dart"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1b11952ec87fcb993124f02d997af90ad2c6bacb128c838ef7cdd4c27a5129"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:180-188 | lib/screens/scan_ui_screen.dart:2102-2110 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/scan/main_scan_ui/scan_installed_app_sheet.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"382e13a2c4fdb43062143946d92cd76e7302b92798cecb9d9b74b5bd4df62968"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:15-20 | lib/screens/scan_ui_screen.dart:102-107 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_isolate_worker.dart"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec08d4073c979e076d809f11ddc3d58bba90b09dd306f68097efe58433027d72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:114-118 | lib/screens/scan_screen.dart:166-170 | lib/screens/scan_ui_screen.dart:199-203 | lib/services/scan_controller.dart:163-167 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_isolate_worker.dart"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9fd079cc5019af0413c6733f44db4c1a9a68348f5f59b79c42b6bd48615956"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): lib/screens/scan/main_scan_ui/scan_isolate_worker.dart:120-127 | lib/screens/scan_ui_screen.dart:205-212 | lib/services/scan api/headless_scan.dart:193-200 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_isolate_worker.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 111 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/scan/main_scan_ui/scan_isolate_worker.dart"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c427a1f8af3ce0a3393764474c736d64f32eb9b68c021506fac0fa5c259c3d8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/screens/scan_screen.dart:74-79 | lib/services/scan_controller.dart:71-76 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/services/scan_controller.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b2ad73183a7480eb7e4c12966843bd56e549a13666ccbea8583b891f440d0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/screens/scan_screen.dart:218-223 | lib/screens/scan_ui_screen.dart:388-393 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 122 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"08976dd138086e7ff3febb2eb3728a2463d9c6f906dd03bfee6cd066d75cd309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/screens/scan_screen.dart:1397-1402 | lib/services/scan_controller.dart:402-407 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/services/scan_controller.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"eedf36e969f48397807a73c6642344121e4a02adc3c7f0ec3f44a353d8077972"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/screens/scan_screen.dart:1430-1434 | lib/services/scan_controller.dart:436-440 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/services/scan_controller.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7214baa3b61ffb2d4e1ea53ed8225ec2b7e4203cc167e1154f3eac67654ec26"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:377-382 | lib/screens/vpn/NetworkProtectionScreen.dart:572-577 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:552-557 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"c898962291692585014f506b734fef1d6b7404c5fa68384bdac28257a6c40da3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:167-175 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:124-132 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa23cae7bf5d89573a5720deb1660677189aeb5c94ff39c820d4ec188bb85e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/screens/vpn/NetworkProtectionScreen.dart:204-211 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:167-174 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"e999245f66f341bf5f30ca649781b82985eaba2950b2a0d7bce7c7ff7373f5d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): lib/screens/vpn/NetworkProtectionScreen.dart:300-307 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:280-287 | lib/screens/vpn/services/full_vpn_backend.dart:809-816 | lib/vpn/services/full_vpn_backend.dart:1140-1147 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25bc79b1131fbd20d40e0b0cd6cbc4fc77045484cf4bfb2a720f1de9387a94f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): lib/screens/vpn/NetworkProtectionScreen.dart:309-316 | lib/screens/vpn/dns/NetworkProtectionScreen.dart:289-296 | lib/screens/vpn/services/full_vpn_backend.dart:800-807 | lib/terminal/terminal_controller.dart:107-114 | lib/vpn/services/full_vpn_backend.dart:1131-1138 \u2014 before extracting anything, compare \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 and \u0060lib/screens/vpn/dns/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 32 separate duplicated blocks between them, totalling at least 934 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"44baecabe5da38a31481ef73905065af6483e391c6e3df4ccf572e57a390ed50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:179-186 | lib/vpn/services/full_vpn_backend.dart:245-252 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ab9bcfae7cfa2a0dca66f2965c3fbb589dbdf707eeb61f0307f0cd0f4dbe52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:188-194 | lib/vpn/services/full_vpn_backend.dart:254-260 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9228332d8dbbd7d270b9950dcb6b8057ae52bc6dc4e8c7d29e1ba90621cde86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:680-686 | lib/vpn/services/full_vpn_backend.dart:891-897 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fecf7f860719188343c61d3fc2a46efb314e5bdabe226a04a515b2d2c0223dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:706-715 | lib/vpn/services/full_vpn_backend.dart:1014-1023 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f360bdc9086d4e04f60c29413850d0af8581950131a7f32ecce8f8dc6e53c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:722-728 | lib/vpn/services/full_vpn_backend.dart:1046-1052 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d01d68fe9dd0cf7b4b9a3617a98baa8beffb1acb3d5013a95956d19b4378a31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:730-737 | lib/vpn/services/full_vpn_backend.dart:1054-1061 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"9115509bf857e6f379e285b6479a6f718efa4783b4514bf7ad1a013a4d0dca8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:739-744 | lib/vpn/services/full_vpn_backend.dart:1063-1068 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":739}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a43113083d96b49c765a7ddb45671948c3f4cd9ef78bacb03627f4f55bef572"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:826-831 | lib/vpn/services/full_vpn_backend.dart:1157-1162 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2287980a6ec9f0164888f1f0cd21fc8e6f8a4b0596ec691cdccf810a3ea4bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/screens/vpn/services/full_vpn_backend.dart:936-946 | lib/vpn/services/full_vpn_backend.dart:1298-1308 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_backend.dart\u0060 and \u0060lib/vpn/services/full_vpn_backend.dart\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 475 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"245e9d4aae077fa1752f3f15406562750849084374069cdf2c8bbba0d32eca29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/screens/vpn/services/full_vpn_location_map.dart:63-69 | lib/vpn/services/full_vpn_location_map.dart:107-113 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_location_map.dart\u0060 and \u0060lib/vpn/services/full_vpn_location_map.dart\u0060 as WHOLE FILES: this scan already matched 7 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdec8149b94d3d2b3b2119f9aee8876d65f6217d3c4037a900018dc7db8c8888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/screens/vpn/services/full_vpn_location_map.dart:84-89 | lib/vpn/services/full_vpn_location_map.dart:156-161 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_location_map.dart\u0060 and \u0060lib/vpn/services/full_vpn_location_map.dart\u0060 as WHOLE FILES: this scan already matched 7 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"da42ceb6321fc84ee1f3b3f355a22e75f263fb298d9f8e5612869d9a82579992"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/screens/vpn/services/full_vpn_location_map.dart:132-139 | lib/vpn/services/full_vpn_location_map.dart:212-219 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_location_map.dart\u0060 and \u0060lib/vpn/services/full_vpn_location_map.dart\u0060 as WHOLE FILES: this scan already matched 7 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"885ff41da60b06509935757c282ad13b9ed6ab90704b444135644982785a5508"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/utils/worker_hash_isolate.dart:19-23 | lib/utils/worker_scan_isolate.dart:19-23 \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/utils/worker_hash_isolate.dart"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3eede5d583be3de4ae3d9f4eaba81b35c5482166c89eb605d3bc5ed710b72f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/screens/features_screen.dart:33-38 | lib/screens/home/home_screen.dart:739-744 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/features_screen.dart:33\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/features_screen.dart"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fb6eb323c44622a19bc7a85409881c96e315d150e6045497dd0f42a4d507d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart:171-178 | lib/screens/scan_ui_screen.dart:2093-2100 \u2014 before extracting anything, compare \u0060lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart\u0060 and \u0060lib/screens/scan_ui_screen.dart\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 192 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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/screens/scan/main_scan_ui/scan_installed_app_sheet.dart"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff375f201a45d8650ccdd0419a1699eaf17aee06ce2614d7918a1a6edc3cd40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/screens/scan_screen.dart:27-32 | lib/services/scan_controller.dart:31-36 \u2014 before extracting anything, compare \u0060lib/screens/scan_screen.dart\u0060 and \u0060lib/services/scan_controller.dart\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 151 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/scan_screen.dart:27\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/services/scan_controller.dart:37\u0060 calls \u0060call\u0060 and \u0060lib/screens/scan_screen.dart:33\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b7478681cfb98cf53bd04ff998e3c9f70196357ce5ce432532eb4b07aad5eb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/screens/vpn/AdvancedNetworkProtection_screen.dart:41-47 | lib/screens/vpn/NetworkProtectionScreen.dart:45-51 \u2014 before extracting anything, compare \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart\u0060 and \u0060lib/screens/vpn/NetworkProtectionScreen.dart\u0060 as WHOLE FILES: this scan already matched 24 separate duplicated blocks between them, totalling at least 372 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/screens/vpn/AdvancedNetworkProtection_screen.dart:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9680f8c92f4bcf5bb8fe86cf966b7edfcc31c0919592c967148e6164f54d05aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/screens/vpn/services/full_vpn_location_map.dart:143-147 | lib/vpn/services/full_vpn_location_map.dart:266-270 \u2014 before extracting anything, compare \u0060lib/screens/vpn/services/full_vpn_location_map.dart\u0060 and \u0060lib/vpn/services/full_vpn_location_map.dart\u0060 as WHOLE FILES: this scan already matched 7 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. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/vpn/services/full_vpn_location_map.dart:261\u0060 calls \u0060_userInteractionBlocked\u0060, \u0060now\u0060 and \u0060lib/screens/vpn/services/full_vpn_location_map.dart:142\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4677d409a918d26bbf0a7a28ef35e07f69f12187015837c73eb96ed2551c8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt:154-167 | android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt:178-191 | android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt:422-435 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt:154\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d1cade0d14f56ca216f081512ccbb39e87445b4ed33c301f4c8488ae4e391d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): android/app/src/main/kotlin/com/colourswift/cssecurity/ShizukuBridge.kt:204-216 | android/app/src/main/kotlin/com/colourswift/cssecurity/ShizukuBridge.kt:225-237 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/colourswift/cssecurity/ShizukuBridge.kt:204\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/ShizukuBridge.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"71a44dd975ed4f5cf0aa5d2365b916ddebcd2fb715218d6c3c831e8023a4bdeb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt:390-396 | android/app/src/main/kotlin/com/colourswift/cssecurity/MainActivity.kt:316-322 \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/colourswift/cssecurity/CSForegroundService.kt:390\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt:397\u0060 calls \u0060get\u0060 and \u0060android/app/src/main/kotlin/com/colourswift/cssecurity/MainActivity.kt:323\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt"},"region":{"startLine":390}}}],"partialFingerprints":{"codehealthFindingId/v1":"1833bcdf3a45020773bf5a495115472304f22e2b9d85cd36d28dd44073f57f29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt:363-369 | android/app/src/main/kotlin/com/colourswift/cssecurity/MainActivity.kt:301-307 \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/colourswift/cssecurity/CSForegroundService.kt:363\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce039c5e5722af9e3f4061de50c6c64b320097ec0417214db8ef71ad13f3c12"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): plugins/usage_stats-fixed/android/src/main/kotlin/io/github/parassharmaa/usage_stats/UsageStats.kt:60-65 | plugins/usage_stats-fixed/android/src/main/kotlin/io/github/parassharmaa/usage_stats/UsageStats.kt:81-86 \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 \u0060plugins/usage_stats-fixed/android/src/main/kotlin/io/github/parassharmaa/usage_stats/UsageStats.kt:60\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060plugins/usage_stats-fixed/android/src/main/kotlin/io/github/parassharmaa/usage_stats/UsageStats.kt:68\u0060 calls \u0060toString\u0060 and \u0060plugins/usage_stats-fixed/android/src/main/kotlin/io/github/parassharmaa/usage_stats/UsageStats.kt:89\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/usage_stats-fixed/android/src/main/kotlin/io/github/parassharmaa/usage_stats/UsageStats.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"986a343b73c115a44c316790a69d3f0e2a8ca1a352744bf5e125e17f5355faf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java:389-420 | android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java:428-459 \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/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java:389\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9b321f59d419c5c7004888e4213583e46ab72450aad9a58f9a86d824527747"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java:818-834 | android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java:912-928 \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":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba0f31b22664b994580cef9f8fb9423d51f24d4989cdbf319eda98b8d037775"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 3): android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java:380-393 | android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java:395-406 | android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java:410-422 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java:410\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java"},"region":{"startLine":380}}}],"partialFingerprints":{"codehealthFindingId/v1":"e189acb34359880fefbc962e56aff576176e58bb735b07718c5cd9f44aba4256"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java:525-536 | android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java:571-582 \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/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java:525\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/colourswift/cssecurity/terminal/emulator/TerminalEmulator.java"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fcd311cb3fe6b1215e21153d4d5050cb9c9fefe7983d731765a2475a9aeea74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java:385-396 | android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java:401-412 \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/colourswift/cssecurity/terminal/view/EmulatorView.java:385\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"55996054e7d521c5f474049cc2e9d6afcbe5ddb8e914f2f1caac2a0ab06ec7b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java:444-450 | android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java:472-478 \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/colourswift/cssecurity/terminal/input/TermKeyListener.java:444\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"77e23329277bb7db8e2334d3d8a25692ea8d204b3f42af63a6e6752dddcf0c8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): plugins/device_apps-2.2.0/android/src/main/java/fr/g123k/deviceapps/DeviceAppsPlugin.java:97-102 | plugins/device_apps-2.2.0/android/src/main/java/fr/g123k/deviceapps/DeviceAppsPlugin.java:106-111 | plugins/device_apps-2.2.0/android/src/main/java/fr/g123k/deviceapps/DeviceAppsPlugin.java:114-119 | plugins/device_apps-2.2.0/android/src/main/java/fr/g123k/deviceapps/DeviceAppsPlugin.java:122-127 | plugins/device_apps-2.2.0/android/src/main/java/fr/g123k/deviceapps/DeviceAppsPlugin.java:130-135 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugins/device_apps-2.2.0/android/src/main/java/fr/g123k/deviceapps/DeviceAppsPlugin.java:97\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/device_apps-2.2.0/android/src/main/java/fr/g123k/deviceapps/DeviceAppsPlugin.java"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"c37a63d4f727fd05b36abe6873e19f3a92b1388b994af4c0a1f8e509b708b6dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java:437-442 | android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java:471-476 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java:437\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/terminal/input/TermKeyListener.java"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"323bd56636006ddd49e3471054875653a458b06f444f6fb3a06356811c52e0c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): android/app/src/main/jniLibs/trimmed_Engine.rs:567-572 | android/app/src/main/jniLibs/trimmed_Engine.rs:759-764 \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/jniLibs/trimmed_Engine.rs:567\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/jniLibs/trimmed_Engine.rs"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"127dab14c683354e27da6d50fcb7b85df6660d4b82889f2792643a5c862dfcae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): android/app/src/main/jniLibs/trimmed_Engine.rs:680-689 | android/app/src/main/jniLibs/trimmed_Engine.rs:693-702 \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/jniLibs/trimmed_Engine.rs:680\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/jniLibs/trimmed_Engine.rs"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7909f7b90260002dc427608d54b1d0e4bb92729c447989d0b850c89a9984351"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: usage_stats (pub): usage_stats (pub): abstractness 0.00, instability 0.00, distance 1.00 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ba2e5f861e94fc6426ae822b2ece3505fd9ea4eb5ec00c866ee18f5f639849b6"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: device_apps (pub): device_apps (pub): abstractness 0.10, instability 0.00, distance 0.90 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"298798b86845fd81de2f8c0b71fd71294cb055edb5eb387156a6947e792dc4d2"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _ScanScreenState (LCOM4 9): _ScanScreenState\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f8477bf5ac4c923993b988b9ce9f951e9bedc636b026a51b36cd12c4820910"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _ScanScreenState (LCOM4 9): _ScanScreenState\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8777ad77ef9fd22cd479f9d61eb4540d19f88ccb495b548f0b96f88e424639f"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AntivirusBridge (LCOM4 8): AntivirusBridge\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/widgets/antivirus_bridge.dart"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"a231c90a74acb3c6bd51839d02504ba6323e8609d11b8f133aadc19dcf8f8926"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _ScanScreenState (LCOM4 6): _ScanScreenState\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/screens/scan_ui_screen.dart"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"444adce7d5a427a7b285af377f70abc0d1a41ea7a4eab1e0f3bd58a708e6955c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _ScanScreenState (LCOM4 5): _ScanScreenState\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/screens/scan_screen.dart"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e5be102405a3550fcac62ea42b37250198fed6ca29a73323bdd7a4276231c6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _AvHomeScreenState (LCOM4 4): _AvHomeScreenState\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/screens/home_screen.dart"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"553ecaffe0b8f1b244f21d502cbd280585e1585beb72d6118e91e9351d1e35dc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Application (LCOM4 4): Application\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":"plugins/device_apps-2.2.0/lib/src/plugin.dart"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"f484c03413d44d92459279bfaaf6a336620b8cfbd4af0d3888d7129e2a81a48b"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: _ConsoleScreenState (LCOM4 4): _ConsoleScreenState\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/terminal/terminal_screen.dart"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ca38cc675e6633bbc89cdedf0447a6ba2670723b9e5c63632d7788c4072d0b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/screens/scan/main_scan_ui/scan_screen.dart: lib/screens/scan/main_scan_ui/scan_screen.dart changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in _ScanScreenState._applyHeadlessEvent at line 281. 2 of those changes were fix/bug commits, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 08:44:26 \u002B00:00\u0027 --until=\u00272026-11-06 08:44:26 \u002B00:00\u0027 --full-history --no-merges -- lib/screens/scan/main_scan_ui/scan_screen.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/screens/scan/main_scan_ui/scan_screen.dart"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8f985b886a6e04f17fa68b16e4e380f3b7db5e58f54b805d6c445f90bf4fa7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/screens/settings/settings_screen.dart: lib/screens/settings/settings_screen.dart changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in SettingsScreenState.build at line 955. 4 of those changes were fix/bug commits, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 08:44:26 \u002B00:00\u0027 --until=\u00272026-11-06 08:44:26 \u002B00:00\u0027 --full-history --no-merges -- lib/screens/settings/settings_screen.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/screens/settings/settings_screen.dart"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5b86b64b96da602c66f8c42d1703ca54b91ced2be3b412ad3429c35afeb2df"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/screens/scan/detail_screen.dart: lib/screens/scan/detail_screen.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in _CleanerDetailScreenState.build at line 200. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 08:44:26 \u002B00:00\u0027 --until=\u00272026-11-06 08:44:26 \u002B00:00\u0027 --full-history --no-merges -- lib/screens/scan/detail_screen.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/screens/scan/detail_screen.dart"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f7bbc36b175ed025e8b2ef31cad7f5beb8427b2b5bae69680e2b5cba9cad8a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/realtime_protection_service.dart: lib/services/realtime_protection_service.dart changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in RealtimeProtectionService._scanSingleFile at line 642. 2 of those changes were fix/bug commits, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 08:44:26 \u002B00:00\u0027 --until=\u00272026-11-06 08:44:26 \u002B00:00\u0027 --full-history --no-merges -- lib/services/realtime_protection_service.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":642}}}],"partialFingerprints":{"codehealthFindingId/v1":"e76ba71daf572bbb1629837ccf8ea281dc833a0ccefe667085b7e0aa997c4cc4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/screens/scan/scheduled_scan_screen.dart: lib/screens/scan/scheduled_scan_screen.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in _ScheduledScansScreenState.build at line 196. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 08:44:26 \u002B00:00\u0027 --until=\u00272026-11-06 08:44:26 \u002B00:00\u0027 --full-history --no-merges -- lib/screens/scan/scheduled_scan_screen.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/screens/scan/scheduled_scan_screen.dart"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd04886d8d62680a324c9a2688093c60a9e74e92054fa3e0b1cefe175267c135"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/screens/pro/pro_screen.dart: lib/screens/pro/pro_screen.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in _ProScreenState.build at line 497. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 08:44:26 \u002B00:00\u0027 --until=\u00272026-11-06 08:44:26 \u002B00:00\u0027 --full-history --no-merges -- lib/screens/pro/pro_screen.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/screens/pro/pro_screen.dart"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9d85da2f6dcb3586bcb945f091d1ae915f45db824810de0f111ae25531ec92"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/screens/apkAnalyser/apk_analyser_controller.dart: lib/screens/apkAnalyser/apk_analyser_controller.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ApkAnalyserController.analyseApk at line 366. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 08:44:26 \u002B00:00\u0027 --until=\u00272026-11-06 08:44:26 \u002B00:00\u0027 --full-history --no-merges -- lib/screens/apkAnalyser/apk_analyser_controller.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/apkAnalyser/apk_analyser_controller.dart"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2e2eb11df7ee5d23001092a2e20e97b5c4121366a37db13feecbd2c5e2f483"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/screens/scan/cleaner_app_manager_screen.dart: lib/screens/scan/cleaner_app_manager_screen.dart changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in _AppManagerScreenState.build at line 295. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 08:44:26 \u002B00:00\u0027 --until=\u00272026-11-06 08:44:26 \u002B00:00\u0027 --full-history --no-merges -- lib/screens/scan/cleaner_app_manager_screen.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/screens/scan/cleaner_app_manager_screen.dart"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b58c6d66075775ad833f2b3cf8d9d0eba8cc5064782404791118978097bbda"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/services/quarantine_service.dart: lib/services/quarantine_service.dart changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in QuarantineService.listAll at line 299. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 08:44:26 \u002B00:00\u0027 --until=\u00272026-11-06 08:44:26 \u002B00:00\u0027 --full-history --no-merges -- lib/services/quarantine_service.dart\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/quarantine_service.dart"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"50acfa04eeab9220f194005e7340183caf9a983b51e6a14fad05f9f235df1f47"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt: android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in CSForegroundService.startPackageReceiver at line 706. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-08..2026-11-06, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-08 08:44:26 \u002B00:00\u0027 --until=\u00272026-11-06 08:44:26 \u002B00:00\u0027 --full-history --no-merges -- android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31fcdc6d8ad33e287e0651b1532bde01ed2592379e32dd80c287979d509c7af"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: /// TODO: Verify defs are loaded \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/utils/defs_loader.dart"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d13a566f931786096e7ac4cd75fc1b89e677e7176990387b12fc47f3e8bc9b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: See if we want to use the API level 11 constructor to get new flywheel feature. \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/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef290dfca8392a95cec924125344f273bbec3ff5866c7c38325f2c5f902d1f0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle forward deletes. \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/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3440f9eaea71bc54f1cae6dce9075e962c400bb4fd772927669c18b51a6b26a"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX hook into external gesture listener \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/colourswift/cssecurity/terminal/view/EmulatorView.java"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb7e8f4b7bd5616f1063b5d31c58e89f00b93194060f6665d5e74feec65bd99"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX Figure out why this happens on Honeycomb \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/colourswift/cssecurity/terminal/emulator/TranscriptScreen.java"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"936d77bbc630b7a571b9e5d16c8a9df34026da87a8621c2ac75fc730d4c85a6a"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX This probably shouldn\u0027t happen ... \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/colourswift/cssecurity/terminal/emulator/TranscriptScreen.java"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae1587be982d15b701436f7048790e2a1d776ea130e80491af72fb41314f7d3"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX Trying to resize a finished TranscriptScreen? \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/colourswift/cssecurity/terminal/emulator/TranscriptScreen.java"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2b6a98575b26fcf7b5bea0cb454a66c533345d1d7a2754c40ad96180a4cb80"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: // XXX There has to be a faster way to do this ... \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/colourswift/cssecurity/terminal/emulator/UnicodeTranscript.java"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6bc7a6d4f4f7ae2e8c44b8475bc64621c5a8003d4897816c1c3b0700dda1785"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: the repository is a Flutter application (\u0060lib/main.dart\u0060) 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. ADRs are expected here because \u0060lib/main.dart\u0060 makes this repository a deployable product (line 68)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/main.dart"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8716bba673c3075887c415d08f1c9dd48ba3b1fdb124bf3e079c529efec988ec"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fca59bd120b0ceb89206ec3fa50caff4779832a4e839555d3e9acfc0735cef0e"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"e20b28c1b0cc224fb46674327afa1b95051bd27cd5a9128374d15f2869ecbcbe"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"993264036a3ede594127b8ede96235e2792dd386b2a516875b6635bbfcba9f0b"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"aaa4c9221530907476c2f442535411eb92352aa251d9b66d965ec45c7892e2c1"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"bfc0a72cfb39bfa0f41d743ce21eca4ed8b05a33a71b79ca24f49f7ca629bec6"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"a3728ef2ad1f16dc231db25a1e2d44cf5b5bccacacc8c5d7d519989b8da94c35"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"e3cb38ed2440fdac408766dac4dd5514d6b5030ab72da126860aaec11da0b9a8"},"taxa":[{"id":"CWE-676","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"73514371790ad2b3777325d1d0559e4889a165db07f5b9e44fee9adb557ef0f7"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"cf85a672ddb8ae5e0060ba10f4849f0a97196e3cc45f79a98d201202ade1bcf0"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ef454070e8e1fc0f7b7e3aee0a218cbb47a0de52bd5a96622fb3d3aeaab41050"},"taxa":[{"id":"CWE-561","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d44f2a2b8cbbdb28c6e9c740bf8884ad113f555ccbef655f47f83403882a1411"},"taxa":[{"id":"CWE-561","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f36dd5ad8d618ef9e870523312a1b46e1cfa55c373db4896228e5b9c1cde527"},"taxa":[{"id":"CWE-561","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a9472f40568f300ff7c25e0385cb99d093f23b466766e76d27f49633642dedf5"},"taxa":[{"id":"CWE-561","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c71ed812287cfdc195d920fba345df25de19e8dcc129a7a57faeae0823dd12b5"},"taxa":[{"id":"CWE-561","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8d3cdea2230f1028f08ab011e6d7c8e61e3cfa32164734da72c86fe27e667a20"},"taxa":[{"id":"CWE-561","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: AppLocalizations (1218 abstract methods): \u0060AppLocalizations\u0060 declares 1218 abstract methods: \u0060appName\u0060, \u0060ok\u0060, \u0060cancel\u0060, \u0060footerHome\u0060, \u0060footerExplore\u0060, \u0060footerRemoved\u0060, \u0060footerSettings\u0060, \u0060proBadge\u0060, \u0060updateDbTitle\u0060, \u0060updateDbVersionLabel\u0060, \u0060companionAppsSectionTitle\u0060, \u0060cleanerReclaimableLabel\u0060, \u0060exploreMultiThreadingTitle\u0060, \u0060exploreMultiThreadingSubtitle\u0060, \u0060updateDbAutoDownloadLabel\u0060, \u0060updateDbUpdatedAutoOn\u0060, \u0060updateDbUpdatedSuccess\u0060, \u0060updateDbUpdateFailed\u0060, \u0060engineReadyBanner\u0060, \u0060scanButton\u0060, \u0060scanModeFullTitle\u0060, \u0060scanModeFullSubtitle\u0060, \u0060scanModeSmartTitle\u0060, \u0060scanModeSmartSubtitle\u0060, \u0060scanModeRapidTitle\u0060, \u0060scanModeRapidSubtitle\u0060, \u0060scanModeInstalledTitle\u0060, \u0060scanModeInstalledSubtitle\u0060, \u0060scanModeSingleTitle\u0060, \u0060scanModeSingleSubtitle\u0060, \u0060scanModeCustomTitle\u0060, \u0060scanModeCustomSubtitle\u0060, \u0060customScanChooseSubtitle\u0060, \u0060customChoiceFolder\u0060, \u0060customChoiceFolderSubtitle\u0060, \u0060customChoiceSdCard\u0060, \u0060customChoiceSdCardSubtitle\u0060, \u0060customChoiceFileSubtitle\u0060, \u0060customChoiceExclusionsSubtitle\u0060, \u0060useCloudAssistedScan\u0060, and 1178 more. Counted over its public methods with no body, once per name; concrete methods and \u0060_\u0060-private members are not counted, because no implementer that extends it is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/translations/app_localizations.dart"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed655b498fba789a63b718fcefd43ddaf1d5811f384b19c2f48a55269111a586"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add \u0060semgrep --config=auto\u0060 plus gitleaks for committed secrets \u2014 this tree has no MSBuild project file, so CodeQL\u0027s csharp pack (which traces a build) and NuGet security analyzers (which are referenced from a project) have nothing to attach to \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060android/app/build.gradle.kts\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/build.gradle.kts"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bc97f07cd7964b9bf62027a14dacef9476a9fd3261d3eb8f9817a5ace18ba64"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060_startScan\u0060 is async and calls listSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/foundation.dart"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"0700a6c96f8aea81d04d46704d62ee576dc78df8f8bc86e4281c06f339a3048f"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060clearAll\u0060 is async and calls deleteSync \u2014 a blocking call inside async code stalls the isolate\u0027s event loop \u2014 every other event, on Flutter the next frame, waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/cache_manager.dart"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"29cfdd51e895b9005ab5bf7bd8febd4f8cbe7c497d1be9a1a3710d1448eaa6fd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!_isHeadlessMultiMode(mode) || state != ScanState.scanning\u0060 appears character-identically in 3 files \u2014 lib/screens/home/scan_screen.dart, lib/screens/scan/main_scan_ui/scan_screen.dart, lib/screens/scan_ui_screen.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/screens/home/scan_screen.dart"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"3907260b5e2681bfa9af270422253a1d650ead03aaa9939fe048d5a3257355e1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!_notifProgressThrottle.isRunning || _notifProgressThrottle.elapsedMilliseconds \u003E= 700\u0060 appears character-identically in 3 files \u2014 lib/screens/home/scan_screen.dart, lib/screens/scan/main_scan_ui/scan_screen.dart, lib/screens/scan_ui_screen.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/screens/home/scan_screen.dart"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ef70017e544930e435f8a5f98918ea6edd1c04754996456d9e5cd98f664aa5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!_uiProgressThrottle.isRunning || _uiProgressThrottle.elapsedMilliseconds \u003E= 120\u0060 appears character-identically in 3 files \u2014 lib/screens/home/scan_screen.dart, lib/screens/scan/main_scan_ui/scan_screen.dart, lib/screens/scan_ui_screen.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/screens/home/scan_screen.dart"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6bfd7e54ada79b165aad24542c44d874a3a6a8246ff4b6c5ecd63ae3ac969d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!s.startsWith(\u0027ML_Detection(\u0027) \u0026\u0026 s != \u0027HashMatch\u0027 \u0026\u0026 !s.startsWith(\u0027SignerMatch(\u0027)\u0060 appears character-identically in 4 files \u2014 lib/screens/scan/main_scan_ui/scan_isolate_worker.dart, lib/screens/scan_ui_screen.dart, lib/services/scan api/headless_scan.dart, lib/services/scan_controller.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/main_scan_ui/scan_isolate_worker.dart"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d3bb706f2156a55cf6add0c66d2ac9681ad8f32aea9987ec1125c1bf53d90a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(cloudEnabled || _devForceFree) \u0026\u0026 effectivePlan != \u0027pro\u0027\u0060 appears character-identically in 2 files \u2014 lib/screens/vpn/NetworkProtectionScreen.dart, lib/screens/vpn/dns/NetworkProtectionScreen.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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"557a4c53f01115d44a9eebe3a28fb30ca84bd79e97a372cd1a5cb77a5248e579"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(resetLine.isNotEmpty || lastLine.isNotEmpty) \u0026\u0026 cloudEnabled\u0060 appears character-identically in 2 files \u2014 lib/screens/vpn/NetworkProtectionScreen.dart, lib/screens/vpn/dns/NetworkProtectionScreen.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/screens/vpn/NetworkProtectionScreen.dart"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7f2cd9336a0047d6207aa656cfb9f8cbfbf02c7b1518a536fe40d32cc01d21"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_fromCenter == null || _toCenter == null\u0060 appears character-identically in 2 files \u2014 lib/screens/vpn/services/full_vpn_location_map.dart, lib/vpn/services/full_vpn_location_map.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/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"22225118d4b60412ecf171932b42cac06380ea85236560a220aee4ad1f90357e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_hasIpPoint \u0026\u0026 sel != null \u0026\u0026 (widget.isConnecting || widget.connected)\u0060 appears character-identically in 2 files \u2014 lib/screens/vpn/services/full_vpn_location_map.dart, lib/vpn/services/full_vpn_location_map.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/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7404042a847ba8508cd195c1a490ac471a36156be98c5868f735f8a290f93a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060_session.isScanning || _session.cancelling\u0060 appears character-identically in 3 files \u2014 lib/screens/home/scan_screen.dart, lib/screens/scan/main_scan_ui/scan_screen.dart, lib/screens/scan_ui_screen.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/screens/home/scan_screen.dart"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8828ae631c80e22a25ab78482312455a09df9ef3fc44533b53287c59019d104"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060a.name.toLowerCase().contains(_query) || a.package.toLowerCase().contains(_query)\u0060 appears character-identically in 2 files \u2014 lib/screens/scan/main_scan_ui/scan_installed_app_sheet.dart, lib/screens/scan_ui_screen.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/screens/scan/main_scan_ui/scan_installed_app_sheet.dart"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c74fd7c8cfea83ac37df4f19dc310eaf2384af27bff60c750c7313961317117"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060assignedIp.isEmpty || endpoint.isEmpty || serverPublicKey.isEmpty || allowed.isEmpty\u0060 appears character-identically in 2 files \u2014 lib/screens/vpn/services/full_vpn_backend.dart, lib/vpn/services/full_vpn_backend.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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"375c1472da8cdf1f2ccac9ef18acfc39f70c9ca5985260d42b77dbbd59a2d134"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060cachedBillingPro || (cachedServerSignedIn \u0026\u0026 cachedServerPro)\u0060 appears character-identically in 2 files \u2014 lib/screens/apkAnalyser/apk_analyser_controller.dart, lib/screens/home/home_screen.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/screens/apkAnalyser/apk_analyser_controller.dart"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"288f4e82e184e1bb0a9ed8377e552744d9703138f2e05ba57700fa29638863d5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060decision != null \u0026\u0026 decision[\u0027match\u0027] is Map\u0060 appears character-identically in 3 files \u2014 lib/screens/vpn/AdvancedNetworkProtection_screen.dart, lib/screens/vpn/NetworkProtectionScreen.dart, lib/screens/vpn/dns/network_protection_models.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/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1172f6a804a546cf5e8dc3b2e828cbe503c4342ae53d80b3be3b436f61d4240"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060decoded is Map \u0026\u0026 decoded[\u0027event\u0027] == \u0027entry_progress\u0027\u0060 appears character-identically in 2 files \u2014 lib/screens/scan/main_scan_ui/scan_log_listener.dart, lib/widgets/scan_log_listener.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/screens/scan/main_scan_ui/scan_log_listener.dart"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"cefdc99e892b67427716da8ad4b4c94c15e15959e688038c55d02279e06a2e0e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.matchList != null \u0026\u0026 e.matchType != null\u0060 appears character-identically in 3 files \u2014 lib/screens/vpn/AdvancedNetworkProtection_screen.dart, lib/screens/vpn/NetworkProtectionScreen.dart, lib/screens/vpn/dns/network_live_logs_screen.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/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":656}}}],"partialFingerprints":{"codehealthFindingId/v1":"700d7eeb6b2a45ad31933710b0956bd8fccba4cc6bf968fcb6a6d58d59f8aa9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.type == \u0027current\u0027 || e.type == \u0027progress\u0027\u0060 appears character-identically in 3 files \u2014 lib/screens/home/scan_screen.dart, lib/screens/scan/main_scan_ui/scan_screen.dart, lib/screens/scan_ui_screen.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/screens/home/scan_screen.dart"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e1ca2471e18ef19dea12f9915fdffc05d3e394a2ed1c44e04399513ed8e1ed"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.type == \u0027enumerated\u0027 || e.type == \u0027empty\u0027\u0060 appears character-identically in 3 files \u2014 lib/screens/home/scan_screen.dart, lib/screens/scan/main_scan_ui/scan_screen.dart, lib/screens/scan_ui_screen.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/screens/home/scan_screen.dart"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"76772745f1f6527f24c22689c7cd200a1e66c22f76d46e46e4c71159d7d0269e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.upstream != null \u0026\u0026 e.upstream!.trim().isNotEmpty\u0060 appears character-identically in 3 files \u2014 lib/screens/vpn/AdvancedNetworkProtection_screen.dart, lib/screens/vpn/NetworkProtectionScreen.dart, lib/screens/vpn/dns/network_live_logs_screen.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/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80de628d8fa6cdcea0a57ca1e8fb86446e597c489b98ee66b25d8afc6c8e063"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060existing != null \u0026\u0026 existing.trim().isNotEmpty\u0060 appears character-identically in 3 files \u2014 lib/screens/vpn/AdvancedNetworkProtection_screen.dart, lib/screens/vpn/NetworkProtectionScreen.dart, lib/screens/vpn/dns/NetworkProtectionScreen.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/screens/vpn/AdvancedNetworkProtection_screen.dart"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"939d7ea3c961501cb830d23aca308ca0945ae6888c6b53fa31035c5504caf8f7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060firstLoad || changed || prevSync != _usageSyncing\u0060 appears character-identically in 2 files \u2014 lib/screens/vpn/services/full_vpn_backend.dart, lib/vpn/services/full_vpn_backend.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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"02df233592c57a99740a6e98c7f0c6b78fe6112900bec023d76d91d7ec2a7e88"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lower.contains(\u0027vxgen2\u0027) || lower.contains(\u0027muniverse\u0027)\u0060 appears character-identically in 2 files \u2014 lib/screens/home/scan_screen.dart, lib/screens/scan/main_scan_ui/scan_screen.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/screens/home/scan_screen.dart"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e723ea6562c949d3828cac3f097dc4227674d08f7a8b3b207bd76429f829c58"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060m == ScanMode.smart || m == ScanMode.rapid || m == ScanMode.installed || m == ScanMode.full || m == ScanMode.custom\u0060 appears character-identically in 2 files \u2014 lib/screens/home/scan_screen.dart, lib/screens/scan/main_scan_ui/scan_screen.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/screens/home/scan_screen.dart"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"6115bd790ba17b8f2344606af5a1df95fde4c2c3193b8a06ab781538ed80c40f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060msg is Map \u0026\u0026 msg[\u0027path\u0027] is String \u0026\u0026 msg[\u0027entry\u0027] is String\u0060 appears character-identically in 2 files \u2014 lib/screens/scan/main_scan_ui/scan_log_listener.dart, lib/widgets/scan_log_listener.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/screens/scan/main_scan_ui/scan_log_listener.dart"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d21fcc4cff7b9f72a3edb6a4c61ef2dfc2dcd4882cccdc42a03c2c3773b7f9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nextUsed != _usedBytes || nextLimit != _limitBytes || nextUnlimited != _unlimited\u0060 appears character-identically in 2 files \u2014 lib/screens/vpn/services/full_vpn_backend.dart, lib/vpn/services/full_vpn_backend.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/screens/vpn/services/full_vpn_backend.dart"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"a18fbb311e458b0b1c0ca4b7875f9cee72e09761cad2a1272cd7031735a0f454"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pickedPath == null || pickedPath.isEmpty\u0060 appears character-identically in 3 files \u2014 lib/screens/home/scan_screen.dart, lib/screens/scan/main_scan_ui/scan_screen.dart, lib/screens/scan_ui_screen.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/screens/home/scan_screen.dart"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7fd8b7a55bfac55aef94ee5fd90cedd596890d723dd323963b52d6032867fe7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060report.riskScore != null || report.riskLabel != null\u0060 appears character-identically in 3 files \u2014 lib/screens/apkAnalyser/apk_analyser.dart, lib/screens/apkAnalyser/apk_export_service.dart, lib/screens/apkAnalyser/apk_report_screen.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/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c49972795c0daaf3d2ffa16e6f31809632f5ac918bf53ecce7cad88ac8ab5c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060report.scoreRationale != null \u0026\u0026 report.scoreRationale!.isNotEmpty\u0060 appears character-identically in 3 files \u2014 lib/screens/apkAnalyser/apk_analyser.dart, lib/screens/apkAnalyser/apk_export_service.dart, lib/screens/apkAnalyser/apk_report_screen.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/screens/apkAnalyser/apk_analyser.dart"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"3861df56260015a1b8c2f15ec4f50b17d15768bf73fc5dfa20e8deb41f564734"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.isNotEmpty \u0026\u0026 result[0].rawAddress.isNotEmpty\u0060 appears character-identically in 2 files \u2014 lib/services/realtime_protection_service.dart, lib/services/scan api/headless_scan.dart. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/realtime_protection_service.dart"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"becfc64785b4b669854ac988b726a8429cad921fd3bdeea7897dd6aee55afefa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.scanned == 0 \u0026\u0026 result.threats == 0 \u0026\u0026 result.clean == 0\u0060 appears character-identically in 3 files \u2014 lib/screens/home/scan_screen.dart, lib/screens/scan/main_scan_ui/scan_screen.dart, lib/screens/scan_ui_screen.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/screens/home/scan_screen.dart"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"b618d7d8f94c61e41f8c8b247146822d5230d0d86f3405d2b7b1e276fb95787d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.threats == 0 \u0026\u0026 !result.cancelled \u0026\u0026 result.scanned \u003E 0\u0060 appears character-identically in 2 files \u2014 lib/screens/home/scan_screen.dart, lib/screens/scan/main_scan_ui/scan_screen.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/screens/home/scan_screen.dart"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1dda0dae47500d8fa8f10777e4e1aa66fb380077e235dab1ed1826274ad708b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060state == ScanState.result \u0026\u0026 !wasAlreadyResult\u0060 appears character-identically in 2 files \u2014 lib/screens/home/scan_screen.dart, lib/screens/scan/main_scan_ui/scan_screen.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/screens/home/scan_screen.dart"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"93619972a0c9223769e98aa5df212e7e46bc32853efaec611ae100163215f62d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060status.isGranted || await Permission.storage.request().isGranted\u0060 appears character-identically in 5 files \u2014 lib/screens/home/scan_screen.dart, lib/screens/permissions_intro_screen.dart, lib/screens/scan/main_scan_ui/scan_screen.dart, lib/screens/scan_ui_screen.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/screens/home/scan_screen.dart"},"region":{"startLine":782}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d9a2480b21e3fd63b53da04738c317d7ccae6def08941023ed21428da40b21"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060widget.isConnecting \u0026\u0026 _hasIpPoint \u0026\u0026 s != null\u0060 appears character-identically in 2 files \u2014 lib/screens/vpn/services/full_vpn_location_map.dart, lib/vpn/services/full_vpn_location_map.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/screens/vpn/services/full_vpn_location_map.dart"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e8b1b3c3d3ceb1d6fb8d250d5d8c0e8aaf2e0d029882bf1856bcb052317324"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060autoDismissAfterSeconds != null \u0026\u0026 autoDismissAfterSeconds \u003E 0\u0060 appears character-identically in 2 files \u2014 android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt, android/app/src/main/kotlin/com/colourswift/cssecurity/MainActivity.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/CSForegroundService.kt"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"52518477a614c1a2c8dc390a84fe89e7202ea988fd5ed721c9dba28b21a46b4e"}},{"ruleId":"X5","level":"note","message":{"text":"Nullable reference types not enabled everywhere: 0/1 C# file(s) are in a nullable-enabled context. This repository commits no project file, so nothing sets \u003CNullable\u003Eenable\u003C/Nullable\u003E for it: a file is enabled only by its own \u0060#nullable enable\u0060, by a Unity \u0060csc.rsp\u0060 with \u0060-nullable:enable\u0060 for its assembly, or as a file-based app (\u0060#:\u0060 directives) whose \u0060#:property Nullable\u0060 does not turn it off. NRTs catch a whole class of null-deref bugs at compile time."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"80b24de9378624a0ce4846d60457395befcaec8e109ea81d289a370c9f7bfd5d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getGlobalInt\u0060 swallows every exception into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/DeviceSecurityBridge.kt"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e956841df66ff45340abbc7999d09abb13e51bc529e61b721e79e49a82ff43c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getSecureInt\u0060 swallows every exception into \u00600\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/DeviceSecurityBridge.kt"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c782c29564e3b291d56a1dfa1cd53f785eed3c073a012a216b91ba5142c91a2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadAppName\u0060 swallows every exception into \u0060\u0022\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/apkanalyser/ApkAnalyserBridge.kt"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b21bf18f17a807de9e07573bcb6331c8bf65e034b7a443d3223a73e6eff5e81"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060shExit\u0060 swallows every exception into \u0060-1\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/rtp/SystemWatcherUserService.kt"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"178093c2a580efdbd71300d11a5d56c2a226a8d8a735770aa695c3dee47cb708"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseExcludedApps\u0060 swallows every exception into \u0060emptyList()\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the KDoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/kotlin/com/colourswift/cssecurity/vpn/wireguard/CSWireGuardService.kt"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c187039d5e88842eb3f9351ed1b05c451d59f693409ed850d30d73ed2781730"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_getUserInstalledApps\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/home/scan_screen.dart"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8d069afeaa94f0417d598e3aa73621125bb3f55499d31e1d36f35dd848230c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_scanUnusedApps\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan/cleaner_lite_screen.dart"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"389a497a8162b22f524593ef2f394656fabc6fd393abb0e36cb798374d36b38d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_getUserInstalledApps\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_screen.dart"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8f6fa97bcda7acf72efda532ffa1f355368de46fb318b5039889312b04be25"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_getUserInstalledApps\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/screens/scan_ui_screen.dart"},"region":{"startLine":958}}}],"partialFingerprints":{"codehealthFindingId/v1":"b27bd83864fd8ec2886fd1562e1e7487878a8d16121b132cabd3891445d7e918"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_init\u0060 turns every thrown error into \u0060-1\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/av_engine.dart"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb197ab4d19ceaa372395e2567534df9178d7e05e2a528d0c2e54042f136810f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getUserInstalledApps\u0060 turns every thrown error into \u0060[]\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/services/scan_controller.dart"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5c873ece63b5fbc1cced42a82bce6dd06dd29382c20b5cf7194ba02576e3fe"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060uname\u0060 turns every thrown error into \u0060\u0027unknown\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/sys_info.dart"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"adbddadd8da550852f6a9d005721bc9719a1153c1b78cd44bf91c29a57dcd336"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060uptime\u0060 turns every thrown error into \u0060\u0027unknown\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/sys_info.dart"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdc4f6dede209113b1f04cc516853b73d8ed3b81c03905b98ef082bebedd33f8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060cpu\u0060 turns every thrown error into \u0060\u0027unknown\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/sys_info.dart"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"85a68661d30c2b03ae79b026be5a8d776bb650b69ff3b004486cf2ae315254bf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060mem\u0060 turns every thrown error into \u0060\u0027unknown\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/sys_info.dart"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"094d636ce60a8f1f5c765c3d19765dd19f45eb3abd70223da5420bcbec3329c3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060disk\u0060 turns every thrown error into \u0060\u0027unknown\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/sys_info.dart"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd62769bef07105e44dc8a14cc667bfd157fcf2625dd3ead3f1319fae7cf9daf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060network\u0060 turns every thrown error into \u0060\u0027unknown\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/sys_info.dart"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28b94c49f4ba5a7b3e109b6345640afd3e2f68dfdf62505dc43b0df77b59427"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060battery\u0060 turns every thrown error into \u0060\u0027unknown\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/sys_info.dart"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7fc3e02ee3129f4a36cf6eee10f6a65ba5bc14db21cc22b43e7f0c309f1a30"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060_getTotalRam\u0060 turns every thrown error into \u0060\u0027unknown\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the error or rethrow it. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment at the \u0060catch\u0060 or in the \u0060///\u0060 doc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/terminal/terminal_controller.dart"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"79bdf89aab0796d9fc9dfacdfdb575d8652efbb0233b12546c17bbfaf3e77619"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on Err: \u0060av_scan_inner\u0060 turns every \u0060Err\u0060 into \u0060\u0022{}\u0022.to_string()\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or propagate it with \u0060?\u0060. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the arm or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"android/app/src/main/jniLibs/trimmed_Engine.rs"},"region":{"startLine":593}}}],"partialFingerprints":{"codehealthFindingId/v1":"05f94bfdea2ee509977c1160bc93f81895a39c3459b3d945175e92309e202fac"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-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-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"Reversible One-Way Hash","shortDescription":{"text":"Reversible One-Way Hash"},"helpUri":"https://cwe.mitre.org/data/definitions/328.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-561","guid":"522a7ba7-45e9-ab53-9088-45d86e04b53a","name":"CWE-561","shortDescription":{"text":"CWE-561"},"helpUri":"https://cwe.mitre.org/data/definitions/561.html"},{"id":"CWE-676","guid":"550e6fab-2881-3252-8a05-c688a6b19c14","name":"Use of Potentially Dangerous Function","shortDescription":{"text":"Use of Potentially Dangerous Function"},"helpUri":"https://cwe.mitre.org/data/definitions/676.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-926","guid":"0d9b5579-5549-555a-8a97-f9cc14f3ad4a","name":"Improper Export of Android Application Components","shortDescription":{"text":"Improper Export of Android Application Components"},"helpUri":"https://cwe.mitre.org/data/definitions/926.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":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":15,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}