{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"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":"D32","name":"Data Compliance (PII/GDPR)","shortDescription":{"text":"Data Compliance (PII/GDPR)"},"helpUri":"https://codehealth.canine.dev/dimensions/D32","relationships":[{"target":{"id":"CWE-359","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-312","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-359","CWE-312","CWE-200"],"owasp":"A01:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"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":"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":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ConditionUtils.checkCondition (cyclomatic 73): ConditionUtils.checkCondition has cyclomatic complexity 73 (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":"app/src/main/kotlin/cn/ppps/forwarder/utils/task/ConditionUtils.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c80e04a1ec5f198aac7cc537aec267296e223cae8f268f4ad9eeeeb7ac6205"}},{"ruleId":"D1","level":"warning","message":{"text":"ActionWorker.doWork (cyclomatic 66): ActionWorker.doWork has cyclomatic complexity 66 (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":"app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"89557fda45841f40685e790d66a106ab11d9f21a34437796c5b0bb1fe4fac4fd"}},{"ruleId":"D1","level":"warning","message":{"text":"EmailUtils.sendMsg (cyclomatic 44): EmailUtils.sendMsg has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/EmailUtils.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1255786eb0b783a9ddde586fbb2ab3c10ece67bc076cb14aef28219a378494d6"}},{"ruleId":"D1","level":"warning","message":{"text":"WebhookUtils.sendMsg (cyclomatic 43): WebhookUtils.sendMsg has cyclomatic complexity 43 (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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WebhookUtils.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e89018e542862cfe11a7727ed7f68532bd717a7afd9c7151c9837ec44aa2f73"}},{"ruleId":"D1","level":"warning","message":{"text":"EmailFragment.checkSetting (cyclomatic 35): EmailFragment.checkSetting has cyclomatic complexity 35 (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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"91641bce1f6fdb7a39136284bca1c3746cc5f421d6eef678d6802f8210a54fc0"}},{"ruleId":"D1","level":"warning","message":{"text":"SmsCommandUtils.execute (cyclomatic 32): SmsCommandUtils.execute has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/SmsCommandUtils.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bb10a0a5498d6b7704bc86c25a56d96d8ea447987af047b55fb48a86c202f0"}},{"ruleId":"D1","level":"warning","message":{"text":"RulesEditFragment.checkForm (cyclomatic 28): RulesEditFragment.checkForm has cyclomatic complexity 28 (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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b6a589a236eac1f18843424d93fb765f9b9ea3affb061d454fbc72fa113f4f"}},{"ruleId":"D1","level":"warning","message":{"text":"LocationWorker.doWork (cyclomatic 28): LocationWorker.doWork 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":"app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a48b7e97fc7a34a95638de641adb71d836e4907e1617c750beb6c15d40264e"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerFragment.initListeners (cyclomatic 25): ServerFragment.initListeners has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6dd58fcc15c2e3c2ba8114821a51a774007f227f624c2eec0b4333ae1c3fcd"}},{"ruleId":"D1","level":"warning","message":{"text":"AlarmFragment.onClick (cyclomatic 25): AlarmFragment.onClick has cyclomatic complexity 25 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceec820d0f2a43b7f3c47048a284cb3433c380fffaa0e757b675bf9987693ff4"}},{"ruleId":"D1","level":"warning","message":{"text":"SendUtils.sendMsgSender (cyclomatic 25): SendUtils.sendMsgSender has cyclomatic complexity 25 (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":"app/src/main/kotlin/cn/ppps/forwarder/utils/SendUtils.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9dc3fc3832defa8498364b323eafbac8e99ad3a8fce144155b414ad2b6725aa"}},{"ruleId":"D1","level":"warning","message":{"text":"ChargeFragment.checkSetting (cyclomatic 24): ChargeFragment.checkSetting has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ChargeFragment.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"52294b1de73b411c62a3bd125fe5281dbc22720265de575c44536e2d9f6d5998"}},{"ruleId":"D1","level":"warning","message":{"text":"PhoneUtils.getCallInfoList (cyclomatic 24): PhoneUtils.getCallInfoList 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/PhoneUtils.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a5542170a524b87705cafd72a233ab357c8e3056a01054b545a709ab259a12"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientFragment.queryConfig (cyclomatic 23): ClientFragment.queryConfig 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce29f42dd4f2ef83936eb81896008c6c3a767f860c5ee051e737ed821e179983"}},{"ruleId":"D1","level":"warning","message":{"text":"SmsReceiver.onReceive (cyclomatic 23): SmsReceiver.onReceive 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":"app/src/main/kotlin/cn/ppps/forwarder/receiver/SmsReceiver.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d5d42da249d033aebd11d9cf98ce3f83f349d9f8f11efa412ef2b3b16b23a1f"}},{"ruleId":"D1","level":"warning","message":{"text":"NetworkWorker.doWork (cyclomatic 23): NetworkWorker.doWork 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":"app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"db52c1f85b5b166a1036120519a28560cef05484154eb31dfdabc5aec06e9d82"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsFragment.switchEnableLocation (cyclomatic 22): SettingsFragment.switchEnableLocation 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"528f9653bdf2c8cb5798f65c05e1d27757b71d93e4c0b809fbe48b1649a904ae"}},{"ruleId":"D1","level":"warning","message":{"text":"RulesEditFragment.testRule (cyclomatic 21): RulesEditFragment.testRule 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f1128e32d7fa236c37dad0b41ea8f7811cb788464fed70c6c19386bb14f17f"}},{"ruleId":"D1","level":"warning","message":{"text":"TasksEditFragment.onItemClick (cyclomatic 21): TasksEditFragment.onItemClick 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4a706c6e2cf541311c171d34b038f5b1389113e848f722ed9e8fc68bbfbab7"}},{"ruleId":"D1","level":"warning","message":{"text":"MsgFragment.checkForm (cyclomatic 21): MsgFragment.checkForm has cyclomatic complexity 21 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd3a8852346884542b471d2beea9872734c6722f1dd13b2039ec478a5af1e48"}},{"ruleId":"D1","level":"warning","message":{"text":"NotificationService.onNotificationPosted (cyclomatic 21): NotificationService.onNotificationPosted 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":"app/src/main/kotlin/cn/ppps/forwarder/service/NotificationService.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e131b397c76ca84fe7e46186bf9e43bb9985c4304279e3ed7e16cbddf56eb3"}},{"ruleId":"D1","level":"warning","message":{"text":"BluetoothWorker.doWork (cyclomatic 21): BluetoothWorker.doWork 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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf29d6bf014be47395f2f5ed56fa04fa560f73eef61993b101fd3110c0c31db5"}},{"ruleId":"D1","level":"warning","message":{"text":"App.onCreate (cyclomatic 20): App.onCreate has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/App.kt"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"8189fae0b7fb33f135fd6d696916a0af5cd18b0c2a04efd3297d265e8032db9c"}},{"ruleId":"D1","level":"warning","message":{"text":"LogsFragment.initLogsFilterDialog (cyclomatic 20): LogsFragment.initLogsFilterDialog 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/LogsFragment.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5f6a3216e447c8b752c83fea2c41f33ca6c6fb78a76227c3e40c2001e120aaf"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsFragment.initListeners (cyclomatic 20): SettingsFragment.initListeners 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d71b40098bb0c4ab56465ae9f38cd5424f42796d35f076b72cce47a1dc729b2b"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsFragment.checkSetting (cyclomatic 20): SettingsFragment.checkSetting has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"990eaaa2c599591631f4fdecd368c65950d1bafe5cc11680055e1eea50255ed1"}},{"ruleId":"D1","level":"warning","message":{"text":"CronFragment.initDayInputHelper (cyclomatic 20): CronFragment.initDayInputHelper 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"848e92309e47ac80fb6fd34c6bd19a0a892545b871a5d34241caf2d7fad01dd0"}},{"ruleId":"D1","level":"warning","message":{"text":"EmailFragment.initViews (cyclomatic 20): EmailFragment.initViews 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea4c9d0f62215e7718e51cb83be079ac8d4ae116f4b167d2d0c1b1af93e0eb5"}},{"ruleId":"D1","level":"warning","message":{"text":"BatteryWorker.doWork (cyclomatic 20): BatteryWorker.doWork 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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5beda9042705bfe8c899bb7dc96ac5f364bbb04c7a3496ee373db68ef9539f17"}},{"ruleId":"D1","level":"warning","message":{"text":"CronFragment.initWeekInputHelper (cyclomatic 19): CronFragment.initWeekInputHelper 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3d877e2aadfd4298adb500e9323513e7d0e57e1ca23ba3d23ccd7e866339221"}},{"ruleId":"D1","level":"warning","message":{"text":"BarkUtils.sendMsg (cyclomatic 19): BarkUtils.sendMsg 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"83db8189498888aa051a529b080b4390217bd12170b75791723a4bf32ab70fcb"}},{"ruleId":"D1","level":"warning","message":{"text":"TelegramUtils.sendMsg (cyclomatic 19): TelegramUtils.sendMsg 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85ef33d00efee42c7d68000b815d497e52684754802eed23da269ba373f8935"}},{"ruleId":"D1","level":"warning","message":{"text":"MainActivity.onItemSelected (cyclomatic 18): MainActivity.onItemSelected has cyclomatic complexity 18 (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":"app/src/main/kotlin/cn/ppps/forwarder/activity/MainActivity.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cd2d7f61afd69f8d608aaeea75b87c66e1d3f5f0bf24cd8333aeb988eae743"}},{"ruleId":"D1","level":"warning","message":{"text":"ChargeSetting.\u003Cinit\u003E (cyclomatic 18): ChargeSetting.\u003Cinit\u003E has cyclomatic complexity 18 (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":"app/src/main/kotlin/cn/ppps/forwarder/entity/condition/ChargeSetting.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b665f27da1e637d116cac374826fd02fee01011312ec3c4b34b64ee740241c"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsFragment.switchEnablePhone (cyclomatic 18): SettingsFragment.switchEnablePhone 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06f3cea3b8f8ad7587ee59b810d91a17eb202bc8230ad2bbbd2c7c862b9b386"}},{"ruleId":"D1","level":"warning","message":{"text":"WolSendFragment.onClick (cyclomatic 18): WolSendFragment.onClick 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8531568524d37cfe92785ffb6c1ee1489571aa09d25cc553b4e776573bbadf1e"}},{"ruleId":"D1","level":"warning","message":{"text":"ClientFragment.onItemClick (cyclomatic 17): ClientFragment.onItemClick has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b37c6eaf783c92b674fae8c7e93947570139238f8e7a2b84942069c9748c75"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerFragment.onClick (cyclomatic 17): ServerFragment.onClick 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"025a057ada27f9077c2d4dc38fe73d668ee17c3ad13614935ef7e1c0f122d03d"}},{"ruleId":"D1","level":"warning","message":{"text":"CloneFragment.verifyServerSafetyMeasures (cyclomatic 17): CloneFragment.verifyServerSafetyMeasures 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76b9e0f04562973d86ac870c7a18fcd81c2d9d697bee0224ee9878736c4cfd4"}},{"ruleId":"D1","level":"warning","message":{"text":"MsgFragment.testRule (cyclomatic 17): MsgFragment.testRule 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"1521206495b36b234c75fbdc0f7246249f21b3d261ac40825a6e8a8f2be828ff"}},{"ruleId":"D1","level":"warning","message":{"text":"EmailSender.sendEmail (cyclomatic 17): EmailSender.sendEmail 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/mail/EmailSender.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3f3e9d7ea6201880a33063fa932575c07f634d1bf3adb10bf3c9a12b6cab9d"}},{"ruleId":"D1","level":"warning","message":{"text":"SocketUtils.sendMqttSuspend (cyclomatic 17): SocketUtils.sendMqttSuspend 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/SocketUtils.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"281ed629c89662d13ed8608a39c312268b9958caf0f34344f9938723468725c5"}},{"ruleId":"D1","level":"warning","message":{"text":"NetworkSetting.\u003Cinit\u003E (cyclomatic 16): NetworkSetting.\u003Cinit\u003E has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/entity/condition/NetworkSetting.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"60f6b47983b978b75b3e73eadb79df153209b128478f96be338648bb92f77077"}},{"ruleId":"D1","level":"warning","message":{"text":"MsgFragment.initListeners (cyclomatic 16): MsgFragment.initListeners 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bad3c895dc9e834775aa3bbcd5d3ac2b491e53b85c1de0e34e784becc7e7047"}},{"ruleId":"D1","level":"warning","message":{"text":"BarkFragment.checkSetting (cyclomatic 16): BarkFragment.checkSetting 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"3656113aed56ce12752b451bb6d730d54fd9418aaa3f77efbf64f0e024fb9cea"}},{"ruleId":"D1","level":"warning","message":{"text":"Base64.decode (cyclomatic 16): Base64.decode 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/Base64.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a305ad9dae7d64e270263a9e5bcc79f8e4d97c8f9a7684f01c42c9c4ed9129ab"}},{"ruleId":"D2","level":"warning","message":{"text":"ActionWorker.doWork (cognitive 148): ActionWorker.doWork has cognitive complexity 148 (threshold 15). Drivers by points: if/else 49 (118 pts), error handling 5 (17 pts), match/switch 2 (6 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 87). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2422e6c1c7a657972ea66e295ad2090fc23c34ef19ef3ff903dfbacf64199d50"}},{"ruleId":"D2","level":"warning","message":{"text":"ConditionUtils.checkCondition (cognitive 126): ConditionUtils.checkCondition has cognitive complexity 126 (threshold 15). Drivers by points: if/else 38 (102 pts), boolean chains 15, match/switch 3 (8 pts), loops 1 (nesting depth added 69). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/task/ConditionUtils.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4ddf26b321a1fd2b8e91b54417a9af3f7aa094e0c1f2ab268200de240185d28"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailFragment.checkSetting (cognitive 73): EmailFragment.checkSetting has cognitive complexity 73 (threshold 15). Drivers by points: if/else 16 (33 pts), error handling 6 (22 pts), match/switch 4 (10 pts), boolean chains 7, loops 1 (nesting depth added 39). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d19c8c188aced280ab3755c1a39f4698bf4ecb13ab0e225884269f131981c7e"}},{"ruleId":"D2","level":"warning","message":{"text":"WebhookUtils.sendMsg (cognitive 73): WebhookUtils.sendMsg has cognitive complexity 73 (threshold 15). Drivers by points: if/else 36 (53 pts), boolean chains 10, match/switch 3 (8 pts), loops 2 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WebhookUtils.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91f5176279847012bc54ae6c98be34468fb41d49ff30a52c797af39820f3aab"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneUtils.getCallInfoList (cognitive 63): PhoneUtils.getCallInfoList has cognitive complexity 63 (threshold 15). Drivers by points: if/else 23 (54 pts), loops 2 (6 pts), boolean chains 2, error handling 1 (nesting depth added 35). 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/PhoneUtils.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"42dac661094eebb13eeff188a4c37c3264625903a1c9548470d6263bff83799a"}},{"ruleId":"D2","level":"warning","message":{"text":"SmsCommandUtils.execute (cognitive 61): SmsCommandUtils.execute has cognitive complexity 61 (threshold 15). Drivers by points: if/else 25 (54 pts), error handling 1 (3 pts), loops 1 (2 pts), boolean chains 1, match/switch 1 (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/SmsCommandUtils.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"59191175486992fec64b5bb39a8c7f7d343751f1711df6555e25093e2acc10e9"}},{"ruleId":"D2","level":"warning","message":{"text":"LocationWorker.doWork (cognitive 53): LocationWorker.doWork has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (35 pts), match/switch 3 (7 pts), boolean chains 6, loops 2 (4 pts), error handling 1 (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":"app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cc6fba7b8839ce8b9cb34b01b26289bc5cfa9b0bbdc73ece63bfd1a05bc97e5"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailUtils.sendMsg (cognitive 49): EmailUtils.sendMsg has cognitive complexity 49 (threshold 15). Drivers by points: if/else 22 (31 pts), match/switch 5 (8 pts), boolean chains 5, error handling 3 (4 pts), 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/EmailUtils.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3eac6eaeac8431fec7a3386d4098848c752bde4a77fb87101cbe4933645b73d"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkWorker.doWork (cognitive 46): NetworkWorker.doWork has cognitive complexity 46 (threshold 15). Drivers by points: if/else 20 (40 pts), boolean chains 2, match/switch 1 (2 pts), error handling 1, loops 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"1037a593259e3535f66597bde1f5c0866f3ac01ccfee64978bf31aebf0295689"}},{"ruleId":"D2","level":"warning","message":{"text":"LogsFragment.initLogsFilterDialog (cognitive 44): LogsFragment.initLogsFilterDialog has cognitive complexity 44 (threshold 15). Drivers by points: if/else 19 (38 pts), match/switch 2 (5 pts), boolean chains 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/LogsFragment.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ccbad9806bb577cefc8130509f79ce40e0da7b96cc58d2a93daaaa94b28c9de"}},{"ruleId":"D2","level":"warning","message":{"text":"BatteryWorker.doWork (cognitive 43): BatteryWorker.doWork has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (35 pts), loops 2 (4 pts), boolean chains 2, error handling 1, match/switch 1 (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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"093d8221b1d2bba0cb0489aea938664c19d2e95d6da0036e47dc2be83bab129d"}},{"ruleId":"D2","level":"warning","message":{"text":"SmsReceiver.onReceive (cognitive 40): SmsReceiver.onReceive has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (29 pts), loops 2 (5 pts), boolean chains 4, error handling 1, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/receiver/SmsReceiver.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e4e38aa7b431cfa4715debeba8a6ff90d45b57f8897a5458030a781e064612"}},{"ruleId":"D2","level":"warning","message":{"text":"DingtalkGroupRobotUtils.sendMsg (cognitive 39): DingtalkGroupRobotUtils.sendMsg has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (31 pts), loops 2 (8 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkGroupRobotUtils.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18f82a24e9a1d47808a423f0a4e7b0cb005da28093c5d64827e1652ca6c7716"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskPagingAdapter.onBindViewHolder (cognitive 38): TaskPagingAdapter.onBindViewHolder has cognitive complexity 38 (threshold 15). Drivers by points: if/else 13 (30 pts), loops 2 (8 pts) (nesting depth added 23). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/adapter/TaskPagingAdapter.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95f8089cee2f82ecadeca3e78956a618bc16674e5413b0608139834c171f5f3"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailFragment.initViews (cognitive 37): EmailFragment.initViews has cognitive complexity 37 (threshold 15). Drivers by points: if/else 16 (26 pts), loops 3 (8 pts), boolean chains 2, match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d347b11952dbf3c5e6eff4f9e210f1d5c6fdc24dae7b9bb380fe323a5a579e3b"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientFragment.queryConfig (cognitive 35): ClientFragment.queryConfig has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (27 pts), error handling 3 (5 pts), boolean chains 2, match/switch 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6706486d60629435e81c76bcb553c04c08f706a0bc7a01a003899e1abd5eadd"}},{"ruleId":"D2","level":"warning","message":{"text":"TasksEditFragment.onItemClick (cognitive 34): TasksEditFragment.onItemClick has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 10, loops 2 (4 pts), 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb76d2f034ebd4956699b0e68a7ed465c9d06c93115f89b3764ecfa706236e7b"}},{"ruleId":"D2","level":"warning","message":{"text":"BluetoothWorker.doWork (cognitive 33): BluetoothWorker.doWork has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 3 (7 pts), boolean chains 3, match/switch 1 (2 pts), error handling 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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c15380db942897357f2cce36c92790ab708f976b287a0e70af33135ba4311150"}},{"ruleId":"D2","level":"warning","message":{"text":"BarkUtils.sendMsg (cognitive 31): BarkUtils.sendMsg has cognitive complexity 31 (threshold 15). Drivers by points: if/else 24 (30 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd424ff6b3c8d2b6defbf1afa88d2575ed4a0b6a4bd0f0c317bf8ac42664aea"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationService.onNotificationPosted (cognitive 30): NotificationService.onNotificationPosted has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 3, loops 1 (2 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":"app/src/main/kotlin/cn/ppps/forwarder/service/NotificationService.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"574fe7ca5fa7980fa2abc0005b675fe70a6fcef0186fb4edf5594c684097227f"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneUtils.sendSms (cognitive 30): PhoneUtils.sendSms has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (18 pts), error handling 2 (5 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/PhoneUtils.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee84633e3a8732c8c759aa5a59791f748eee77623e0a0252a08899716cf133c"}},{"ruleId":"D2","level":"warning","message":{"text":"TelegramUtils.sendMsg (cognitive 30): TelegramUtils.sendMsg has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08698379a0d3c211ee69544f51a703b83ee464ee252834bec0698125d2019b0"}},{"ruleId":"D2","level":"warning","message":{"text":"RulesEditFragment.testRule (cognitive 28): RulesEditFragment.testRule has cognitive complexity 28 (threshold 15). Drivers by points: if/else 19 (22 pts), match/switch 3, error handling 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bc3a757d90560645934d258cc9ee32493b1acd2dec6e8f72cdb97118ffe3d7"}},{"ruleId":"D2","level":"warning","message":{"text":"WolSendFragment.onClick (cognitive 28): WolSendFragment.onClick has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (16 pts), error handling 3 (7 pts), match/switch 2 (3 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"6444335924b0a2db6d6ab2a491ee74994f31fd463629cc4bff9416bc50b1f9c1"}},{"ruleId":"D2","level":"warning","message":{"text":"App.onCreate (cognitive 27): App.onCreate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 4, error handling 3 (4 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/App.kt"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b104c305ffd1938bf31a96b80528bc38528e02ca1606f5e80df8e51142d684b"}},{"ruleId":"D2","level":"warning","message":{"text":"Base64.decode (cognitive 27): Base64.decode has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 5 (9 pts), boolean chains 4 (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":"app/src/main/kotlin/cn/ppps/forwarder/utils/Base64.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2ee73065feeed06254f64af3499ac479d3e43617cfa5279e5fb0b7da461dc8"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneUtils.getSmsInfoList (cognitive 27): PhoneUtils.getSmsInfoList has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (24 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/PhoneUtils.kt"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"297f581b9379a313454237b16d8dcccda928831b68025453b11307fd43d156da"}},{"ruleId":"D2","level":"warning","message":{"text":"TasksEditFragment.onFragmentResult (cognitive 26): TasksEditFragment.onFragmentResult has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (26 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"d06177727e945c5acf8ac83d0817576a26f47e8fdf7c1e1522ac9ca905020d63"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFragment.initListeners (cognitive 25): SettingsFragment.initListeners has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18 (24 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ae4e94853c7cd1c68d8c29d37cc3e8e1c9de6bde226715fdd1157f91d9e242"}},{"ruleId":"D2","level":"warning","message":{"text":"SmsSendFragment.onClick (cognitive 25): SmsSendFragment.onClick has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (15 pts), error handling 3 (7 pts), match/switch 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8aff516becdf0ee9a6e07760b077537072fb58b67e8a1f92160356f84bb0a2"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFragment.startToAutoStartSetting (cognitive 24): SettingsFragment.startToAutoStartSetting has cognitive complexity 24 (threshold 15). Drivers by points: if/else 5 (12 pts), error handling 2 (7 pts), loops 2 (5 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":1348}}}],"partialFingerprints":{"codehealthFindingId/v1":"247b0e852c8e737688b4e9046757e6084f6fbf9eceb2a0e35b7aec32d2a5cce1"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpServerFragment.checkSetting (cognitive 24): HttpServerFragment.checkSetting has cognitive complexity 24 (threshold 15). Drivers by points: if/else 22 (24 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4de55a2ba14fde3809e524aafadf0133578cedf7f5364f7cf469f47a10d6a9e"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFragment.checkSetting (cognitive 24): SettingsFragment.checkSetting has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21, match/switch 2, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7995ce150a4e2e721d9c83b216a67b03fd6ef4116edd5d34ea68513d3443c62"}},{"ruleId":"D2","level":"warning","message":{"text":"ChargeFragment.checkSetting (cognitive 24): ChargeFragment.checkSetting has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ChargeFragment.kt"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8deb5cffb80e5befefb5c61c86fa7723ff662d465a099ccc9c39d795a832c60"}},{"ruleId":"D2","level":"warning","message":{"text":"CronFragment.initWeekInputHelper (cognitive 24): CronFragment.initWeekInputHelper has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 2, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0d8c4e44d1175920595dff10794a7d27b6ec1b678f67cdd66eb15e0e799ec8"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientFragment.onClick (cognitive 22): ClientFragment.onClick has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (17 pts), match/switch 2 (5 pts) (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc96471183b988fe71e34457a9570eef8cd5314e1659f840f5b79ed8484aed4"}},{"ruleId":"D2","level":"warning","message":{"text":"RulesEditFragment.checkForm (cognitive 22): RulesEditFragment.checkForm has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (16 pts), match/switch 4, boolean chains 2 (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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87171ce1e035aaada0bb2922a1b3f1aff7056c52851b3b0378944d246f8bf79"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerFragment.initListeners (cognitive 22): ServerFragment.initListeners has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15, boolean chains 4, match/switch 2, error handling 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03b91f29e69591ed0cdfe41651665bff065c573d8817bce2f8d7917cda0cc34"}},{"ruleId":"D2","level":"warning","message":{"text":"CronFragment.initDayInputHelper (cognitive 22): CronFragment.initDayInputHelper has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 2, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"04842958f878d5af427deb2f03b1844746f45e6f716e2ed7aace3018af36d2c0"}},{"ruleId":"D2","level":"warning","message":{"text":"MsgFragment.testRule (cognitive 22): MsgFragment.testRule has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (17 pts), match/switch 3, boolean chains 1, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"09571f9077e336dbbad55b0f8cdaab32cbc8e293cefe4ad3c616b662cb428aad"}},{"ruleId":"D2","level":"warning","message":{"text":"BluetoothSetting.\u003Cinit\u003E (cognitive 21): BluetoothSetting.\u003Cinit\u003E has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 pts), match/switch 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/entity/condition/BluetoothSetting.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0a0e157e310fcae271f13536d515ebb145119954ed74eba6bd948034f83b8a"}},{"ruleId":"D2","level":"warning","message":{"text":"FrpcFragment.onItemClicked (cognitive 21): FrpcFragment.onItemClicked has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), error handling 1 (3 pts), match/switch 2 (3 pts) (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/FrpcFragment.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfdf91bfac775204546210b88e5eea24f9515879b95f32e6fac6f72691ee03e"}},{"ruleId":"D2","level":"warning","message":{"text":"AlarmFragment.onClick (cognitive 21): AlarmFragment.onClick has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2, error handling 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a728cfa442864829982528e386c4e0ff283c0c2d50c746e50ac296b1a4ea318"}},{"ruleId":"D2","level":"warning","message":{"text":"LeaveAddressFragment.initListeners (cognitive 21): LeaveAddressFragment.initListeners has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), error handling 4 (8 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"762246935f439814261ca16bc7d2abacdf21ee0632e3e8ca6855f8d0e4653c57"}},{"ruleId":"D2","level":"warning","message":{"text":"ToAddressFragment.initListeners (cognitive 21): ToAddressFragment.initListeners has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (13 pts), error handling 4 (8 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce79c51309cfa4b1bd8cbca5d1e5198a3bbdc462891428ce3c7018cfe9ddd572"}},{"ruleId":"D2","level":"warning","message":{"text":"PushplusUtils.sendMsg (cognitive 21): PushplusUtils.sendMsg has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (21 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/PushplusUtils.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c77b14fa2d59d96c34d1b708baefa6f04b5becaa5a2a5f6d5f2b00e41ac047"}},{"ruleId":"D2","level":"warning","message":{"text":"AlarmFragment.initViews (cognitive 20): AlarmFragment.initViews has cognitive complexity 20 (threshold 15). Drivers by points: if/else 19 (20 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"2288c6a75ee6c601c63394ad8b178bfa83843ce2728c49ded0535a777c3cb0b6"}},{"ruleId":"D2","level":"warning","message":{"text":"ContactAddFragment.onClick (cognitive 20): ContactAddFragment.onClick has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 3 (7 pts), match/switch 2 (3 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fdd3cb0bedc9320f3d2a6b64d6893764be63127f090392b64a0e6eeb60e7a18"}},{"ruleId":"D2","level":"warning","message":{"text":"CronFragment.initSecondInputHelper (cognitive 20): CronFragment.initSecondInputHelper has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 4 other methods here (CronFragment.initMinuteInputHelper, CronFragment.initHourInputHelper, CronFragment.initMonthInputHelper, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e538f862fdfeb4ba9c7d855a0dbe278ae5e14b9f52982fa40b8e7c04e65a2f5"}},{"ruleId":"D2","level":"warning","message":{"text":"CronFragment.initMinuteInputHelper (cognitive 20): CronFragment.initMinuteInputHelper has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 4 other methods here (CronFragment.initSecondInputHelper, CronFragment.initHourInputHelper, CronFragment.initMonthInputHelper, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af3370372a8aea2388514a0e9f84a4cdf0527b39efbbbe7106fb7668dda15e9"}},{"ruleId":"D2","level":"warning","message":{"text":"CronFragment.initHourInputHelper (cognitive 20): CronFragment.initHourInputHelper has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 4 other methods here (CronFragment.initSecondInputHelper, CronFragment.initMinuteInputHelper, CronFragment.initMonthInputHelper, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"a459692f2f3254793e50abcc9eca54c81f9bc2662cc0a22be1ac82feec83cecb"}},{"ruleId":"D2","level":"warning","message":{"text":"CronFragment.initMonthInputHelper (cognitive 20): CronFragment.initMonthInputHelper has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 4 other methods here (CronFragment.initSecondInputHelper, CronFragment.initMinuteInputHelper, CronFragment.initHourInputHelper, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":956}}}],"partialFingerprints":{"codehealthFindingId/v1":"464aa8f6af28b45dd8fca341e940b4b60d86f07befecc52f1872cd1f29ceb86d"}},{"ruleId":"D2","level":"warning","message":{"text":"CronFragment.initYearInputHelper (cognitive 20): CronFragment.initYearInputHelper has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 4 other methods here (CronFragment.initSecondInputHelper, CronFragment.initMinuteInputHelper, CronFragment.initHourInputHelper, \u2026) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 5 times rather than 5 independent problems. Splitting this body alone leaves the other 4 exactly as they are. Where these are variations on one operation, the change that clears all 5 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":1335}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd160bde65d715e2bdeb7521ffce0fc65406889216d88458cb8d453f55ca8966"}},{"ruleId":"D2","level":"warning","message":{"text":"VibrationUtils.vibratePattern (cognitive 20): VibrationUtils.vibratePattern has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/VibrationUtils.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7205335ee7042c8d5f83afa910596dd55a0809e304e9922a960c75c7922cd375"}},{"ruleId":"D2","level":"warning","message":{"text":"DingtalkInnerRobotUtils.sendTextMsg (cognitive 20): DingtalkInnerRobotUtils.sendTextMsg has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e6f132f3f6086859c9942be87a89bf7f70678c628358276b0c980d3913d0cb5"}},{"ruleId":"D2","level":"warning","message":{"text":"RulesEditFragment.initAppSpinner (cognitive 19): RulesEditFragment.initAppSpinner has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts), boolean chains 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a85f8aefa41efbedf273885bc9e36e5e3d4ca70067afbc793805352e3ea5fb"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFragment.switchEnableLocation (cognitive 19): SettingsFragment.switchEnableLocation has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (15 pts), match/switch 4 (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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2a4314347f3c081206f58d5be98d901c0c307a245c688116d92bfc523d9c84"}},{"ruleId":"D2","level":"warning","message":{"text":"MsgFragment.initListeners (cognitive 19): MsgFragment.initListeners has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, match/switch 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76298f6714aed545c3c842c6196688f186695deffc8ea1c2368902fac2edd49"}},{"ruleId":"D2","level":"warning","message":{"text":"MsgFragment.initAppSpinner (cognitive 19): MsgFragment.initAppSpinner has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts), boolean chains 2, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"708798cf556922ac0c6417fbd3991b13c05435a4f03df45ead61fc8423081ea8"}},{"ruleId":"D2","level":"warning","message":{"text":"SocketUtils.sendMqttSuspend (cognitive 19): SocketUtils.sendMqttSuspend has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 3, error handling 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/SocketUtils.kt"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb2034b1ba3f097c4921e8719572e244a4f7701c124f66631f5d3992c90c6643"}},{"ruleId":"D2","level":"warning","message":{"text":"LockScreenWorker.doWork (cognitive 19): LockScreenWorker.doWork has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), match/switch 1 (2 pts), boolean chains 1, error handling 1, 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":"app/src/main/kotlin/cn/ppps/forwarder/workers/LockScreenWorker.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4161ad51039de4cbaabff23937a268811eb0a25f828dc6f17765dffd96c9168"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFragment.switchEnablePhone (cognitive 18): SettingsFragment.switchEnablePhone has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c2f7f858ff63308475f719ea6827057877e794a0bad4a4762d077fe44d8cf9"}},{"ruleId":"D2","level":"warning","message":{"text":"BatteryQueryFragment.initViews (cognitive 18): BatteryQueryFragment.initViews has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 3 (5 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c8ceee3c225cd2e5b7544383ad1e42136686dc8350b3275f36e0c2f580994c"}},{"ruleId":"D2","level":"warning","message":{"text":"CloneFragment.verifyServerSafetyMeasures (cognitive 18): CloneFragment.verifyServerSafetyMeasures has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, error handling 3 (5 pts), boolean chains 2, match/switch 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e1763b913c2f579e1c06fdba28842f7eaaec5fb9f35b1b6f9b0a6bc8b494e8e"}},{"ruleId":"D2","level":"warning","message":{"text":"LocationFragment.getLocation (cognitive 18): LocationFragment.getLocation has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), error handling 3 (5 pts), match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"068910c14dd5a7ea435f529ab415ea564ec4959db106ea4b42095e4ef22dff9f"}},{"ruleId":"D2","level":"warning","message":{"text":"FeishuUtils.sendMsg (cognitive 18): FeishuUtils.sendMsg has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (18 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuUtils.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"97195d953f39e90895b634baad52cb7cd37fc22f36acae5639b24257eca622a9"}},{"ruleId":"D2","level":"warning","message":{"text":"SendWorker.doWork (cognitive 18): SendWorker.doWork has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 2, error handling 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/SendWorker.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"07402933d44729afa9ea46779b89c8405a0580f3bef42cdbb26ab1642147567b"}},{"ruleId":"D2","level":"warning","message":{"text":"MsgInfo.replaceAppNameTag (cognitive 17): MsgInfo.replaceAppNameTag has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (10 pts), loops 2 (4 pts), boolean chains 2, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/entity/MsgInfo.kt"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"8641106803fa31f2afaf6ce462e07d0c666f4511dc312563049f27798c9562f0"}},{"ruleId":"D2","level":"warning","message":{"text":"ServerFragment.onClick (cognitive 17): ServerFragment.onClick has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c2ea5a3b4980d1ba9ac53e8771992336fca1b4e80e815821462f00ebc6a305"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFragment.initAppSpinner (cognitive 17): SettingsFragment.initAppSpinner has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), boolean chains 1, 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fef187803b39d9c29169a376a1df49869333c571eab5396ad6f8700fa482699"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFragment.initAppSpinner (cognitive 17): SettingsFragment.initAppSpinner has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 2 (4 pts), boolean chains 1, 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"663bae9953da772d617cc36dfcaf6e84e842c35fed734de0868b04c3c5728573"}},{"ruleId":"D2","level":"warning","message":{"text":"ChargeFragment.initViews (cognitive 17): ChargeFragment.initViews has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ChargeFragment.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d63e7607ab329a49dc990efb19d626b58944a4bbbf2bb51475faebdc983359"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneUtils.getSimId (cognitive 17): PhoneUtils.getSimId has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/PhoneUtils.kt"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"06251937fb574122f7b1e799b6d8559be0cd064772e4172735442182c8a121b0"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailSender.sendEmail (cognitive 17): EmailSender.sendEmail has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), match/switch 3 (5 pts), boolean chains 3, error handling 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/mail/EmailSender.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cf23a8d55b3f5a6b31cbd1f8f2f576ee655c10893da72ed6ee6f5bd2c0eb88d"}},{"ruleId":"D2","level":"warning","message":{"text":"WeworkAgentUtils.sendMsg (cognitive 17): WeworkAgentUtils.sendMsg has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd28f48da44406d997ae0506dc48acb6eaa9bc0576ee55d3ae1416333de79e1"}},{"ruleId":"D2","level":"warning","message":{"text":"WeworkAgentUtils.sendTextMsg (cognitive 17): WeworkAgentUtils.sendTextMsg has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4 (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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"09eb65d99c19d2d64cad82d536a8579f5f9c586362e8456d369b75fcf38f310c"}},{"ruleId":"D2","level":"warning","message":{"text":"WeworkRobotUtils.sendMsg (cognitive 17): WeworkRobotUtils.sendMsg has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkRobotUtils.kt"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"213872de7b5a1b3c7ec579e2dafd905bad27538254d5bddcac0446b721fddca4"}},{"ruleId":"D2","level":"warning","message":{"text":"AppListSpinnerAdapter.onFilter (cognitive 16): AppListSpinnerAdapter.onFilter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/AppListSpinnerAdapter.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c16564ab9e4710aec0c76794562370e54ac48d01e07aaebf0fd5ad851ffc6ee"}},{"ruleId":"D2","level":"warning","message":{"text":"FrpcSpinnerAdapter.onFilter (cognitive 16): FrpcSpinnerAdapter.onFilter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"a809850755b96039879e9bbc002af7e80955ba2641468ee92ac7cfa79d97fa71"}},{"ruleId":"D2","level":"warning","message":{"text":"RuleSpinnerAdapter.onFilter (cognitive 16): RuleSpinnerAdapter.onFilter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/RuleSpinnerAdapter.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c5e57e3aed66129348c73bf3b32ea52919b02c9f76c946b97d9311055c58ae"}},{"ruleId":"D2","level":"warning","message":{"text":"SenderSpinnerAdapter.onFilter (cognitive 16): SenderSpinnerAdapter.onFilter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/SenderSpinnerAdapter.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a1d642594d3a5c1f4529d930355b0f5b2bd0584215539e3aeeed05ef2e4b0a"}},{"ruleId":"D2","level":"warning","message":{"text":"TaskSpinnerAdapter.onFilter (cognitive 16): TaskSpinnerAdapter.onFilter has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/TaskSpinnerAdapter.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5c38a5417279e016deafa42ef9d974fbfbb5eddad2c4811be8f298822bba84"}},{"ruleId":"D2","level":"warning","message":{"text":"LockScreenSetting.\u003Cinit\u003E (cognitive 16): LockScreenSetting.\u003Cinit\u003E has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 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":"app/src/main/kotlin/cn/ppps/forwarder/entity/condition/LockScreenSetting.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a354ca2a931e9f523ef01c21f0c2882af1880e78ee72d268b0e6c65190057d48"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientFragment.onItemClick (cognitive 16): ClientFragment.onItemClick has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 12, if/else 3, error handling 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61943cc3bc280cd4d33c461ab52a98f1232a3c23236b961a8ef98465a078e2f"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFragment.onClick (cognitive 16): SettingsFragment.onClick has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 1, match/switch 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddbc0c7d86810d4db899af24bdbcfd5e8b7874ebebd46b70d34fbfcc24faaa33"}},{"ruleId":"D2","level":"warning","message":{"text":"CallQueryFragment.loadRemoteData (cognitive 16): CallQueryFragment.loadRemoteData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), error handling 3 (5 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"baafd3331e3421468d893803b6a54fa55da2b24b99415ed3d4d11b61468c4489"}},{"ruleId":"D2","level":"warning","message":{"text":"CloneFragment.doPullData (cognitive 16): CloneFragment.doPullData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 3 (5 pts), match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"d332ef5d9933ab1ce3790f5e282eb33e86f5ba9f1cbdef984d772b62ba9a24ee"}},{"ruleId":"D2","level":"warning","message":{"text":"SmsQueryFragment.loadRemoteData (cognitive 16): SmsQueryFragment.loadRemoteData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), error handling 3 (5 pts), match/switch 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff96c4f15a395838acc8a8813cfc35a17e5a7d9d3a6920d009ca10bc6cf0f230"}},{"ruleId":"D2","level":"warning","message":{"text":"BarkFragment.checkSetting (cognitive 16): BarkFragment.checkSetting has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 6. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ec2cd108d540e970ef94336130754ac10175c5f0418fc8fd856e479ec25848"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpServerUtils.restoreSettings (cognitive 16): HttpServerUtils.restoreSettings has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (8 pts), if/else 5 (7 pts), error handling 1 (nesting depth added 6). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/HttpServerUtils.kt"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a5d4cc910a164aa2bea72e473a75f027f4b526c21040f8c6ad7c597fea13b7"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneUtils.getContactInfoList (cognitive 16): PhoneUtils.getContactInfoList has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 1 (2 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/PhoneUtils.kt"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"55432402c8195372c629b4c682041d7521127d004d98bd41ed36992cdac1c7fa"}},{"ruleId":"D2","level":"warning","message":{"text":"SendWorker.autoTaskProcess (cognitive 16): SendWorker.autoTaskProcess has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 1, loops 1, match/switch 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/SendWorker.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68a7b8c05c22bec04cf5983b9d4801574600b1fbfd0c97f2c6492f41c40b642"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDatabase.frpcDao: MethodTooLong \u2014 frpcDao runs 297 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 197 over it, 2.97\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/database/AppDatabase.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"58ff2e986870a73b13fc9d1c5a1eb10084786a4b19779c88eff35737fdce520c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDatabase.msgDao: MethodTooLong \u2014 msgDao runs 296 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 196 over it, 2.96\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/database/AppDatabase.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccbdd18749d381f3c098c0c734663d3cbb11c5c672e605546d92f0488713d878"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDatabase.logsDao: MethodTooLong \u2014 logsDao runs 295 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 195 over it, 2.95\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/database/AppDatabase.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf4dd2922d2dcd07c57e5fc73802b2bb85e904b0465caa367b29f681c8da81b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDatabase.ruleDao: MethodTooLong \u2014 ruleDao runs 294 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 194 over it, 2.94\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/database/AppDatabase.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e624748c49b8b231f1243403cb7d1d4d85eb69c981d0f68778f819395f47ca"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDatabase.senderDao: MethodTooLong \u2014 senderDao runs 293 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 193 over it, 2.93\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/database/AppDatabase.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3f62aba7eddcbd6bce901c434c814b20a5da821245505ac52f1576e52a02fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AppDatabase.taskDao: MethodTooLong \u2014 taskDao runs 292 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 192 over it, 2.92\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/database/AppDatabase.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7369b0a53b4855959f92c206a0c3d6ecf55942938c3c1ba9ac00ad209c1e6cf3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ActionWorker.doWork: MethodTooLong \u2014 doWork runs 290 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 190 over it, 2.90\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"37818362f6bcd64632b19687578670d16dd33dbe1bc279038ed98b207f6898ee"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CronFragment: ClassTooLong \u2014 1077 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 677 over it, 2.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebcdb03e149456fb7c4ff2d1730b7801a1deb0324991ed225223e40e84a92a4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.sendMsg: MethodTooLong \u2014 sendMsg runs 260 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 160 over it, 2.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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/EmailUtils.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6059bf5ea88b85bee1e44640ca8ad4bb4d35f45806a03d0fef788aefa22697ad"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: condition/CronFragment.kt: FileTooLong \u2014 1116 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: CronFragment (42-1644). The bar is 500 significant lines; this is 616 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a6d5bad46fd4d1aba2ec260e02590752c50aa1e6c3e28c05265051bdc4377a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SettingsFragment: ClassTooLong \u2014 869 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods. The bar is 400 significant lines; this is 469 over it, 2.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"555ed566209af9008a69b73c484adb3e07aea72ee5406229941b8cd0f7a49e03"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fragment/SettingsFragment.kt: FileTooLong \u2014 956 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: SettingsFragment (90-1441). 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c7c88e7bd855f62aa434e59eed75d68989eb2630df8f0f5a8d4932c08adb51a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.sendMsg: MethodTooLong \u2014 sendMsg runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WebhookUtils.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5d3142d908491ecb779e89212b8203f45fedffb087b5f40681d21bc0385949"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ServerFragment.initListeners: MethodTooLong \u2014 initListeners runs 164 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 64 over it, 1.64\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc57be82e338c3a017838b2369be74cd4d628a13b8628d01bf4b6358f70bc93"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.checkCondition: MethodTooLong \u2014 checkCondition runs 155 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 55 over it, 1.55\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/task/ConditionUtils.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b026c8192d3a870c8eab06e0641b77a9862b901be5bd89e6449c33f33c556f0"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RulesEditFragment: ClassTooLong \u2014 537 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods. The bar is 400 significant lines; this is 137 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffa49e7621e6bb7ca60c108804208a4195b75e78dae7ed417f1b6703d599362"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SettingsFragment: 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"333b1b898b6f6c9207efbbbe656ff0c87c08bb7abb87a2199ecf5dffb1e124cb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fragment/RulesEditFragment.kt: FileTooLong \u2014 635 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: RulesEditFragment (101-883). The bar is 500 significant lines; this is 135 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"49ef68d26d36292bf4d95b3eac625739dfa9fa36ef70568d6783409e2c275d3f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.switchLanguage: MethodTooLong \u2014 switchLanguage runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/App.kt"},"region":{"startLine":405}}}],"partialFingerprints":{"codehealthFindingId/v1":"702402f5fa17a1b9be15e5c1f49292caaf65f31609f5cf960a3ac623a8d1d21c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TasksEditFragment: ClassTooLong \u2014 477 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 77 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2356a41586090ee084bd23e5134bcdcb484cc7d158556d4af162ac020c1526f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AlarmFragment.onClick: MethodTooLong \u2014 onClick 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1a26dae3c9cfce14b7fb6c9def63dfee85fb6aa30f944833dab07fd6b312d75"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: WolSendFragment.onClick: MethodTooLong \u2014 onClick 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a584f5a6185d58910965cab7b3b16577c4a7babf5955e02b77fec4037ec6233"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: EmailFragment: ClassTooLong \u2014 451 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 51 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"83f4c8b57e3c394680e78770d8fbf1392a40dd3372c4d32628eaa1c6baee29db"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EmailFragment.checkSetting: MethodTooLong \u2014 checkSetting 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c26cc72866db5d1853b1827de16a03daaf3d8174dab5cb5f57f5de1a9e058a9"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: App.onCreate: MethodTooLong \u2014 onCreate 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":"app/src/main/kotlin/cn/ppps/forwarder/App.kt"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"15628679c272d9ffd00f907215d3082dec2f9206a85422da2c9c8f11159689ce"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PhoneUtils: ClassTooLong \u2014 422 significant lines (blank, comment-only and punctuation-only lines excluded), 1 methods. The bar is 400 significant lines; this is 22 over it, 1.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/PhoneUtils.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8513cf4e17d3ffd40637ed4269d2ca2dbe23133e733e7ca2071e2ed4ca412a8c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: fragment/TasksEditFragment.kt: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: TasksEditFragment (54-730). The bar is 500 significant lines; this is 27 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b69605a8d54e5291bde6404f54b510206e4071478faecac4258fe599534233"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ServerFragment: ClassTooLong \u2014 417 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 17 over it, 1.04\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"a91b69bb00f9f995d2fd724728d1cb9d29febfa2539c319de6e8c2a509dce937"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EmailFragment.initViews: MethodTooLong \u2014 initViews 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46cfea9333c3116861eb3ef34127ffe0ce3a169f11b17fdaeec52d803c85e47"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: senders/EmailFragment.kt: FileTooLong \u2014 519 significant lines (blank, comment-only and punctuation-only lines excluded), about 87% of them inside a single declaration: EmailFragment (71-742). The bar is 500 significant lines; this is 19 over it, 1.04\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"826d1c038ef6bfd12f43f3dd37e35c749bbbd16a5c48f747df2f41eec28c7d3d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SettingsFragment.initListeners: MethodTooLong \u2014 initListeners 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6651cfcf86bd03489e684fa02caecbb654c118459c53c084a6b1fd5732fb9ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (16 members, 30 shared lines): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:89-183 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:85-140 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:87-147 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:120-271 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:84-153 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:85-151 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:83-134 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:84-145 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:82-130 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:88-160 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:84-148 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:85-141 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:87-133 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:90-152 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:87-149 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:85-136 \u2014 These 16 members are variants of one another: a block of 30 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 16 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 16 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86cbadc3eb65e7c6bffcff3b942c0408c9c30431b2cad946d8142e166bcffb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (15 members, 31 shared lines): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:85-140 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:87-147 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:120-271 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:84-153 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:85-151 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:83-134 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:84-145 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:82-130 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:88-160 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:84-148 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:85-141 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:87-133 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:90-152 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:87-149 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:85-136 \u2014 These 15 members are variants of one another: a block of 31 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 15 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 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7cd98723418bcf4852e35cb327928b74a9dbb224496f5c9222509822298c150"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (4 members, 9 shared lines): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:149-169 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:143-160 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:154-174 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:151-169 \u2014 These 4 members are variants of one another: a block of 9 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce83a8ef0512d9e95c182884cc69b5fa1b410135fb70abb618608f1456c4567c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 13 shared lines): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:85-185 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:80-167 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:84-173 \u2014 These 3 members are variants of one another: a block of 13 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f736210b5c3e5630c4160e6b99131f20f60b8ed4a9b569c8e1b0cf36c5ffaa"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (72 shared lines): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:754-882 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:388-483 \u2014 These two members are variants of one another: 72 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef45d8f58201594f18f8e01678cf5d4f937e4f4bcb2d78a457f4dd9bd7e764b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:490-532 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:282-324 \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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb09660df9bbd5bfb300d5ccc777274cd609c1af34f337766e71552212a3017"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:1398-1439 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:385-426 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":1398}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dfe998730310b9a8231b74eaae4ccc897d79df985265bf2e728e799cf20e927"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (17 members, 50\u002B identical tokens): app/src/main/kotlin/cn/ppps/forwarder/fragment/SendersFragment.kt:284-319 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:193-253 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:167-227 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:183-243 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:295-355 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:163-229 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:171-231 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:144-204 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:164-224 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:140-199 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:171-235 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:161-220 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:168-227 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:143-202 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:182-241 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:201-260 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:163-222 \u2014 These 17 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 17 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 17 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SendersFragment.kt"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ea10d4d20a01033c34b6ca3d2c8de5d1e54b3f9f994fada78e47a578dc181a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (14 members, 50\u002B identical tokens): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt:38-147 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkGroupRobotUtils.kt:35-128 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:40-120 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:130-220 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:33-84 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:94-162 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuUtils.kt:90-178 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/GotifyUtils.kt:29-84 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/PushplusUtils.kt:31-97 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/ServerchanUtils.kt:29-83 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt:37-154 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:39-116 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:126-207 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkRobotUtils.kt:28-90 \u2014 These 14 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 14 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 14 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e60f05cc13b789893fee6abbe05f26221b66bb5c4d36c9c3a9d332c480dcd9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (13 members, 50\u002B identical tokens): app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:326-438 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:49-152 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:203-302 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:269-362 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:375-481 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:483-597 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:69-178 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:179-273 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:83-187 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:191-290 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:81-196 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:82-235 | app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt:82-502 \u2014 These 13 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 13 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 13 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"0008e1a8c855ae01e8855bfa7d94dcc3b7483a65450c075187cf4064e0925f0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (12 members, 50\u002B identical tokens): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:165-331 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt:95-138 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/FrpcFragment.kt:130-173 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:143-186 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:207-264 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/ResendFragment.kt:102-145 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt:135-178 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:140-228 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:136-179 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:339-382 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/TaskActionFragment.kt:136-179 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/WolFragment.kt:121-180 \u2014 These 12 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 12 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 12 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"57dcc17ef0739847a488f08a01b132f2f76ae568390c252cfda460f1f3b87c9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (7 members, 50\u002B identical tokens): app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:29-163 | app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt:26-113 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:30-186 | app/src/main/kotlin/cn/ppps/forwarder/workers/LockScreenWorker.kt:26-90 | app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt:37-155 | app/src/main/kotlin/cn/ppps/forwarder/workers/SendWorker.kt:123-177 | app/src/main/kotlin/cn/ppps/forwarder/workers/SimWorker.kt:30-96 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"144850c486fddb2a5b81de988957cf7c74b2de71e8865e8c90a7bc855424f95d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:40-120 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:130-220 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt:37-154 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WebhookUtils.kt:48-288 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:39-116 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:126-207 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8ffb71b782136315fa26618fa8f572c95da31ff08c5a52331ba942d5b479cca"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:29-163 | app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt:26-113 | app/src/main/kotlin/cn/ppps/forwarder/workers/CronWorker.kt:26-100 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:30-186 | app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt:37-155 | app/src/main/kotlin/cn/ppps/forwarder/workers/SimWorker.kt:30-96 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"059e52680418e85a9f8dbbe0f7d4279cbfe96abbc714f82e79267ef1f9c576f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcRecyclerAdapter.kt:84-92 | app/src/main/kotlin/cn/ppps/forwarder/adapter/RuleRecyclerAdapter.kt:88-96 | app/src/main/kotlin/cn/ppps/forwarder/adapter/SenderRecyclerAdapter.kt:78-86 | app/src/main/kotlin/cn/ppps/forwarder/adapter/TaskRecyclerAdapter.kt:78-86 | app/src/main/kotlin/cn/ppps/forwarder/adapter/TaskSettingAdapter.kt:78-86 \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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcRecyclerAdapter.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e56c1b203c236eeebdffcc3fbf263735dfc2b52ee322d8b98be77c3e508c415"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcRecyclerAdapter.kt:95-106 | app/src/main/kotlin/cn/ppps/forwarder/adapter/RuleRecyclerAdapter.kt:99-110 | app/src/main/kotlin/cn/ppps/forwarder/adapter/SenderRecyclerAdapter.kt:89-100 | app/src/main/kotlin/cn/ppps/forwarder/adapter/TaskRecyclerAdapter.kt:89-100 | app/src/main/kotlin/cn/ppps/forwarder/adapter/TaskSettingAdapter.kt:89-100 \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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcRecyclerAdapter.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ab21734896b1cc9a884373b7ff128954e041aa5834d0b0d8843fc182544afd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/AppListSpinnerAdapter.kt:62-77 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt:64-91 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/RuleSpinnerAdapter.kt:64-87 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/SenderSpinnerAdapter.kt:64-87 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/TaskSpinnerAdapter.kt:64-87 \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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/AppListSpinnerAdapter.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb9ef7922c65a4570e9a861228b83cdeead2436b2491503725d472a38fd5d17"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/AppListSpinnerAdapter.kt:79-108 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt:93-122 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/RuleSpinnerAdapter.kt:89-118 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/SenderSpinnerAdapter.kt:89-118 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/TaskSpinnerAdapter.kt:89-118 \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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/AppListSpinnerAdapter.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9cb4b4b64ce2321d40d2bf3ae10b6570a4413d23bde71be532c66cb345bfbba"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/BluetoothFragment.kt:203-273 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ChargeFragment.kt:151-173 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LockScreenFragment.kt:111-135 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/NetworkFragment.kt:95-119 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/SimFragment.kt:75-99 \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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/BluetoothFragment.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee952165c5654e56f84515a51d480d8f40c583873ced06dd7fd3d9861bec15c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:245-277 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:229-264 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:243-280 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:262-303 \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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fbf45985306ce205c65779793632277d9d42ebfcafa52ba7a9277a332d50b40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:97-158 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt:97-158 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0b28b50c7d2651eb416e1d7cdb81eac51ec56d524790887500539eec27259e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201353 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:239-291 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:175-225 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:239\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"b682b5ecb0659a0a7f6bcf6688df38ad7ae355480a1ad5df917b574aa52e15ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201339 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/core/BaseFragment.kt:203-241 | app/src/main/kotlin/cn/ppps/forwarder/core/BaseSimpleListFragment.kt:118-148 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/core/BaseFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/core/BaseSimpleListFragment.kt\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/core/BaseFragment.kt:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/core/BaseFragment.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a593afa66cdb4ef50e1136de5d672b521b14c731cd14cde719d7a14ad8079bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201338 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/mail/OpenKeychainMailUtils.kt:60-91 | app/src/main/kotlin/cn/ppps/forwarder/utils/mail/PgpUtils.kt:110-147 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/mail/OpenKeychainMailUtils.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9fc6e37f874ee597351956e3837baf859a821a30d672a3079e7c3051670ad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201332 lines \u00D7 17): app/src/main/kotlin/cn/ppps/forwarder/fragment/SendersFragment.kt:306-310 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:223-250 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:197-224 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:213-240 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:325-352 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:195-226 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:201-228 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:174-201 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:194-221 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:169-196 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:205-232 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:190-217 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:197-224 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:172-199 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:211-238 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:230-257 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:192-219 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt\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. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SendersFragment.kt:306\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:194\u0060 calls \u0060content\u0060, \u0060positiveText\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SendersFragment.kt:306\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SendersFragment.kt"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"82829d8ca5a552493596bed898d9af08e19cf131c1d1f087e40e0a14b1c0384e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:381-412 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:270-301 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26b3c624713ac00a0124f66e1acfd8607dfc3fccdfb9a16bb8d5502d0306888"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:89-119 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:90-120 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:89\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cdf6493c4a5da720fae866a47d6aa70d88b033cdb0fe7243e651e6bda787c44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/RSACrypt.kt:33-63 | app/src/main/kotlin/cn/ppps/forwarder/utils/RSACrypt.kt:78-107 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/RSACrypt.kt:33\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":"app/src/main/kotlin/cn/ppps/forwarder/utils/RSACrypt.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d34c0dd8118592f0d2d9b42a6760e3568d51ccf761f9382a6c95809e4527ba21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201330 lines \u00D7 6): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:61-85 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:166-190 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt:96-125 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WebhookUtils.kt:231-260 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:58-82 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:154-178 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:61\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, \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:85\u0060 calls \u0060ignoreHttpsCert\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt:129\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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"26054066c8f6dae8dc09995baeff62c5993e1f87b39261c809e4bbe014589bfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29\u201330 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:173-202 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt:167-195 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:173\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e7c307f89751e3d9f87f06f9ac4c4115c07d991981ab0147ff699c70e0b14d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/RSACrypt.kt:122-151 | app/src/main/kotlin/cn/ppps/forwarder/utils/RSACrypt.kt:166-195 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/RSACrypt.kt:122\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":"app/src/main/kotlin/cn/ppps/forwarder/utils/RSACrypt.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b125f5b2eb392263ebc9c432197acf4cfd874541f24a8ab88a5aa528ec1a8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 10): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:73-101 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:228-256 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:294-322 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:510-538 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:106-134 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:205-233 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:106-134 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:216-244 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:124-152 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:160-188 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:73\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87107680d18ff75cbfc6052cf9e2aa8b8fd5f1e2ab46ea97d92b7f9047d8a30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:620-647 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:328-355 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"066a0902a698c12705a5301b21acf008cd2f95863fffb7f866c849d30fa5f8bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:788-824 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:404-440 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:788\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5816adf4e35bdc17877ad7e1bda8825b023528dd1819dcff25c640540d5513"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:295-320 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:179-204 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:295\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f79d0113aed4a5fad5763a27a68c24173d911e0a97c9868563fea61c564eaea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201326 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/tinker/TinkerLoadLibrary.kt:128-153 | app/src/main/kotlin/cn/ppps/forwarder/utils/tinker/TinkerLoadLibrary.kt:166-189 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/tinker/TinkerLoadLibrary.kt:128\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/tinker/TinkerLoadLibrary.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad2b70db993da10872af7ce1eb0d7d086e2d1e84953401af519f2af94b2779c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:421-445 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:214-238 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:421\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, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:420\u0060 calls \u0060checkSenderLogicShow\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:213\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"66485b09253dd3077b29a5c8c3a8f9dcc85fe3bdfa8239909c7e3f4d6dd57f67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201325 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/mail/OpenKeychainMailUtils.kt:108-130 | app/src/main/kotlin/cn/ppps/forwarder/utils/mail/PgpUtils.kt:213-237 \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 \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/mail/OpenKeychainMailUtils.kt:108\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/mail/OpenKeychainMailUtils.kt"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"7477f39802a0f946eaa3a9b358fa62f367a287310aadc31b0dd448c946154353"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/database/entity/Rule.kt:262-285 | app/src/main/kotlin/cn/ppps/forwarder/utils/RuleLine.kt:137-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 \u0060app/src/main/kotlin/cn/ppps/forwarder/database/entity/Rule.kt:262\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":"app/src/main/kotlin/cn/ppps/forwarder/database/entity/Rule.kt"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31bbeb8665c07950e3ea9edba00d4af94225c7ac6ac040412b734bf919733f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:498-520 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:1405-1427 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:392-414 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:290-312 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:498\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 first that the copies are not typed on the same thing: \u0060TextUtils\u0060 names \u0060android.text.TextUtils\u0060 in one and \u0060com.xuexiang.xrouter.utils.TextUtils\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a3bd4f860295e589ca7e6d3a4691e6da142cc21fe78a8068933062a89118ec2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:183-205 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:137-158 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:183\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d40acc5ffcf003507ce2571ae17564908d2152a993ee1c1d6f08d09dfb0050"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:833-855 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:442-464 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:833\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":833}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d61dd40fe9f75c8c4f1b9c3e464c4205d03328a794ff5298d6f4b9017a6c5b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 5): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:96-117 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:251-272 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:425-446 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:228-249 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:239-260 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:96\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"869a8d0140bf83fba2517be8e2bb533d698c2dfd59814de3597cf3b6d97efe9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:89-109 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:91-111 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:87-107 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:88-108 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 127 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:89\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f27b1e8c3d220eaca08771a1fe7e0d829215a71dfeaf4a8b29ad1ff5c73eda1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:59-79 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:122-142 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:59\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"91cfd500d029be023b05bbc89ab7a82dbd69ab96be90a2bbe48d36d8929e76d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/AppListSpinnerAdapter.kt:83-101 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt:97-115 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/RuleSpinnerAdapter.kt:93-111 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/SenderSpinnerAdapter.kt:93-111 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/TaskSpinnerAdapter.kt:93-111 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/RuleSpinnerAdapter.kt\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. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/AppListSpinnerAdapter.kt:83\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/AppListSpinnerAdapter.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aaa181d7afe67e6b4c9ea2a549ff6d05c5688e00dd66fd72ca95b6a25172723"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:167-185 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:149-167 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 235 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:167\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8d15dc6cca6d8491feb6fb2489b89e7ea3c534cc20e68638fe27f652bcfa1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 10): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt:108-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/FrpcFragment.kt:143-160 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:156-173 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:234-251 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/ResendFragment.kt:115-132 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt:148-165 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:149-166 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:352-369 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/TaskActionFragment.kt:149-166 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/WolFragment.kt:150-167 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/FrpcFragment.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt:108\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec30d1b56cdc5a1cf471b06ad44d7bf8051dba0dbfc05999627ecdeced65dca8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 8): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:86-103 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:116-133 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:88-105 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:89-106 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:91-108 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:94-111 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:91-108 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:89-106 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 115 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:86\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"70bdb68a1d574bf0a2bf6130b5b575c83f77b59be89bf0b0996fb620c58c431f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:341-358 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:59-76 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:92-109 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:341\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f4c73699afd7a50aa7165f32fd8370c7661526558f0a0ab0a7322c767471c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:450-487 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:339-376 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:243-280 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:450\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba5ba838107b044e82ea68363f537803b21f44b0cfdec6703c2d7c09fb3bb44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:261-278 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:285-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb3730045e180644ca04b1208c059f933a4197fc2b33df5761f9b5abc7c1d2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:269-284 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:194-211 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 81 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:269\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"850760224272de5ea92afe64b884f8e2c8aa97383c6a70058c810264b7dc3e7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201318 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:157-174 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:138-140 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:145-162 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 235 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:157\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:157\u0060 calls \u0060Indefinite\u0060, \u0060format\u0060, \u0060getString\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:138\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"58683fa9284f03a8b5183a5acebdd680c011015218512e47a1867ec968ffa1e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201317 lines \u00D7 16): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:209-220 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:183-194 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:199-210 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:311-322 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:179-195 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:187-198 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:160-171 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:180-191 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:155-166 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:191-202 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:176-187 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:183-194 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:158-169 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:197-208 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:216-227 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:178-189 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt\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. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:209\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb877a4dc52cba67c105537079a399f181f88718b8cba4b50fa63fdd82e3b174"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201317 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt:75-91 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/RuleSpinnerAdapter.kt:75-87 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/SenderSpinnerAdapter.kt:75-87 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/TaskSpinnerAdapter.kt:75-87 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/RuleSpinnerAdapter.kt\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. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt:75\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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"37a4546be19a86a3c8805028eed9433b6cbdbf1e92755c6de710107186efb33f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:423-439 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:312-328 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:216-232 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:423\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:420\u0060 calls \u0060checkSenderLogicShow\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:213\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"493ae20c12e18a94d91b08f8e88f02262f77af9f969a93096f7c528a7e6b7b60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt:87-103 | app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt:88-104 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt:87\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, \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt:105\u0060 calls \u0060setOpenOtherPageWays\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt:104\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":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b382b20433172582195a5876389ef9c52de58c85e4c83b30c487cf40d248792"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 16): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:131-143 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:102-114 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:104-116 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:200-212 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:112-127 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:113-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:100-112 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:101-113 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:96-108 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:126-138 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:98-110 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:99-111 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:101-113 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:104-116 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:101-113 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:99-111 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt\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. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:131\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:99\u0060 calls \u0060createTagButtons\u0060, \u0060requireContext\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:93\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f46e0f91522d2df11aaf42feffec8d806f6b4e6ef4895498f65be0b7e8b2bba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 7): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:93-108 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:248-263 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:314-329 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:422-437 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:530-545 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:225-240 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:236-251 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:93\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, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:330\u0060 calls \u0060finish\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:109\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f0ffc43fbfb8d53fa1d224b32b124787db3a0515a5cac65a730e7930e0ae062"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:384-399 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:273-288 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:185-200 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:384\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":384}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3028d589a7f5847b4a4b8082674000ed547e949bb92897eec5f5b73d00a3c61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:595-610 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:620-635 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:595\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0a6c28f95c20cb26e69ca6f272e61b46a0beee6713ad6191af6d15a8f95cbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:352-367 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:166-181 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:352\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8778aa75346f5a8ae6311b0d3508ebd936b793a6f5e81e9e54e06a1b236d232"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:407-422 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:201-216 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:407\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfc0e3901e53afd6870288bec6ca11fc5dc9abcc04c628169d8e72fc008ba8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:281-296 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:269-284 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 251 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:281\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b94b2c98873225d0793c530da61a93162f6992c760718b98d971ae8c2df3add"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:90-105 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:153-168 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:90\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":"app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6031d89a129ba5201fa472c3dfe321ace0f74db07c4637c7f31e412f1c193ed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 11): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:76-90 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:231-245 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:297-311 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:407-420 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:513-527 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:109-123 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:208-222 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:109-123 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:219-233 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:127-141 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:163-177 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:76\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f0a2c8096b507fc266f6982401602a219336e1a9a44041c56cd66dfca34d551"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 9): app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:43-57 | app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:106-120 | app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt:31-45 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:53-67 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:116-130 | app/src/main/kotlin/cn/ppps/forwarder/workers/LockScreenWorker.kt:31-45 | app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt:50-64 | app/src/main/kotlin/cn/ppps/forwarder/workers/SendWorker.kt:130-144 | app/src/main/kotlin/cn/ppps/forwarder/workers/SimWorker.kt:34-48 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:43\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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, \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:49\u0060 calls \u0060when\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:41\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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a8e1968f069b06c0dbb8adac14c369f558e68eaf5aaf07856aeb0aa5d272c73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:324-338 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:208-222 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:324\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"9234a3b6ee7186c8cf70be332e789ed99bda05c0e028ce186c8fbf1bdf1b5802"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:231-245 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:287-301 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:231\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"2546610a5272bc8cc367ae053e97c3fdc810552cf88453995f22b7d924f88a59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:65-79 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt:65-79 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3c0bfddb0ce1e47cf3897c6d829a2a6a52790a7462b197675dc68ddd030cd7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 13): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt:123-136 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkGroupRobotUtils.kt:105-118 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:92-105 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:198-211 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:56-69 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:138-151 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuUtils.kt:155-168 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/GotifyUtils.kt:61-74 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/PushplusUtils.kt:74-87 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/ServerchanUtils.kt:61-74 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt:131-144 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:88-101 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:185-198 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/GotifyUtils.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt:123\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:53\u0060 calls \u0060ignoreHttpsCert\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkGroupRobotUtils.kt:102\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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a9069f3182ba983502a87900860e9a5f4b583606793901e7e27a0d6a1557ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:717-730 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:373-386 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"88402043f53b37ed6a91f568326436f564e06f1c7b3a339f11b05993552f92f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/server/controller/SmsController.kt:30-43 | app/src/main/kotlin/cn/ppps/forwarder/utils/SmsCommandUtils.kt:134-147 \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 \u0060app/src/main/kotlin/cn/ppps/forwarder/server/controller/SmsController.kt:30\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/server/controller/SmsController.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d5c6e783815c3152f43e40b8f5ab6c836630cf845b6760e2f0526dd1993bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:145-158 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:170-181 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:145\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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b7c2132b64c4b093efcadfe2f74f29dd947e651cf7b5355c5a730b06555e5e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:92-104 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:247-259 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:313-325 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:421-433 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:529-541 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:125-137 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:224-236 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:125-137 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:235-247 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:143-155 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:179-191 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:92\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, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:91\u0060 calls \u0060i\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:420\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"409e2a9042b7723c3292aab784f8ff3e05dbc081b74bbca03bdbf45ef075d64e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ChargeFragment.kt:152-162 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LockScreenFragment.kt:112-124 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/NetworkFragment.kt:96-108 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/SimFragment.kt:76-88 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ChargeFragment.kt:152\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ChargeFragment.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e75e284051b26eb97a1923d91acb64d2dc85da4a69d11dadeaeb47bcbb00a29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:241-253 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:205-217 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/WolFragment.kt:157-169 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 41 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:241\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"75d397930afc0b4b6d35bf7e0fe4c6d06172a345f36ba6efcf04613ea49245c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:166-178 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:184-196 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:223-235 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 179 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:166\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2e4dbcd61d508bb425e4261f6a570248135140e18646497489b57e7057d6216"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/adapter/base/broccoli/BroccoliRecyclerAdapter.kt:23-35 | app/src/main/kotlin/cn/ppps/forwarder/adapter/base/broccoli/BroccoliSimpleDelegateAdapter.kt:40-52 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. 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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/base/broccoli/BroccoliRecyclerAdapter.kt"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3915d2eef91735057c6f285b092f61f9206b5d33a567eaebdafdcc968e6f0e8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:585-597 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:293-305 \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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:585\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"4debe631517eb249031aa6df0ef484b562913160c8a574903c44a170d24d67f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:189-201 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:177-189 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 251 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"506cf8c92f617aa5be4f89285adb6bec138e4dc0cdfef04881b09ad89b134f8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:76-88 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:88-100 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 179 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fde2892bcc59d29ef56445c5cd8999a1c9367c4736a9f42d41242da4ed41e44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/mail/PgpUtils.kt:151-163 | app/src/main/kotlin/cn/ppps/forwarder/utils/mail/PgpUtils.kt:178-188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/mail/PgpUtils.kt:166\u0060 calls \u0060applyPgpToOriginalMessage\u0060, \u0060sign\u0060, \u0060encryptMessage\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/mail/PgpUtils.kt:190\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":"app/src/main/kotlin/cn/ppps/forwarder/utils/mail/PgpUtils.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b78382999d0b209bff8653fe111a4c78f0abbf3b83e9afd52894f9e47539eaf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/SocketUtils.kt:46-58 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/UrlSchemeUtils.kt:31-42 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/SocketUtils.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5c40688407f2bd2d816e8cd64662e90a362224fb7e80f60eb2f407703c7934"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u201312 lines \u00D7 22): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:267-267 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:268-275 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt:106-106 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt:107-114 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/FrpcFragment.kt:141-141 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/FrpcFragment.kt:142-149 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:154-154 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:155-162 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:232-232 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:233-240 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/ResendFragment.kt:113-113 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/ResendFragment.kt:114-121 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt:146-146 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt:147-154 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:191-202 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:147-147 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:148-155 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:350-350 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:351-358 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/TaskActionFragment.kt:147-147 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/TaskActionFragment.kt:148-155 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/WolFragment.kt:148-156 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:268\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:268\u0060 calls \u0060setInputData\u0060, \u0060build\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:267\u0060 does not \u2014 after which the two agree again for 5 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"63382f117f54b5d1bae8cef843dd04e2bfd378ce4f8ac4dfab5f006df33ee0b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 11): app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:362-373 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:80-91 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:235-246 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:301-312 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:517-528 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:113-124 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:212-223 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:113-124 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:223-234 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:131-142 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:167-178 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:362\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45ca9cf48ab2ba63ebc2443b4d0ce231fabffbda279c5b91bf44f5645669185"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/SendersFragment.kt:226-237 | app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt:351-362 | app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt:370-381 \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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SendersFragment.kt:226\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SendersFragment.kt"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"98cf98b7d2cf30ff7231be48b72ed2a3b29395e314fdb547bcd2b9df75c7194d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:170-181 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:122-133 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:170\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b147b5d7293b58a646e116b905b68c7295ff5b6bfb60ccfe0b640af189d1c7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:729-740 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:303-314 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:729\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d9457370478e9b1447ebd5ce20c0b0fbc15922afefc43b6860d3bd1f496add"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt:52-63 | app/src/main/kotlin/cn/ppps/forwarder/utils/SharedPreference.kt:110-121 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/SharedPreference.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6b63d4f996de6f6ce212de794b01a2932a9eb72faf80cf3dfc3ae59b905a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt:103-114 | app/src/main/kotlin/cn/ppps/forwarder/utils/SharedPreference.kt:82-93 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/SharedPreference.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"44f7944159b6fee3c0227e7bb1c1b68081e8c91b631e01fa0fcd44f832c77d28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/update/XHttpUpdateHttpServiceImpl.kt:31-42 | app/src/main/kotlin/cn/ppps/forwarder/utils/update/XHttpUpdateHttpServiceImpl.kt:52-63 \u2014 both copies are in the same file, so extract the block 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/update/XHttpUpdateHttpServiceImpl.kt:31\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/update/XHttpUpdateHttpServiceImpl.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8db92cc7e7a7be55e20c289ab89a450a359cb1f0f552e20a5cd1724fa6e9c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 14): app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:404-411 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:536-543 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:565-572 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:594-601 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:619-626 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:646-653 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:314-321 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:419-426 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:741-748 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:199-206 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:241-248 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:151-161 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:591-599 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:94-102 \u2014 there are 14 copies across 6 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 14 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:404\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:414\u0060 calls \u0060setText\u0060, \u0060getString\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:324\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"21190ed10a9d18c534abcf8ef160f5de27a5c21b55be341a0cce5a4c3683f424"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 13): app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:395-405 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:111-121 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:266-276 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:333-343 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:440-450 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:549-559 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:146-156 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:243-253 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:146-156 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:254-264 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:164-174 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:200-210 | app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt:459-469 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:395\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:392\u0060 calls \u0060finish\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:108\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed265a262922c7d0c27bc113fcbdaeb30d89d42a3056a86660ea0842adce23b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 12): app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:364-374 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:82-92 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:237-247 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:303-313 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:519-529 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:115-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:214-224 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:115-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:225-235 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:133-143 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:169-179 | app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt:433-442 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:364\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"529c657a9f9737c96852c58c69a35773da43ca190349b47f6102a92e35c4b6a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:219-229 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:501-511 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:97-107 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:196-206 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:207-217 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:115-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:151-161 | app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt:417-427 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 167 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:219\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b47cef84b8d2aadcd0d9663c3b80f7dae1500c75771a27991b505f3f2c13a882"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcRecyclerAdapter.kt:96-106 | app/src/main/kotlin/cn/ppps/forwarder/adapter/RuleRecyclerAdapter.kt:100-110 | app/src/main/kotlin/cn/ppps/forwarder/adapter/SenderRecyclerAdapter.kt:90-100 | app/src/main/kotlin/cn/ppps/forwarder/adapter/TaskRecyclerAdapter.kt:90-100 | app/src/main/kotlin/cn/ppps/forwarder/adapter/TaskSettingAdapter.kt:90-100 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. 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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcRecyclerAdapter.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b5e1e398834411bc5049b8062af4b640d2b1f921f2dca228bbc54b92eb1b4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:346-356 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:64-74 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:396-406 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:97-107 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 63 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:346\u0060 it does not close everything it opens, so those exact 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, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:75\u0060 calls \u0060i\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:407\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"c332348546d16bdf2ced82b17482ce1f10fa4795e7e4c9c7be3f3e2021a17806"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:142-152 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:292-302 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:263-273 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:280-290 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:142\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d25739666de1f50501848c012efedf3ada0adc13790ef672eebb7f71c7fe9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:164-174 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:177-187 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:182-192 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:221-231 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt\u0060 as WHOLE FILES: this scan already matched 9 separate duplicated blocks between them, totalling at least 121 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:164\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:219\u0060 calls \u0060Gson\u0060, \u0060toJson\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:162\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0b18a964c09234037e4be1442bbf999d69f11352af31e5d93075fa50d3c2a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkGroupRobotUtils.kt:98-108 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuUtils.kt:148-158 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/PushplusUtils.kt:67-77 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkRobotUtils.kt:61-71 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkGroupRobotUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuUtils.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 34 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkGroupRobotUtils.kt:98\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkGroupRobotUtils.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfcd45375c899fd12cce982292d4bf519d777e02dc168e6ecd9e8855e38c51e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt:137-147 | app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt:126-136 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdcfce491136090a32cffe3e110ceb56bbdb8831c6eb5385476300baf244bf40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:409-419 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:203-213 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 107 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:409\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, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:420\u0060 calls \u0060checkSenderLogicShow\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:214\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88a6810f6d90fe969b4316715b357bde39c91cc03da2e54248dcc68b542d6d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:565-575 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:235-245 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"921d818746dc30dc1a19b599c4e904311e764a5b068172966dd2d16ceeaef13c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:494-504 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:234-244 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:494\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a3bab4156b66adab76dd59109da7ad75490c9a07da6196d355ff40c18a3fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:539-549 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/BluetoothFragment.kt:217-227 \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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:539\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65e09c9ec94b2472dd944e9cf15851927d29711acbaad8d7307099bd20015b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:613-623 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:257-267 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:613\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0205440a32c47ba3ebee197c45e3c87a5c9aa547ce27741beb99c6ccf1acf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt:65-75 | app/src/main/kotlin/cn/ppps/forwarder/utils/SharedPreference.kt:123-133 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/SharedPreference.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb73bf4a3a718a4d5a011b79e3788ebec7a073cace2b1f414b0f954628c6a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt:52-62 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/GotifyUtils.kt:42-52 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/GotifyUtils.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26e53241271d611ccd505922991982d1544c21d952401ce2f9f4a8aff7970dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 25): app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:403-411 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:535-543 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:564-572 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:593-601 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:618-626 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:645-653 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:313-321 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:365-374 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:418-426 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:545-553 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:740-748 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:198-206 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:240-248 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:296-305 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:245-254 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:273-282 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:301-310 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:325-334 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:150-159 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:179-188 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:212-221 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:263-272 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:97-106 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:590-599 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:93-102 \u2014 there are 25 copies across 9 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 25 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:403\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:414\u0060 calls \u0060setText\u0060, \u0060getString\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:324\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a88e867bd01d0a173736de0b1f01038e658c382905b96a0f20e128734fc32e2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 11): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:52-60 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:206-214 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:273-281 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:487-495 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:73-81 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:182-190 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:85-93 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:194-202 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:85-93 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:113-122 | app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt:401-409 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:498\u0060 calls \u0060getAppVersionCode\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:62\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"38025cc5d746d0338326cdea93e53ca78e7ecac9088d712e6c59ea51ee5fbf39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:75-84 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:120-129 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:96-105 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/WolFragment.kt:77-86 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt:109-118 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 5 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 5 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:75\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"029179d8d08390fb7d0f6a5dc04a82992d85ad3cc8f134e949cc52cb47acfe61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcPagingAdapter.kt:51-60 | app/src/main/kotlin/cn/ppps/forwarder/adapter/RulePagingAdapter.kt:52-61 | app/src/main/kotlin/cn/ppps/forwarder/adapter/SenderPagingAdapter.kt:30-39 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcPagingAdapter.kt:51\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: \u0060MyViewHolder\u0060 names \u0060cn.ppps.forwarder.adapter.FrpcPagingAdapter.MyViewHolder\u0060 in one and \u0060cn.ppps.forwarder.adapter.RulePagingAdapter.MyViewHolder\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcPagingAdapter.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4dbcd0f35c8859d0a59b6d54acf3319cb9051efdc362586300cf03d34e5000a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:111-120 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:75-84 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:107-116 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:111\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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a6dfe290a0b9b799d0eedf447e5e83a1090aeb0f94f288a68f821b2a04dfd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuUtils.kt:92-101 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/PushplusUtils.kt:32-41 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/ServerchanUtils.kt:30-39 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/PushplusUtils.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuUtils.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"11a9f7dc474c4a5c763c97901ca560486fe3bd8526e717635add980d0437568a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt:437-446 | app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt:466-475 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd941bd20949bca3ee783bef4014bb761fbc61838c70c2cc149b05ecc192040d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:523-532 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:315-324 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:523\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"07008373d1dba78f314044a59e37ee8ff19912b4ece605d911e1949c02ae90c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:1430-1439 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:417-426 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:1430\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"637b21c578fe26c93d4c75374e417d7650dc27c078db5a27d77a9177b8707339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:131-140 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:121-130 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 235 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:131\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"dec961660dc79bafd6696687d4e58402b92efb619ba2d0b8e50c55c536d79b23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:146-155 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:134-143 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 251 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:146\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c87c9983fd16384948acf2e8a66ca8e0c08c3fe2bc1900bcbede684c1839a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt:40-49 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/GotifyUtils.kt:30-39 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/GotifyUtils.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc811b91c6c45a2019d5c56d516899455468df8179a90670bd1875ae759aaa58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt:104-113 | app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt:146-155 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 33 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt:104\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"8131c356090ea4bacba708dde0f4bedc9d5cf0b462c2ca55cbb4e7d67697d219"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 16): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:147-155 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:118-126 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:120-128 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:216-224 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:131-139 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:129-137 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:116-124 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:117-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:112-120 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:142-150 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:114-122 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:115-123 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:117-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:120-128 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:117-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:115-123 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt\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. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:147\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dc4fd29ab28e917f40b2db2f4ca61afe33f9291162b01821ed264ab2ee65606"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 14): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt:121-129 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkGroupRobotUtils.kt:103-111 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:90-98 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:196-204 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:54-62 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:136-144 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuUtils.kt:153-161 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/GotifyUtils.kt:59-67 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/PushplusUtils.kt:72-80 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/ServerchanUtils.kt:59-67 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt:129-137 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:86-94 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:183-191 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkRobotUtils.kt:66-74 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/GotifyUtils.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 44 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt:121\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, \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:53\u0060 calls \u0060ignoreHttpsCert\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkGroupRobotUtils.kt:102\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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3fd69993f25105ec82242c52c8b447b5001b6e367b76563c274214ea5a0c3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 10): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:141-148 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:291-298 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:350-357 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:584-592 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:163-170 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:262-269 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:176-183 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:279-286 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:181-188 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:220-227 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:141\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:358\u0060 calls \u0060finish\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:149\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"631d661d8f3ae3e1939fd7aee66b8af45b75972dd4f3acc5d947ee7aaccacece"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/AppListSpinnerAdapter.kt:63-71 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt:65-73 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/RuleSpinnerAdapter.kt:65-73 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/SenderSpinnerAdapter.kt:65-73 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/TaskSpinnerAdapter.kt:65-73 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/RuleSpinnerAdapter.kt\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. 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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/AppListSpinnerAdapter.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa11b42cb1e2b93ee8ca1530e0516d9c420bdfd4a14a6a301934f08ff147850b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/BluetoothFragment.kt:253-262 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ChargeFragment.kt:154-162 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LockScreenFragment.kt:115-124 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/NetworkFragment.kt:99-108 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/SimFragment.kt:79-88 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/BluetoothFragment.kt:253\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/BluetoothFragment.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d52d22422856670ad95b1f8a0929da2cb6f05bb844cc986e0a05b94dcab761e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:558-566 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:734-742 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:267-275 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:308-316 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 4 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 4 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:558\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"733dc5ca9218b8c05f974b2ee81c897fa1ec7e57dfae4d6b7b42c9eb5c866ce0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt:295-303 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:289-297 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/TaskActionFragment.kt:289-297 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"599b29615e76b715f679cb53d9c368c419ce3477bee2bbac1f800974a9f841d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/database/entity/Rule.kt:252-260 | app/src/main/kotlin/cn/ppps/forwarder/utils/RuleLine.kt:127-135 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/database/entity/Rule.kt:252\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/database/entity/Rule.kt"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb335408456626142fb8420832859fcf52c206f87622e0cf2bf9418bc1fbba3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:589-597 | app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:680-688 \u2014 both copies are in the same file, so extract the block 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3caffa1ca9d303c094b25dabd64d7ad8b4e98fcd9d1c89319183b1adcec0f87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:52-59 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:58-66 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 175 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:52\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed15ba1cb1780ab7fb37f92fc5a8461573e62fd57a9eec9a6b29f53782bfa706"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:248-256 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:243-251 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 146 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97611fcc8f2d6a8ba2851ea4cb5a641d71db6c0f4eb5d3f382dc2cc2a3297f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 28): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:80-86 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt:68-74 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/FrpcFragment.kt:94-100 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:74-80 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:119-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/ResendFragment.kt:68-74 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt:94-100 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:85-92 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:95-101 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:95-101 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/TaskActionFragment.kt:95-101 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/WolFragment.kt:75-82 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt:108-114 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:88-94 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:90-96 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:123-129 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:87-93 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:88-94 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:86-92 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:87-93 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:85-91 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:115-121 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:87-93 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:88-94 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:90-96 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:93-99 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:90-96 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:88-94 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:80\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:77\u0060 calls \u0060requireActivity\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt:65\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"616edae64b84543cd2294ece4e0558df37aef081bb61eadcd833b991b82e5b37"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 25): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:81-88 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt:69-76 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:75-82 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:120-127 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/ResendFragment.kt:69-76 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:87-94 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:96-103 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/WolFragment.kt:77-84 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt:109-116 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:93-100 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:89-96 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:91-98 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:124-131 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:88-95 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:89-96 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:87-94 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:88-95 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:86-93 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:116-123 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:88-95 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:89-96 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:91-98 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:94-101 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:91-98 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:89-96 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 52 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:81\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:77\u0060 calls \u0060requireActivity\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt:65\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"01becb4868763101bbf123b77ee93a6bbdb85cd69bdfe96697db13772991ab4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 15): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:194-202 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:168-176 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:184-192 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:296-304 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:164-172 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:172-180 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:145-153 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:165-173 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:141-148 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:162-169 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:169-176 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:144-151 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:183-190 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:202-209 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:164-171 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt\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. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:194\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ce82c82d8972386c54acce6b63593ba05599daeffaaa9050a8762a2663ffa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:224-231 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:290-297 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:506-513 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:102-109 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:201-208 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:212-219 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:120-127 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:156-163 | app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt:422-429 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 167 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:224\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e9bdb084a94f1e2411fcd582e155e8e4c97a47596903255f0a76106df95ea9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (1\u20138 lines \u00D7 13): app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:82-89 | app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:145-152 | app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt:103-103 | app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt:104-108 | app/src/main/kotlin/cn/ppps/forwarder/workers/CronWorker.kt:88-88 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:106-106 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:107-112 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:169-169 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:170-175 | app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt:145-145 | app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt:146-150 | app/src/main/kotlin/cn/ppps/forwarder/workers/SimWorker.kt:86-86 | app/src/main/kotlin/cn/ppps/forwarder/workers/SimWorker.kt:87-91 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:82\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 \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. 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, \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt:104\u0060 calls \u0060setInputData\u0060, \u0060build\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt:103\u0060 does not \u2014 after which the two agree again for 5 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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26e71ac8fdd93b47662cf92403298071c5a39f988d937a139dd9b2af088d00d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcRecyclerAdapter.kt:85-92 | app/src/main/kotlin/cn/ppps/forwarder/adapter/RuleRecyclerAdapter.kt:89-96 | app/src/main/kotlin/cn/ppps/forwarder/adapter/SenderRecyclerAdapter.kt:79-86 | app/src/main/kotlin/cn/ppps/forwarder/adapter/TaskRecyclerAdapter.kt:79-86 | app/src/main/kotlin/cn/ppps/forwarder/adapter/TaskSettingAdapter.kt:79-86 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. 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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcRecyclerAdapter.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"98943a31d6017b6cb6eb133b306625cd8dade90d36f8ea21ec08567823768b56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:49-55 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:50-56 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:56-63 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt\u0060 as WHOLE FILES: this scan already matched 15 separate duplicated blocks between them, totalling at least 179 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:49\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:46\u0060 calls \u0060SuppressLint\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:49\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a528191cfdd9240822981c12fd34da0df322e1c50387f9a1cb5cde9cac4a4ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:153-160 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:167-174 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:162-169 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 166 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:153\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"01822f470ad4e6610b96ea1eca35fe9f097aaa45984f7bd27e217ae415b89051"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:140-147 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:131-134 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:145-152 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:139-142 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:140\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:131\u0060 calls \u0060check\u0060, \u0060getProxyTypeCheckId\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:145\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c34b184daf904ddf5e792fa3bf7c40d2d616e8295b1db813721212782abb437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 27): app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:402-408 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:534-540 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:563-569 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:592-598 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:617-623 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:644-650 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:312-318 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:364-370 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:417-423 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:544-550 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:618-624 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:739-745 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:197-203 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:239-245 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:295-301 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:244-250 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:272-278 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:300-306 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:324-330 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:149-155 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:178-184 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:211-217 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:262-268 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:313-319 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/BluetoothFragment.kt:222-228 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:589-595 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:92-98 \u2014 there are 27 copies across 9 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 27 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:402\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, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:416\u0060 calls \u0060permission\u0060, \u0060getReadContactsPermission\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:591\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6ceed398be4b82dc4fb4eab9fe7123691a3df0635879bab003a4e298284576"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 26): app/src/main/kotlin/cn/ppps/forwarder/fragment/AppListFragment.kt:130-136 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:402-408 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:534-540 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:563-569 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:592-598 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:617-623 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:644-650 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:312-318 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:364-370 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:417-423 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:544-550 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:618-624 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:739-745 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:197-203 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:244-250 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:272-278 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:300-306 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:324-330 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:149-155 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:178-184 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:211-217 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:262-268 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:313-319 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/BluetoothFragment.kt:222-228 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:589-595 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:92-98 \u2014 there are 26 copies across 10 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 26 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/AppListFragment.kt:130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:416\u0060 calls \u0060permission\u0060, \u0060getReadContactsPermission\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:591\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/AppListFragment.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ca253e7c8023c77739637e2ca16b89287c48ce484f8ae2c5b0852399562f0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 16): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:197-203 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:171-177 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:187-193 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:299-305 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:167-173 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:175-181 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:148-154 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:168-174 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:143-149 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:179-185 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:164-170 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:171-177 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:146-152 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:185-191 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:204-210 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:166-172 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt\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. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:197\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"20621b53f3d9dceff9764bfe3a12fb3c27e57d1bf58738b7f0c53906da9e8e31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:254-268 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:237-251 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:260-274 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:278-292 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f2d00cc7a515ad7a2c29733121616c311791928d9aa78a67091ae2952599b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt:571-577 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:173-180 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt:167-173 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt:571\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5425c83f7ebf794cfa91578d27885c57237dacbe7dd0fb991b41734ef66473b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:734-740 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:444-450 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:734\u0060 it does not close everything it opens, so those exact 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":734}}}],"partialFingerprints":{"codehealthFindingId/v1":"546119b5d6cb8d65a3fdfe69bc6bf30d7e56888cd11f02852d39dd1514f0692a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:94-101 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:59-65 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:94\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d80c74ef86e58ecac0ee6b61736df944723d086dafda5a7bf3e21fd4d47c5c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:82-93 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt:82-93 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:82\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa48433e2660abd9ac922cc7dbbad0e17b625d4b90f0cf9745df117e76e0f15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:159-164 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:153-158 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:167-172 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:162-167 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:159\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcae84f9c3e2f598c4f7afca278b4e68c9b76df19edf2056b7ab48457669a1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/activity/MainActivity.kt:290-295 | app/src/main/kotlin/cn/ppps/forwarder/fragment/AppListFragment.kt:128-133 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/activity/MainActivity.kt:290\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/activity/MainActivity.kt"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"708a31b94148cebb9840fdf4990d2a7d045b2c1b5d77496641db9c9d66e8b39c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:763-768 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:397-402 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":763}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bedb5f49a66c96184c027d0b7071eaf3caa948fa854c1d658ca42791c4a8a64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:859-864 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:468-473 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 246 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:859\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0a1876a33f729f9e1cb2ad0dc45d19a33fa2490982f9bbe93cef50cb57b9e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:120-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:110-115 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 20 separate duplicated blocks between them, totalling at least 251 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:120\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060model\u0060 to \u0060CallInfo\u0060 in one and \u0060SmsInfo\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f0bf77cb6a9cf664d1e108f81820d5fa6b888bb2d1fdb09805b1f7686999323"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:441-445 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:449-453 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:457-461 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:465-469 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:473-477 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:481-485 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:441\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d8652d232857095fcd32f23d83a6be14166c5871ca41a93c4eb669ca06164c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:121-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:113-117 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:111-115 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 235 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:121\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:119\u0060 calls \u0060post\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:111\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"19106b7cf56370bffd7deb14c9bed3835e300ea3c5727a80228a16558cfc61f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:151-155 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:133-137 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:139-143 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt\u0060 as WHOLE FILES: this scan already matched 18 separate duplicated blocks between them, totalling at least 235 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:151\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"34670eb5fa13fcbdc9b8f308240fd7be7d43276a6998fc8612d8e2935acf1d86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:1128-1132 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:1141-1145 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:1128\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37670bd4d2425a37da7d794dbc1ab5a298860e0a75bb987cae0b925bfa27977"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/BluetoothFragment.kt:170-174 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/NetworkFragment.kt:87-91 \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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/BluetoothFragment.kt:170\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/BluetoothFragment.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da5368b9c68014afebdc999374c962324029c86ea20f9b5be0fdd37bcb76651"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:223-227 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt:216-220 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 132 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:223\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"86972f31be100fcdaa15045e28beb152fc69319dcb82e6435a9ca959a71e09fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:143-147 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:139-143 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt\u0060 as WHOLE FILES: this scan already matched 9 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. 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:143\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85a7654ae1424aac8e9874c8a35b2133005a46dbd687b97f311e5a6942bcb46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20135 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:150-154 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:144-148 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:161-163 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:156-158 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt\u0060 as WHOLE FILES: this scan already matched 12 separate duplicated blocks between them, totalling at least 140 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt: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. 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ddbf0fdfb0955e286a3cbde2e18fdb8935613ce9a0eeb581e12a0027c63848"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/SocketUtils.kt:59-63 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WebhookUtils.kt:66-75 \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 \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/SocketUtils.kt:59\u0060 it does not close everything it opens, so those exact 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/SocketUtils.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5929cd605d6c35fc8792e3523b18dc75a989731c34e4a3dd7ca5019da080d2bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/core/BaseContainerFragment.kt:68-76 | app/src/main/kotlin/cn/ppps/forwarder/core/BaseFragment.kt:115-123 | app/src/main/kotlin/cn/ppps/forwarder/core/BaseSimpleListFragment.kt:38-46 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/core/BaseFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/core/BaseSimpleListFragment.kt\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"app/src/main/kotlin/cn/ppps/forwarder/core/BaseContainerFragment.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"74517ec82fce7dea0fb226f62d63f5e3faafb7c1d7d30982e5fde485835f548d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt:453-460 | app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt:414-421 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e82fe5b1347c0bd59add516853bf5f2d84f2ac68d920ae34979d97609939e8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt:504-511 | app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt:482-489 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"190251a63dbd0ccdbafc13738e8808b3e334a698a699e3ca037a21f65b3c1744"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt:519-523 | app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt:497-501 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"20eee6a1537218955017faf3a2103b9ea7a891f04a1f87c64dbd27e4a10fea2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/entity/MsgInfo.kt:275-280 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:164-169 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuUtils.kt:203-208 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/entity/MsgInfo.kt"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57912c1002d2f54dac2c251aad1e8ff63d4f8ba116f77cc18fc440cd9fabb4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/entity/setting/DingtalkInnerRobotSetting.kt:22-28 | app/src/main/kotlin/cn/ppps/forwarder/entity/setting/TelegramSetting.kt:25-31 | app/src/main/kotlin/cn/ppps/forwarder/entity/setting/WebhookSetting.kt:30-36 | app/src/main/kotlin/cn/ppps/forwarder/entity/setting/WeworkAgentSetting.kt:24-30 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/entity/setting/TelegramSetting.kt:21\u0060 calls \u0060getMethodCheckId\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/entity/setting/DingtalkInnerRobotSetting.kt:20\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":"app/src/main/kotlin/cn/ppps/forwarder/entity/setting/DingtalkInnerRobotSetting.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c87818ee85768478ca7bebfeaf3329e0309ed4ea80b413aafeb6c4ed7ee891"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:606-613 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:378-385 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 159 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55aac58327220cc371a0204ecb39439480b81a29b06417fa4c49f6c3e4afe57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 7): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt:88-92 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/FrpcFragment.kt:123-127 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/ResendFragment.kt:95-99 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt:128-132 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:129-133 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/TaskActionFragment.kt:129-133 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/WolFragment.kt:114-118 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/action/FrpcFragment.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 43 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7661f452f157598a70a9289320d9e4622d164f6b19a20a7477979a00ef9150b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:185-190 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:155-160 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:136-141 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:132-137 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:135-140 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt\u0060 as WHOLE FILES: this scan already matched 8 separate duplicated blocks between them, totalling at least 104 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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"474049b132655fba9960177c0c719e5ec62c217ebe3249ac8bace7d9ea65fe0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt:82-93 | app/src/main/kotlin/cn/ppps/forwarder/utils/SharedPreference.kt:61-72 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/SharedPreference.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 47 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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":"app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07ccda14753a498b1be64f16329580c60de45f506ea32eeb3c487b2a3130fa2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/SocketUtils.kt:87-91 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WebhookUtils.kt:291-295 \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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/SocketUtils.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fcfc412ed4e9ed7bc4f5a1adb2560a0701b2c037a89f1a28a9c744682e463c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:66-75 | app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:129-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. 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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ded1e355d201b1efaee5b4dcf4efc345830705d08dc2f18938454d05a6ef71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:44-50 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:38-44 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 40 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:44\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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"90c9c4f8f615e832531ef4a9f817ba6acce599fb2571e5b023e758f387ab17d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:345-349 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:158-162 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:176-180 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:212-216 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 134 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 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:219\u0060 calls \u0060Gson\u0060, \u0060toJson\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:350\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf6d132b1c3cf92d0010e9d31524781935dfb3dffddea6506c319dd40d299f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:54-59 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:159-164 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:147-152 \u2014 before extracting anything, compare \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 69 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8536ea3e134a39e9aaa06aa9f4caad68d325256597b344e66183fba7ba80555"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AgentWebFragment (LCOM4 5): AgentWebFragment\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":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"a32420182df72670366484f8ec1051ce4cf005489dc76ca68a593e721d20395c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: FrpcSpinnerItem (LCOM4 4): FrpcSpinnerItem\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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerItem.kt"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"388ae145b57a4472750ad2298d56eb471a819642719bce815fe4d810894d177c"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: RuleSpinnerItem (LCOM4 4): RuleSpinnerItem\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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/RuleSpinnerItem.kt"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c16d63967cbaaf98d797cb1abfdd81a6ff933e9c46ca8cb729ff1a712acad8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SenderSpinnerItem (LCOM4 4): SenderSpinnerItem\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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/SenderSpinnerItem.kt"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef5aca5464346db56ea799c95561a3ab71a56ecc05f2d63861fdfbb6585efe8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: TaskSpinnerItem (LCOM4 4): TaskSpinnerItem\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":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/TaskSpinnerItem.kt"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e218bc18845064fb95ccbd6742614e99888f0f7eba5d3ce61e71cd3ab0919cf"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SettingsFragment (LCOM4 4): SettingsFragment\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4540249c7ef1c346e3e286b3e2b1073ee76da3e28155d6be315643e67dfd5c6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: NotificationFragment (LCOM4 4): NotificationFragment\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"0935c383d34470a4406d1b3e5a70d7eb77320dfc66574ee76fb58b038ddd23a4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: SettingsFragment (LCOM4 4): SettingsFragment\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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9ca49274d4e1d749e1466e3946cd71df92f8764a1527a3741ab70e3400894c"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely. Start with the code you change most often: add a suite in a framework a runner can collect (JUnit (with Kotest or MockK on Kotlin)), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u5982\u679C\u4F20\u5165\u7684taskConditionsJson\u4E0D\u4E3A\u7A7A\uFF0C\u9700\u8981\u518D\u6B21\u5224\u65AD\u89E6\u53D1\u6761\u4EF6\u662F\u5426\u6EE1\u8DB3 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ee5982d9b943dbb870685828d97bacbcabf5e4fbfad35c29ece854b7c4fb84"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u53D6\u4E0D\u5230\u5361\u69FD\u4FE1\u606F\u65F6\uFF0C\u91C7\u7528\u9ED8\u8BA4\u5361\u69FD\u53D1\u9001 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"e234e594b855d33aa19b63101092314d6f431bca1f36ed1c9240e0ea06a63ce5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u53D6\u4E0D\u5230\u5361\u69FD\u4FE1\u606F\u65F6\uFF0C\u91C7\u7528\u9ED8\u8BA4\u5361\u69FD\u53D1\u9001 \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":"app/src/main/kotlin/cn/ppps/forwarder/utils/SmsCommandUtils.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"3322c2d035f4e6c923abfd658052c62bb74224db65c721cda714cf20936f43b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u53D6\u4E0D\u5230\u5361\u69FD\u4FE1\u606F\u65F6\uFF0C\u91C7\u7528\u9ED8\u8BA4\u5361\u69FD\u53D1\u9001 \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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/SmsUtils.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e1fe1d8ebe4b2c50d586dec4b89383c67536289ace2629ebe43f073981af1b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u53D6\u4E0D\u5230\u5361\u69FD\u4FE1\u606F\u65F6\uFF0C\u91C7\u7528\u9ED8\u8BA4\u5361\u69FD\u53D1\u9001 \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":"app/src/main/kotlin/cn/ppps/forwarder/server/controller/SmsController.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a275a4136c6871fbf329faa1700b05a98be195c181b9f0cd33bd5245fd6a3ed2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u5199\u5165\u65E5\u5FD7 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e70be0687329442b931dc44c861298fffce132742943c3ae0e3b39ded35d0e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u5224\u65AD\u5176\u4ED6\u6761\u4EF6\u662F\u5426\u6EE1\u8DB3 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d525c64a941076fd4c5d7592a9642948b24761c4b83f6674cff5f65bf49dfa7d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u5224\u65AD\u5176\u4ED6\u6761\u4EF6\u662F\u5426\u6EE1\u8DB3 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c715e8d473358914dbcbc5fa810180a1b8469595b5758a1ddaa0c2ee137b63bd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u5224\u65AD\u5176\u4ED6\u6761\u4EF6\u662F\u5426\u6EE1\u8DB3 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"892e916a205a9bab0cb1478f96780103840e432d60eddec733f7480d33c0423f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u5224\u65AD\u5176\u4ED6\u6761\u4EF6\u662F\u5426\u6EE1\u8DB3 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"fecb0e4024ee8039db0edbdd7f2d9358cf180ca992cbb6f70d6206ac741bf2b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u5224\u65AD\u5176\u4ED6\u6761\u4EF6\u662F\u5426\u6EE1\u8DB3 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c6a781cfb57704e6d2cbf160aadcdd53c21c8c42b0f14409e0401ddb46b8d7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u5224\u65AD\u5176\u4ED6\u6761\u4EF6\u662F\u5426\u6EE1\u8DB3 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/LockScreenWorker.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c558362804a5dab0c0e90318f9fd0058e60a53db4676eb78cc6ddc1eaa4c42f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u5224\u65AD\u5176\u4ED6\u6761\u4EF6\u662F\u5426\u6EE1\u8DB3 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/SendWorker.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"64571a0837fd31325bb82cc5911173b8b6ec860ce387c1700eeb99e75006bb1c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u7EC4\u88C5\u6D88\u606F\u4F53 \u0026\u0026 \u6267\u884C\u5177\u4F53\u4EFB\u52A1 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bde9daff910877384303f1fcb7a53b61dcce0d013b8531aa00911f0acfdaccb"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u7EC4\u88C5\u6D88\u606F\u4F53 \u0026\u0026 \u6267\u884C\u5177\u4F53\u4EFB\u52A1 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b96e6e17ddbb55c9a0d653bf505941730d9c84ba53afae92b410286cd2eaab"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u7EC4\u88C5\u6D88\u606F\u4F53 \u0026\u0026 \u6267\u884C\u5177\u4F53\u4EFB\u52A1 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3962c996b720a3d30f36f7dccda454082b33570708aac9ce7320f8f9f33eae0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u7EC4\u88C5\u6D88\u606F\u4F53 \u0026\u0026 \u6267\u884C\u5177\u4F53\u4EFB\u52A1 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/CronWorker.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"b28305178c70e7f3612683f44408f4ef6d48439666825bc130577a5f04de5616"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u7EC4\u88C5\u6D88\u606F\u4F53 \u0026\u0026 \u6267\u884C\u5177\u4F53\u4EFB\u52A1 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"12928db4cb7ad8467d460e5e9c2daef7ba059ea9628a9439eac556c480c734aa"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u7EC4\u88C5\u6D88\u606F\u4F53 \u0026\u0026 \u6267\u884C\u5177\u4F53\u4EFB\u52A1 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"421aad34e09914f38149b0347eb0dca3b94d920ecb23de97d465fbb7d0d23627"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u7EC4\u88C5\u6D88\u606F\u4F53 \u0026\u0026 \u6267\u884C\u5177\u4F53\u4EFB\u52A1 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/LockScreenWorker.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a14094064b16aa07c85bd95e9f6c1bc90d00abbe9d1a25ee31d57b7005917ec"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u7EC4\u88C5\u6D88\u606F\u4F53 \u0026\u0026 \u6267\u884C\u5177\u4F53\u4EFB\u52A1 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aaf94c7d5b68284ee60a70f6e750f920a3b19c65640b80ab6762da0a02e8bee"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u7EC4\u88C5\u6D88\u606F\u4F53 \u0026\u0026 \u6267\u884C\u5177\u4F53\u4EFB\u52A1 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/SendWorker.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd19760812627b866b05623366fd4bba26bdf72cc95104b7b570c11f2edab92"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u7EC4\u88C5\u6D88\u606F\u4F53 \u0026\u0026 \u6267\u884C\u5177\u4F53\u4EFB\u52A1 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/SimWorker.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"4230c4b1afb7806a1985e226275d3ebc90b1b23e7d0d6fa8ba43a0e8c657a53d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u5224\u65AD\u5176\u4ED6\u6761\u4EF6\u662F\u5426\u6EE1\u8DB3 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/CronWorker.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e3cf1f5d98820bb50713b2be1d44a747f618ac6e3430f69d72d3180fed691e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u5224\u65AD\u6761\u4EF6\u662F\u5426\u6EE1\u8DB3 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"5645412efee7afcb97cbb61f6cf43d249cb88a1baad65ea7240954f3b58632d6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u5224\u65AD\u6761\u4EF6\u662F\u5426\u6EE1\u8DB3 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af5a6267cadcc07dcf2d6b7a041365e2b233b00933f2e7e700f1272527a354a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u5EF6\u8FDF\u65F6\u95F4\u4E0D\u591F\u7CBE\u786E \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/LockScreenWorker.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea85818a66913dde3fd80151e323c4dd234fb0d40fabe0054182ef470f33acf2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u5224\u65AD\u5176\u4ED6\u6761\u4EF6\u662F\u5426\u6EE1\u8DB3\uFF0C\u6CE8\u610F\uFF1A\u5EF6\u8FDF5\u79D2\uFF08\u7ED9\u591F\u641C\u7D22\u4FE1\u53F7\u65F6\u95F4\uFF09\u624D\u6267\u884C\u4EFB\u52A1 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"1452b1623ce8485e23cc47e75913c759c65a1dc545e2c6c280cbed306e6b093d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u5224\u65AD\u5176\u4ED6\u6761\u4EF6\u662F\u5426\u6EE1\u8DB3\uFF0C\u6CE8\u610F\uFF1ASIM\u5361\u5DF2\u51C6\u5907\u5C31\u7EEA\u65F6\uFF0C\u5EF6\u8FDF5\u79D2\uFF08\u7ED9\u591F\u641C\u7D22\u4FE1\u53F7\u65F6\u95F4\uFF09\u624D\u6267\u884C\u4EFB\u52A1 \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":"app/src/main/kotlin/cn/ppps/forwarder/workers/SimWorker.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"eacd2253f5aa5ec10f73e58e44cb08760a0681532c5927d09ca6f438c9a0a034"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO:\u600E\u4E48\u6D4B\u8BD5\u53CD\u5411\u5F15\u7528\u662F\u5426\u6B63\u786E\uFF1F \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":"app/src/main/kotlin/cn/ppps/forwarder/utils/CommonUtils.kt"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe7cf430b8736e2bb5ece66aa853d52bafd900cffabe73d5e074f9f4c92bf49d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO:\u6682\u65F6\u4E0D\u652F\u6301\u534E\u4E3A \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":"app/src/main/kotlin/cn/ppps/forwarder/utils/PhoneUtils.kt"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d82daa762700c0bf9ffc060eda61e6427c0114804dc9b6fd628567548937ef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u5224\u65AD\u6D88\u606F\u662F\u5426\u6EE1\u8DB3\u6761\u4EF6 \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":"app/src/main/kotlin/cn/ppps/forwarder/utils/task/ConditionUtils.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d8812dca71bfb9023ceaa56057af852bb7d469ca3480a8a6f44535788e6607"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: OpenPGP \u53EA\u7B7E\u540D\u4E0D\u52A0\u5BC6\u65F6\uFF0C\u63D0\u793A\u65E0\u6548\u7684\u6570\u5B57\u7B7E\u540D\uFF0C\u6682\u672A\u89E3\u51B3 \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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/EmailUtils.kt"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7c068fc887bcda1e5ac9e6e7f3d7ee9b162c7d002c92ad3a0f4f9c7c53413f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: MarkdownV2 \u8981\u6C42\u8F6C\u4E49\u4EE5\u4E0B\u5B57\u7B26\uFF0C\u5B9E\u6D4B\u4E0D\u80FD\u5168\u90E8\u8F6C\u4E49\uFF08\u4E22\u5931\u683C\u5F0F\uFF09 \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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"849a031bfaaed4c3ce868e6718e2d5898342ccf676dc0caec604bb940499f674"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u4E3A\u4EC0\u4E48\u4E0D\u9700\u8981\u518D\u8BBE\u7F6E\u8FD9\u4E9B\uFF1F \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":"app/src/main/kotlin/cn/ppps/forwarder/utils/mail/SmimeUtils.kt"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24637b6aa59314579b7b3631b8241b865d63157a1cc0124edcbf840d632cb91"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u6682\u65F6\u7279\u6B8A\u5904\u7406\uFF0C\u66F4\u65B0\u65E5\u5FD7\u72B6\u6001\u4E3A\u6210\u529F \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":"app/src/main/kotlin/cn/ppps/forwarder/utils/interceptor/NoContentInterceptor.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"230c080fbae275f431553e78e1041223996be20533626477fe34fc9bfa083c89"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u81EA\u52A8\u6D88\u9664\u901A\u77E5\uFF08\u4E34\u65F6\u65B9\u6848\uFF0C\u91CD\u590D\u67E5\u8BE2\u6362\u53D6\u51C6\u786E\u6027\uFF09 \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":"app/src/main/kotlin/cn/ppps/forwarder/service/NotificationService.kt"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"2de195588435e76676323fea85f81b36b3a9a78ce6865c755ddb62ec22e64268"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u5B9E\u6D4B\u8FD9\u91CC\u4E00\u53F0\u8BBE\u5907\u4F1A\u6536\u5230\u4E24\u6B21\u5E7F\u64AD \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":"app/src/main/kotlin/cn/ppps/forwarder/receiver/BluetoothReceiver.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab375e99b5861fd7f663bbd9843ae51a2bf1883a9ae2b35f19cbd035ef05483c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u653E\u5728\u8FD9\u91CC\u53BB\u5224\u65AD\u662F\u5426\u5DF2\u7ECF\u53D1\u73B0\u67D0\u4E2A\u8BBE\u5907\uFF08\u907F\u514D ACTION_FOUND \u91CD\u590D\u5E7F\u64AD\uFF09 \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":"app/src/main/kotlin/cn/ppps/forwarder/receiver/BluetoothReceiver.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ec5e500cf2c77187930b705d8a4f41855187d4d11167b916cc09979758dec4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u51C6\u786E\u83B7\u53D6\u5361\u69FD\u4FE1\u606F\uFF0C\u76EE\u524D\u6D4B\u8BD5\u7ED3\u679C\u53EA\u6709 subscription \u76F8\u5BF9\u9760\u8C31 \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":"app/src/main/kotlin/cn/ppps/forwarder/receiver/SmsReceiver.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"05858560558dc02c75d426b4895dd51973b5c0bb20a764589d86ad0f38e9c4b5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u5220\u9664\u524D\u786E\u8BA4 \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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"34484a7dce0f28f2cfebc1a01daee7f07c1d99668d48268a6833cf37c5d54bf8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO: \u66FF\u6362mailType\u4E3A\u5F53\u524D\u8BED\u8A00\uFF0C\u907F\u514D\u5207\u6362\u8BED\u8A00\u540E\u5931\u6548\uFF0C\u5386\u53F2\u5305\u88B1\u600E\u4E48\u66FF\u6362\u6BD4\u8F83\u4F18\u96C5\uFF1F \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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0f35962cc4531dc5d74079fe54b4c7d8cf66bd43edec6157300ee82ac4b605b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO:\u5224\u65ADSheme\u662F\u5426\u6709\u6548 \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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc25ff09a06f7cd3239a7302eb40d8e2004797cc2ce92c5f6fa79d92e120d15"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u4F4E\u7248\u672CAndroid\u89E3\u6790Cron\u8868\u8FBE\u5F0F\u4F1A\u62A5\u9519\uFF0C\u6682\u65F6\u4E0D\u5904\u7406 \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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a31712d2f3de721c57562d82f823c75372b29d53c330e6317649f0e3f87381"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u4F4E\u7248\u672CAndroid\u89E3\u6790Cron\u8868\u8FBE\u5F0F\u4F1A\u62A5\u9519\uFF0C\u6682\u65F6\u4E0D\u5904\u7406 \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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":1628}}}],"partialFingerprints":{"codehealthFindingId/v1":"2516778cfd93c152c691b5e91379d3d17478a2991013a80a0aa59d601ed18893"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO\uFF1A\u652F\u6301\u591A\u8BED\u8A00 \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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt"},"region":{"startLine":1633}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8242db8fc51dd87fe9d9fb4be1dc1a9ab8e9503dff3f7ed9af41fc10fc0f266"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO:\u5141\u8BB8\u4E3B\u7EBF\u7A0B\u8BBF\u95EE\uFF0C\u540E\u9762\u518D\u4F18\u5316 \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":"app/src/main/kotlin/cn/ppps/forwarder/database/AppDatabase.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"85461e20d768b84b1081ad09cdf3495a64c254a64cac49bb86ea8271b9c87263"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO:\u5141\u8BB8\u4E3B\u7EBF\u7A0B\u8BBF\u95EE\uFF0C\u540E\u9762\u518D\u4F18\u5316 \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":"app/src/main/kotlin/cn/ppps/forwarder/database/dao/FrpcDao.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf9dfd7475e7bbfca5a188331e6cc725ed61ef4998c513ad5fee8b250dcad4e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //TODO:\u6839\u636E\u6761\u4EF6\u67E5\u8BE2\uFF0C\u6682\u4E0D\u4F7F\u7528 \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":"app/src/main/kotlin/cn/ppps/forwarder/database/viewmodel/TaskViewModel.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab5d4a5db726320e5942fe83bf2f3072e92abf5f876b1fad11951fd19019791"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u4FEE\u6539\u4F60\u7684applink \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":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/WebViewInterceptDialog.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8008d96b56ae2108d3d527f662db04a461ea0fdb94383fa4e5b167cbe4ef5f"}},{"ruleId":"D19","level":"note","message":{"text":"Documentation: no build, run or usage example: the repository holds project manifests and neither \u0060README.md\u0060 nor the documents it links hold a code block or a command. Show the command that builds or runs it, or a usage snippet."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33a5992d4bd6ac1ea4b853ae69753fcd7e0410099c58731c86be53325ba8c96"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90004961d65b1260128bcdb5ead389110933bd206929aae35726b5f8ea4c3106"},"properties":{"commitSha":"4e803f8836973a6862fe457eb3225899aec7982c"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"358a8d2177f78bf57cafd888d183d5d361b034f5763f42aaa6874150ba2f1805"},"properties":{"commitSha":"c2d2beb8efc012addb2410d789058cad93087372"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d98c86040024a8833dc013e9183192886f659a0d75eeee66f3249166e47e2d3c"},"properties":{"commitSha":"4e803f8836973a6862fe457eb3225899aec7982c"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d94de2b6a17fbc9fd28b1a7ab505a6b9d1a32ece507df0b84eef33889025de57"},"properties":{"commitSha":"a02854bed02fb7a8170335580e91df3e9a525225"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"733f2140dccec41f1feb3aabdb9929b043696fdcfb8fb355069c569ee6ae16d1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"e3ca26fef8beb0f930d4dae9341ddaa3529edb4d155675a91eb51dcb8e0ba088"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"d2cd68ace0232eb71b9887be2812f08f1909d82903832224bfa9607a7f967f44"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"027ccdf5e3fbd0f70d3402dddd0cbef695f582c4109578d27eb26ce8d1e4e8e9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"2cc13e9fa511f3e2da0014d25ebc07078d5a9e98d30fd90d0274355c328f703e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"fba3d456ff516c602dd1c951cf77dad4487ec3d33ffe07f99ced7d629c2bf6ed"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"7bff5c4c8c7949d9e4379f9d2381ac55abb869dcd6fa73ffb802dacb11280684"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"b49c4f54b86950c857e65439917b65a3f823c91508492afa5b184087468b053e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"01f52a54d6bfbad7836b8c4af17855e20279b97c1f8dfb57d7c5c6826c6856bd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"a51b904b1b5d56435d05dcd759bc0b8eebff7507d6d881c1907f3ffb7f483e17"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"1ce1f87b9f15d4b767c98eeb823fd9c288a0cb7c68962d0f729ef65af14ac0f0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"9753c2ceb93d9caa2d4dcd1fb0d39b4e8bf1af059dedd5fa1c4f1a32cd3ae015"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"704eb17c2f71a748da8f875775963b4a6a9bab20d1b5fb75458a412f34473f6a"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"d42efbbbe1c6c39abdb1d9c5eded4563659b157954c7487781c0c02dafc9c3d2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"c57d7ca5e56131f267b565ed2e3add33f95c2ed446017abed84b7d2e3c3536fc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"100c46625e1d2c287cef5b3d438cb1bd9ad8dc96e8dc639e83e8054e2b54d747"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d0180b330c7c5106585caeb996cb28a6027c6c582b27f23a0cd4a0c2e728f5cc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"434158b96b17f156d6b0c94dd8aae8f50244ab9578b521de057c1ba20384055b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"a55ca5d0565c6e21dbbd9b2ee8d73ede9aea5edb4a40fb31b7e71838046e7ffc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"14afcfb5674d808eeee68bceb223574de543767f12c18cfdc8e0277370698d49"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"47af6fb4b4f42131006051da17aa4bb041776570b9006e15a46f08995fa5ac3a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"3571efd39e6a539d4be2f93330aac61ca9c58c8f17f4dbfa17b39d32c67e2308"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"35320f9e1df673cc11a17c283e2fb8bcb44c2e879e5aab76ffd86c1c8563534a"},"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":"ae918f70e2d31e1327c05788cd7e6b5ab9522d2ae8a3ae716c566707009ff74d"},"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":"bd37c136f28d223c95e4937c8fe490f870fe3d14047f2c59896ad18527ada416"},"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":"7c22a039ad68026f146c7b0cd355f8cdc9e54d5f6ba41d5be6cf38858455164a"},"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":"5504af7ddb377ef011f7263078e62a1270c965b00b9ca66fba065c8027e5fc63"},"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":"124c073392d8ba954f6812a077694821747bee8c4afe1dba9a5f8c6644d27ff8"},"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":"c890556b7be5c332f3ed090438784131e3297ee618899080d86406374cc98f78"},"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":"ec3bb84733f8fe6c4e3e6d9d275bd7775be69f33fdb2b1a0ac7f8e97b41924ea"},"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":"D32","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7224c0cfa288f0e80dcefb87f6f27b11018d40057cd91f0a3d0b82582dfe98a3"}},{"ruleId":"D32","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f222193a02ab5af4540aaa60b7d8e7980830295e5ea1f91dbb4cf66baa195092"}},{"ruleId":"D32","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d6000132b0a22641394597c33455d01505fc5cfbfbee976782a6cb7fd06d310c"}},{"ruleId":"D32","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb29d1424af99e40f1814fcec01a75674450e922168cd810746aa679bb4e1f56"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 2 of 188 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 188 of the 347 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: app/src/main/kotlin/cn/ppps/forwarder/fragment/action/WolFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/ProximitySensorScreenHelper.kt. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/WolFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a875ada41a0f08cf22ec41792c4d89d3add201afaac8536187d3060c617adefa"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/ProximitySensorScreenHelper.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f3cf8c6c7597625f89a9a4fe28c15cd295a552b3a60b5f1dacf8e549e5668b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: Constants.kt \u2192 ClientFragment.kt, SettingsFragment.kt, TasksEditFragment.kt, HttpServerUtils.kt, SettingUtils.kt: \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/Constants.kt\u0060 changes together with 5 other files \u2014 \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt\u0060, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt\u0060, \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt\u0060, \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/HttpServerUtils.kt\u0060, \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/SettingUtils.kt\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 5 separate couplings, not 5 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 5."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/Constants.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5bf680758b8e9d297faace9852e1a8d1e251cf8dc9c44dec39594389bea462b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: MsgInfo.kt \u2194 LogsFragment.kt: \u0060app/src/main/kotlin/cn/ppps/forwarder/entity/MsgInfo.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/LogsFragment.kt\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u00605e0537e1\u0060 \u65B0\u589E\uFF1A\u8F6C\u53D1\u65E5\u5FD7\u589E\u52A0\u7B5B\u9009\u5668\u65B9\u4FBF\u641C\u7D22/\u6279\u91CF\u5220\u9664 #433 (at that commit the files were still \u0060app/src/main/java/com/idormy/sms/forwarder/entity/MsgInfo.kt\u0060 and \u0060app/src/main/java/com/idormy/sms/forwarder/fragment/LogsFragment.kt\u0060); \u0060a4aade94\u0060 \u56DE\u9000\uFF1A\u0060{{\u901A\u77E5Scheme}}\u0060(\u82F1\u6587\u7CFB\u7EDF\u0060{{SCHEME}}\u0060)\u6807\u7B7E\u4EE5\u83B7\u53D6\u5E94\u7528\u901A\u77E5\u7684\u0060Scheme\u0060 #272 #276\uFF08\u65E0\u89E3\uFF0C\u53BB\u9664\u2026 (at that commit the files were still \u0060app/src/main/java/com/idormy/sms/forwarder/entity/MsgInfo.kt\u0060 and \u0060app/src/main/java/com/idormy/sms/forwarder/fragment/LogsFragment.kt\u0060); \u0060e4432cb0\u0060 \u4F18\u5316\uFF1A\u591A\u8BED\u8A00\u5207\u6362\u65F6\u679A\u4E3E\u5E38\u91CF\u81EA\u52A8\u5207\u6362\u8BED\u8A00 (at that commit the files were still \u0060app/src/main/java/com/idormy/sms/forwarder/entity/MsgInfo.kt\u0060 and \u0060app/src/main/java/com/idormy/sms/forwarder/fragment/LogsFragment.kt\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/entity/MsgInfo.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0eded36eb6ca771c7081f2f0c3673072353068c100915ef6255056bdbc995c9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SettingsFragment.kt \u2194 SmsReceiver.kt: \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/receiver/SmsReceiver.kt\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u0060ac74a183\u0060 \u65B0\u589E\uFF1A\u5F69\u4FE1\u8F6C\u53D1\u529F\u80FD\uFF08\u8BD5\u9A8C\uFF09 #351 (at that commit the files were still \u0060app/src/main/java/com/idormy/sms/forwarder/fragment/SettingsFragment.kt\u0060 and \u0060app/src/main/java/com/idormy/sms/forwarder/receiver/SmsReceiver.kt\u0060); \u00602c9065a7\u0060 \u65B0\u589E\uFF1A\u77ED\u4FE1\u6307\u4EE4\u6253\u5F00\u6216\u5173\u95ED WiFi #316 \uFF08\u8BD5\u9A8C\u6027\uFF09 (at that commit the files were still \u0060app/src/main/java/com/idormy/sms/forwarder/fragment/SettingsFragment.kt\u0060 and \u0060app/src/main/java/com/idormy/sms/forwarder/receiver/SmsReceiver.kt\u0060); \u00606571775a\u0060 \u65B0\u589E\uFF1A\u77ED\u4FE1\u6307\u4EE4\uFF08\u6839\u636E\u77ED\u4FE1\u6307\u4EE4\u5F00\u5173\u5BF9\u5E94\u529F\u80FD\uFF09 #I5YX3F (at that commit the files were still \u0060app/src/main/java/com/idormy/sms/forwarder/fragment/SettingsFragment.kt\u0060 and \u0060app/src/main/java/com/idormy/sms/forwarder/receiver/SmsReceiver.kt\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"debebea75d1e2e692e0709e1c2e14f58e53acd1f752b46e42d0a007e8e485858"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a53d94f871495415dac887033715211cd39988cd6e0c7515dcf708dde6a0f701"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"11926674c70c8ba9cd8dd640ba8c13706e68b5278bd3afb4896890c07e4cf575"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d657599f6f99da1927d3377533dfc0888b34c4d84aa7d5579841fd72d0e39bce"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"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":"P2","level":"warning","message":{"text":"No structured logging: No logging call was found in the 341 JVM production file(s) this check read across 1 module(s). Each was searched for its ecosystem\u0027s logging libraries (JVM: SLF4J, Log4j2, java.util.logging, Logback, kotlin-logging, scala-logging) and for a call on a receiver named \u0060log\u0060/\u0060logger\u0060 (or ending in \u0060Logger\u0060/\u0060_logger\u0060) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read \u2014 this is \u0027no logging found by this walk\u0027, not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 3 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/Release.yml"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060.openConnection(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb0d43042da660f250e9e59a561f14f9de547284c384d318e27658e5199a98c"}},{"ruleId":"X1","level":"warning","message":{"text":"\u0060GlobalScope.async\u0060 result is not kept: The \u0060Deferred\u0060 this starts is not kept anywhere, and \u0060GlobalScope\u0060 has no parent job: \u0060async\u0060 holds any exception its block throws until somebody calls \u0060await\u0060, so once nobody holds the \u0060Deferred\u0060 the error is gone \u2014 not rethrown, not printed, not passed to a \u0060CoroutineExceptionHandler\u0060 \u2014 and nothing can wait for the work to finish either. Start the work in a structured scope the caller owns (\u0060coroutineScope { async { \u2026 } }\u0060, or a scope tied to the component\u0027s lifetime) and \u0060await\u0060 it, or, for genuine fire-and-forget, use \u0060launch\u0060 \u2014 whose failure reaches the uncaught-exception handler \u2014 or catch and report inside the block itself."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/service/ForegroundService.kt"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5dfa15cc56a38f382895c1a73b21d0ea14db5b739820b4671475e635f98e1b1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!SettingUtils.enableLoadUserAppList \u0026\u0026 !SettingUtils.enableLoadSystemAppList\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"d350d723b207f7497796127309cbb14b955c26505d36c7c25fca427562c9c23d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!TextUtils.isEmpty(accessToken) \u0026\u0026 expiresIn \u003E System.currentTimeMillis()\u0060 appears character-identically in 3 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a9d78acd871b3fbf1355c9d76828cf1f9cfa0ac65fd8c76567a3a7e8040727"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(setting.proxyType == Proxy.Type.HTTP || setting.proxyType == Proxy.Type.SOCKS) \u0026\u0026 !TextUtils.isEmpty(setting.proxyHost) \u0026\u0026 !TextUtils.isEmp\u2026\u0060 appears character-identically in 4 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WebhookUtils.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4eb69f994ab7101ca0c62648bb768da7bc7ab0236709a6e6566f8e829b3d546"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060App.UserAppList.isEmpty() \u0026\u0026 App.SystemAppList.isEmpty()\u0060 appears character-identically in 3 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/activity/MainActivity.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/activity/MainActivity.kt"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4d1f06fc6ef5709bd9e39cf3ea11029123ff9e571a248c8822eb8b84e6beba"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060FILED_TRANSPOND_ALL != filed \u0026\u0026 TextUtils.isEmpty(value)\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e83e9636ed675d178d25a4c973b3be3d9a01c3ede529e9796de8dad4e88f57"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060SettingUtils.subidSim1 \u003E 0 || SettingUtils.subidSim2 \u003E 0\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/receiver/SmsReceiver.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/PhoneUtils.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":"app/src/main/kotlin/cn/ppps/forwarder/receiver/SmsReceiver.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e41d19fbe7987adc67df3ccff6f4de3bcf527837cbf6c4d1b839319dc90383a7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060TextUtils.isEmpty(targetUrl) || targetUrl.startsWith(\u0022file://\u0022)\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"7406050f882d6af78696eaf14c1156e60edb54bd2eb8c8af34e8c7d480d4a409"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060checkId == R.id.rb_is || checkId == R.id.rb_contain || checkId == R.id.rb_not_contain\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0500a9824025b1a9a8cab9789f066209fbea23f1d3b139ef8ba7f6ff37e0c0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060checkedId == R.id.rb_proxyHttp || checkedId == R.id.rb_proxySocks\u0060 appears character-identically in 4 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"5287ed7071ee12ef6b3b4fbf72ebd93a61a6cd01476f494f7185e1722900481e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060directory.exists() \u0026\u0026 directory.isDirectory\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d2355449ff413770f4895b2034096614c903b6740d5c136f03fa296d2b0845"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isChecked \u0026\u0026 !SettingUtils.enableLocation\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c33fa0c59f62a606e7af320b1bb90a284e09384cf73d66efdc36eb3290da660"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060latitude.isNaN() || longitude.isNaN() || distance.isNaN()\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d40e1bdb9e49557312fdfb7c2a9093a5a543756beabdee1d68b567e5be010c8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060location.latitude == 0.0 || location.longitude == 0.0\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7f160368a8a7dcb8ddfca11529f912999856bab86d9481881081002714cfb5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mAgentWeb != null \u0026\u0026 mAgentWeb!!.handleKeyEvent(keyCode, event)\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/core/webview/BaseWebViewFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/BaseWebViewFragment.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"076c71b01fbb98c0ccb0ac25aef838c5ccc0341a4bfce57e66d67f3c64d34659"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060proxyAuthenticator \u0026\u0026 TextUtils.isEmpty(proxyUsername) \u0026\u0026 TextUtils.isEmpty(proxyPassword)\u0060 appears character-identically in 4 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ce44dfed04712b3f06329eafdcc76854ae1d052e87c75d018ec13ffb9272f0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060proxyType != Proxy.Type.DIRECT \u0026\u0026 (TextUtils.isEmpty(proxyHost) || TextUtils.isEmpty(proxyPort))\u0060 appears character-identically in 4 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0f5f4393be806a10f09d14b4b78dae399f81fafccf3f09902ea2ea1a76dd3e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ruleType == \u0022app\u0022 \u0026\u0026 appListSpinnerList.isNotEmpty()\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"90dd8bebf1fa17fd718893a2b1b360a73077520ca615fb9a3cd918148969bf96"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ruleType == \u0022call\u0022 \u0026\u0026 rule.filed == FILED_CALL_TYPE\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"17015b4db230d37e63402fd5f5f132761f36f11c595edb892937720f56dde428"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060senderListSelected.isEmpty() || senderId == 0L\u0060 appears character-identically in 3 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":617}}}],"partialFingerprints":{"codehealthFindingId/v1":"17062212c3833644ad652416c2c84ec74fa7e979c28917711bbff9267b682447"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060setting.proxyAuthenticator \u0026\u0026 (!TextUtils.isEmpty(setting.proxyUsername) || !TextUtils.isEmpty(setting.proxyPassword))\u0060 appears character-identically in 4 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WebhookUtils.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.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":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"e81d3bf4e6906ceef05c46f6b0a093ddc84d744cd7680d0d47cbc2f6455e38b2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060timestampPrev != timestamp \u0026\u0026 timestamp - timestampPrev \u003C= duplicateMessagesLimits\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/utils/SmsCommandUtils.kt, app/src/main/kotlin/cn/ppps/forwarder/workers/SendWorker.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":"app/src/main/kotlin/cn/ppps/forwarder/utils/SmsCommandUtils.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ca8e910601a87cd236c882c6dc3362eee6b40251428b1281c59fd2da7cc1eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060url.startsWith(\u0022intent://\u0022) \u0026\u0026 url.contains(\u0022com.youku.phone\u0022)\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.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":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"eba6bb03331d25c0c2a49e8a34f5b3d09515d1f842a71693eaa958105dab59a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060value.contains(\u0022\u0026\u0026\u0022) || value.contains(\u0022||\u0022)\u0060 appears character-identically in 2 files \u2014 app/src/main/kotlin/cn/ppps/forwarder/database/entity/Rule.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/RuleLine.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":"app/src/main/kotlin/cn/ppps/forwarder/database/entity/Rule.kt"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d331e8daf187c06eded5fb883751dc084be70a046aed0fa006bd87af8717172"}},{"ruleId":"X18","level":"warning","message":{"text":"Disposable created and abandoned in the function that made it: \u0060FileInputStream(\u2026)\u0060 opens something that has to be given back \u2014 a file descriptor, a socket, a directory handle \u2014 and it is held in \u0060pfxInputStream\u0060, and every later use of \u0060pfxInputStream\u0060 in its block reads a member through it \u2014 it is never returned, passed, stored, captured by a lambda, reassigned or released, so this expression both creates the value and is the last place that can release it, and does not. Every call leaks one more open handle until the collector happens to reach it: \u0060Too many open files\u0060 under load, and on Windows a file that cannot be replaced or deleted while it is held. Open it with \u0060FileInputStream(\u2026).use { r -\u003E \u2026 }\u0060, which releases it on every path including a throw, or hold it and call \u0060.close()\u0060 in a \u0060finally\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fb0c25c8116b10bd9b8ecb27d6bf17ce392529a2fba1b69b809cbf43f98c70"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/LocationProviderPicker.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"68268e0484dba3f4ead2e1497bba11ff61d9e2ef4b93458cf061b41e180c2933"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/LocationProviderPicker.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6556b7c407ecfae47d12526407e74ea82fd964a462125abd593839966d5d2e11"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (ignore: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/tinker/ShareReflectUtil.kt"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b525a2ed48f1c2bc2dbf61c83e3ea05c9ed8438bfe95e6cbd60cc6c623816f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (thr: Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/tinker/ShareReflectUtil.kt"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"8063172a4f8cf7f8de4edf8902589a8e8fa601b7cfb9055a859df9ac88357aea"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/SocketUtils.kt"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"386116366e91ed6bccfdcdb0720a26783901d55affd29f91bf435c4a89cb6062"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bed224bfba577f1dc9cd2e3c82e3308ad2ec4ec8ff08c65c8f5331fd92c6381"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa5179528c37bba32c353a5c000d615ffaa6720fa983b722df42d09ff102efd7"}},{"ruleId":"X5","level":"note","message":{"text":"Not-null assertions (\u0060!!\u0060) override null safety: ~54.0 \u0060!!\u0060 not-null assertions per 1k Kotlin product lines \u2014 2593 across the 47977 line(s) of the 341 Kotlin file(s) read (generated, test and sample code not counted). Densest: app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/CronFragment.kt (391), app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt (120), app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt (95). Each one tells the compiler to trust the author about null and becomes a \u0060NullPointerException\u0060 the first time the author is wrong. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3ce0e76a36774b1cbb2ede64da71daf948ff69b7883191b635533af629445543"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060url.startsWith(\u0022https\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060url.startsWith(\u0022https\u0022)\u0060 also satisfies \u0060url.startsWith(\u0022http\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/MiddlewareWebViewClient.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d731b444c454571f10a9f5378017edde6a58bd70078c8fed22ca475fb923ef"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060url.startsWith( \u0022https\u0022 )\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060url.startsWith( \u0022https\u0022 )\u0060 also satisfies \u0060url.startsWith(\u0022http\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/WebViewInterceptDialog.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"50accaa8d916ede31c66a1b21966face20c9506e20d90cb385352c4f77192548"}}],"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-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-312","guid":"96724ece-b0b2-a45c-83f9-0869fa3f6bea","name":"Cleartext Storage of Sensitive Information","shortDescription":{"text":"Cleartext Storage of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/312.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-359","guid":"b7dfe5b0-0351-645b-a311-b936102c2929","name":"Exposure of Private Personal Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Private Personal Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/359.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-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-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":46,"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."]}]}