{"$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":"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"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"SmartRefreshLayout.dispatchTouchEvent (cyclomatic 91): SmartRefreshLayout.dispatchTouchEvent has cyclomatic complexity 91 (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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b885e11dc2b1857bb169953c61364fef3341808b3e35585e0cd04f5132c37c2"}},{"ruleId":"D1","level":"warning","message":{"text":"RefreshKernelImpl.moveSpinner (cyclomatic 75): RefreshKernelImpl.moveSpinner 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":3743}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b713621c6c56af9e770cd61bc3427eebca9601af46a68eadd236b02a3d45cc"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartRefreshLayout.onMeasure (cyclomatic 56): SmartRefreshLayout.onMeasure has cyclomatic complexity 56 (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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65d0209620ffafbe8a8ad0bd666002dd58dd376311c7b4054167669bdb08bd5"}},{"ruleId":"D1","level":"warning","message":{"text":"PathDataNode.addCommand (cyclomatic 50): PathDataNode.addCommand has cyclomatic complexity 50 (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":"refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"4963fcd39c6549b247acbec45d7e9d0a43603d32d6adfaf54177e5f82d2a47ea"}},{"ruleId":"D1","level":"warning","message":{"text":"RefreshKernelImpl.setState (cyclomatic 37): RefreshKernelImpl.setState has cyclomatic complexity 37 (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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":3598}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59f5086d5573a4c34bbdb6c59338c14c06f5230f27d80156b3d7716704477e3"}},{"ruleId":"D1","level":"warning","message":{"text":"5.run (cyclomatic 33): 5.run has cyclomatic complexity 33 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":3158}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f45089c3f7bd19ddfd625982ee563d4a993bbd45513ddcd43b92ab5bf90b6e0"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartRefreshLayout.moveSpinnerInfinitely (cyclomatic 32): SmartRefreshLayout.moveSpinnerInfinitely 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":1714}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5e032336b23ef0c98ff19260dc5611b62c9ec1937cb93057d0c3f9f72af8399"}},{"ruleId":"D1","level":"warning","message":{"text":"ClassicsHeader.\u003Cinit\u003E (cyclomatic 31): ClassicsHeader.\u003Cinit\u003E has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-header-classics/src/main/java/com/scwang/smart/refresh/header/ClassicsHeader.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5936bd979ea81287a320c1a246d8f76ad81d75f47538e4b125851dff7856ab21"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartRefreshLayout.onLayout (cyclomatic 29): SmartRefreshLayout.onLayout has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"2152cf1ef445a3ec2c8f96bdf34850f6dfc8c34a3e4e6a6643a772c908bf4a26"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartRefreshLayout.drawChild (cyclomatic 28): SmartRefreshLayout.drawChild 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ef37865a3ec414ba2296f964a7ab28c49b3f32ee603895b6091ab2758a79a30"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartRefreshLayout.onAttachedToWindow (cyclomatic 25): SmartRefreshLayout.onAttachedToWindow 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b11189c4f7ebbce15eb65c300b9e6f5ca73075271cfc85b17506af7edec3932"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartRefreshLayout.overSpinner (cyclomatic 25): SmartRefreshLayout.overSpinner 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":1655}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92cf0be9cc89f52e6791f5f35e89baccc52e414ded204dad24b312ec3f3fa36"}},{"ruleId":"D1","level":"warning","message":{"text":"ClassicsFooter.\u003Cinit\u003E (cyclomatic 24): ClassicsFooter.\u003Cinit\u003E has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-footer-classics/src/main/java/com/scwang/smart/refresh/footer/ClassicsFooter.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5278531640bc8e824d45e020b0b5a498f4ffc82f6d7082165cc596faf0692a2"}},{"ruleId":"D1","level":"warning","message":{"text":"4.run (cyclomatic 24): 4.run 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":3011}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68e59b4f363927d3efb192c65faa678d984e0725e537a96de675eed3100994e"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartRefreshLayout.onFinishInflate (cyclomatic 23): SmartRefreshLayout.onFinishInflate 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2d63b59b00744996c11a339d33542fe2efd6de9bde70173eac65eda78a5f10"}},{"ruleId":"D1","level":"warning","message":{"text":"FunGameView.\u003Cinit\u003E (cyclomatic 22): FunGameView.\u003Cinit\u003E has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-header/src/main/java/com/scwang/smart/refresh/header/fungame/FunGameView.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fda84debe0978ad2ce5dcc7d4a83ccb4d647c6ed358219fee83552ca1f027e"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartRefreshLayout.startFlingIfNeed (cyclomatic 20): SmartRefreshLayout.startFlingIfNeed has cyclomatic complexity 20 (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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"87dc5cbaf316476ad3f81dc6cf16546de6dd404d38477bd1da716232b5a06bce"}},{"ruleId":"D1","level":"warning","message":{"text":"PathsDrawable.onMeasure (cyclomatic 17): PathsDrawable.onMeasure 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":"refresh-drawable-path/src/main/java/com/scwang/smart/drawable/PathsDrawable.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"577f3bccfd5f52cc7a742d518cb6a41e9e71ec4bab1228d7c9171e5dcd67808a"}},{"ruleId":"D1","level":"warning","message":{"text":"FlingRunnable.start (cyclomatic 17): FlingRunnable.start 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"731d7f3397014647bd4eda73ddcfdbe288d515847003cd46b88312734bdb15e8"}},{"ruleId":"D1","level":"warning","message":{"text":"SmartRefreshLayout.onNestedScroll (cyclomatic 16): SmartRefreshLayout.onNestedScroll 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"480b1376ca7d6ad9b04b2eaba8aad2ca225896694de213ede677d95f0fc52931"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.dispatchTouchEvent (cognitive 153): SmartRefreshLayout.dispatchTouchEvent has cognitive complexity 153 (threshold 15). Drivers by points: if/else 95, boolean chains 45, ternaries 11, loops 1, match/switch 1 (nesting depth added 66). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd04691631ab229375eca0fe3969ea6a002d4518c350e3b9f371d85a65b4db83"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.onMeasure (cognitive 139): SmartRefreshLayout.onMeasure has cognitive complexity 139 (threshold 15). Drivers by points: if/else 86, ternaries 33, boolean chains 19, loops 1 (nesting depth added 84). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0beb0996d0a1857862b2644daa168c3646d78bc523459919fcd0f4c287872d"}},{"ruleId":"D2","level":"warning","message":{"text":"RefreshKernelImpl.moveSpinner (cognitive 139): RefreshKernelImpl.moveSpinner has cognitive complexity 139 (threshold 15). Drivers by points: if/else 73, ternaries 35, boolean chains 31 (nesting depth added 65). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":3743}}}],"partialFingerprints":{"codehealthFindingId/v1":"13603a6ef4c928b0cecf8de1768715602f629bc4d1a1ea76f29819347cecb4ab"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.moveSpinnerInfinitely (cognitive 71): SmartRefreshLayout.moveSpinnerInfinitely has cognitive complexity 71 (threshold 15). Drivers by points: ternaries 38, if/else 24, boolean chains 9 (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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":1714}}}],"partialFingerprints":{"codehealthFindingId/v1":"a62ce7cca8d6d0255bc4a6556daab3d6b4a18088ee03b7e3e732c139336a4049"}},{"ruleId":"D2","level":"warning","message":{"text":"5.run (cognitive 66): 5.run has cognitive complexity 66 (threshold 15). Drivers by points: if/else 45, ternaries 11, boolean chains 10 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":3158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4694e6fac215f00c051554de71d620603cdae1985420bb9d201c88d80e33b86"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.onLayout (cognitive 57): SmartRefreshLayout.onLayout has cognitive complexity 57 (threshold 15). Drivers by points: if/else 26, ternaries 19, boolean chains 11, loops 1 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ed8b00a15ccb31cadc629024e4ae904540e428286290071a6ec9e77dac4e07"}},{"ruleId":"D2","level":"warning","message":{"text":"4.run (cognitive 55): 4.run has cognitive complexity 55 (threshold 15). Drivers by points: if/else 49, boolean chains 6 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":3011}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71fdd17976222c1fc53ec96597f59b12da7a575548e7e3513eb44e5a710d33f"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.overSpinner (cognitive 51): SmartRefreshLayout.overSpinner has cognitive complexity 51 (threshold 15). Drivers by points: if/else 48, boolean chains 3 (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":1655}}}],"partialFingerprints":{"codehealthFindingId/v1":"f311f46ef42fe8d646fc8de116394ee1da29cb493c88452e71f3bd0b30bbf2ae"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.onAttachedToWindow (cognitive 47): SmartRefreshLayout.onAttachedToWindow has cognitive complexity 47 (threshold 15). Drivers by points: if/else 38, boolean chains 6, loops 3 (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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"eedc747d4e664627f086ce16e4f1aec42614a3b595c861870d1547a35e4476ff"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.drawChild (cognitive 45): SmartRefreshLayout.drawChild has cognitive complexity 45 (threshold 15). Drivers by points: if/else 32, boolean chains 12, ternaries 1 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"0799966e3b40cb29153aa092b20e2e41e3c3d80771d792e4f6b4e5f754902b43"}},{"ruleId":"D2","level":"warning","message":{"text":"RefreshKernelImpl.setState (cognitive 44): RefreshKernelImpl.setState has cognitive complexity 44 (threshold 15). Drivers by points: if/else 30, boolean chains 13, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":3598}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b03794b317c23d4ff16088656dad95f7f82ba15adf6a0db38c29772842f83d"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassicsHeader.\u003Cinit\u003E (cognitive 40): ClassicsHeader.\u003Cinit\u003E has cognitive complexity 40 (threshold 15). Drivers by points: if/else 37, ternaries 2, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-header-classics/src/main/java/com/scwang/smart/refresh/header/ClassicsHeader.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bb9718a72e84225710d8c2b97b47950a4ea1f6592b024ac56ceac239880979e"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.onFinishInflate (cognitive 35): SmartRefreshLayout.onFinishInflate has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14, ternaries 11, boolean chains 8, loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e722b2c25bb4559d50d8bdfbb213fadeaafe37ea9c667e49e997d002a19764e"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassicsFooter.\u003Cinit\u003E (cognitive 31): ClassicsFooter.\u003Cinit\u003E has cognitive complexity 31 (threshold 15). Drivers by points: if/else 30, ternaries 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":"refresh-footer-classics/src/main/java/com/scwang/smart/refresh/footer/ClassicsFooter.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"949e46a3c42d583c0c192024f3913b10ef8bffff3bb50f4ef5ff047d3984679e"}},{"ruleId":"D2","level":"warning","message":{"text":"TaurusHeader.drawWinds (cognitive 30): TaurusHeader.drawWinds has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15, loops 14, boolean chains 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-header/src/main/java/com/scwang/smart/refresh/header/TaurusHeader.java"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f42898c50c082bf6c579ebe261369d88ad58be93f02553ff7e557e6ff0dc566"}},{"ruleId":"D2","level":"warning","message":{"text":"PathDataNode.addCommand (cognitive 28): PathDataNode.addCommand has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20, boolean chains 4, match/switch 3, 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":"refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec2afc9a91cdc7e306444aa5b12a4948d8fd94b4e6d49891f8c27ace6a057c5"}},{"ruleId":"D2","level":"warning","message":{"text":"PathsDrawable.onMeasure (cognitive 28): PathsDrawable.onMeasure has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 16, if/else 9, loops 2, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-drawable-path/src/main/java/com/scwang/smart/drawable/PathsDrawable.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eae5f4f6a2938ffee7e958f11c05c8260fbe8a37904100b104ada58bd7bd83f"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleComponent.getSpinnerStyle (cognitive 24): SimpleComponent.getSpinnerStyle has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18, loops 4, boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/simple/SimpleComponent.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71fcb40c7be1a26eeeedeeb44fc6169269037b0da12bd3404837e7eeff005c9"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleComponent.onStateChanged (cognitive 23): SimpleComponent.onStateChanged has cognitive complexity 23 (threshold 15). Drivers by points: if/else 20, boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/simple/SimpleComponent.java"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"81092f59f00b6cd3e0cd49b14ccc0705df401f0a1d88fb065b2f1a423e1bcaf0"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.onNestedScroll (cognitive 23): SmartRefreshLayout.onNestedScroll has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11, boolean chains 9, ternaries 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":1926}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0160d6354a473b40e8360bc75edaf53ab68130c9022b1ecd767775d51ab0a3"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.startFlingIfNeed (cognitive 23): SmartRefreshLayout.startFlingIfNeed has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 13, if/else 9, ternaries 1 (nesting depth added 4). 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":1156}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e73d65ee43c8638ba8398760003798bf3c5c3623b94e34e95cf6ba6faee651f"}},{"ruleId":"D2","level":"warning","message":{"text":"2.onStateChanged (cognitive 22): 2.onStateChanged has cognitive complexity 22 (threshold 15). Drivers by points: if/else 22 (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/java/com/scwang/refresh/layout/fragment/index/RefreshStylesFragment.java"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f5d5c2e23ca82ca1fa2c98488b1ad4822e3b2f68ecf9ba39a2c5bdd671f5cb"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.setNoMoreData (cognitive 22): SmartRefreshLayout.setNoMoreData has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":2910}}}],"partialFingerprints":{"codehealthFindingId/v1":"42811d3ed5ef4d8032508ba425d53d19762da7ed0ebea69b867883bb14fa2698"}},{"ruleId":"D2","level":"warning","message":{"text":"FlingRunnable.start (cognitive 22): FlingRunnable.start has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 11, if/else 9, loops 2 (nesting depth added 6). 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1fad547f2496a00d317612b6556854a9d7cddd87cac6c41c9ad2e16f2fa737"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassicsAbstract.onMeasure (cognitive 21): ClassicsAbstract.onMeasure has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12, ternaries 6, loops 2, boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-footer-classics/src/main/java/com/scwang/smart/refresh/classics/ClassicsAbstract.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7b49678df1eeafa6dd0799549fe85c470eab9cbbb38143d4325d57981ecaa29"}},{"ruleId":"D2","level":"warning","message":{"text":"FunGameView.\u003Cinit\u003E (cognitive 21): FunGameView.\u003Cinit\u003E has cognitive complexity 21 (threshold 15). Drivers by points: if/else 21. 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":"refresh-header/src/main/java/com/scwang/smart/refresh/header/fungame/FunGameView.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"23f427ba501e50bfb7dca343237ea9b1e7fafc2926da12ca70a6173237cc456b"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.setFooterHeightPx (cognitive 21): SmartRefreshLayout.setFooterHeightPx has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 11, if/else 8, boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":2131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28ec1237296e90536da7eaef94ff70580bc28f20c60c17a70076f2cd53ee5ae"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.setHeaderHeightPx (cognitive 21): SmartRefreshLayout.setHeaderHeightPx has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 11, if/else 8, boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":2079}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36357e93829563e3fec4482b6c1c48655edb0a5f6276c2970fc59467ac2edbe"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.setStateDirectLoading (cognitive 21): SmartRefreshLayout.setStateDirectLoading has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14, ternaries 6, boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":1268}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a42cfdbb04256da28d2d6f4fa6159366e595cd7e0b87f44ad459f1864da081"}},{"ruleId":"D2","level":"warning","message":{"text":"BounceRunnable.run (cognitive 21): BounceRunnable.run has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18, boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":1545}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7915fdcf0960fe15f2b68237e28b6274e8bca67387bec712020eaa30a93e97d"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicTimeFormat.format (cognitive 20): DynamicTimeFormat.format has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16, match/switch 3, ternaries 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/java/com/scwang/refresh/layout/util/DynamicTimeFormat.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee121927e22d9002d8da5565a5410f38f772cc2dba96ba8a91eea477c3377f7"}},{"ruleId":"D2","level":"warning","message":{"text":"TwoLevelHeader.onStateChanged (cognitive 20): TwoLevelHeader.onStateChanged has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15, boolean chains 3, match/switch 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":"refresh-header-two-level/src/main/java/com/scwang/smart/refresh/header/TwoLevelHeader.java"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb36f58e142c470a1e9c2272fd2e27eabb5011d3a2e7b728a97f082887cdb43f"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshHorizontal.onLayout (cognitive 19): SmartRefreshHorizontal.onLayout has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 3, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/scwang/refresh/layout/widget/SmartRefreshHorizontal.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa33a723a4ccccc55dcf786a4a7f68ae6b979230d2075a78fc1a156966852bb"}},{"ruleId":"D2","level":"warning","message":{"text":"FunGameBattleCityHeader.drawEnemyTank (cognitive 19): FunGameBattleCityHeader.drawEnemyTank has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, loops 3, 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":"refresh-header/src/main/java/com/scwang/smart/refresh/header/FunGameBattleCityHeader.java"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8e33a289ffab5ca053bd8f4cb255b35e249c1e477537e62ab59636d1bac98e"}},{"ruleId":"D2","level":"warning","message":{"text":"StoreHouseHeader.dispatchDraw (cognitive 19): StoreHouseHeader.dispatchDraw has cognitive complexity 19 (threshold 15). Drivers by points: if/else 16, boolean chains 1, loops 1, ternaries 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":"refresh-header/src/main/java/com/scwang/smart/refresh/header/StoreHouseHeader.java"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b1a860f087b11e3fb452415d0da5886af72ec703673e7484084d2bb7bafa66"}},{"ruleId":"D2","level":"warning","message":{"text":"DropBoxHeader.\u003Cinit\u003E (cognitive 18): DropBoxHeader.\u003Cinit\u003E 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":"refresh-header/src/main/java/com/scwang/smart/refresh/header/DropBoxHeader.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5c4138adc72dc83fe1221b1a0d4def4e957a227e7c3c8d31146b890daed9d7"}},{"ruleId":"D2","level":"warning","message":{"text":"RefreshContentWrapper.moveSpinner (cognitive 18): RefreshContentWrapper.moveSpinner 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/wrapper/RefreshContentWrapper.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4d7fa17f052bfea2382e71ca330cdd11a0a01a8d69d28195cd05c9128167d9"}},{"ruleId":"D2","level":"warning","message":{"text":"FlyRefreshHeader.onMoving (cognitive 16): FlyRefreshHeader.onMoving has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-header/src/main/java/com/scwang/smart/refresh/header/FlyRefreshHeader.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9995f2e92d990461324eb458518bce099a9daa6448d54c8a5646f6728aa2a8d"}},{"ruleId":"D2","level":"warning","message":{"text":"FunGameHitBlockHeader.drawBallPath (cognitive 16): FunGameHitBlockHeader.drawBallPath has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, 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":"refresh-header/src/main/java/com/scwang/smart/refresh/header/FunGameHitBlockHeader.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6c68474afae3596148a4d666b936466e37c34706a22c866fa5169eab60831a6"}},{"ruleId":"D2","level":"warning","message":{"text":"TaurusHeader.drawCenterClouds (cognitive 16): TaurusHeader.drawCenterClouds has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12, ternaries 3, boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-header/src/main/java/com/scwang/smart/refresh/header/TaurusHeader.java"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d1c3af92ffc8a7381e5af81509c261e1ef141dfc2779820fdee570ac991b947"}},{"ruleId":"D2","level":"warning","message":{"text":"WaveSwipeHeader.onMoving (cognitive 16): WaveSwipeHeader.onMoving has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, ternaries 5, 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":"refresh-header/src/main/java/com/scwang/smart/refresh/header/WaveSwipeHeader.java"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4925824345d6f09c4a941881310add1ee631adc099d472fbfd38f26ba60c36"}},{"ruleId":"D2","level":"warning","message":{"text":"RefreshContentWrapper.findScrollableViewInternal (cognitive 16): RefreshContentWrapper.findScrollableViewInternal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6, loops 6, boolean chains 3, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/wrapper/RefreshContentWrapper.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b359e04590a1d990d52656e97a8e4460a0b200d91358924bf41bf630c50cdb"}},{"ruleId":"D2","level":"warning","message":{"text":"SmartRefreshLayout.computeScroll (cognitive 16): SmartRefreshLayout.computeScroll has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 5, ternaries 4 (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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca61a044f1dd894940b60acc56376fa7c6be0774a797ceda66408a85682e91de"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: layout/SmartRefreshLayout.java: FileTooLong \u2014 2127 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: SmartRefreshLayout (82-4009). 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ba0bbc8c619b833739b487b6d32eeda6a535754aaa5929b49083939b267b4e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SmartRefreshLayout: TooManyMethods \u2014 114 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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc78ca71681488679b0a4266446b8387518cd46573fd607266750564d513d7c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TwoLevelHeader: TooManyMethods \u2014 37 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":"refresh-header-two-level/src/main/java/com/scwang/smart/refresh/header/TwoLevelHeader.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d539989096db9cecf523c6f13cc105bb8a98fab078b96103cd0a25615bd2dd7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: path/PathParser.java: FileTooLong \u2014 544 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: PathParser (29-849). 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":"refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e35abd07e163fde9576aa51aed6488da6bb30373c9eccf5994f1408839b2d37"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ClassicsAbstract: TooManyMethods \u2014 31 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":"refresh-footer-classics/src/main/java/com/scwang/smart/refresh/classics/ClassicsAbstract.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"d93d931253dc2f45ea96730952ae389f3a55541b8505dd1c9ff1221f73767c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java:98-118 | refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java:482-502 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76b0a7be75a2a21c1fd46c70c8136a500d402d8e00f157af2bf75b3e01a85e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): app/src/main/java/com/scwang/refresh/layout/activity/example/AssignCodeExampleActivity.java:52-66 | app/src/main/java/com/scwang/refresh/layout/activity/example/AssignDefaultExampleActivity.java:54-68 | app/src/main/java/com/scwang/refresh/layout/activity/example/AssignXmlExampleActivity.java:41-55 \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/java/com/scwang/refresh/layout/activity/example/AssignCodeExampleActivity.java: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/java/com/scwang/refresh/layout/activity/example/AssignCodeExampleActivity.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3432899a81b23adf2ff188eb7e6eb71cbecd5866f4db12ac27aeb831182717c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/example/AssignDefaultExampleActivity.java:38-51 | app/src/main/java/com/scwang/refresh/layout/activity/example/AssignXmlExampleActivity.java:26-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/java/com/scwang/refresh/layout/activity/example/AssignDefaultExampleActivity.java:38\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/java/com/scwang/refresh/layout/activity/example/AssignDefaultExampleActivity.java"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae89a2e82eb5a021be9bcf4098aba65fa8ba6fe5a43ce221720a0ddc9927375"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java:91-103 | app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java:91-103 \u2014 before extracting anything, compare \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java\u0060 and \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java: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/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3866c4344681eb3fe92f264a489e849bf24b805177c83a0bfc9d99b3e251339"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/example/SnapHelperExampleActivity.java:63-74 | app/src/main/java/com/scwang/refresh/layout/fragment/example/StaggeredGridExampleFragment.java:63-74 \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/java/com/scwang/refresh/layout/activity/example/SnapHelperExampleActivity.java: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/java/com/scwang/refresh/layout/activity/example/SnapHelperExampleActivity.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8a6567b2193b4ffc0c32169aec1a734479e4f0bcacd4ccba3d0c7bc503530d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java:121-132 | app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java:121-132 \u2014 before extracting anything, compare \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java\u0060 and \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java:121\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"935afcbcb3b79fc28f9fe825d5b655e512d64ffbe0e45a6ae893d1f6dc333a0f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 8): app/src/main/java/com/scwang/refresh/layout/activity/style/BezierCircleStyleActivity.java:57-67 | app/src/main/java/com/scwang/refresh/layout/activity/style/DeliveryStyleActivity.java:62-72 | app/src/main/java/com/scwang/refresh/layout/activity/style/DropBoxStyleActivity.java:66-76 | app/src/main/java/com/scwang/refresh/layout/activity/style/FunGameBattleCityStyleActivity.java:55-65 | app/src/main/java/com/scwang/refresh/layout/activity/style/FunGameHitBlockStyleActivity.java:55-65 | app/src/main/java/com/scwang/refresh/layout/activity/style/StoreHouseStyleActivity.java:61-71 | app/src/main/java/com/scwang/refresh/layout/activity/style/WaterDropStyleActivity.java:57-67 | app/src/main/java/com/scwang/refresh/layout/activity/style/WaveSwipeStyleActivity.java:56-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/java/com/scwang/refresh/layout/activity/style/BezierCircleStyleActivity.java:57\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/java/com/scwang/refresh/layout/activity/style/BezierCircleStyleActivity.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e8cf36cb17f9a14f1d1b7ae982bac7eb3a64f99526dc996c952524a09de94c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): app/src/main/java/com/scwang/refresh/layout/activity/style/BezierCircleStyleActivity.java:88-98 | app/src/main/java/com/scwang/refresh/layout/activity/style/BezierRadarStyleActivity.java:92-102 | app/src/main/java/com/scwang/refresh/layout/activity/style/WaveSwipeStyleActivity.java: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/java/com/scwang/refresh/layout/activity/style/BezierCircleStyleActivity.java:88\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/java/com/scwang/refresh/layout/activity/style/BezierCircleStyleActivity.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce6ff4144564624e8d6220b5b7b6d838cd4174c2b2cd7dbaf6d4053b9aaee9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java:67-77 | app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java:67-77 \u2014 before extracting anything, compare \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java\u0060 and \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java:67\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/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"48eb2fa262d72663a51dcf28670f42c56e4c2c5b4b985bed6d73f643879490f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragment.java:92-102 | app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragmentInner.java:92-102 \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/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragment.java:92\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragment.java"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"3576dad733894e594140b621771d041481c0a4383212c926163b14e7f9a142d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/fragment/practice/SecondFloorPracticeFragment.java:96-106 | app/src/main/java/com/scwang/refresh/layout/fragment/practice/TwoLevelPracticeFragment.java:57-67 \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/java/com/scwang/refresh/layout/fragment/practice/SecondFloorPracticeFragment.java: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/java/com/scwang/refresh/layout/fragment/practice/SecondFloorPracticeFragment.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"151daf9c4a988677bab16975789864a2344f1dfcbf0cc230c2e12ca2569b13a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/practice/QQBrowserPracticeActivity.java:34-43 | app/src/main/java/com/scwang/refresh/layout/activity/practice/WebViewPracticeActivity.java:39-49 \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/java/com/scwang/refresh/layout/activity/practice/QQBrowserPracticeActivity.java:34\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/java/com/scwang/refresh/layout/activity/practice/QQBrowserPracticeActivity.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f999ef5515c321191f4c4f07475563e8ef19606ea95b74ba5b963016b1c7dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java:586-595 | refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java:632-641 \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 \u0060refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java:586\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":"refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8c6fa796eef7c93e3c9b01e79d362fafdffd819d2876465de61d8bc79bf736"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java:603-612 | refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java:647-656 \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 \u0060refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java:603\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":"refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ae05856a02ab24e5d4d5de1a9ce5ff4b250f2be30f7ea548097c34ede83c09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/style/ClassicsStyleActivity.java:149-157 | app/src/main/java/com/scwang/refresh/layout/activity/style/DropBoxStyleActivity.java:97-105 \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/java/com/scwang/refresh/layout/activity/style/ClassicsStyleActivity.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff88ba37d9e32a9abbb3a95264ecc9801af483364b3bbafbbf83710881aa190"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/style/FunGameBattleCityStyleActivity.java:89-97 | app/src/main/java/com/scwang/refresh/layout/activity/style/FunGameHitBlockStyleActivity.java:90-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. 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/java/com/scwang/refresh/layout/activity/style/FunGameBattleCityStyleActivity.java"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"236d602cc3cea19ef512fd774a7c191b0dd02cef168af4a26001cb6cf7eb6a2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/fragment/practice/InstantPracticeFragment.java:112-120 | app/src/main/java/com/scwang/refresh/layout/fragment/practice/InstantPracticeFragment.java:122-130 \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/java/com/scwang/refresh/layout/fragment/practice/InstantPracticeFragment.java:112\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/java/com/scwang/refresh/layout/fragment/practice/InstantPracticeFragment.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a93dd992bb83b98fc27fcd31d1fddc297f533abc5c60f4320f0e52b6c4b93630"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/fragment/practice/SecondFloorPracticeFragment.java:49-57 | app/src/main/java/com/scwang/refresh/layout/fragment/practice/TwoLevelPracticeFragment.java:37-45 \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/java/com/scwang/refresh/layout/fragment/practice/SecondFloorPracticeFragment.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dd4bf3ce73a475de25d1c05b61c0bd33933c4f51d71fb2a4a0c670d6df5a31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/widget/ScrollBoundaryHorizontal.java:28-36 | refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/util/SmartUtil.java:134-142 \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/java/com/scwang/refresh/layout/widget/ScrollBoundaryHorizontal.java:28\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/java/com/scwang/refresh/layout/widget/ScrollBoundaryHorizontal.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bad41ebb8e175a3af38ae6206250b4c15df8aed13258b747e8fd4a7a1ad5fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): refresh-header/src/main/java/com/scwang/smart/refresh/header/BezierCircleHeader.java:87-94 | refresh-header/src/main/java/com/scwang/smart/refresh/header/PhoenixHeader.java:264-271 | refresh-header/src/main/java/com/scwang/smart/refresh/header/TaurusHeader.java:263-270 \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 \u0060refresh-header/src/main/java/com/scwang/smart/refresh/header/BezierCircleHeader.java:87\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":"refresh-header/src/main/java/com/scwang/smart/refresh/header/BezierCircleHeader.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ca93f0a373db18a3c27ac607b99470702b1f0ea39fe4f87991034a8f349674"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentViewPager.java:147-154 | app/src/main/java/com/scwang/refresh/layout/fragment/example/ViewPagerExampleFragment.java:169-176 \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/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentViewPager.java:147\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/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentViewPager.java"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1887086b23a72d60fe7251437462634c126e898f40bdf89c9ecd0e13b85fab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/widget/ScrollBoundaryHorizontal.java:60-67 | refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/util/SmartUtil.java:167-174 \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/java/com/scwang/refresh/layout/widget/ScrollBoundaryHorizontal.java:60\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/java/com/scwang/refresh/layout/widget/ScrollBoundaryHorizontal.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e0c52f19fd130aee2d25b8b6f088a133ac51d38cf095c6ec404ea695facb48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): refresh-header/src/main/java/com/scwang/smart/refresh/header/DropBoxHeader.java:322-329 | refresh-header/src/main/java/com/scwang/smart/refresh/header/DropBoxHeader.java:344-351 \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":"refresh-header/src/main/java/com/scwang/smart/refresh/header/DropBoxHeader.java"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc84e437570df43feeb57a84ae5f45bdbc90370ba216249e011c227641e565bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:3006-3013 | refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:3153-3160 \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 \u0060refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:3006\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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":3006}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5e71fedfc9edd64d19408316a895ff7143d2c4afa6f279dc6159071dbb3cee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java:573-580 | refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java:599-605 | refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java:621-627 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java:573\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef4a3328e30c80697da490b9479b2aac073fecf032381812d1d0e8c69911ab3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/example/BasicExampleActivity.java:46-52 | app/src/main/java/com/scwang/refresh/layout/activity/example/CustomExampleActivity.java:49-55 \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/java/com/scwang/refresh/layout/activity/example/BasicExampleActivity.java:46\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/java/com/scwang/refresh/layout/activity/example/BasicExampleActivity.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"de0be0dd44bb81d896592738e9f176d06d25ec2c67895838cba476d54ac0170d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/example/OverScrollExampleActivity.java:27-33 | app/src/main/java/com/scwang/refresh/layout/activity/practice/WebViewPracticeActivity.java:33-39 \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/java/com/scwang/refresh/layout/activity/example/OverScrollExampleActivity.java:27\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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/java/com/scwang/refresh/layout/activity/example/OverScrollExampleActivity.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d737748a8fab2088f1230634798baca36e701089a1171d7742175de7bcf7ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/style/DeliveryStyleActivity.java:53-59 | app/src/main/java/com/scwang/refresh/layout/activity/style/DeliveryStyleActivity.java:94-100 \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/java/com/scwang/refresh/layout/activity/style/DeliveryStyleActivity.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4efe02f76d1e254c553c38578ff5096c0bc8112259c2be2654fd0915aaf23d25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragment.java:72-78 | app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragmentOuter.java:57-63 \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/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragment.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e3068b045437e4bf8f53b1ea0c2296445b4fa15ace04c814c07463c11af3d54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragmentInner.java:81-87 | app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragmentOuter.java:71-77 \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/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragmentInner.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"afeabba989e1c3d10cdc2da08823d511c40c10547f56d4fe32f1983245d2b9a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragment.java:116-122 | app/src/main/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentViewPager.java:58-64 \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/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragment.java:116\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragment.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"119ba3af7b2bca132ced680f5189f10654516bf3912a9ea88652e4c71e5eae63"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/fragment/index/RefreshExampleFragment.java:90-96 | app/src/main/java/com/scwang/refresh/layout/fragment/index/RefreshPracticeFragment.java:77-83 \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/java/com/scwang/refresh/layout/fragment/index/RefreshExampleFragment.java:90\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/scwang/refresh/layout/fragment/index/RefreshExampleFragment.java"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"9283fc2bd3cd4b54a67a734928c6de4817728a920e3f117a6fb8226c1f664b54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): refresh-drawable-path/src/main/java/com/scwang/smart/drawable/PathsDrawable.java:170-176 | refresh-drawable-path/src/main/java/com/scwang/smart/drawable/PathsDrawable.java:183-189 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060refresh-drawable-path/src/main/java/com/scwang/smart/drawable/PathsDrawable.java:170\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":"refresh-drawable-path/src/main/java/com/scwang/smart/drawable/PathsDrawable.java"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0c19055d955800437d02663e5577c3b1ed35558708f619334e212a2d1e9eb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:503-509 | refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:652-658 \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 \u0060refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:503\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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c2646a93a72d23e496af876d302c07b7bc2277888c3fe80067621419b4b91c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:2620-2626 | refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:2675-2681 \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 \u0060refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:2620\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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":2620}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebc7b0931a5f9d29047fee5472e5fa58df808dea24e5ab4c9d2ff410feefc4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 10): app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragment.java:128-133 | app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragmentInner.java:121-126 | app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragmentOuter.java:106-111 | app/src/main/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragment.java:141-146 | app/src/main/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragment.java:82-87 | app/src/main/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragmentFooter.java:76-81 | app/src/main/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragmentHeader.java:74-79 | app/src/main/java/com/scwang/refresh/layout/fragment/example/SpecifyStyleExampleFragment.java:86-91 | app/src/main/java/com/scwang/refresh/layout/fragment/index/RefreshExampleFragment.java:113-118 | app/src/main/java/com/scwang/refresh/layout/fragment/index/RefreshPracticeFragment.java:102-107 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 10 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 10 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragment.java:128\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/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragment.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfc1f9ae89ee64d141f328fea0e228c81096f08a4a5d1ff6cd412e6e406352b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 6): app/src/main/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentIntegral.java:143-148 | app/src/main/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragment.java:71-76 | app/src/main/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragmentFooter.java:65-70 | app/src/main/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragmentHeader.java:63-68 | app/src/main/java/com/scwang/refresh/layout/fragment/example/SpecifyStyleExampleFragment.java:75-80 | app/src/main/java/com/scwang/refresh/layout/fragment/index/RefreshPracticeFragment.java:89-94 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 6 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 6 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentIntegral.java:143\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/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentIntegral.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"717df2cbbb46dfa0aeac39cffc5d51cbd5edb9cdfb84698f83e57e56d9ac95fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): app/src/main/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragment.java:62-67 | app/src/main/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragmentHeader.java:54-59 | app/src/main/java/com/scwang/refresh/layout/fragment/index/RefreshExampleFragment.java:93-98 | app/src/main/java/com/scwang/refresh/layout/fragment/index/RefreshPracticeFragment.java:80-85 \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/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragment.java:62\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/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragment.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"06df165d504421150a09711a25ae03cc94d334a8ed0080229d6e20f55affdbf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/scwang/refresh/layout/activity/style/ClassicsStyleActivity.java:103-108 | app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java:87-92 | app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java:87-92 \u2014 before extracting anything, compare \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java\u0060 and \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/ClassicsStyleActivity.java: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/scwang/refresh/layout/activity/style/ClassicsStyleActivity.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"87235860811d82b953c62e0709d27771521f8532ddb6c3e3bdaabb791deb3fa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/src/main/java/com/scwang/refresh/layout/activity/style/MaterialStyleActivity.java:70-75 | app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java:75-80 | app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java:75-80 \u2014 before extracting anything, compare \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java\u0060 and \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/MaterialStyleActivity.java:70\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/scwang/refresh/layout/activity/style/MaterialStyleActivity.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"449626db7c0b8df976185165ddfe071f50bb97979a41b5edaeb750e153ad9d6a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): refresh-header-two-level/src/main/java/com/scwang/smart/refresh/header/TwoLevelHeader.java:310-315 | refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:2619-2624 | refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:2674-2679 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060refresh-header-two-level/src/main/java/com/scwang/smart/refresh/header/TwoLevelHeader.java:310\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":"refresh-header-two-level/src/main/java/com/scwang/smart/refresh/header/TwoLevelHeader.java"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"c52149b28a217fde0ed0ba0833d2f0d8be431fd33ea2d3d58ad530ddd9eb6e13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/util/SmartUtil.java:138-143 | refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/util/SmartUtil.java:171-176 | refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/wrapper/RefreshContentWrapper.java:109-114 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/util/SmartUtil.java:138\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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/util/SmartUtil.java"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc921f8a242e2ed9475909fdf5400e7335e9d9e5e47ed01ef0416c704248c542"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/example/SnapHelperExampleActivity.java:47-52 | app/src/main/java/com/scwang/refresh/layout/fragment/example/StaggeredGridExampleFragment.java:49-54 \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/java/com/scwang/refresh/layout/activity/example/SnapHelperExampleActivity.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"0076509158e39ce464d207c64fbbfb22cefd2a3b42ebd389990693d9adb521e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java:148-153 | app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java:148-153 \u2014 before extracting anything, compare \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java\u0060 and \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de21575ba574c2f25f1fa30a010c54f7af3e10ccf6fb4d17b12abe6180f6e57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragment.java:115-120 | app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragmentOuter.java:93-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/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragment.java: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragment.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad82604542380a45325d03b66207a8f711d8733aeede870e4eb92ae84154c8af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): refresh-drawable-path/src/main/java/com/scwang/smart/drawable/PathsDrawable.java:143-148 | refresh-drawable-path/src/main/java/com/scwang/smart/drawable/PathsDrawable.java:201-206 \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 \u0060refresh-drawable-path/src/main/java/com/scwang/smart/drawable/PathsDrawable.java: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":"refresh-drawable-path/src/main/java/com/scwang/smart/drawable/PathsDrawable.java"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7e4768689c253ab0b567c5581be06795af495c7a6da39e3b6fd57fb91fb7367"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): refresh-header-material/src/main/java/com/scwang/smart/refresh/header/MaterialHeader.java:213-218 | refresh-header/src/main/java/com/scwang/smart/refresh/header/WaterDropHeader.java:168-173 \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 \u0060refresh-header-material/src/main/java/com/scwang/smart/refresh/header/MaterialHeader.java:213\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":"refresh-header-material/src/main/java/com/scwang/smart/refresh/header/MaterialHeader.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"70cd50657939b5244c19ed9dd966d5eacf37f095ebed20758d115d1e540eca8b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/wrapper/RefreshContentWrapper.java:220-225 | refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/wrapper/RefreshContentWrapper.java:230-235 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/wrapper/RefreshContentWrapper.java: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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/wrapper/RefreshContentWrapper.java"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cbe15ebdc067d8748b313e29223f7f91fbf112684abf42d6c2dd7000b929338"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:478-483 | refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:2745-2750 \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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f54fac39b6c170e98a1697e0c569d960c7117ae0c609434c787c3b57548c7ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): app/src/main/java/com/scwang/refresh/layout/activity/example/I18nExampleActivity.java:64-68 | app/src/main/java/com/scwang/refresh/layout/activity/style/BezierCircleStyleActivity.java:72-76 | app/src/main/java/com/scwang/refresh/layout/activity/style/BezierRadarStyleActivity.java:76-80 | app/src/main/java/com/scwang/refresh/layout/activity/style/ClassicsStyleActivity.java:98-102 | app/src/main/java/com/scwang/refresh/layout/activity/style/MaterialStyleActivity.java:77-81 | app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java:82-86 | app/src/main/java/com/scwang/refresh/layout/activity/style/StoreHouseStyleActivity.java:76-80 | app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java:82-86 | app/src/main/java/com/scwang/refresh/layout/activity/style/WaterDropStyleActivity.java:72-76 \u2014 before extracting anything, compare \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/PhoenixStyleActivity.java\u0060 and \u0060app/src/main/java/com/scwang/refresh/layout/activity/style/TaurusStyleActivity.java\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 59 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/com/scwang/refresh/layout/activity/example/I18nExampleActivity.java:64\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/java/com/scwang/refresh/layout/activity/example/I18nExampleActivity.java"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e77722b0369df81b494c96a9b68f8eb85bd9ca3bd5832f3b7111ce460a36b3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): app/src/main/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentViewPager.java:127-131 | app/src/main/java/com/scwang/refresh/layout/fragment/example/NoMoreDataExampleFragment.java:64-68 | app/src/main/java/com/scwang/refresh/layout/fragment/example/ViewPagerExampleFragment.java:149-153 | app/src/main/java/com/scwang/refresh/layout/fragment/practice/SecondFloorPracticeFragment.java:116-120 \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/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentViewPager.java: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/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentViewPager.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe593e7b3cece5474f5940c9ddcb1ff16eb092d1de71ab272614b73f51364e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): app/src/main/java/com/scwang/refresh/layout/activity/style/FunGameBattleCityStyleActivity.java:68-72 | app/src/main/java/com/scwang/refresh/layout/activity/style/FunGameHitBlockStyleActivity.java:68-72 | app/src/main/java/com/scwang/refresh/layout/activity/style/WaveSwipeStyleActivity.java:69-73 \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/java/com/scwang/refresh/layout/activity/style/FunGameBattleCityStyleActivity.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b764b9a2c6dfee7640c39413dfd594de8b4bd3362ed55a5002b46960ecd123"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/style/DeliveryStyleActivity.java:73-77 | app/src/main/java/com/scwang/refresh/layout/activity/style/StoreHouseStyleActivity.java:73-77 \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/java/com/scwang/refresh/layout/activity/style/DeliveryStyleActivity.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ed548794696f847e4611fd325181a34a93d7e3ae1b0b5cb95b0037f8e8b705f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/style/StoreHouseStyleActivity.java:144-148 | app/src/main/java/com/scwang/refresh/layout/activity/style/StoreHouseStyleActivity.java:172-176 \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/java/com/scwang/refresh/layout/activity/style/StoreHouseStyleActivity.java"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf78b590d8e7ecac8eac133eb6399142c5f72db03c9068fabe1ee0ade7212e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/activity/style/StoreHouseStyleActivity.java:167-172 | app/src/main/java/com/scwang/refresh/layout/activity/style/StoreHouseStyleActivity.java:195-199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. 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/java/com/scwang/refresh/layout/activity/style/StoreHouseStyleActivity.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f42b40693a443ee6ffa3b7c14776af7e2bffb33f6d087ac80723ec61dc2536"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/fragment/example/BottomSheetExampleFragment.java:63-68 | app/src/main/java/com/scwang/refresh/layout/fragment/example/EmptyLayoutExampleFragmentInner.java:68-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/java/com/scwang/refresh/layout/fragment/example/BottomSheetExampleFragment.java: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. 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/java/com/scwang/refresh/layout/fragment/example/BottomSheetExampleFragment.java"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8908c6b304341b30e236f4224e72ff35b99b942ebc0a8499727a1431501ba19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentIntegral.java:136-140 | app/src/main/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentViewPager.java:119-123 \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/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentIntegral.java:136\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/java/com/scwang/refresh/layout/fragment/example/NestedScrollExampleFragmentIntegral.java"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8352b21c39fc8a6bdb23b99302bd0d04f1624e3d108bbc5b0e861404f2d35766"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/src/main/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragmentFooter.java:58-62 | app/src/main/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragmentHeader.java:56-60 \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/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragmentFooter.java: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/java/com/scwang/refresh/layout/fragment/example/PureScrollExampleFragmentFooter.java"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3482604a3c3c57ef47ce346323dc644a1366040e9fdb53f0b6ab9cc551b38420"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:2095-2099 | refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:3830-3834 \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":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"9617c8bc422211e15ab8e978576c7e1f8dd554b9d921a25798e5e511171210d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:2148-2152 | refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java:3876-3880 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java"},"region":{"startLine":2148}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9f6a4878bded0d6bfe02749a04b9a1316f0496626b22207c4939a26a08d239"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 1 significant file(s) lose their only recent owner: refresh-layout-kernel/src/main/java/com/scwang/smart/refresh/layout/SmartRefreshLayout.java. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5d010643fb95d3ac0a790ae43dcd4e0a78b58450fbac24b192f3671de0d25e2f"}},{"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":"5a2d3306f4848e0feb58ad37d19ab72112fbcb8a2cdd646f0414180ea627114d"},"taxa":[{"id":"CWE-330","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 93 of 94 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 93 separate risks. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-drawable-path/src/main/java/com/scwang/smart/drawable/path/PathParser.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"240cbfdd5d0720dfcdf1bfa96bf0a2836e00add493e4a42ebd7b4c4f80ac057d"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-header/src/main/java/com/scwang/smart/refresh/header/waveswipe/WaveView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3114931f52fcd41df2e4823dfeddec9cc67186d0e97daacc050871461018e182"}},{"ruleId":"D34","level":"note","message":{"text":"Largest orphaned file: One of the largest files with no living knowledge remaining \u2014 a reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"refresh-header/src/main/java/com/scwang/smart/refresh/header/TaurusHeader.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b1d4725b4472d0b91d3141d08318466aaef01586efcdd2fa1f6259f49dba14"}}],"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-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-330","guid":"f811ddf9-2e54-865b-9c76-f97905849790","name":"CWE-330","shortDescription":{"text":"CWE-330"},"helpUri":"https://cwe.mitre.org/data/definitions/330.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-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":1,"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."]}]}