{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"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"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"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"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"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"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"ConditionUtils.checkCondition (cyclomatic 75): ConditionUtils.checkCondition has cyclomatic complexity 75 (threshold 15). To reduce it, separate the cases: extract each independent 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 65): ActionWorker.doWork has cyclomatic complexity 65 (threshold 15). To reduce it, separate the cases: extract each independent 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 43): EmailUtils.sendMsg has cyclomatic complexity 43 (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/utils/sender/EmailUtils.kt"},"region":{"startLine":33}}}],"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":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e89018e542862cfe11a7727ed7f68532bd717a7afd9c7151c9837ec44aa2f73"}},{"ruleId":"D1","level":"warning","message":{"text":"EmailFragment.checkSetting (cyclomatic 33): EmailFragment.checkSetting has cyclomatic complexity 33 (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":320}}}],"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":610}}}],"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":"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":"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":251}}}],"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":322}}}],"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":"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":"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":"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":28}}}],"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, separate the cases: extract each independent 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/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":"App.onCreate (cyclomatic 18): App.onCreate 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/App.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"8189fae0b7fb33f135fd6d696916a0af5cd18b0c2a04efd3297d265e8032db9c"}},{"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":"RulesEditFragment.testRule (cyclomatic 18): RulesEditFragment.testRule 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/RulesEditFragment.kt"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f1128e32d7fa236c37dad0b41ea8f7811cb788464fed70c6c19386bb14f17f"}},{"ruleId":"D1","level":"warning","message":{"text":"ServerFragment.initListeners (cyclomatic 18): ServerFragment.initListeners 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/ServerFragment.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6dd58fcc15c2e3c2ba8114821a51a774007f227f624c2eec0b4333ae1c3fcd"}},{"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":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"27b37c6eaf783c92b674fae8c7e93947570139238f8e7a2b84942069c9748c75"}},{"ruleId":"D1","level":"warning","message":{"text":"MsgFragment.testRule (cyclomatic 17): MsgFragment.testRule 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/condition/MsgFragment.kt"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"1521206495b36b234c75fbdc0f7246249f21b3d261ac40825a6e8a8f2be828ff"}},{"ruleId":"D1","level":"warning","message":{"text":"EmailFragment.initViews (cyclomatic 17): EmailFragment.initViews 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/senders/EmailFragment.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea4c9d0f62215e7718e51cb83be079ac8d4ae116f4b167d2d0c1b1af93e0eb5"}},{"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":"ServerFragment.onClick (cyclomatic 16): ServerFragment.onClick 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/fragment/ServerFragment.kt"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"025a057ada27f9077c2d4dc38fe73d668ee17c3ad13614935ef7e1c0f122d03d"}},{"ruleId":"D1","level":"warning","message":{"text":"MsgFragment.initListeners (cyclomatic 16): MsgFragment.initListeners 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/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 142): ActionWorker.doWork has cognitive complexity 142 (threshold 15). Drivers by points: if/else 113, error handling 17, match/switch 6, loops 4, boolean chains 2 (nesting depth added 88). To reduce it, split the body into named stages: move each independent step or branch into 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 127): ConditionUtils.checkCondition has cognitive complexity 127 (threshold 15). Drivers by points: if/else 101, boolean chains 17, match/switch 8, loops 1 (nesting depth added 70). To reduce it, split the body into named stages: move each independent step or branch into 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":"WebhookUtils.sendMsg (cognitive 81): WebhookUtils.sendMsg has cognitive complexity 81 (threshold 15). Drivers by points: if/else 55, match/switch 14, boolean chains 10, loops 2 (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/utils/sender/WebhookUtils.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91f5176279847012bc54ae6c98be34468fb41d49ff30a52c797af39820f3aab"}},{"ruleId":"D2","level":"warning","message":{"text":"EmailFragment.checkSetting (cognitive 65): EmailFragment.checkSetting has cognitive complexity 65 (threshold 15). Drivers by points: if/else 25, error handling 22, match/switch 10, boolean chains 7, loops 1 (nesting depth added 37). To reduce it, split the body into named stages: move each independent step or branch into 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":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d19c8c188aced280ab3755c1a39f4698bf4ecb13ab0e225884269f131981c7e"}},{"ruleId":"D2","level":"warning","message":{"text":"SmsCommandUtils.execute (cognitive 60): SmsCommandUtils.execute has cognitive complexity 60 (threshold 15). Drivers by points: if/else 53, error handling 3, loops 2, boolean chains 1, match/switch 1 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/SmsCommandUtils.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"59191175486992fec64b5bb39a8c7f7d343751f1711df6555e25093e2acc10e9"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneUtils.getCallInfoList (cognitive 58): PhoneUtils.getCallInfoList has cognitive complexity 58 (threshold 15). Drivers by points: if/else 49, loops 6, boolean chains 2, error handling 1 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into 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":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"42dac661094eebb13eeff188a4c37c3264625903a1c9548470d6263bff83799a"}},{"ruleId":"D2","level":"warning","message":{"text":"LocationWorker.doWork (cognitive 53): LocationWorker.doWork has cognitive complexity 53 (threshold 15). Drivers by points: if/else 35, match/switch 7, boolean chains 6, loops 4, 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":"BatteryWorker.doWork (cognitive 43): BatteryWorker.doWork has cognitive complexity 43 (threshold 15). Drivers by points: if/else 35, loops 4, 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":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"093d8221b1d2bba0cb0489aea938664c19d2e95d6da0036e47dc2be83bab129d"}},{"ruleId":"D2","level":"warning","message":{"text":"NetworkWorker.doWork (cognitive 43): NetworkWorker.doWork has cognitive complexity 43 (threshold 15). Drivers by points: if/else 37, boolean chains 2, match/switch 2, 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":"EmailUtils.sendMsg (cognitive 42): EmailUtils.sendMsg has cognitive complexity 42 (threshold 15). Drivers by points: if/else 24, match/switch 8, boolean chains 5, error handling 4, 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":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3eac6eaeac8431fec7a3386d4098848c752bde4a77fb87101cbe4933645b73d"}},{"ruleId":"D2","level":"warning","message":{"text":"LogsFragment.initLogsFilterDialog (cognitive 41): LogsFragment.initLogsFilterDialog has cognitive complexity 41 (threshold 15). Drivers by points: if/else 35, match/switch 5, 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":"SmsReceiver.onReceive (cognitive 37): SmsReceiver.onReceive has cognitive complexity 37 (threshold 15). Drivers by points: if/else 26, loops 5, 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 34): DingtalkGroupRobotUtils.sendMsg has cognitive complexity 34 (threshold 15). Drivers by points: if/else 26, loops 8 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 33): TaskPagingAdapter.onBindViewHolder has cognitive complexity 33 (threshold 15). Drivers by points: if/else 25, loops 8 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/adapter/TaskPagingAdapter.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95f8089cee2f82ecadeca3e78956a618bc16674e5413b0608139834c171f5f3"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientFragment.queryConfig (cognitive 33): ClientFragment.queryConfig has cognitive complexity 33 (threshold 15). Drivers by points: if/else 25, error handling 5, 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":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6706486d60629435e81c76bcb553c04c08f706a0bc7a01a003899e1abd5eadd"}},{"ruleId":"D2","level":"warning","message":{"text":"TasksEditFragment.onItemClick (cognitive 33): TasksEditFragment.onItemClick has cognitive complexity 33 (threshold 15). Drivers by points: if/else 18, boolean chains 10, loops 4, 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 20, loops 7, boolean chains 3, match/switch 2, 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":"EmailFragment.initViews (cognitive 30): EmailFragment.initViews has cognitive complexity 30 (threshold 15). Drivers by points: if/else 20, loops 8, boolean chains 1, match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"d347b11952dbf3c5e6eff4f9e210f1d5c6fdc24dae7b9bb380fe323a5a579e3b"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationService.onNotificationPosted (cognitive 28): NotificationService.onNotificationPosted has cognitive complexity 28 (threshold 15). Drivers by points: if/else 22, boolean chains 3, loops 2, 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":"WolSendFragment.onClick (cognitive 27): WolSendFragment.onClick has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15, error handling 7, match/switch 3, 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":"Base64.decode (cognitive 27): Base64.decode has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14, loops 9, 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":"TasksEditFragment.onFragmentResult (cognitive 25): TasksEditFragment.onFragmentResult has cognitive complexity 25 (threshold 15). Drivers by points: if/else 25 (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/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 24, 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":"TelegramUtils.sendMsg (cognitive 25): TelegramUtils.sendMsg has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18, boolean chains 5, match/switch 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f08698379a0d3c211ee69544f51a703b83ee464ee252834bec0698125d2019b0"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneUtils.getSmsInfoList (cognitive 24): PhoneUtils.getSmsInfoList has cognitive complexity 24 (threshold 15). Drivers by points: if/else 21, loops 2, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/PhoneUtils.kt"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"297f581b9379a313454237b16d8dcccda928831b68025453b11307fd43d156da"}},{"ruleId":"D2","level":"warning","message":{"text":"BarkUtils.sendMsg (cognitive 24): BarkUtils.sendMsg has cognitive complexity 24 (threshold 15). Drivers by points: if/else 23, 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/utils/sender/BarkUtils.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd424ff6b3c8d2b6defbf1afa88d2575ed4a0b6a4bd0f0c317bf8ac42664aea"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFragment.startToAutoStartSetting (cognitive 23): SettingsFragment.startToAutoStartSetting has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, error handling 7, loops 5 (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":"SmsSendFragment.onClick (cognitive 23): SmsSendFragment.onClick has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13, error handling 7, match/switch 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8aff516becdf0ee9a6e07760b077537072fb58b67e8a1f92160356f84bb0a2"}},{"ruleId":"D2","level":"warning","message":{"text":"PhoneUtils.sendSms (cognitive 23): PhoneUtils.sendSms has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14, loops 4, boolean chains 3, error handling 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/PhoneUtils.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee84633e3a8732c8c759aa5a59791f748eee77623e0a0252a08899716cf133c"}},{"ruleId":"D2","level":"warning","message":{"text":"App.onCreate (cognitive 22): App.onCreate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, error handling 4, boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/App.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b104c305ffd1938bf31a96b80528bc38528e02ca1606f5e80df8e51142d684b"}},{"ruleId":"D2","level":"warning","message":{"text":"RulesEditFragment.checkForm (cognitive 21): RulesEditFragment.checkForm has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, 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":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87171ce1e035aaada0bb2922a1b3f1aff7056c52851b3b0378944d246f8bf79"}},{"ruleId":"D2","level":"warning","message":{"text":"RulesEditFragment.testRule (cognitive 21): RulesEditFragment.testRule has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15, match/switch 3, error handling 2, boolean chains 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":748}}}],"partialFingerprints":{"codehealthFindingId/v1":"93bc3a757d90560645934d258cc9ee32493b1acd2dec6e8f72cdb97118ffe3d7"}},{"ruleId":"D2","level":"warning","message":{"text":"AlarmFragment.onClick (cognitive 21): AlarmFragment.onClick has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16, 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":"CronFragment.initWeekInputHelper (cognitive 21): CronFragment.initWeekInputHelper has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, 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":"BluetoothSetting.\u003Cinit\u003E (cognitive 20): BluetoothSetting.\u003Cinit\u003E has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, match/switch 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/entity/condition/BluetoothSetting.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d0a0e157e310fcae271f13536d515ebb145119954ed74eba6bd948034f83b8a"}},{"ruleId":"D2","level":"warning","message":{"text":"ClientFragment.onClick (cognitive 20): ClientFragment.onClick has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, match/switch 5 (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":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbc96471183b988fe71e34457a9570eef8cd5314e1659f840f5b79ed8484aed4"}},{"ruleId":"D2","level":"warning","message":{"text":"FrpcFragment.onItemClicked (cognitive 20): FrpcFragment.onItemClicked has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14, error handling 3, match/switch 3 (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":"CronFragment.initDayInputHelper (cognitive 20): CronFragment.initDayInputHelper has cognitive complexity 20 (threshold 15). Drivers by points: if/else 17, 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 20): MsgFragment.testRule has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, match/switch 3, boolean chains 1, 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/fragment/condition/MsgFragment.kt"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"09571f9077e336dbbad55b0f8cdaab32cbc8e293cefe4ad3c616b662cb428aad"}},{"ruleId":"D2","level":"warning","message":{"text":"RulesEditFragment.initAppSpinner (cognitive 19): RulesEditFragment.initAppSpinner has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 4, 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":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a85f8aefa41efbedf273885bc9e36e5e3d4ca70067afbc793805352e3ea5fb"}},{"ruleId":"D2","level":"warning","message":{"text":"ContactAddFragment.onClick (cognitive 19): ContactAddFragment.onClick has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, error handling 7, match/switch 3 (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":"MsgFragment.initAppSpinner (cognitive 19): MsgFragment.initAppSpinner has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, loops 4, 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":"SettingsFragment.switchEnablePhone (cognitive 18): SettingsFragment.switchEnablePhone has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, 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":"CronFragment.initSecondInputHelper (cognitive 18): CronFragment.initSecondInputHelper has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, 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."},"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 18): CronFragment.initMinuteInputHelper has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, 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."},"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 18): CronFragment.initHourInputHelper has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, 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."},"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 18): CronFragment.initMonthInputHelper has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, 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."},"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 18): CronFragment.initYearInputHelper has cognitive complexity 18 (threshold 15). Drivers by points: if/else 15, 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."},"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":"LeaveAddressFragment.initListeners (cognitive 18): LeaveAddressFragment.initListeners has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, error handling 8 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 18): ToAddressFragment.initListeners has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, error handling 8 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"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 18): PushplusUtils.sendMsg has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18 (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":"LockScreenWorker.doWork (cognitive 18): LockScreenWorker.doWork has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, match/switch 2, 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":"SendWorker.doWork (cognitive 18): SendWorker.doWork has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, 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 10, loops 4, 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":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"8641106803fa31f2afaf6ce462e07d0c666f4511dc312563049f27798c9562f0"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFragment.initAppSpinner (cognitive 17): SettingsFragment.initAppSpinner has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, loops 4, 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 11, loops 4, 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":"BatteryQueryFragment.initViews (cognitive 17): BatteryQueryFragment.initViews has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 5, 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":"LocationFragment.getLocation (cognitive 17): LocationFragment.getLocation has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, error handling 5, 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":"MsgFragment.initListeners (cognitive 17): MsgFragment.initListeners has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 5, match/switch 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76298f6714aed545c3c842c6196688f186695deffc8ea1c2368902fac2edd49"}},{"ruleId":"D2","level":"warning","message":{"text":"VibrationUtils.vibratePattern (cognitive 17): VibrationUtils.vibratePattern has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15, 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":"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":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61943cc3bc280cd4d33c461ab52a98f1232a3c23236b961a8ef98465a078e2f"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsFragment.switchEnableLocation (cognitive 16): SettingsFragment.switchEnableLocation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, 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":"SettingsFragment.checkSetting (cognitive 16): SettingsFragment.checkSetting has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"CloneFragment.pullData (cognitive 16): CloneFragment.pullData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, error handling 5, 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":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"eef9f6e1ff09291d79c1a46fa151db97f36c9da121304876f06e4bbb8a0f0270"}},{"ruleId":"D2","level":"warning","message":{"text":"HttpServerUtils.restoreSettings (cognitive 16): HttpServerUtils.restoreSettings has cognitive complexity 16 (threshold 15). Drivers by points: loops 8, if/else 7, 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":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2a5d4cc910a164aa2bea72e473a75f027f4b526c21040f8c6ad7c597fea13b7"}},{"ruleId":"D2","level":"warning","message":{"text":"SocketUtils.sendMqttSuspend (cognitive 16): SocketUtils.sendMqttSuspend has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, 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":"SendWorker.autoTaskProcess (cognitive 16): SendWorker.autoTaskProcess has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13, 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":"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). 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":"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). 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":"TooManyMethods: SettingsFragment: TooManyMethods \u2014 39 methods. 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 611 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: RulesEditFragment (95-852). 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":"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). 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":"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 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/client/CallQueryFragment.kt:167\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":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e4cf7a82069980f661e2662776429247f0ca9d32c3393847d565ca362321165"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:465-481 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:360-376 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:264-280 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:465\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":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e6d4e3d8e8b044d718e9afb8b6556ecf75d4ef945f00d59886f249add300bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:386-402 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:281-297 \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/RulesEditFragment.kt:386\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":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b85db6cf1425f620c54129fcade17da8846d33f72c02db68a6543b85e4bab04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:423-439 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:222-238 \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/RulesEditFragment.kt:423\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":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"dabba16696b745b4db6839dd0eba82ad7f03e4c768dff31873999de8f7628625"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/RSACrypt.kt:36-52 | app/src/main/kotlin/cn/ppps/forwarder/utils/RSACrypt.kt:80-96 \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:36\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/RSACrypt.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec76d0786b44fdb12fe880efd336a30685a80d97855f234105bbc7d9e4ce98fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:96-111 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:251-266 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:228-243 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:239-254 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/client/BatteryQueryFragment.kt:96\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1284e381269eb22eb4c20b16a1b1d1c02dd8e1fc26c215349a01a8b9cc66140a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:271-286 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:198-213 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/action/AlarmFragment.kt:271\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/AlarmFragment.kt"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"184b9799b76e4992488b700c685bf867304a63f84221ead68aaff684a308c285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/RSACrypt.kt:122-137 | app/src/main/kotlin/cn/ppps/forwarder/utils/RSACrypt.kt:166-181 \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 does not close everything it opens, so those exact lines cannot be lifted 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/RSACrypt.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cccd6a342b5e2fe117c493015f22efae3fd5877467b6f2ddab7622eed705a30"}},{"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":"c3267a8f3260ee48502908bd3507b6457d94c12c4854d4706a6205abff62971e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 10): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt:109-123 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/FrpcFragment.kt:144-158 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:157-171 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:235-249 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/ResendFragment.kt:116-130 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt:149-163 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:150-164 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:353-367 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/TaskActionFragment.kt:150-164 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/WolFragment.kt:151-165 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/action/CleanerFragment.kt:109\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"743801fb76641a6d6d8195ff6d3723c44f24c17fe1dfee9d4a475bff34094cc5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:127-141 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:127-141 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:145-159 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:181-195 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/client/ContactAddFragment.kt:127\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":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc895cf9bdec40c067567cd07474c581c11cd35aa6fa277636033ad226c03459"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/database/entity/Rule.kt:262-276 | app/src/main/kotlin/cn/ppps/forwarder/utils/RuleLine.kt:137-151 \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 begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/database/entity/Rule.kt"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fc5a0b0bb373d7f68e7016acfaa55960e4aae9a026fde4a4a7aaaaa99db1b56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 5): app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/AppListSpinnerAdapter.kt:95-108 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt:109-122 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/RuleSpinnerAdapter.kt:105-118 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/SenderSpinnerAdapter.kt:105-118 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/TaskSpinnerAdapter.kt:105-118 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/spinner/AppListSpinnerAdapter.kt:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/AppListSpinnerAdapter.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5b7c94d5485af47bdc5efb361164f7456be52fa29ac36af9352ca141d3dedf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/core/BaseFragment.kt:224-240 | app/src/main/kotlin/cn/ppps/forwarder/core/BaseSimpleListFragment.kt:134-147 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/core/BaseFragment.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. 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/core/BaseFragment.kt"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9853357bf6362732197b3385016c34c6708530c66c66644f2fd6cb793daff41"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt:87-100 | app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt:88-101 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/core/webview/AgentWebFragment.kt:87\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/webview/AgentWebFragment.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4942deed8c7d888982af1738925c2289656f14400060dffdc33929c20affd50f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:352-365 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:166-179 \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: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":"f884161742eeceb2ea861b49ea465006d034d159114bb022c51a1391dbd7025d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:144-157 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt:144-157 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/LeaveAddressFragment.kt:144\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b8cb698ee0369ebe0ce55e06264ffeea3d6ccc7a55aae236091442646fe044"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:77-90 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:170-183 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/DingtalkInnerRobotUtils.kt:77\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cbd1dd40d43323344095354bb5d3072a895e5ad20210a067d0f0f499f90e90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 11): app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:358-370 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:80-92 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:235-247 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:301-313 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:404-416 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:113-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:212-224 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:113-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:223-235 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:131-143 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:167-179 \u2014 there are 11 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 11 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/ClientFragment.kt:358\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e0b919eccf3c3b969fd391fd84ad970fd1bf25fb8df8bcb526b5a2d34c7a44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 8): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:91-103 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:121-133 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:93-105 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:94-106 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:96-108 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:99-111 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:96-108 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:94-106 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/senders/ServerchanFragment.kt:91\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/ServerchanFragment.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79b9e834c35bfcea431c33dfa6db40d7fe20e3a8c329fb18e316405db055fd7"}},{"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 10 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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":"fb5b6b0f8b605cef7e7635d99f5968acc4665d73fa2a8d10b515226e85ac5861"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:187-199 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:146-158 \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/RulesEditFragment.kt:187\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":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"b35d11c2b17277d7c651ae57f1db5a96d1bd2ee4ac5b7c94475b93777a8a8169"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:780-792 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:420-432 \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/RulesEditFragment.kt:780\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":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b22a6476663fd77ad179d53ead3e5eed20982350fcc849de035ab1d5e08187b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:503-515 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:528-540 \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:503\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":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10c4baa7847026c869b1a7983e15313131b1bd119eef7b57e1554aed2112944"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:266-278 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:290-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:266\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf0fb5644a3e4ea5a609ac50fb6d377e1324f891261be7c4b1f39bfe1b331da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:69-81 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt:69-81 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/LeaveAddressFragment.kt:69\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":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7d57ec5666ad534a139aaca457566d32daf09ac08e417167b62f24c58a6bf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:65-77 | app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:124-136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"70edb3dad12aeac39b2e5dfdf8f26b74ff1935049914f4cbfbd7fb273c6fe791"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:142-154 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:170-182 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/workers/BatteryWorker.kt:142\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":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"0067f228acc0f26f2594a2a4da2293843d39d3209d98b415432e1cb14a3cdfa0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:64-76 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:127-139 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea29c9e290f6bbdea273011974fa9219e22a19c6ac1d66b3496c0912d82a7b9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 16): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:211-222 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:185-196 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:201-212 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:276-287 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:181-192 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:189-200 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:162-173 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:182-193 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:157-168 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:193-204 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:178-189 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:185-196 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:160-171 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:199-210 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:218-229 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:180-191 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/senders/BarkFragment.kt:211\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9db3fa14e674a18ab5b50d9b44f2026e1bc104241036fcd4607b4de37ba6c8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 16): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:225-236 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:199-210 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:215-226 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:290-301 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:200-212 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:203-214 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:176-187 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:196-207 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:171-182 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:207-218 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:192-203 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:199-210 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:174-185 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:213-224 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:232-243 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:194-205 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/senders/BarkFragment.kt:225\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/BarkFragment.kt"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdba323d99ce06bb07d145a985f57f47644eba02985a84156d318e29085d90c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt:75-90 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/RuleSpinnerAdapter.kt:75-86 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/SenderSpinnerAdapter.kt:75-86 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/TaskSpinnerAdapter.kt:75-86 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/adapter/spinner/FrpcSpinnerAdapter.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9a44c40599cf4d78c708856ca947584b5eb0e1bbfe4d54b4c5d0336c78ed10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/adapter/base/broccoli/BroccoliRecyclerAdapter.kt:24-35 | app/src/main/kotlin/cn/ppps/forwarder/adapter/base/broccoli/BroccoliSimpleDelegateAdapter.kt:41-52 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/base/broccoli/BroccoliRecyclerAdapter.kt:24\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/adapter/base/broccoli/BroccoliRecyclerAdapter.kt"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"c53dddd557bfcea994358aa80fcb33c8a7effc8a7380b93cad931d4b2e279bd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:303-314 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:193-204 \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/RulesEditFragment.kt:303\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":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"75cfa70ced9ab2dc7c675d3114375cbcfe4db29f2441fdb2c433cf5b7670297a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:798-809 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:438-449 \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/RulesEditFragment.kt:798\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":798}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c5468c055d5cab09bad6b1034b4af92368c2da09e0ee8832967466ab56a2649"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:407-418 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:201-212 \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: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":"a1360595f6a8783debfcba9f1437b464a98e2ab012dba172002bedc1054506a2"}},{"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 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: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":"36d22548efb79ad47a6c10ed02f102ea6908de84bf0f5c2d839e81d0adc41a87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:189-200 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:177-188 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"737053f811a181d542df4d65a547524180f49d7cbed44e26e803464fbad67f1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:177-188 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt:170-181 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/LeaveAddressFragment.kt:177\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":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61598cc64bd70e06b21241db071ed2493def1f8d0ca26cf2a3fa983e475b7bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/server/controller/SmsController.kt:30-41 | app/src/main/kotlin/cn/ppps/forwarder/utils/SmsCommandUtils.kt:134-145 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/server/controller/SmsController.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49bb0a2151c1c515d232f24201ea341ac1aa623b666bc6c1a8f8d4e5e571850"}},{"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:79-90 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/HistoryUtils.kt:103\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0f0fa293f70f612c16c5966d0007adfcb568739528953c0204647ecf5463dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt:115-129 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:74-85 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/TelegramUtils.kt:115\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"41f017164b6d9ad617fe8882a63e65bf0c16c81f6999a3f63ec354478761951e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/tinker/TinkerLoadLibrary.kt:132-143 | app/src/main/kotlin/cn/ppps/forwarder/utils/tinker/TinkerLoadLibrary.kt:170-181 \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/utils/tinker/TinkerLoadLibrary.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1fdb5d5ad95a3bbb071f3babb17f84e96a26397824b9b0bf55912b3ae7fab19"}},{"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":"5f083cc3892addb619c048f3ec689fc078f9cb72fadfefbac345872f7b21db4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:297-307 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:246-256 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:274-284 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:302-312 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:326-336 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:180-190 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:213-223 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:264-274 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:97-107 \u2014 there are 9 copies across 4 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 9 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/action/AlarmFragment.kt:297\u0060 it does not close everything it opens, so those exact 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/action/AlarmFragment.kt"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc678a4da00d023701851f385ab06f1e089d7221e13ff0b1f995444a1d98a246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 9): app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:48-58 | app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:107-117 | app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt:37-47 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:59-69 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:122-132 | app/src/main/kotlin/cn/ppps/forwarder/workers/LockScreenWorker.kt:37-47 | app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt:56-66 | app/src/main/kotlin/cn/ppps/forwarder/workers/SendWorker.kt:136-146 | app/src/main/kotlin/cn/ppps/forwarder/workers/SimWorker.kt:40-50 \u2014 there are 9 copies across 7 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 9 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b66d9fab0aac43499c9b3f10ba232230882004321f6c75f75d7dcab8cdc1361"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:494-504 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:1407-1417 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:394-404 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:292-302 \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/RulesEditFragment.kt:494\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":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0a16127909e66f97f32883ec2da5245c274ed2e3993303861258ef86aced7f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ChargeFragment.kt:92-102 | 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: extract the block into a single shared function in that directory and call it from each site, 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:92\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ChargeFragment.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a00875245632dad58f83899be1c38d4c2f7b71a5ffd9f8d929f55eba22ef3b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:89-99 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:91-101 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:87-97 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:88-98 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/senders/DingtalkGroupRobotFragment.kt:89\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/DingtalkGroupRobotFragment.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a549d8dc75731f96654ef01ba271b330f8763dbca63c8f6736ce941e06282e9d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/SendersFragment.kt:226-236 | app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt:351-361 | app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt:370-380 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SendersFragment.kt"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6b5243bda3f9e41ab6923159bdb37dd6f620b769d97706baeea37acb8989ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:160-170 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:255-265 \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/ClientFragment.kt:160\u0060 it does not close everything it opens, so those exact 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/ClientFragment.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5719d9bf922bfffe5c050cabd64989f51a847f42148402b60fc2aa6be9ac2b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:315-325 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:549-560 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"6684e818723f1dc35e59094331731c95f817a021e73fdb2b16bcbac633adf713"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:52-62 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:59-69 \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 10 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. 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 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/SmsSendFragment.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"eed9053b0121fcf00097e737639ad8145c1b518b53c09a7caa2bb62410cf6fb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:109-119 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:110-120 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"889fc331e400ce0f7b3116702833f1b2a0981e86346a1299e60554728ff7d1ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 16): app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:367-376 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:441-450 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:470-479 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:499-508 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:524-533 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:551-560 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:314-323 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:366-376 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:419-428 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:546-555 | app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:741-750 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:199-208 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:241-250 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:151-161 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:548-558 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:94-104 \u2014 there are 16 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 16 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:367\u0060 it does not close everything it opens, so those exact 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/ServerFragment.kt"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bb0b417e1656a111df28291cc3005d08c0fa5f9061c6a9005c8c6965c1b28d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 16): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:140-149 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:111-120 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:113-122 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:183-192 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:123-133 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:122-131 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:109-118 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:110-119 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:105-114 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SmsFragment.kt:135-144 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:107-116 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:108-117 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:110-119 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:113-122 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:110-119 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:108-117 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/senders/BarkFragment.kt:140\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"538c9cec8facc96e509ac96f325fb3ce8b0e15d15f7deb4ce875bd19d7d053f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcRecyclerAdapter.kt:96-105 | app/src/main/kotlin/cn/ppps/forwarder/adapter/RuleRecyclerAdapter.kt:100-109 | app/src/main/kotlin/cn/ppps/forwarder/adapter/SenderRecyclerAdapter.kt:90-99 | app/src/main/kotlin/cn/ppps/forwarder/adapter/TaskRecyclerAdapter.kt:90-99 | app/src/main/kotlin/cn/ppps/forwarder/adapter/TaskSettingAdapter.kt:90-99 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcRecyclerAdapter.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5af81feba10bdafb4754359fa46af9dd6d8e6ba20d8fb7d039d40eb9482483a"}},{"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 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/HttpServerFragment.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"73bb889c0da004953ab48e91d38a2dbd07c4ddc87573b6cd5fcbdff9ba62b8f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:386-395 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:95-104 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:113-122 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:149-158 | app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt:415-424 \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/client/CloneFragment.kt:386\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/CloneFragment.kt"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"9133e4af2486225a66500135a3d08472859c6bfe44de40ebddf70fdcb2f20e35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/BluetoothFragment.kt:253-263 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ChargeFragment.kt:94-103 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LockScreenFragment.kt:115-125 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/NetworkFragment.kt:99-109 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/SimFragment.kt:79-89 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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":"b32703ab613394480fdbaad1f9a1ad9219b7f2a158b71bfe718eb2c17ef9e339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:81-90 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:93-102 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:88-97 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:89-98 \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/action/AlarmFragment.kt:81\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"c325351c2e98eaa9b2f36f8d1e2c2c34baf12184287da2db5fa1f7b907dd76ac"}},{"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: extract the block into a single shared function in that directory and call it from each site, 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 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/adapter/FrpcPagingAdapter.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f7a78fd6e4c034c0cf3edb87924823f6de4f115993bb5fce837b10f564f9b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkGroupRobotUtils.kt:98-107 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/PushplusUtils.kt:67-76 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkRobotUtils.kt:61-70 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkGroupRobotUtils.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa29a306a18d4533e34f645634d4048f2e136d89336885ce62e641c274d49f78"}},{"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 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/DingtalkInnerRobotUtils.kt:111\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":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0c49d3aac2d3a644e98d08d02549023b1efb4d1995c4b85a4a2b0e24cce2af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuUtils.kt:94-103 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/PushplusUtils.kt:34-43 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/ServerchanUtils.kt:32-42 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/FeishuUtils.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. 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/FeishuUtils.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"8506891b15093598db2f168db7eac57c046282ee67e05cf9f76818d9d9f61ca9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:166-175 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:124-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/fragment/RulesEditFragment.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/RulesEditFragment.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"440afc80c20cfa71f684489312501bc4105b42a002d40d82570a4e82dc3637b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:715-724 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:377-386 \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/RulesEditFragment.kt:715\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6412a5fdb272c37ef897f6d2a4e4f96b2342562f6ad9beeb7e0a0210be7982"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:461-470 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:265-274 \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:461\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"401e953dba44f46f2fec1e5881c3c6fe1c8a0a0782f87e402a16fe6bac36b690"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:494-503 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:234-243 \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: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":"7e0740339c24218b80a090692a2f82e29d0be628f3d173a50a51396d2afd45aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:231-240 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/AlarmFragment.kt:287-296 \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":"84eb3bc0f2ebda91a550610c9d34525bae54a6d4e4db41dab3f7f67dbcb4a9b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt:69-78 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/ResendFragment.kt:69-78 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/action/CleanerFragment.kt:69\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/CleanerFragment.kt"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"63eda71ad2c4decc5a5ae0ace4ed4a71656a00004dabbe32c89ab39f7a3a513a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt:87-97 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:113-122 \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:87\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SendSmsFragment.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9459190a708de241a2f26757a1ce0e710e0fbc3fc88d4c93a7df77c4b66dc6f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:133-142 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:123-133 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/client/CallQueryFragment.kt:133\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/client/CallQueryFragment.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9f901c9684aca0d24cc143837591a64f4cdc86d2bfa7c88c212062273fea69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:287-296 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:275-284 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/client/CallQueryFragment.kt:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd783d4d782d1cbf96e429a129f226867165004e17b258db3e0ec907b307c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:249-258 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:244-253 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/fragment/senders/FeishuAppFragment.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ae24d80d2ec06d7a1c475e48daa9cb82ae3bb0c6af69b00e50992bf55f1749b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/mail/PgpUtils.kt:152-163 | app/src/main/kotlin/cn/ppps/forwarder/utils/mail/PgpUtils.kt:179-188 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/mail/PgpUtils.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"14ba928080aac80f9198a97519e53a73ab9323784d11b4e0879584336194fa8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt:42-51 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/GotifyUtils.kt:32-41 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/BarkUtils.kt:42\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/BarkUtils.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5633c890ed50daeda1d4a59034012a6d85f6c0bb49b0f92e6dba7276bf025d4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 15): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt:194-203 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:168-177 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:184-193 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/EmailFragment.kt:259-268 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuAppFragment.kt:164-173 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/FeishuFragment.kt:172-181 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/GotifyFragment.kt:145-154 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/PushplusFragment.kt:165-174 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/ServerchanFragment.kt:141-149 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/SocketFragment.kt:162-170 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:169-177 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/UrlSchemeFragment.kt:144-152 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:183-191 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:202-210 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:164-172 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/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":"681c1a9aa31d2414017de23fbac486ceab666a45f8e1016e760bdbeb96478783"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:220-228 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:389-397 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:98-106 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:197-205 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:208-216 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:116-124 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:152-160 | app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt:418-426 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 8 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 8 times. 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:220\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eeab83c3d4df62a81b8ec1c79bdf54120c580c19f195dda6cc0b0704d3a60c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:144-152 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:294-302 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:265-273 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:282-290 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/client/BatteryQueryFragment.kt:144\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a1b57d5a59e811adb33c066d44f0207c53eb88ecd1d361b8ae8c950907da17"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt:296-304 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:290-298 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/TaskActionFragment.kt:290-298 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbd01ba528267e1142204a47e55e41801e49ce045f4526bcf4b5e471477a3bd2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:71-79 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:83-91 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:111-119 \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 10 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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:71\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"0807b148d478f8ead523a5ab4ec68009e67d6d9b32be317713e185e43846f253"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt:104-112 | app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt:146-154 | app/src/main/kotlin/cn/ppps/forwarder/workers/SimWorker.kt:87-95 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/workers/BluetoothWorker.kt:104\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c16e7e2e4dc8cb584abe0114e15dd98cc7ee423162d8ac15e95d8e8df6555b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt:438-446 | app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt:467-475 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/core/webview/AgentWebFragment.kt:438\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/webview/AgentWebFragment.kt"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"285202ef6ab78f3b92f1b7f976fe9bc7799c69a25e26783be48d33352ab57518"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:264-273 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:206-214 \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/RulesEditFragment.kt:264\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab96b5f4b43896bdffcc03b008dbb0fca892326485cc1f70bb33f48c60592409"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:326-334 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:216-224 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:326\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":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"250b4548633319d596397eded5af8588a88824d40fd660311b1014bf3d1a0486"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:616-624 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:330-338 \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/RulesEditFragment.kt:616\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":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d700e42e75b6400a0d38f97a85ec324d402e6f63145cb07c4d37af2b038d670"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:209-217 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:197-205 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7474ca4504a6ac586bba758687ead440f5e87e85f4ddc4db02e782f679c715"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt:120-128 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/GotifyUtils.kt:57-66 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/BarkUtils.kt:120\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/BarkUtils.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc837eeaccef23e759cbc57fe7af582b28ac3fcdaec8fb23371689ee54d55ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:99-107 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:205-213 \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/sender/DingtalkInnerRobotUtils.kt:99\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":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad2d9b543f50f17fd058815a2a8fd3664e2e8e55d71fb3d984344c1ef2b0673e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:63-71 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:144-154 \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/sender/FeishuAppUtils.kt:63\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/FeishuAppUtils.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a47702e6e7f8ac384362c236d767d1c72973f34c7aaaf365cef24771bee7e6c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/ServerchanUtils.kt:58-66 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt:127-136 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/ServerchanUtils.kt:58\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/ServerchanUtils.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"15a463ea8238d71d09d4bd88d3558fcf3c920e64c79c3069248b5b1f5b65d9ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/SocketUtils.kt:48-57 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/UrlSchemeUtils.kt:33-41 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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:48\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/SocketUtils.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9149ed1d445ea33c088321fdca774f5448083632bfc336741864a39d12f7877"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:95-103 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:192-200 \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/sender/WeworkAgentUtils.kt:95\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/WeworkAgentUtils.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd2feaffbde1321189adf2624af3d4e79138ba1ff1bd92fec12bdb7daf07da0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 9): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/BatteryQueryFragment.kt:51-58 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:205-212 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:72-79 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:181-188 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:84-91 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:193-200 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:84-91 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:112-119 | app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt:400-407 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 9 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 9 times. 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:51\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d686f4bf980f36bb7473cb1acce31873dd009e4e47a78b588446b3053a1050a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 7): app/src/main/kotlin/cn/ppps/forwarder/fragment/ClientFragment.kt:391-398 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:333-340 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:436-443 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:146-153 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/LocationFragment.kt:146-153 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:164-171 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/WolSendFragment.kt:200-207 \u2014 there are 7 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 7 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/ClientFragment.kt:391\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"270f16faeae480c83fb9ae5f706f4d4939595829763475ecabf6b951ed097347"}},{"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: extract the block into a single shared function in that directory and call it from each site, 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/FrpcRecyclerAdapter.kt:85\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/adapter/FrpcRecyclerAdapter.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c2a84f0849f2069d5336f8af860816667aff8c9f291e365dbddaf2af773b49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/AppListSpinnerAdapter.kt:63-70 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/FrpcSpinnerAdapter.kt:65-72 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/RuleSpinnerAdapter.kt:65-72 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/SenderSpinnerAdapter.kt:65-72 | app/src/main/kotlin/cn/ppps/forwarder/adapter/spinner/TaskSpinnerAdapter.kt:65-72 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/spinner/AppListSpinnerAdapter.kt:63\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b390745c02f3b7778d0b8a91a04583f41e134cc8d59e9e6acf333582f3bf8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:348-355 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt:161-168 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsSendFragment.kt:179-186 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/client/CloneFragment.kt:348\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/CloneFragment.kt"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c36b13f119ef5e7d09f0ea37c90d3855dce82ef79ab64c0792b738d8f14fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/activity/MainActivity.kt:290-297 | app/src/main/kotlin/cn/ppps/forwarder/fragment/AppListFragment.kt:128-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/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":"2145dbc4e4b6750c6661576762a0ddbad27e8cf34d44ba07814e84baf9b55c9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:561-568 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:237-244 \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/RulesEditFragment.kt:561\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":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc20806e0479a26f357cbfd0595a2abc77fddce26ceb4e4326fc32e588da4db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:520-527 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:322-329 \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:520\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":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"e13550902f8b332811cffb4109cc0f8a73691d7486460dc9126c2c0d4484dcc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:542-549 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/BluetoothFragment.kt:220-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:542\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/SettingsFragment.kt"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50c605abfda576ff676720e5922059598770014e869f9f5aa505a6364e98f7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:616-623 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:260-267 \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:616\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/SettingsFragment.kt"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea1cb6a0e2c4c0f39460cdbcc71f81f795a7dc992bcd7416cae3a3314771fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt:1430-1437 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:417-424 \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:1430\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/SettingsFragment.kt"},"region":{"startLine":1430}}}],"partialFingerprints":{"codehealthFindingId/v1":"dabc3b41b2a5fd9194cbc8a8960bc4ddf505e331d3e434c02f7f3b4af18c97a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:272-279 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:373-380 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:272\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72dc0fd4554fea53707ebdee25dc5a749a25f28a401541c7c49ba7bb0332e85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt:378-385 | app/src/main/kotlin/cn/ppps/forwarder/workers/ActionWorker.kt:405-412 \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. 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/client/CloneFragment.kt"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"651b3f0d9b576c3a3b49fb57fa493d20996fe89118d6ba8e6ef277266271c56f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:140-147 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:145-152 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/senders/DingtalkInnerRobotFragment.kt:140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"32eeda0abedfca70769144fa84f4d1a6c87d56c07f12c0d11624538c2157afd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt:56-63 | app/src/main/kotlin/cn/ppps/forwarder/utils/SharedPreference.kt:111-118 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/HistoryUtils.kt:56\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdadcea60755189d4f732f42b0a32da871150178ec64bb7cd0d6b84b78506778"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt:66-73 | app/src/main/kotlin/cn/ppps/forwarder/utils/SharedPreference.kt:121-128 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/HistoryUtils.kt:66\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/HistoryUtils.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6400c382fa0d04fb1e334afc484dc8e24a1fa7197797bd4f79e189a8dd3c7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:43-50 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/FeishuAppUtils.kt:37-44 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d13ef93947b6031f4e839071077785027f44eb752cee5d2ca38829a825b63b56"}},{"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:365-371 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:439-445 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:468-474 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:497-503 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:522-528 | app/src/main/kotlin/cn/ppps/forwarder/fragment/ServerFragment.kt:549-555 | 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:546-552 | 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/AppListFragment.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"24a7aa88f6c6eb3cf3f03a609ea7d75c8d0f73017ce5716536fbf22de4ee93cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:256-262 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:239-245 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:262-268 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:280-286 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/senders/DingtalkInnerRobotFragment.kt:256\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f9c7fa46adbabd9c4bba348712147055162e07c6f761ad72667b96c4392b6d6"}},{"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 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt:571\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace78fab41517a708f42fea551b2a06769cc3313271a176ecf3a1d9b6e131807"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:274-280 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactQueryFragment.kt:251-257 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:262-268 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/client/CallQueryFragment.kt:274\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":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b6a62230ed92e9877d889ca5db1e56673788e6e77e79b704c6ac39335d8999"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 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 10 separate duplicated blocks between them, totalling at least 101 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/client/ContactAddFragment.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"636dc859df56d89415094aea44e2d53ca2a6d9a7d4158238e048df8c8721cd2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:153-159 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WebhookFragment.kt:167-173 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:162-168 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/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":"43fe7ce1ab9b2e80f6f73ed245897511d03406decd61cee630839865f5c90de1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt:138-144 | app/src/main/kotlin/cn/ppps/forwarder/core/webview/XPageWebViewFragment.kt:127-133 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/core/webview/AgentWebFragment.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e061ce4732ae32fc34972bc18b99bd718501c94c2730c269b1702e1864b8261a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/database/entity/Rule.kt:252-258 | app/src/main/kotlin/cn/ppps/forwarder/utils/RuleLine.kt:127-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/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":"05230164b3237f22ca85261c8fe80e8a0816123939532734f78a2ff0d29b8aa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:583-589 | app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:674-680 \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/RulesEditFragment.kt:583\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba92ea30090ee761857b14cbf912c9bbd43095a0215461d7d92e3aa2f19b45f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:728-734 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/NotificationFragment.kt:444-450 \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/RulesEditFragment.kt:728\u0060 it does not close everything it opens, so those exact 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":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c9ff1b8626d9386db387f23cc8c0224a98b0ee16121909b53b3a27ae27c885"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CallQueryFragment.kt:120-126 | app/src/main/kotlin/cn/ppps/forwarder/fragment/client/SmsQueryFragment.kt:110-116 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/client/CallQueryFragment.kt:120\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":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ccf0cdf6a0fccb6c567868a87b7f91bed34667926bced2f23722d8d783f331"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt:52-58 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/GotifyUtils.kt:42-48 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/BarkUtils.kt:52\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b822c38811fab1c4279f7535cfb7d32ec18f55c4d1178fa75d436b35a0666c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt:158-164 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt:146-152 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/DingtalkInnerRobotUtils.kt:158\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/DingtalkInnerRobotUtils.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"9315b18be4b2882cfe9480b7b9ae246c8344ed05c5afe89e9764b51d4f6cb313"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 7): app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:81-88 | app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt:140-147 | app/src/main/kotlin/cn/ppps/forwarder/workers/BluetoothWorker.kt:104-109 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:107-112 | app/src/main/kotlin/cn/ppps/forwarder/workers/LocationWorker.kt:170-175 | app/src/main/kotlin/cn/ppps/forwarder/workers/NetworkWorker.kt:146-151 | app/src/main/kotlin/cn/ppps/forwarder/workers/SimWorker.kt:87-92 \u2014 there are 7 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 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/workers/BatteryWorker.kt:81\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/workers/BatteryWorker.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c824f3651272cddc7a8b19fe904d0cd48266c34a7a4db857c3fa3e5de8b843"}},{"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 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/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":"f3e0285a84fc61c47150af1c0ce29c32d9a1218157d73096c473f9ded87cf62b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt:828-833 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/MsgFragment.kt:468-473 \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/RulesEditFragment.kt:828\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":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"4102af737ed2a1c151751f9d555f72ad79f2af8bc6f1d7adc14ac8decfa77b74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:223-228 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt:216-221 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/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":"6d78e00e757b65af4bc350d22982ddf89300b5ddb6be82faa434cf561b3f827c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkGroupRobotFragment.kt:143-148 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkRobotFragment.kt:139-144 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/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":"9431902f7ae5562ff3ee66b0ee95dcb648d2da84918b3939e300a556360b19cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt:150-155 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:144-149 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/DingtalkInnerRobotFragment.kt"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"5177d3598639e9ece736a9bab8de84288f317e419826bc5139c0ea5b8a931cb9"}},{"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 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/SettingsFragment.kt"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e62f6b870221d966a6c1975150b0f98fa483c877fdcc72c13d5e0bd5608047"}},{"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 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/SettingsFragment.kt"},"region":{"startLine":1128}}}],"partialFingerprints":{"codehealthFindingId/v1":"071bf439d17ebfdacf3b6a389f360a59d62a99b02973d807ef7ce157be86a80d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/HttpServerFragment.kt:224-228 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SettingsFragment.kt:488-492 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/action/HttpServerFragment.kt:224\u0060 it does not close everything it opens, so those exact lines cannot be lifted 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/HttpServerFragment.kt"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"85060afedea6161a13981a0beaff444730dc72d4e9039c8a12c8c22edccf866f"}},{"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: extract the block into a single shared function in that directory and call it from each site, 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 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/BluetoothFragment.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ac2794f39c4d6bbd414496b1b714a9db5d2469cd158a661ea37fa348119115"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/LeaveAddressFragment.kt:162-169 | app/src/main/kotlin/cn/ppps/forwarder/fragment/condition/ToAddressFragment.kt:162-166 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/LeaveAddressFragment.kt:162\u0060 it does not close everything it opens, so those exact 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/condition/LeaveAddressFragment.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"b278cebbd34f5a496aa56ae375598fc8b4d201cb42e9a01eb00112cfb4778283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/TelegramFragment.kt:133-137 | app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/WeworkAgentFragment.kt:141-145 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once. 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/TelegramFragment.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"127ef16276a5b15382dac468d4f79e5a1e3e4e77f5f251d39c849919494f2050"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt:94-98 | app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WebhookUtils.kt:226-230 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, 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/TelegramUtils.kt:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"750abb16b4d64d3e60ea7dc209fc310bbe231d546e26384e29fbe91d6bc89c47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 3): app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt:91-120 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/SenderFragment.kt:92-121 | app/src/main/kotlin/cn/ppps/forwarder/fragment/action/TaskActionFragment.kt:92-121 \u2014 the copies sit in sibling files of one directory: extract the block into a single shared function in that directory and call it from each site, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/action/RuleFragment.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"989e2b6bb25c1cbe0e020b49286f56fd06f176be56d3bc1d717adb939302bbed"}},{"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."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D9","level":"note","message":{"text":"No tests found: No test suite could be collected \u2014 nothing here references a test framework (JUnit (with Kotest or MockK on Kotlin)), so there were no discoverable tests to count. Tests written as plain executables or shell/PowerShell harnesses are not collectible this way and are not scored here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9bf64cbb5a4ae13d6bcd01fa3bc8d2879d860c73bc67f176ee3c2cecb8adce3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt: app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt changed 2 times in last 90 days, max complexity 22. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae58ca0c93aea949902f522e80623ce6a2a254d12bf3fdc609be8fb2db60ef0f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/src/main/kotlin/cn/ppps/forwarder/App.kt: app/src/main/kotlin/cn/ppps/forwarder/App.kt changed 2 times in last 90 days, max complexity 18. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, behind tests written first."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/App.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5486ce70dff9d619ccbfb37a9f054c93fc8f7feb41f2e28499d1894e2d9f6b3d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 19 significant file(s) lose their only recent owner: app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/RulesEditFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/App.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/client/CloneFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/sender/EmailUtils.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/CommonUtils.kt, app/src/main/kotlin/cn/ppps/forwarder/fragment/senders/BarkFragment.kt, app/src/main/kotlin/cn/ppps/forwarder/utils/SendUtils.kt (\u002B11 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e61791619c756085ca0e85f5303f0830c7a04936ec86e9b58f1d671d697ddaac"}},{"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":"fe39cf9786baac086897caf512f230ad6ea239180dbd8a0124d723dd078d1f0e"},"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"}}]},{"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":"10ed47e6b2b543615e042572a31a42006663897419b134a85430d4bcda653437"},"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"}}]},{"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":"1ba821785159cf01875ac3765957c460c8194d4630c85dd0fd0d7dd1dc1a3e66"},"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"}}]},{"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":"d53793f5c2038085b3566401c8a42a4868433ceccfa2358b9ebfd350747af41d"},"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"}}]},{"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":"fd9e071e0ad5b6ad6824615823403b0a7ae2088736bb8f4534a71600fcbd7f91"},"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"}}]},{"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":"e340bb0d83499e71b3fdfb371680244d7eb4b17c6c2702052bc84521afec8f23"},"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"}}]},{"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":"078bde256c2fbec0c07285c6e62fe0be9910c88ccc63633ffdbc25ebc5dc72be"},"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"}}]},{"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":"d7e97e424f0796693ff12fd4866973041f1115ec26038e4a8b07484ad06475cc"},"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"}}]},{"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":"ffba64349c0c9e9db56a3df0d35648c49a21b4a75f76bceb41329af3ae4840b1"},"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"}}]},{"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":"bb9e5181b42c1ed28a7016d21e18624d7d3f502aab94fe6f65219f732e38a431"},"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"}}]},{"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":"5e5d6e679a45d072d3fcd7738ec8d68dc544657562983bf335c1e28af3f2ee18"},"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"}}]},{"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":"5fc995f39837102e2419b74c7056ace171310579db08b068930003d51b9de3d8"},"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"}}]},{"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":"b37e703c2262c1e95cbda5a14d6b2c7fe78bdbb9915969083423061a1f21cf7a"},"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"}}]},{"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":"47fe6fae32aa23d44368d19e93434100de2594003f0c4b63e708d80adff5e96f"},"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"}}]},{"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":"3b0367e7ea9bdd389991714fe83002077989c3eac9db9d8bdc3becd4dd073aee"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"8af5214562f352c8d59c20d27dc6ee793df3749dcb25e113c96656527e232dc5"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"da7822855c1463b37e09ed3f977ae5fefb514f848642c768cefca86eb14c67c2"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"28730802ebfe43744d5eb21f8ff5eba95cd6a9df945d1ff83ebff11e9625e847"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"41f2e93c1d1df96fc7b87f4aaed4fabfabd8fd176f30c0b8c06616ec344bd0a7"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"4666d4d4f21a2605e5ea8d2ffad46d6eaa30524984a730d2b019cde98378bc96"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"c4f0d27c4c307b0699c55d8fcf36f81eb695245cb4233007d06e4dd2a03344ad"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"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":"e415f4037127cbe968869a40ef5ba40de392a013339e3f66f55b2a9b9c0f509a"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Constants.kt \u2194 SettingUtils.kt: \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/Constants.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/SettingUtils.kt\u0060 change together 67% of the time (26 of the 39 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/Constants.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9abe7e3616f35adb31dae87bc2006a01d1c321332a3e01fe6efd259a14dc1080"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: Constants.kt \u2194 TaskUtils.kt: \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/Constants.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/task/TaskUtils.kt\u0060 change together 62% of the time (10 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/Constants.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c402f86463ac47879b6cb71cc0cab650d1a6d1b59444749f8c36bed3c67eae0b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: TaskDao.kt \u2194 TasksEditFragment.kt: \u0060app/src/main/kotlin/cn/ppps/forwarder/database/dao/TaskDao.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/database/dao/TaskDao.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9ee61941910ac6b8f01bc3afc79b3a1c55222f4c3851281c64d28e0d26760d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: BarkUtils.kt \u2194 GotifyUtils.kt: \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 change together 54% of the time (7 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/BarkUtils.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b841227300caf50f7c25f8f07b5738cbb8d66f45ebbd04e0f3525a29537ecfc"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: TasksEditFragment.kt \u2194 Constants.kt: \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/Constants.kt\u0060 change together 52% of the time (15 of the 29 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef760807c5d01f54162c24d81fae2b0994fe0ced6700750669f30d71de68884"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: TasksEditFragment.kt \u2194 TaskUtils.kt: \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/task/TaskUtils.kt\u0060 change together 50% of the time (8 of the 16 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/TasksEditFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9ff3999782108437fb101790a2c547261eb5775e6789f2848db27b7c71b25c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: WeworkAgentUtils.kt \u2194 WeworkRobotUtils.kt: \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkRobotUtils.kt\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkAgentUtils.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"32d5aa658633326ce1cc14d1da46099ace8915b47da34dc24b8b77fa92daa6d6"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: SettingsFragment.kt \u2194 PhoneStateReceiver.kt: \u0060app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/receiver/PhoneStateReceiver.kt\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/fragment/SettingsFragment.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b0c1061e0068cc2458aff0ed7dfe75dc99c986f3a245fb6b44f5388438aa2d"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: TelegramUtils.kt \u2194 WeworkRobotUtils.kt: \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/sender/WeworkRobotUtils.kt\u0060 change together 50% of the time (7 of the 14 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/utils/sender/TelegramUtils.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c75eb14317edc22198ae5ea0e2ad628fc4fb26f8c3e75835ce1f8e91ba9aa9"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: CloneInfo.kt \u2194 Constants.kt: \u0060app/src/main/kotlin/cn/ppps/forwarder/entity/CloneInfo.kt\u0060 and \u0060app/src/main/kotlin/cn/ppps/forwarder/utils/Constants.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) 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/kotlin/cn/ppps/forwarder/entity/CloneInfo.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d91fb002b633969c60594c84da88be5019fb318074fea3910a42773459b89f"}},{"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"}},{"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"}},{"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"}},{"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":"9658270ba49f37ed04e99ab1263b6393cd42aed8bdfb7aafd9fa1070f5491895"}},{"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"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-926","guid":"0d9b5579-5549-555a-8a97-f9cc14f3ad4a","name":"CWE-926","shortDescription":{"text":"CWE-926"},"helpUri":"https://cwe.mitre.org/data/definitions/926.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"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":27,"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."]}]}