{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"DefaultDecoration.getItemOffsets (cyclomatic 61): DefaultDecoration.getItemOffsets has cyclomatic complexity 61 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/util/decoration/DefaultDecoration.kt holds 2 of the 7 methods over the threshold \u2014 including the worst \u2014 and 67 of the 102 points over it (66%), 2.2\u00D7 the next-largest file (JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java at 31). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/util/decoration/DefaultDecoration.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd531f07c80799b615a31c9550e61f5c1f786b6ecf985ffe5895e28c2a881299"}},{"ruleId":"D1","level":"warning","message":{"text":"QMUILayoutHelper.\u003Cinit\u003E (cyclomatic 41): QMUILayoutHelper.\u003Cinit\u003E has cyclomatic complexity 41 (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":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ec9d9a74e9731733010d362c20c26b5f479be8bb81e143b1a4d7681c7cf762"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultDecoration.drawGrid (cyclomatic 36): DefaultDecoration.drawGrid has cyclomatic complexity 36 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/util/decoration/DefaultDecoration.kt holds 2 of the 7 methods over the threshold \u2014 including the worst \u2014 and 67 of the 102 points over it (66%), 2.2\u00D7 the next-largest file (JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java at 31). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/util/decoration/DefaultDecoration.kt"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"02fa8c06d01d7fa7b9c138d3acf95d9ffe405b77db3f3e500eeef5f9f12ddbfa"}},{"ruleId":"D1","level":"warning","message":{"text":"QMUILayoutHelper.dispatchRoundBorderDraw (cyclomatic 20): QMUILayoutHelper.dispatchRoundBorderDraw has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"97602b14b88b35758fe74961f1307adf79265416287f6d0b640c0fbae0d9c166"}},{"ruleId":"D1","level":"warning","message":{"text":"LogInterceptor.intercept (cyclomatic 17): LogInterceptor.intercept 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":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/core/net/interception/LogInterceptor.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb816cf87bce8eea157e7fe5f47ff0bd546df76461f20e8c06048697e402da79"}},{"ruleId":"D1","level":"warning","message":{"text":"ShadowLayout.initAttributes (cyclomatic 16): ShadowLayout.initAttributes has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf09cb83e4426dc0a662cc6b78fd3a303657d8466a48e2701589e92d013cbcf"}},{"ruleId":"D1","level":"warning","message":{"text":"ShadowLayout.setPading (cyclomatic 16): ShadowLayout.setPading 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":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"d55744d3f3a61f52cbf60329cb4924644a8a64b0789724d76e71b4caa9113a4d"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultDecoration.getItemOffsets (cognitive 105): DefaultDecoration.getItemOffsets has cognitive complexity 105 (threshold 15). Drivers by points: if/else 28 (67 pts), match/switch 13 (23 pts), boolean chains 15 (nesting depth added 49). 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":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/util/decoration/DefaultDecoration.kt"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8e94b724ae33a7f06394549dabb494d7304319925a46851172a0f948fa8715"}},{"ruleId":"D2","level":"warning","message":{"text":"ShadowLayout.setPading (cognitive 53): ShadowLayout.setPading has cognitive complexity 53 (threshold 15). Drivers by points: if/else 25 (52 pts), boolean chains 1 (nesting depth added 27). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49c05d907c05caefecc88dc9b353151f138dd21206f912ef7d9b03763ddacff"}},{"ruleId":"D2","level":"warning","message":{"text":"QMUILayoutHelper.\u003Cinit\u003E (cognitive 43): QMUILayoutHelper.\u003Cinit\u003E has cognitive complexity 43 (threshold 15). Drivers by points: if/else 37 (39 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc2d7c1a3c5efb2b1d8e3aa4141573e3a065a39a450ae9bce937be39ae09461"}},{"ruleId":"D2","level":"warning","message":{"text":"ShadowLayout.onTouchEvent (cognitive 40): ShadowLayout.onTouchEvent has cognitive complexity 40 (threshold 15). Drivers by points: if/else 9 (36 pts), match/switch 1 (3 pts), boolean chains 1 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"743fccde60ca262223833906d5cd0bb4f96f7172b83d1cd8b9cee1e61058520b"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultDecoration.drawGrid (cognitive 39): DefaultDecoration.drawGrid has cognitive complexity 39 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 16, match/switch 2 (4 pts), loops 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/util/decoration/DefaultDecoration.kt"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6806083d47d5ddfad455af74a6059cb6b1e30579c6ee66dd248dc3bacde5b9"}},{"ruleId":"D2","level":"warning","message":{"text":"QMUILayoutHelper.dispatchRoundBorderDraw (cognitive 26): QMUILayoutHelper.dispatchRoundBorderDraw has cognitive complexity 26 (threshold 15). Drivers by points: if/else 18 (22 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java"},"region":{"startLine":749}}}],"partialFingerprints":{"codehealthFindingId/v1":"7250c3b1f9fadd023ee5519cf84f3753ba896928338c74ffcd786e7ceb12c413"}},{"ruleId":"D2","level":"warning","message":{"text":"ShadowLayout.createShadowBitmap (cognitive 24): ShadowLayout.createShadowBitmap has cognitive complexity 24 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"24dbfff519004fdaca6a462d7e5ff898387ea4f3157c60e9b33a2ea910f30533"}},{"ruleId":"D2","level":"warning","message":{"text":"ShadowLayout.setmBackGround (cognitive 22): ShadowLayout.setmBackGround has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1c663be56afda7e5a04603c25fec0c5bdb56f9218443b4c8d5c7e5ea2b89e7"}},{"ruleId":"D2","level":"warning","message":{"text":"ShadowLayout.initAttributes (cognitive 21): ShadowLayout.initAttributes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"84c6719e2405a6599fb0fb72d5aa5c9c9de0e6166c6c4bd2fa629ac8cea5c319"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewBindUtilKt.bindingClass (cognitive 20): ViewBindUtilKt.bindingClass has cognitive complexity 20 (threshold 15). Drivers by points: error handling 3 (9 pts), if/else 2 (6 pts), loops 2 (4 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/ViewBindUtil.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"af46a63850bd7b98caf6183485f83ff7d42b4eb689384049b3973ad3fd3f13c6"}},{"ruleId":"D2","level":"warning","message":{"text":"LogInterceptor.intercept (cognitive 19): LogInterceptor.intercept has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7, error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/core/net/interception/LogInterceptor.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"b09d152bf0fcac34771381a0423d12ad63abab4e2556f681fcb2be522fec86dc"}},{"ruleId":"D2","level":"warning","message":{"text":"ShadowLayout.setSelected (cognitive 19): ShadowLayout.setSelected has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (19 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92d43cbf3ae48934be4a2f7bc9dc4d2e90d68d363f897f798feebc2c4e8f2c7"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultDecoration.drawHorizontal (cognitive 18): DefaultDecoration.drawHorizontal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (DefaultDecoration.drawVertical) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/util/decoration/DefaultDecoration.kt"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa28de6d6ad715075260ac851a39b3a9c0b4e4cf1401f58329e271c051b855f9"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultDecoration.drawVertical (cognitive 18): DefaultDecoration.drawVertical has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (DefaultDecoration.drawHorizontal) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/util/decoration/DefaultDecoration.kt"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"3040234c1c98b0ced8c50b4f98e76abc6bf53bcd05ee22e5dde7ed89bde88efe"}},{"ruleId":"D2","level":"warning","message":{"text":"ShadowLayout.changeSwitchClickable (cognitive 17): ShadowLayout.changeSwitchClickable has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"f09b144e5609aba6493959c215791313c75a44374c00e6075ead5d62ff65e58d"}},{"ruleId":"D2","level":"warning","message":{"text":"ShadowLayout.onDraw (cognitive 17): ShadowLayout.onDraw has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 1 (nesting depth added 9). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":662}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21080632c0ce6d4c0a797d1a8aea81fee4fd34ea8c24e06f6d54885379237d4"}},{"ruleId":"D2","level":"warning","message":{"text":"QMUILayoutHelper.drawDividers (cognitive 16): QMUILayoutHelper.drawDividers has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfab8b817b4b4b4126d7fb9cd64a38bd6a2b5c8c43330a8370f99482015cb62f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: QMUILayoutHelper: TooManyMethods \u2014 59 methods. The bar is 30 methods; this is 29 over it, 1.97\u00D7 the bar. Most of these members implement alpha.IQMUILayout (41 of 55 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c4919ecc3c821719d6e8c92658bdb2734eacb6605f91c393ec5bf0d9c139d0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UIConstraintLayout: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. Most of these members implement alpha.IQMUILayout (41 of 45 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIConstraintLayout.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc3d3ceb14c7c47789aec7e3ff710c6b8f5cf92ae7db279f3ed8c633cf6838e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UIFrameLayout: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. Most of these members implement alpha.IQMUILayout (41 of 45 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIFrameLayout.java"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"556fd78a00a157f5df2d81da6317709f9f2a1c975a78c533a4df3ab93b84b949"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UIImageView: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. Most of these members implement alpha.IQMUILayout (41 of 45 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIImageView.java"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd16e9d3a970e49da009179b1b134ce3d2424b54dcee85137f28604739d07406"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UILinearLayout: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. Most of these members implement alpha.IQMUILayout (41 of 45 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UILinearLayout.java"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"5345092d8b258021e81136e1f30ba9d16f237d47f0ffaed6c861154b94f9ca14"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UITextView: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. Most of these members implement alpha.IQMUILayout (41 of 45 members), so moving them onto a smaller type would remove them from that contract rather than reduce it. To reduce it, split the contract instead: give each cohesive group of operations its own smaller interface and its own implementing type. Where the contract has to stay whole, move the work behind these members into collaborator types, so what is left here is a forward per member rather than a responsibility per member."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UITextView.java"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"493a8accb94c3665fb19654e2924ee2ba67f360876c75387065892bf2fa8d30b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: QMUILayoutHelper: ClassTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded), 59 methods. The bar is 400 significant lines; this is 187 over it, 1.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e17fd9dd8179e4726629fdd2d8af13fb63ab9a1d1f738731a80c33d7dd5ff2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ShadowLayout: ClassTooLong \u2014 518 significant lines (blank, comment-only and punctuation-only lines excluded), 33 methods. The bar is 400 significant lines; this is 118 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ca39fe0dfe71ead17f1650758d43d8a9a8570b0361babc6644505d827c453e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: alpha/QMUILayoutHelper.java: FileTooLong \u2014 607 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: QMUILayoutHelper (27-850). The bar is 500 significant lines; this is 107 over it, 1.21\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5098508719db8e15a94cab60aee48b117821a11817f207a1b17539eb908deb6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ShadowLayout: TooManyMethods \u2014 33 methods. The bar is 30 methods; this is 3 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bf2452a20f34eb2559a8b7df02ed451504b97c09dd2e7317f4a8ae58b905f0d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shadowlayout/ShadowLayout.java: FileTooLong \u2014 540 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: ShadowLayout (33-888). The bar is 500 significant lines; this is 40 over it, 1.08\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92091d9863617e3d992838420b05408aa0978929806ddcbb374856d60ac2e21"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: XLog: TooManyMethods \u2014 31 methods. The bar is 30 methods; this is 1 over it, 1.03\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/XLog.kt"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e20852cbffdb0c1d1c08c6c83b2cb0da6f81cebe4fe922b696433b9b17ee4e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIConstraintLayout.java:111-120 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIFrameLayout.java:112-121 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIImageView.java:112-121 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UILinearLayout.java:112-121 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UITextView.java:113-122 \u2014 These 5 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIConstraintLayout.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20a6fae2b263b7932dddf485ac553214727dfef4f866b5d7523a20ce1216ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/StatusBar.kt:90-111 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/StatusBar.kt:416-437 \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 \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/StatusBar.kt:90\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/StatusBar.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4aa225703af9875f8b298464ffa6d1b5d527f4d5cede69599b6b90eaebf929"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/core/net/interception/logging/DefaultFormatPrinter.kt:111-131 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/core/net/interception/logging/DefaultFormatPrinter.kt:158-178 \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 \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/core/net/interception/logging/DefaultFormatPrinter.kt:111\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":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/core/net/interception/logging/DefaultFormatPrinter.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ded5d972ff055f5850c11abf13100f29ac964f4b9ace2887fbb5ed2a27a702"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/core/data/FlowRequestDsl.kt:130-145 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/core/data/RequestDsl.kt:111-126 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/core/data/FlowRequestDsl.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"0777d18889196ab604c6f410c5194370b8fed01d9498a6ea207bd871f41316aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/core/data/ResultState.kt:78-92 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/core/data/ResultState.kt:106-120 \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 \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/core/data/ResultState.kt:78\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":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/core/data/ResultState.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a7c145954b30e55f44a13f944924f04ebdea195e83e1beee990399de2d359ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/Cache.kt:66-78 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/Cache.kt:181-193 \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 \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/Cache.kt:66\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/Cache.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"62faab06a196c89afe586fd4ceafd98d192cbfbaf12d7b55c20a055fb711e4f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/util/decoration/DefaultDecoration.kt:231-243 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/util/decoration/DefaultDecoration.kt:520-532 \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":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/util/decoration/DefaultDecoration.kt"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"51d236e58d83b13e44156da257d79948c547e7be71aa0f0a95534e941a2eabbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/StatusBar.kt:128-137 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/StatusBar.kt:458-468 \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 \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/StatusBar.kt:128\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/StatusBar.kt"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"05af0a5480f182cbedb42b49e147af0015263780fe771e44063613cebd4fe171"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt:200-209 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmFragment.kt:219-228 \u2014 before extracting anything, compare \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt\u0060 and \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmFragment.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 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 \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt:200\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cc966991e4520715807ca690e44b7cea48cdfc82b920132882e26d636908a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt:217-226 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmFragment.kt:237-246 \u2014 before extracting anything, compare \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt\u0060 and \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmFragment.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 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 \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt:217\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec423ee56568d300430ee6f9de63c07384afc235f46c9574dcf344a4b9f1ace"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt:234-243 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmFragment.kt:255-264 \u2014 before extracting anything, compare \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt\u0060 and \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmFragment.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 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 \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt:234\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"25fa95072aa19624ff3482619b6c67faa84287ed6315027b37d10b81b88d09f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/ImageConfig.kt:58-66 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/ImageConfig.kt:133-141 \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 \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/ImageConfig.kt:58\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/ImageConfig.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"824532f05b39779869c19efde77ceff95fe0eb6d2e429ac21c77ed74515cb179"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/intent/Bundle.kt:11-18 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/intent/Bundle.kt:31-38 \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 \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/intent/Bundle.kt:11\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":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/intent/Bundle.kt"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39b0a95148010f731b6509bbb78a8773c7292961278da587fbab5d78ef808c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/intent/Bundle.kt:52-59 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/intent/Bundle.kt:72-79 \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 \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/intent/Bundle.kt:52\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/intent/Bundle.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c139fbe1def2979814eec575ae5c59bf247d8934e18104c7491c7dc902e500e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 5): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIAlphaConstraintLayout.kt:18-44 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIAlphaFrameLayout.kt:18-44 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIAlphaImageView.kt:16-42 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIAlphaLinearLayout.kt:14-40 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIAlphaTextView.kt:16-42 \u2014 before extracting anything, compare \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIAlphaConstraintLayout.kt\u0060 and \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIAlphaFrameLayout.kt\u0060 as WHOLE FILES: 90% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIAlphaConstraintLayout.kt"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"db43a532a3cf9984caf199ddaf1ab077897913818d49a354a6c5e7125f1e88d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt:91-96 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmFragment.kt:104-109 \u2014 before extracting anything, compare \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt\u0060 and \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmFragment.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 36 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":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/base/ui/BaseVmActivity.kt"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"336a3a7542cfdbaaea384a66769f7ded3603586c891cd2e115e2c7ceae7f1c88"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/loadsir/callback/HintCallback.java:61-74 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/loadsir/callback/ProgressCallback.java:57-70 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/loadsir/callback/HintCallback.java:61\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":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/loadsir/callback/HintCallback.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9f59218c94a4311d7219c6873ece1e52af9f8436ebf07e78d4d91ad9e5fc0bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIConstraintLayout.java:112-120 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIFrameLayout.java:113-121 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIImageView.java:113-121 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UILinearLayout.java:113-121 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UITextView.java:114-122 \u2014 before extracting anything, compare \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIConstraintLayout.java\u0060 and \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIFrameLayout.java\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIConstraintLayout.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"08db5a024c9d4629ef73171f629263b245714062f12915d9ef1f1307d5ed9daf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java:609-618 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java:625-633 \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 \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java:609\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java"},"region":{"startLine":609}}}],"partialFingerprints":{"codehealthFindingId/v1":"438577bc85352805090723b5982e801bca9f386d80fbe83dd7cf01c578b19a56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIConstraintLayout.java:269-278 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIFrameLayout.java:270-279 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIImageView.java:270-279 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UILinearLayout.java:270-279 | JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UITextView.java:271-280 \u2014 before extracting anything, compare \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIConstraintLayout.java\u0060 and \u0060JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIFrameLayout.java\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/UIConstraintLayout.java"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"23a1401bc2a888be69d344d83745951d9eab48abe690846829198032a142e8c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): app/src/main/java/me/hgj/jetpackmvvm/demo/app/core/util/StatusBarUtil.kt:222-234 | app/src/main/java/me/hgj/jetpackmvvm/demo/app/core/util/StatusBarUtil.kt:324-335 \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/me/hgj/jetpackmvvm/demo/app/core/util/StatusBarUtil.kt"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b22d7286492a180316e2e7745ca6bbf6464de2445439bf01a154c85560bc460"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/src/main/java/me/hgj/jetpackmvvm/demo/ui/activity/LoginActivity.kt:45-55 | app/src/main/java/me/hgj/jetpackmvvm/demo/ui/activity/RegisterActivity.kt:51-61 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/me/hgj/jetpackmvvm/demo/ui/activity/LoginActivity.kt:45\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/me/hgj/jetpackmvvm/demo/ui/activity/LoginActivity.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa9b4f6ef6b3429ab8d58bb1d63c43fc73945651c655beb6c66eb201a70c24d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/src/main/java/me/hgj/jetpackmvvm/demo/ui/activity/TestListActivity.kt:41-49 | app/src/main/java/me/hgj/jetpackmvvm/demo/ui/fragment/integral/IntegralHistoryFragment.kt:40-48 \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/me/hgj/jetpackmvvm/demo/ui/activity/TestListActivity.kt:41\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/me/hgj/jetpackmvvm/demo/ui/activity/TestListActivity.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46aacc97503c5a102c650221f5468d0136ed7e405316ee62fe28af616fd3673"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/src/main/java/me/hgj/jetpackmvvm/demo/ui/activity/TestListActivity.kt:51-56 | app/src/main/java/me/hgj/jetpackmvvm/demo/ui/fragment/integral/IntegralHistoryFragment.kt:50-55 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/me/hgj/jetpackmvvm/demo/ui/activity/TestListActivity.kt:51\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/me/hgj/jetpackmvvm/demo/ui/activity/TestListActivity.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a839fd0e59f06f03d663289dffefea3bde29b732c56a96e306e73031355d8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/src/main/java/me/hgj/jetpackmvvm/demo/ui/fragment/project/ProjectFragment.kt:35-41 | app/src/main/java/me/hgj/jetpackmvvm/demo/ui/fragment/publicNumber/PublicNumberFragment.kt:36-42 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/src/main/java/me/hgj/jetpackmvvm/demo/ui/fragment/project/ProjectFragment.kt:43\u0060 calls \u0060getLoadingView\u0060 and \u0060app/src/main/java/me/hgj/jetpackmvvm/demo/ui/fragment/publicNumber/PublicNumberFragment.kt:44\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/me/hgj/jetpackmvvm/demo/ui/fragment/project/ProjectFragment.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f02530e7d6cec2cfd7f8026a0c24ef1e44fb2d7dee703c98e632ee072a561af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/src/main/java/me/hgj/jetpackmvvm/demo/app/core/util/PolicyUtil.kt:43-55 | app/src/main/java/me/hgj/jetpackmvvm/demo/ui/activity/LoginActivity.kt:48-54 | app/src/main/java/me/hgj/jetpackmvvm/demo/ui/activity/RegisterActivity.kt:54-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/src/main/java/me/hgj/jetpackmvvm/demo/app/core/util/PolicyUtil.kt:43\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/me/hgj/jetpackmvvm/demo/app/core/util/PolicyUtil.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"781c12c09b5fc4fdcbf3140654eac57a1297b7f21b329f85c5e1384448989d6c"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: :JetpackMvvm: :JetpackMvvm: abstractness 0.15, instability 0.00, distance 0.85 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8a0c0ec0bf08c68a24aeb971aae8b5d5b9574327a4e9cbfd42c655f54ab1d65d"}},{"ruleId":"D13","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"22fd249b4eedd436d77d911936248816d73962b0a60f5a7236fd09ba1cf6b66d"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Split JetpackMvvm: A 6k-LoC project whose namespaces are all unrelated MVVM utilities (ext/util/intent, core/net/interception/logging, widget/state), so it is large and sprawls across many unrelated areas. Suggested: JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/ext/util/intent"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"213740b0114977fc5519609795806e6d63d4a7a0f117ae00be30e78d18a3fa2f"}},{"ruleId":"D26","level":"note","message":{"text":"Split app: A 6k-LoC demo project whose namespaces are all unrelated MVVM components (data/model/entity, app/core/net/retrofit, ui/fragment/publicNumber), so it is large and sprawls across many unrelated areas. Suggested: JetpackMvvm/demo/app/core/net/retrofit"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"31354d90eb7f071639ba192ce76db15af8e7f762f00dee19e79fda38e6d40840"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dd60a7eaf42394dd0f0719a421b060dbd7ce65277f88adcc3ba05f38a0975b02"},"taxa":[{"id":"CWE-321","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6c3f41d996b8cebfbe3783806064fe296e9f8c5e7e755fec56a5b9ff0c00cec4"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D34","level":"note","message":{"text":"Dormant codebase: 78 of 81 significant files have no living knowledge \u2014 the codebase as a whole is dormant, not 78 separate risks. Counted over 81 of the 204 production source files in this repository: the rest are under the ~2,400-byte size floor this dimension measures over. Re-engage owners or document before change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4c69f1e54b7dd6fe9029dd02df6ba8f8145b789f2f18dbdaa086c40ded49dba6"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/alpha/QMUILayoutHelper.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bebf825abc4d551f53fa9eda4aca4b4b2333d162887d2c7c5ec56c28270f28e"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"JetpackMvvm/src/main/java/me/hgj/jetpackmvvm/widget/shadowlayout/ShadowLayout.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d2567fb57d7744343c98951c6e7ee2d1a45c65ab1bd58e846e1e7c6b694df4"}},{"ruleId":"D34","level":"note","message":{"text":"Most significant orphaned file: One of the orphaned files carrying the most lost knowledge \u2014 ranked by size weighted by the file\u0027s role in the codebase, the same weighting behind the score above, so core code outranks equally large plumbing. A reasonable place to start a read-through before the aggregate risk above bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/src/main/java/me/hgj/jetpackmvvm/demo/app/core/util/StatusBarUtil.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c782fe9c591590d3c43edcfaf8dd36b403796d2b963cafad9f46a257b5f8a81"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (or \u0060semgrep --config=auto\u0060, which runs on any language) \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}}],"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-321","guid":"0ce564a5-a44c-3358-b3db-317712e6e019","name":"CWE-321","shortDescription":{"text":"CWE-321"},"helpUri":"https://cwe.mitre.org/data/definitions/321.html"},{"id":"CWE-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"CWE-502","shortDescription":{"text":"CWE-502"},"helpUri":"https://cwe.mitre.org/data/definitions/502.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":3,"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."]}]}