{"$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":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"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":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"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":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"VisibilityMountExtension.processVisibilityOutputsNonInc (cyclomatic 82): VisibilityMountExtension.processVisibilityOutputsNonInc has cyclomatic complexity 82 (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":"litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"557b211e1bba0ffd215cb59fece044050448da85bd79a4979f84bb6dc5dda740"}},{"ruleId":"D1","level":"warning","message":{"text":"NodeInfo.copyInto (cyclomatic 55): NodeInfo.copyInto has cyclomatic complexity 55 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/NodeInfo.kt"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e768ebea9757677c65abeec6eacd67aa71d466c85518a62c1c546a061e8883"}},{"ruleId":"D1","level":"warning","message":{"text":"RenderUnit.updateBindersBitmask (cyclomatic 53): RenderUnit.updateBindersBitmask has cyclomatic complexity 53 (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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"984cf8f09e530ba55c6ebbcb361422bc415c93b06ac9e2d9eeae44ce82fc75f7"}},{"ruleId":"D1","level":"warning","message":{"text":"RCRecyclerView.dispatchKeyEvent (cyclomatic 51): RCRecyclerView.dispatchKeyEvent has cyclomatic complexity 51 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/RCRecyclerView.java"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"66d5ba84a7cd4a92d12477bcc613f13a6af0faf9dc671f18bb14b8c49de4a4e4"}},{"ruleId":"D1","level":"warning","message":{"text":"RenderUnit.updateBindersWithLists (cyclomatic 49): RenderUnit.updateBindersWithLists has cyclomatic complexity 49 (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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"51a3c21e4555bede3415428977df38728923509f3ae1cd63d036a1fc157f7e53"}},{"ruleId":"D1","level":"warning","message":{"text":"MeasureListUtils.measureListSizeV2 (cyclomatic 47): MeasureListUtils.measureListSizeV2 has cyclomatic complexity 47 (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":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a848214ff1ad779f3c31247071acf3148bddda3551594951fa46db53a6c132c"}},{"ruleId":"D1","level":"warning","message":{"text":"DefaultLayoutProps.copyInto (cyclomatic 45): DefaultLayoutProps.copyInto has cyclomatic complexity 45 (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":"litho-core/src/main/java/com/facebook/litho/CommonProps.kt"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e12af8e3d3638e96d2e09afeb37de563b24e5ad6d69c57ecdb9e9de57bb560f"}},{"ruleId":"D1","level":"warning","message":{"text":"MeasureListUtils.measureListSize (cyclomatic 45): MeasureListUtils.measureListSize has cyclomatic complexity 45 (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":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cf1987415675f765867c1de8f34b380d9d19e5dcab56e1f63d58ba69f81b2ed"}},{"ruleId":"D1","level":"warning","message":{"text":"BinderMigratedViewAttributes.equals (cyclomatic 39): BinderMigratedViewAttributes.equals has cyclomatic complexity 39 (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":"litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"f25223bb43843b1d1ceb5212cae354e1bf26d852075bbdabee39e95d383d27be"}},{"ruleId":"D1","level":"warning","message":{"text":"LithoReducer.collectResults (cyclomatic 38): LithoReducer.collectResults has cyclomatic complexity 38 (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":"litho-core/src/main/java/com/facebook/litho/LithoReducer.kt"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e676512a04a433cfc44c32048a788bf48348fd2140021227a4a80f7792c0645"}},{"ruleId":"D1","level":"warning","message":{"text":"RCTextView.handleSelectionMovementKey (cyclomatic 38): RCTextView.handleSelectionMovementKey has cyclomatic complexity 38 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf9af6bb1a8427109d02fa7577a971ff38650abfa7540f3159c01e44a119a31"}},{"ruleId":"D1","level":"warning","message":{"text":"ObjectStyleItem.applyCommonProps (cyclomatic 37): ObjectStyleItem.applyCommonProps has cyclomatic complexity 37 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/view/ViewStyles.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"317f6a016922156a8545ef1a091f9426dc6c76ca6a31273eee59bfbbf4507678"}},{"ruleId":"D1","level":"warning","message":{"text":"TextMeasurementUtils.layout (cyclomatic 37): TextMeasurementUtils.layout 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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextMeasurementUtils.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38683ac1e3ed174f1ea6c66120d437321199c8a1d803265587adf1985005304"}},{"ruleId":"D1","level":"warning","message":{"text":"LithoYogaLayoutFunction.applyRootSizeConstraints (cyclomatic 35): LithoYogaLayoutFunction.applyRootSizeConstraints has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a108b603d71de243cdf4c6d72b5a7ffee3c78111037fd8cad36083525c27675"}},{"ruleId":"D1","level":"warning","message":{"text":"NodeInfo.isEquivalentTo (cyclomatic 35): NodeInfo.isEquivalentTo has cyclomatic complexity 35 (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":"litho-core/src/main/java/com/facebook/litho/NodeInfo.kt"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb35ca551345939bf4a27d9bd543b9029f943c8248c137cea0836cc9f0bd584f"}},{"ruleId":"D1","level":"warning","message":{"text":"BinderMigratedNodeInfo.equals (cyclomatic 34): BinderMigratedNodeInfo.equals has cyclomatic complexity 34 (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":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"b33dc458150e81b8dbc73b3f0afbdfa4bdc18320b3d6671d464144d1138682d3"}},{"ruleId":"D1","level":"warning","message":{"text":"TextStylesHelper.resolveStyleAttrsForTypedArray (cyclomatic 34): TextStylesHelper.resolveStyleAttrsForTypedArray has cyclomatic complexity 34 (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":"litho-widget/src/main/java/com/facebook/litho/widget/TextStylesHelper.kt"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb420e6c8ada4c607f0d6ecea7ad1788354566ad97b520b85173b5cb5d2ccfde"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentUtils.isEquivalentUtil (cyclomatic 33): ComponentUtils.isEquivalentUtil 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":"litho-core/src/main/java/com/facebook/litho/ComponentUtils.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"969fcb7447340fdf91abf74ba2756c8a608c9bd141688cb03f320435de96bfc3"}},{"ruleId":"D1","level":"warning","message":{"text":"LazyCollection.render (cyclomatic 33): LazyCollection.render 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":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyCollection.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"caae306fc192eaf177b7fcb84f9b471a884cab80426a926686194649fd43ca87"}},{"ruleId":"D1","level":"warning","message":{"text":"TextStylesAttributeHelper.resolveStyleAttrsForTypedArray (cyclomatic 33): TextStylesAttributeHelper.resolveStyleAttrsForTypedArray 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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextStylesAttributeHelper.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"2df31bbec84d083c79396de84fa29f0df7194207c231fecb6f0585b18bb3d67d"}},{"ruleId":"D1","level":"warning","message":{"text":"SectionTree.applyNewChangeSet (cyclomatic 33): SectionTree.applyNewChangeSet 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":"litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b2a23d40d29648e613636ec063ca581fd0d1901cb0a063ef6a21b36ddd05e4"}},{"ruleId":"D1","level":"warning","message":{"text":"IncrementalMountExtension.performIncrementalMount (cyclomatic 32): IncrementalMountExtension.performIncrementalMount 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":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f601bf9c6265a2543109ee1a14b0d00d8339ce4037e25ef809753b937c27774"}},{"ruleId":"D1","level":"warning","message":{"text":"TextMeasurementUtils.createTextLayout (cyclomatic 32): TextMeasurementUtils.createTextLayout 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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextMeasurementUtils.java"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"615fb593bb472680bb8e3205352b854349d4f8747e882f9a4d3129ed2f789de0"}},{"ruleId":"D1","level":"warning","message":{"text":"LithoYogaLayoutFunction.onBoundsDefined (cyclomatic 31): LithoYogaLayoutFunction.onBoundsDefined has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"d868330cf61221f75347a2d83bbf4dde7cd23bc87ff208c3e4c01c7cfed46413"}},{"ruleId":"D1","level":"warning","message":{"text":"RCTextStyleHelper.resolveStyleAttrsForTypedArray (cyclomatic 31): RCTextStyleHelper.resolveStyleAttrsForTypedArray 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":"litho-widget/src/main/java/com/facebook/litho/widget/RCTextStyleHelper.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4f9c9f796ca7f3592caf1cf5bf90cd204bf6daa2762db12cd72919174cfbb31"}},{"ruleId":"D1","level":"warning","message":{"text":"RCTextView.onTouchEvent (cyclomatic 31): RCTextView.onTouchEvent has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d823ed2d3d26465ab5eb3354f35ae4ccde5bf3032a34a84938bd17d8895c8b"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentAccessibilityDelegate.onInitializeAccessibilityNodeInfo (cyclomatic 30): ComponentAccessibilityDelegate.onInitializeAccessibilityNodeInfo has cyclomatic complexity 30 (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":"litho-core/src/main/java/com/facebook/litho/ComponentAccessibilityDelegate.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b658370df15a481c7e26823fc2ac454034186a9a27eae48ca59e54efbb2183e"}},{"ruleId":"D1","level":"warning","message":{"text":"OptimizedContextualEffectHandler.updateEffects (cyclomatic 30): OptimizedContextualEffectHandler.updateEffects has cyclomatic complexity 30 (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":"litho-core/src/main/java/com/facebook/litho/effects/OptimizedContextualEffectHandler.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb9f8243bbfcf2ef3e4515a6b33437fdb3e6db3a6251d20b5052c49a20bc7c1"}},{"ruleId":"D1","level":"warning","message":{"text":"PropValidation.validate (cyclomatic 30): PropValidation.validate has cyclomatic complexity 30 (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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/PropValidation.java"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"80bbddc02fa8442a9dd7c15de431991ded6cc2ab3193c181e7577be20aeef443"}},{"ruleId":"D1","level":"warning","message":{"text":"TreeFuture.runAndGet (cyclomatic 29): TreeFuture.runAndGet 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":"litho-core/src/main/java/com/facebook/litho/TreeFuture.kt"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"134117011189bfa5e88c11337d2c79639dc220e089e0c60d54796e1071cb0139"}},{"ruleId":"D1","level":"warning","message":{"text":"DelegateMethodGenerator.generateDelegate (cyclomatic 29): DelegateMethodGenerator.generateDelegate 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/DelegateMethodGenerator.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b50cdfdf3bfe5af78dfd48f1b1b3621020753820c0f4d31ffe7b1ad170f67ce"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentTree.setRootAndSizeSpecInternal (cyclomatic 28): ComponentTree.setRootAndSizeSpecInternal has cyclomatic complexity 28 (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":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"d02a5c3e158e8c965988f55e385abab96878a50e57e6e221e2f65a698a83adf3"}},{"ruleId":"D1","level":"warning","message":{"text":"TestLayoutState.create (cyclomatic 28): TestLayoutState.create 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":"litho-core/src/main/java/com/facebook/litho/TestLayoutState.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"026f012d313ee31dc0d3ea1bd1e7c87edf3c98ce8662dee0ceb478b86fd9d226"}},{"ruleId":"D1","level":"warning","message":{"text":"RCTextView.mount (cyclomatic 28): RCTextView.mount 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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc126601732042711ddc87443c04ca2a06547452a1b8ac2dd56da7875c0d6a93"}},{"ruleId":"D1","level":"warning","message":{"text":"DynamicPropsManager.resetDynamicValues (cyclomatic 27): DynamicPropsManager.resetDynamicValues has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/DynamicPropsManager.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"5128a933855d717593496c9946360ae397ba26275e533c8c1cc8cf0ba5731ac5"}},{"ruleId":"D1","level":"warning","message":{"text":"SpecModelImpl.getStateValues (cyclomatic 27): SpecModelImpl.getStateValues has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"2560d5a7c7efef593898a83bd3d84fafee98f156c9ca1f62a3a9de147e11d5aa"}},{"ruleId":"D1","level":"warning","message":{"text":"RCTextView.onKeyDown (cyclomatic 27): RCTextView.onKeyDown has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c36b1cec22f145a154c66e36e37d8c7ead78873a2bca3ff83aad47866fe058"}},{"ruleId":"D1","level":"warning","message":{"text":"ChangeSetState.generateChangeSetRecursive (cyclomatic 27): ChangeSetState.generateChangeSetRecursive has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/ChangeSetState.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c635a1959af0da42518875cfd4c07451e5c7a3fc8e4b2bea6eb5b0cebc965230"}},{"ruleId":"D1","level":"warning","message":{"text":"DelegateMethodGenerator.getDelegationCode (cyclomatic 26): DelegateMethodGenerator.getDelegationCode has cyclomatic complexity 26 (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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/DelegateMethodGenerator.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"367672afaacd77c5ad8e9a6e4b2d100d0e3f59118cd9f28b42bfd413d844f960"}},{"ruleId":"D1","level":"warning","message":{"text":"SpecModelImpl.getInterStageInputs (cyclomatic 26): SpecModelImpl.getInterStageInputs has cyclomatic complexity 26 (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 shape REPEATS in the file: one other method here (SpecModelImpl.getLayoutInterStageInputs) 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"2478da27a3f4af795486a9066e6e718db786c8a38ee745337dc7b70f229c821e"}},{"ruleId":"D1","level":"warning","message":{"text":"SpecModelImpl.getLayoutInterStageInputs (cyclomatic 26): SpecModelImpl.getLayoutInterStageInputs has cyclomatic complexity 26 (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 shape REPEATS in the file: one other method here (SpecModelImpl.getInterStageInputs) 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f178849794b6267d04b550ecefd6f18455640943d05a56d658cd54fe7583063"}},{"ruleId":"D1","level":"warning","message":{"text":"SpecModelImpl.getRawPropsWithoutDiffProps (cyclomatic 26): SpecModelImpl.getRawPropsWithoutDiffProps has cyclomatic complexity 26 (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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"263146e5b8d468f984cdeab6bf35749b1dc5a81dda38d70a8386cea5e52249c4"}},{"ruleId":"D1","level":"warning","message":{"text":"OtherProps.copyInto (cyclomatic 25): OtherProps.copyInto has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/CommonProps.kt"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20a356c1b39f1be6332aa03d8be064d4bf3093ec6ef78f2c0cd9a8823bd25f6"}},{"ruleId":"D1","level":"warning","message":{"text":"LithoNode.needsHostView (cyclomatic 25): LithoNode.needsHostView 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":"litho-core/src/main/java/com/facebook/litho/LithoNode.kt"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f29ef024c5d9aefac02c0e7bbc664e93e0fb20eba9327446bb8cb194ce4da41"}},{"ruleId":"D1","level":"warning","message":{"text":"LithoYogaLayoutFunction.buildYogaTree (cyclomatic 25): LithoYogaLayoutFunction.buildYogaTree has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9253d584be096ef13592009912b19e74b65924d74fd22e78df82083fc643d3f"}},{"ruleId":"D1","level":"warning","message":{"text":"TransitionManager.maybeCreateAnimation (cyclomatic 25): TransitionManager.maybeCreateAnimation 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":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb252e8df6f9a7607005f34bcbf89697e46bdedef0b65568f9d8cdc501f28356"}},{"ruleId":"D1","level":"warning","message":{"text":"RecyclerBinder.measure (cyclomatic 25): RecyclerBinder.measure 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":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e74a3f3f0a52088747c6f31fcb97871ee20a50f01287da683ba532f1a44f27"}},{"ruleId":"D1","level":"warning","message":{"text":"PropValidation.validateResType (cyclomatic 25): PropValidation.validateResType 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/PropValidation.java"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd488a9d82d69c80f987bbcc01a4bd0162329fed91c35d3815c8fab8e7ac6ee7"}},{"ruleId":"D1","level":"warning","message":{"text":"SectionTree.createNewTreeAndApplyStateUpdates (cyclomatic 25): SectionTree.createNewTreeAndApplyStateUpdates 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":"litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java"},"region":{"startLine":1770}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b90749c1c8a2f30905028439d56f63f78458b1bf6d2fde0e02317124972c0c"}},{"ruleId":"D1","level":"warning","message":{"text":"Resolver.resolveImpl (cyclomatic 24): Resolver.resolveImpl 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":"litho-core/src/main/java/com/facebook/litho/Resolver.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b8e3cdd7c58904711d561b371c19f1a6063c119a75dbca9c445bb96c0d92364"}},{"ruleId":"D1","level":"warning","message":{"text":"RCSelectionController.onTouchEvent (cyclomatic 24): RCSelectionController.onTouchEvent 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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCSelectionController.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b629593c70a73ed3557a308d989c84062a5d9a80d0f3a90fbb7955b02b392c2"}},{"ruleId":"D1","level":"warning","message":{"text":"SpecModelImpl.getCachedValues (cyclomatic 23): SpecModelImpl.getCachedValues 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. This shape REPEATS in the file: one other method here (SpecModelImpl.getTreeProps) 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f70f684f629ebd78be45be89329cd1171bdf1060ef316d1c6d7554ab87ae87c"}},{"ruleId":"D1","level":"warning","message":{"text":"SpecModelImpl.getTreeProps (cyclomatic 23): SpecModelImpl.getTreeProps 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. This shape REPEATS in the file: one other method here (SpecModelImpl.getCachedValues) 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"76c10bd2daa9e31ea62043220cd5ddbb2681205c1335a6216770fe9313366ada"}},{"ruleId":"D1","level":"warning","message":{"text":"LithoNode.applyLayoutStyleAttributes (cyclomatic 22): LithoNode.applyLayoutStyleAttributes has cyclomatic complexity 22 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoNode.kt"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87e2c2c34a47f6e620b650956240b9c696db70109ca7ff0afa5dcecfc1fbd1b"}},{"ruleId":"D1","level":"warning","message":{"text":"LithoReducer.spliceFromSnapshot (cyclomatic 22): LithoReducer.spliceFromSnapshot has cyclomatic complexity 22 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoReducer.kt"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d5e8edc860e62a37a6cd04276763ec883f24bbe21b31fd84731703fdb7a43f0"}},{"ruleId":"D1","level":"warning","message":{"text":"TestLayoutState.createImmediateLayout (cyclomatic 22): TestLayoutState.createImmediateLayout 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":"litho-core/src/main/java/com/facebook/litho/TestLayoutState.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00281e4729a6f4910c822ab4ccbdfc2ed55783f315cde99ba100a3934741327"}},{"ruleId":"D1","level":"warning","message":{"text":"FlexboxContainerComponent.isEquivalentProps (cyclomatic 22): FlexboxContainerComponent.isEquivalentProps 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":"litho-core/src/main/java/com/facebook/litho/layout/flexbox/FlexboxContainerComponent.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe9cd1b1b15c8d1b5d6ba60e6683127b0d551cde8444d4408164fd1dbdad475"}},{"ruleId":"D1","level":"warning","message":{"text":"MountState.unmountItemRecursively (cyclomatic 22): MountState.unmountItemRecursively has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountState.kt"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"869c192fe3d3ad19fbf6860608e25e9e0402e9960bc15cd13c6bcd0bcecaa887"}},{"ruleId":"D1","level":"warning","message":{"text":"TextDrawable.handleTouchForSpans (cyclomatic 22): TextDrawable.handleTouchForSpans 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":"litho-widget/src/main/java/com/facebook/litho/widget/TextDrawable.kt"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"1578e37de7f18aafa836c215f4bce81da3bc804ce46d449dd141404dd816c004"}},{"ruleId":"D1","level":"warning","message":{"text":"CollectionLayoutFunctionsKt.calculateLayout (cyclomatic 22): CollectionLayoutFunctionsKt.calculateLayout has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionLayoutFunctions.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d0c5aded87a89a42735de23f5e43c825522a04e63e8eb21231d8629c7a25e4"}},{"ruleId":"D1","level":"warning","message":{"text":"BuilderGenerator.generateBuilder (cyclomatic 22): BuilderGenerator.generateBuilder has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2653c452345732cd021a003b60fd46c718d29be1749f7e14552a8a6d68f94ced"}},{"ruleId":"D1","level":"warning","message":{"text":"BuilderGenerator.generatePropsBuilderMethods (cyclomatic 22): BuilderGenerator.generatePropsBuilderMethods has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6747148b5f5b57538b4142857a2414afb8e7bce129b145febc5a8ea6da56094"}},{"ruleId":"D1","level":"warning","message":{"text":"DeferredLithoNode.transferInto (cyclomatic 21): DeferredLithoNode.transferInto has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/DeferredLithoNode.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f6d8565ef929ef80486851fec5afabab0948b7b28761e8f1787a5e03ca02a1e"}},{"ruleId":"D1","level":"warning","message":{"text":"LithoNode.hasViewAttributes (cyclomatic 21): LithoNode.hasViewAttributes has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoNode.kt"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4b59b80b2aefa2d7a28da6c5b9975e54d574d3d4d5bc41218c8a61babebd960"}},{"ruleId":"D1","level":"warning","message":{"text":"SelectableTextView.mount (cyclomatic 21): SelectableTextView.mount has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/SelectableTextView.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc485a12c0d879a12a44a6a4382b162d15bf0b41a273827efbf49e05953f611f"}},{"ruleId":"D1","level":"warning","message":{"text":"ExperimentalTextInputKt.setParams (cyclomatic 21): ExperimentalTextInputKt.setParams has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d85b7e4300e99ac02d1cd4330682ccd651ab76ccf83f3b4a0cd3d8a45d7d55e"}},{"ruleId":"D1","level":"warning","message":{"text":"Component.measure (cyclomatic 21): Component.measure has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Component.java"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f535f55e8a8e694554535a7f6ab4398c67fc9a65cec6f94d0db9ac88eb7485f"}},{"ruleId":"D1","level":"warning","message":{"text":"LithoMountData.getViewAttributeFlags (cyclomatic 20): LithoMountData.getViewAttributeFlags has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoMountData.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28b1b27c0f79d799b3ccd8136ffdf4a962160d377181c745c62fd19eda30ee1"}},{"ruleId":"D1","level":"warning","message":{"text":"RecyclerBinder.computeRange (cyclomatic 20): RecyclerBinder.computeRange 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":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":3175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4040e05639d3db7f2499bab6222896459f7bca6c44d0c1d3a73a84472b27ef5"}},{"ruleId":"D1","level":"warning","message":{"text":"LinearSpacingItemDecoration.getItemOffsets (cyclomatic 20): LinearSpacingItemDecoration.getItemOffsets has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/Spacing.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec5190bc927fa8feec8329e3cf4e8d3282fce01b42d678b749fb7ccc6fe7021b"}},{"ruleId":"D1","level":"warning","message":{"text":"ScrollBarDecoration.onDrawOver (cyclomatic 20): ScrollBarDecoration.onDrawOver has cyclomatic complexity 20 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/ScrollBarDecoration.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b191ea5079816f0c349ef18ae0e13c5f08d78f96794539ee8315c19eefa9db"}},{"ruleId":"D1","level":"warning","message":{"text":"LithoView.onMeasureInternal (cyclomatic 19): LithoView.onMeasureInternal has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoView.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"25a88f5a1241302005f78b77beaa760b99d4dedad112d37516f80fb664034210"}},{"ruleId":"D1","level":"warning","message":{"text":"StyleTransitionPlanner.createPlans (cyclomatic 19): StyleTransitionPlanner.createPlans has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/animation/StyleTransitionManager.kt"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"a58a833bb6a7713e5f266d2fa1eba1b1656701bd39e17bc9f1f49dd9ce5d3b10"}},{"ruleId":"D1","level":"warning","message":{"text":"MeasureUtils.measureWithAspectRatio (cyclomatic 19): MeasureUtils.measureWithAspectRatio has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/utils/MeasureUtils.kt"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a81dcef9930206bf6e7fc064f02eddf74da2ade44cf4f2c6b40df5e152c3af6"}},{"ruleId":"D1","level":"warning","message":{"text":"VisibilityStyleItem.applyCommonProps (cyclomatic 19): VisibilityStyleItem.applyCommonProps has cyclomatic complexity 19 (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":"litho-core/src/main/java/com/facebook/litho/visibility/VisibilityStyles.kt"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16ec58871c6ada9e8b8503cb7318aeaa729fbb5c3ad9cd808dd338b822d8b78"}},{"ruleId":"D1","level":"warning","message":{"text":"CollectionPrimitiveViewLayoutBehavior.layout (cyclomatic 19): CollectionPrimitiveViewLayoutBehavior.layout has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionRecyclerComponent.kt"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a5fa109899a57375c8c13e789c9e24a10a6599135963b09678cf3f5a6162fd3"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentBodyGenerator.getComparableType (cyclomatic 19): ComponentBodyGenerator.getComparableType has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf1075c55b2783bff5863718ca315ebaa17db7b5aca386bf5fa25dfae9b7491"}},{"ruleId":"D1","level":"warning","message":{"text":"BinderMigratedNodeInfo.copyInto (cyclomatic 18): BinderMigratedNodeInfo.copyInto has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (BinderMigratedNodeInfo.copyInto) 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":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b39617c72fe9b0c0cf6d2532d161a826f41c309bfb7577a5810f695b56103ce"}},{"ruleId":"D1","level":"warning","message":{"text":"BinderMigratedNodeInfo.copyInto (cyclomatic 18): BinderMigratedNodeInfo.copyInto has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: one other method here (BinderMigratedNodeInfo.copyInto) 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":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30170259d4839347540eb7aca7a771619f25e1241dc3121b475872a34be8fa2"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentTree.measure (cyclomatic 18): ComponentTree.measure has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb59186c91e8143168ab18c6c5d0c41e1091f6fb7c6ee23f12795aed946b5d93"}},{"ruleId":"D1","level":"warning","message":{"text":"ViewAttributes.unsetViewAttributes (cyclomatic 18): ViewAttributes.unsetViewAttributes has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ViewAttributes.kt"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"625c1df788cda348f66fee5753f90baf5b6569fa159e3cdfba3075269068c816"}},{"ruleId":"D1","level":"warning","message":{"text":"ContextualEffectHandler.updateEffects (cyclomatic 18): ContextualEffectHandler.updateEffects has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/effects/ContextualEffectHandler.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8292d19a001c2cf374e16f627d3f60fcd2ee28561b51bc657d3c7365d840c99"}},{"ruleId":"D1","level":"warning","message":{"text":"IncrementalMountExtension.onVisibleBoundsChanged (cyclomatic 18): IncrementalMountExtension.onVisibleBoundsChanged has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f7d3857d52771bfb9e56b3b493edbf3457cbcb88d61c816f41aa7142de9d71b"}},{"ruleId":"D1","level":"warning","message":{"text":"RenderState.layoutAndMaybeCommitInternal (cyclomatic 18): RenderState.layoutAndMaybeCommitInternal has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderState.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e00c18bf3a7b05d8e1f491665c0147f1384a9794a9d9825e22a56f2e9a4e65"}},{"ruleId":"D1","level":"warning","message":{"text":"SizeUtilsKt.withAspectRatio (cyclomatic 18): SizeUtilsKt.withAspectRatio has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/utils/SizeUtils.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b7dcab9a00b95231e5622803d63c9cef4bd8a02d5161539f214e5af491d024"}},{"ruleId":"D1","level":"warning","message":{"text":"CollectionRecyclerComponentKt.buildCollectionItems (cyclomatic 18): CollectionRecyclerComponentKt.buildCollectionItems has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionRecyclerComponent.kt"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"2352d2f37218b781e22f5bd50cc7e7619c2a90e4ffce748f4ffaff1360ca7168"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentUtils.treeToString (cyclomatic 17): ComponentUtils.treeToString 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":"litho-core/src/main/java/com/facebook/litho/ComponentUtils.kt"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bba3b80ada0d4b70e0db7ed69b4af367f39f1daf9d04cf6294184e8f607e4d7"}},{"ruleId":"D1","level":"warning","message":{"text":"StyleTransitionManager.run (cyclomatic 17): StyleTransitionManager.run 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":"litho-core/src/main/java/com/facebook/litho/animation/StyleTransitionManager.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8475e263a7ae7853fda9bbba1e6ad1c9287938b46c52453dbb052f24a3be1e0"}},{"ruleId":"D1","level":"warning","message":{"text":"PerCornerRoundedRectangleOutlineProvider.setOutline (cyclomatic 17): PerCornerRoundedRectangleOutlineProvider.setOutline has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/view/ViewStyles.kt"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"656eb1957ab320cadcf24ffb11bf9ab92d4f43cc7354a0991288dadc05686e5b"}},{"ruleId":"D1","level":"warning","message":{"text":"CustomSpeedLinearSnapHelper.findTargetSnapPosition (cyclomatic 17): CustomSpeedLinearSnapHelper.findTargetSnapPosition has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/CustomSpeedLinearSnapHelper.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c77fb80500d0e35116b6d30aafd746c29eb469220f37e97f1602d4fab259eb"}},{"ruleId":"D1","level":"warning","message":{"text":"RecyclerBinder.mount (cyclomatic 17): RecyclerBinder.mount has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":2684}}}],"partialFingerprints":{"codehealthFindingId/v1":"a977a9ec3924f1c4b86a15dea8323abe4b6de852a0726148799ff5f9e954ebd3"}},{"ruleId":"D1","level":"warning","message":{"text":"InternalAdapter.onBindViewHolder (cyclomatic 17): InternalAdapter.onBindViewHolder 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":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":3739}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdedcba69d1eca053db752f01e8bacd292bc67a97418baf1b0e6008073db2ca"}},{"ruleId":"D1","level":"warning","message":{"text":"RCTextAccessibilityDelegate.performAccessibilityAction (cyclomatic 17): RCTextAccessibilityDelegate.performAccessibilityAction 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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":2029}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b9f836fa82f05da7a066b4c2e8dc748e917daef22f9b073ca6a3f00051a2ffa"}},{"ruleId":"D1","level":"warning","message":{"text":"BinderMigratedViewAttributes.copyInto (cyclomatic 16): BinderMigratedViewAttributes.copyInto 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":"litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7366f273b4015097a8c3d3d6151b943244e69b3627bc94f03537d07e4382e9f"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentTree.backgroundLayoutStateUpdated (cyclomatic 16): ComponentTree.backgroundLayoutStateUpdated 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":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bee6b8a3f748db4f61eff574944c80c143a8688ad850319b09a0591b5d75052"}},{"ruleId":"D1","level":"warning","message":{"text":"LithoNodeUtils.createRenderUnit (cyclomatic 16): LithoNodeUtils.createRenderUnit 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":"litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"288af446020421bb6c99ca320c0e96d60d1eb5d05e23f4dc5fc0a8920a516021"}},{"ruleId":"D1","level":"warning","message":{"text":"MethodGenerateHandler.fillTemplate (cyclomatic 16): MethodGenerateHandler.fillTemplate 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":"litho-intellij-plugin/src/main/java/com/facebook/litho/intellij/completion/MethodGenerateHandler.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f77e01d0e10123135f7e5e53fb7be216ac4bf542039fdea7c52b74584dc33f6"}},{"ruleId":"D1","level":"warning","message":{"text":"Spring.advance (cyclomatic 16): Spring.advance 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":"litho-rendercore-transitions/src/main/java/com/facebook/litho/dataflow/springs/Spring.kt"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"4847f65dd8aa472cb8b05257467c7ce603f55516b2666a06b087737402745bea"}},{"ruleId":"D1","level":"warning","message":{"text":"ZoomableViewBaseController.onTouch (cyclomatic 16): ZoomableViewBaseController.onTouch 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":"litho-rendercore-zoomable/src/main/java/com/facebook/rendercore/zoomable/ZoomableViewBaseController.kt"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"67032038731af406ea42076c51311f5a2f0ee66f895469b200878ed0929f85ea"}},{"ruleId":"D1","level":"warning","message":{"text":"InputBackgroundComparator.equals (cyclomatic 16): InputBackgroundComparator.equals 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":"litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt"},"region":{"startLine":1889}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4420117df289d3fca22339c5fa7d2d88634e09a1baa03fb02f75e0f26b3f60"}},{"ruleId":"D1","level":"warning","message":{"text":"RecyclerBinder.applyReadyBatchesWithRetry (cyclomatic 16): RecyclerBinder.applyReadyBatchesWithRetry 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":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b3f4884304f4546c6fdccd753dde36f7b3ee6dceb7b9c9f9a5ac58529d059a"}},{"ruleId":"D1","level":"warning","message":{"text":"OverlayZoomController.onTouch (cyclomatic 16): OverlayZoomController.onTouch has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-zoomable/src/main/kotlin/com/facebook/litho/widget/zoomable/OverlayZoomController.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"174e67dca4dde98e6215757489ac4c72ba7aa17f2644a68a183d916db2231b51"}},{"ruleId":"D1","level":"warning","message":{"text":"CanvasStroke.equals (cyclomatic 16): CanvasStroke.equals 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":"litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/CanvasModel.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce32abfd8ac14921e7c5799ca126a81de7fbc84c568f3bb56ddaaab7e80fc99"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentBodyGenerator.generateMakeShallowCopy (cyclomatic 16): ComponentBodyGenerator.generateMakeShallowCopy 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. This is NOT this file\u0027s highest cyclomatic complexity: ComponentBodyGenerator.getCompareStatement (cyclomatic 17) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e47b9fb4386bead102da42121ad6c4ac2f3c877e73f507034d5f9a04e22f8e5"}},{"ruleId":"D1","level":"warning","message":{"text":"ComponentBodyGenerator.getImplAccessorFromContainer (cyclomatic 16): ComponentBodyGenerator.getImplAccessorFromContainer 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. This is NOT this file\u0027s highest cyclomatic complexity: ComponentBodyGenerator.getCompareStatement (cyclomatic 17) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d6d15932c4f8262624d30b94ddd76aa35970809c1d7834f3e1f6aed29e622c"}},{"ruleId":"D1","level":"warning","message":{"text":"EventValidation.validateOnEventMethods (cyclomatic 16): EventValidation.validateOnEventMethods 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d15b78f5c488a16f0bc0a4b890c44b74db3435f9aa97d140a6631639f240ad42"}},{"ruleId":"D1","level":"warning","message":{"text":"Builder.initFieldsIfNecessary (cyclomatic 16): Builder.initFieldsIfNecessary 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":1273}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce40b24758798dbd10c9e1d97010c6ade7fde288e4f73eca8333f650ec4361e"}},{"ruleId":"D1","level":"warning","message":{"text":"SectionTree.applyChangeSetsToTargetUnchecked (cyclomatic 16): SectionTree.applyChangeSetsToTargetUnchecked has cyclomatic complexity 16 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java"},"region":{"startLine":1596}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ff8a32be41e8b1953b2498567e8b4d7140397860c28a8fab09ee6255d910b6"}},{"ruleId":"D1","level":"warning","message":{"text":"1.matches (cyclomatic 16): 1.matches 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":"litho-testing/src/main/java/com/facebook/litho/BaseMatcherBuilder.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b651ddfbf7470973fb25e903b91588a363702af6285a69307d92822643e669c6"}},{"ruleId":"D2","level":"warning","message":{"text":"VisibilityMountExtension.processVisibilityOutputsNonInc (cognitive 295): VisibilityMountExtension.processVisibilityOutputsNonInc has cognitive complexity 295 (threshold 15). Drivers by points: if/else 72 (276 pts), boolean chains 17, loops 1 (2 pts) (nesting depth added 205). 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":"litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2afb9033a6b837f2f9614b06e774eba5eb02aec6f1243650bbdf66047363415"}},{"ruleId":"D2","level":"warning","message":{"text":"RCRecyclerView.dispatchKeyEvent (cognitive 126): RCRecyclerView.dispatchKeyEvent has cognitive complexity 126 (threshold 15). Drivers by points: if/else 29 (63 pts), ternaries 8 (40 pts), match/switch 4 (12 pts), boolean chains 11 (nesting depth added 74). 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":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/RCRecyclerView.java"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"62d30d5ff50b363855af4d66b0416f8f10ab0dbe2e4f5b5eb0fd4cf021145f24"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderUnit.updateBindersBitmask (cognitive 110): RenderUnit.updateBindersBitmask has cognitive complexity 110 (threshold 15). Drivers by points: if/else 42 (95 pts), loops 6 (9 pts), boolean chains 5, error handling 1 (nesting depth added 56). 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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6ce381e4cdb5e8e8e9c2cdfdc23c67bc4ed016ff82470c3964ecc153a92524"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderUnit.updateBindersWithLists (cognitive 91): RenderUnit.updateBindersWithLists has cognitive complexity 91 (threshold 15). Drivers by points: if/else 38 (76 pts), loops 6 (9 pts), boolean chains 5, error handling 1 (nesting depth added 41). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d737cb9eda433017869393187632856113b1eab81a165227e478e965f643503"}},{"ruleId":"D2","level":"warning","message":{"text":"MeasureListUtils.measureListSizeV2 (cognitive 82): MeasureListUtils.measureListSizeV2 has cognitive complexity 82 (threshold 15). Drivers by points: ternaries 20 (37 pts), if/else 22 (35 pts), boolean chains 9, loops 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e35d39e09ef4d04902e2944ac85e9959a5135cdcff46a9eaf3b4594857712c"}},{"ruleId":"D2","level":"warning","message":{"text":"MeasureListUtils.measureListSize (cognitive 72): MeasureListUtils.measureListSize has cognitive complexity 72 (threshold 15). Drivers by points: if/else 20 (31 pts), ternaries 18 (31 pts), boolean chains 9, loops 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"4459d580afd69f6e139d084b42d05e023a1bf1fa4ec0c28e104b33b51808ef2b"}},{"ruleId":"D2","level":"warning","message":{"text":"TextMeasurementUtils.layout (cognitive 71): TextMeasurementUtils.layout has cognitive complexity 71 (threshold 15). Drivers by points: if/else 23 (48 pts), loops 3 (9 pts), boolean chains 8, ternaries 1 (5 pts), match/switch 1 (nesting depth added 35). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextMeasurementUtils.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ea1491aa1792572a6186dc0c9521ce5bd17bf00c56ab9dbd65abd84a8f3a79"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoYogaLayoutFunction.applyRootSizeConstraints (cognitive 68): LithoYogaLayoutFunction.applyRootSizeConstraints has cognitive complexity 68 (threshold 15). Drivers by points: if/else 32 (54 pts), match/switch 6 (12 pts), boolean chains 2 (nesting depth added 28). 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":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"00910e9991bed3e26d51771d7e17fffa8e6c988eb9f3bc8334125983eccbfbd1"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultLayoutProps.copyInto (cognitive 63): DefaultLayoutProps.copyInto has cognitive complexity 63 (threshold 15). Drivers by points: if/else 37 (50 pts), loops 7 (13 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/CommonProps.kt"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32275652833a19d3b342143497a3f6d293fba2b1f7a1d9a95e1419dea316b26"}},{"ruleId":"D2","level":"warning","message":{"text":"IncrementalMountExtension.performIncrementalMount (cognitive 63): IncrementalMountExtension.performIncrementalMount has cognitive complexity 63 (threshold 15). Drivers by points: if/else 17 (45 pts), boolean chains 10, loops 4 (8 pts) (nesting depth added 32). 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":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt"},"region":{"startLine":1739}}}],"partialFingerprints":{"codehealthFindingId/v1":"8989b636d6718c13876a5cca5e67cde7994182042d70de0d7c3209ae819aa5f2"}},{"ruleId":"D2","level":"warning","message":{"text":"LinearSpacingItemDecoration.getItemOffsets (cognitive 62): LinearSpacingItemDecoration.getItemOffsets has cognitive complexity 62 (threshold 15). Drivers by points: if/else 34 (61 pts), boolean chains 1 (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":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/Spacing.kt"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7347683393673025d7b4e64cca0dbe799b2ed6cf1bf1e462f252a695002260d"}},{"ruleId":"D2","level":"warning","message":{"text":"RCTextView.handleSelectionMovementKey (cognitive 61): RCTextView.handleSelectionMovementKey has cognitive complexity 61 (threshold 15). Drivers by points: ternaries 12 (36 pts), if/else 15 (22 pts), boolean chains 2, match/switch 1 (nesting depth added 31). 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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":1049}}}],"partialFingerprints":{"codehealthFindingId/v1":"786bcd5f8bb7d05fbd85d348525f2a46fef6f06b4a2cccb42b508ee7a42ca958"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoReducer.collectResults (cognitive 59): LithoReducer.collectResults has cognitive complexity 59 (threshold 15). Drivers by points: if/else 34 (41 pts), boolean chains 11, loops 2 (5 pts), error handling 1 (2 pts) (nesting depth added 11). 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":"litho-core/src/main/java/com/facebook/litho/LithoReducer.kt"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35a9e4d267643abe130bb3c8728bc1f3950016f2e62f05e12a1356e02ebf067"}},{"ruleId":"D2","level":"warning","message":{"text":"PropValidation.validate (cognitive 58): PropValidation.validate has cognitive complexity 58 (threshold 15). Drivers by points: if/else 17 (41 pts), loops 6 (10 pts), boolean chains 7 (nesting depth added 28). 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/PropValidation.java"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"610eb4f8127b38ea8ff073350f71e0247824e9f352335ee9853f267ce9bd6152"}},{"ruleId":"D2","level":"warning","message":{"text":"LazyCollection.render (cognitive 57): LazyCollection.render has cognitive complexity 57 (threshold 15). Drivers by points: if/else 32 (48 pts), boolean chains 7, match/switch 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyCollection.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"1abb25b1cb3c2de90311079e1b56ae96ac0ea3d302f0fc2b55e437cd055b7f33"}},{"ruleId":"D2","level":"warning","message":{"text":"SpecModelImpl.getStateValues (cognitive 56): SpecModelImpl.getStateValues has cognitive complexity 56 (threshold 15). Drivers by points: if/else 11 (31 pts), loops 14 (24 pts), boolean chains 1 (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":648}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dea3e9685848cda6b923e6b3561c7117c4e5847254794b1827fd05262454554"}},{"ruleId":"D2","level":"warning","message":{"text":"SpecModelImpl.getInterStageInputs (cognitive 55): SpecModelImpl.getInterStageInputs has cognitive complexity 55 (threshold 15). Drivers by points: if/else 11 (31 pts), loops 14 (24 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SpecModelImpl.getLayoutInterStageInputs) 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"adfa1fd84bd7ed323d23dd5ec1da65f839e2300d80d9124dc881cf4558c72131"}},{"ruleId":"D2","level":"warning","message":{"text":"SpecModelImpl.getLayoutInterStageInputs (cognitive 55): SpecModelImpl.getLayoutInterStageInputs has cognitive complexity 55 (threshold 15). Drivers by points: if/else 11 (31 pts), loops 14 (24 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: one other method here (SpecModelImpl.getInterStageInputs) 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"e05414aa62fb0449bd1b55e40dd15b133c4c927370c10b83732747b8844100f9"}},{"ruleId":"D2","level":"warning","message":{"text":"SpecModelImpl.getRawPropsWithoutDiffProps (cognitive 55): SpecModelImpl.getRawPropsWithoutDiffProps has cognitive complexity 55 (threshold 15). Drivers by points: if/else 11 (31 pts), loops 14 (24 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":510}}}],"partialFingerprints":{"codehealthFindingId/v1":"969872c77227bcbbe0cd0eeb76e1eccc6b05aa5cbbc5ba0c73f6d5208f18c1ad"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeInfo.copyInto (cognitive 54): NodeInfo.copyInto has cognitive complexity 54 (threshold 15). Drivers by points: if/else 54. 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":"litho-core/src/main/java/com/facebook/litho/NodeInfo.kt"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"723aae7ca776d1979216a42e96f60acf6f01885b9c51a55b5500d323b19e7b3a"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegateMethodGenerator.generateDelegate (cognitive 54): DelegateMethodGenerator.generateDelegate has cognitive complexity 54 (threshold 15). Drivers by points: if/else 15 (24 pts), loops 6 (14 pts), ternaries 3 (9 pts), boolean chains 7 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/DelegateMethodGenerator.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"bda59ff6d0eb2607be3127dcbe1818f799258eec08a61d9edb705e55777aea4d"}},{"ruleId":"D2","level":"warning","message":{"text":"SectionTree.applyNewChangeSet (cognitive 50): SectionTree.applyNewChangeSet has cognitive complexity 50 (threshold 15). Drivers by points: if/else 22 (35 pts), boolean chains 6, ternaries 3 (5 pts), loops 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java"},"region":{"startLine":1119}}}],"partialFingerprints":{"codehealthFindingId/v1":"18b46a2dcd46b8fbb2da440b64409d90baf98f64385ed05449c68f733d1b01c6"}},{"ruleId":"D2","level":"warning","message":{"text":"SpecModelImpl.getCachedValues (cognitive 49): SpecModelImpl.getCachedValues has cognitive complexity 49 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 12 (21 pts) (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. This shape REPEATS in the file: one other method here (SpecModelImpl.getTreeProps) 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"f815970943313deff343e0f0925b04eae9a2eaee37b6ffa0a5190a9fd6c97015"}},{"ruleId":"D2","level":"warning","message":{"text":"SpecModelImpl.getTreeProps (cognitive 49): SpecModelImpl.getTreeProps has cognitive complexity 49 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 12 (21 pts) (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. This shape REPEATS in the file: one other method here (SpecModelImpl.getCachedValues) 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ad9b809adc91754e6a8d8b49676947f1e3eecdf2310b3d0d038b4d2253b692a"}},{"ruleId":"D2","level":"warning","message":{"text":"ScrollBarDecoration.onDrawOver (cognitive 49): ScrollBarDecoration.onDrawOver has cognitive complexity 49 (threshold 15). Drivers by points: if/else 20 (47 pts), boolean chains 2 (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":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/ScrollBarDecoration.java"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81ca28d1ab35925d16f65c32a9f3bc12214d4f136b2424900694bc08c4e6f36"}},{"ruleId":"D2","level":"warning","message":{"text":"RCTextView.mount (cognitive 49): RCTextView.mount has cognitive complexity 49 (threshold 15). Drivers by points: if/else 24 (34 pts), ternaries 3 (9 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28ca1ee0e1ba07d9b9d4485d2a807b2aee9d5556164798a1c12aef273e28a8f"}},{"ruleId":"D2","level":"warning","message":{"text":"ChangeSetState.generateChangeSetRecursive (cognitive 49): ChangeSetState.generateChangeSetRecursive has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (25 pts), loops 5 (12 pts), ternaries 3 (7 pts), boolean chains 5 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/ChangeSetState.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d75d08d04682f51b18b346145eff9e37df74fad8186d8841049d97624ccb24"}},{"ruleId":"D2","level":"warning","message":{"text":"TreeFuture.runAndGet (cognitive 48): TreeFuture.runAndGet has cognitive complexity 48 (threshold 15). Drivers by points: if/else 23 (32 pts), error handling 6 (10 pts), boolean chains 6 (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":"litho-core/src/main/java/com/facebook/litho/TreeFuture.kt"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"9999be870541871745488b6560999ca05cc32f3d1b9786f3f90cb7841f8f50ed"}},{"ruleId":"D2","level":"warning","message":{"text":"RCTextView.onKeyDown (cognitive 48): RCTextView.onKeyDown has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (32 pts), boolean chains 12, ternaries 1 (4 pts) (nesting depth added 21). 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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60106bf9886537c3379866916c071430356a7d203e134a4a915df53715c7ac6"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoYogaLayoutFunction.onBoundsDefined (cognitive 47): LithoYogaLayoutFunction.onBoundsDefined has cognitive complexity 47 (threshold 15). Drivers by points: if/else 17 (29 pts), boolean chains 12, error handling 1 (3 pts), match/switch 1 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"3744bdf5d44e6c24f1bb5b55062dc567505a2d5a0b627612fcbb99f46c1d820d"}},{"ruleId":"D2","level":"warning","message":{"text":"MountState.unmountItemRecursively (cognitive 47): MountState.unmountItemRecursively has cognitive complexity 47 (threshold 15). Drivers by points: if/else 20 (37 pts), error handling 2 (8 pts), loops 1 (2 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountState.kt"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"a425c29c7af789552671395c4866afda4de13f6079ad71e5454c4d71db0a5401"}},{"ruleId":"D2","level":"warning","message":{"text":"OptimizedContextualEffectHandler.updateEffects (cognitive 46): OptimizedContextualEffectHandler.updateEffects has cognitive complexity 46 (threshold 15). Drivers by points: if/else 19 (33 pts), boolean chains 7, loops 4 (6 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/effects/OptimizedContextualEffectHandler.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82a77adbecdee6e78a7be981cf8aec41760dddbea3cc9e319974e42e9278d18"}},{"ruleId":"D2","level":"warning","message":{"text":"RCTextView.onTouchEvent (cognitive 46): RCTextView.onTouchEvent has cognitive complexity 46 (threshold 15). Drivers by points: if/else 21 (35 pts), boolean chains 11 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb23b9c4c249829c867e331d48e4371bab6bec5c258cf578cf282b1b382e67f"}},{"ruleId":"D2","level":"warning","message":{"text":"RecyclerBinder.measure (cognitive 44): RecyclerBinder.measure has cognitive complexity 44 (threshold 15). Drivers by points: if/else 21 (30 pts), boolean chains 8, match/switch 3 (6 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d469f1c08c5bebf198645fcc453a9c4b22723b9faeebd79406cdbbdee223650"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionLayoutFunctionsKt.calculateLayout (cognitive 44): CollectionLayoutFunctionsKt.calculateLayout has cognitive complexity 44 (threshold 15). Drivers by points: if/else 23 (37 pts), boolean chains 4, loops 1 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionLayoutFunctions.kt"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c084bfbc763ecc78145df97fcbb6f2c445630775fb75a82b9314c1a7d75dda6"}},{"ruleId":"D2","level":"warning","message":{"text":"MountSpecModelFactory.getMountType (cognitive 44): MountSpecModelFactory.getMountType has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (35 pts), error handling 1 (4 pts), loops 2 (4 pts), boolean chains 1 (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":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/MountSpecModelFactory.java"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"020debdec2a53fd1300cde2ece7732441a67c008069891c1d85ae963c0d29507"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentUtils.treeToString (cognitive 43): ComponentUtils.treeToString has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (31 pts), loops 4 (11 pts), boolean chains 1 (nesting depth added 25). 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":"litho-core/src/main/java/com/facebook/litho/ComponentUtils.kt"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"747432b02acc41164a292bbfae73b7b4efa9bb608a2acd0c93af65daae0e862e"}},{"ruleId":"D2","level":"warning","message":{"text":"TextStylesAttributeHelper.resolveStyleAttrsForTypedArray (cognitive 43): TextStylesAttributeHelper.resolveStyleAttrsForTypedArray has cognitive complexity 43 (threshold 15). Drivers by points: if/else 31 (42 pts), loops 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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextStylesAttributeHelper.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"32da2ff7a330f0c0c9cd1496d1c50819affc071ff240be400c12441ea23fb8fc"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentUtils.isEquivalentUtil (cognitive 42): ComponentUtils.isEquivalentUtil has cognitive complexity 42 (threshold 15). Drivers by points: if/else 21 (41 pts), match/switch 1 (nesting depth added 20). 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":"litho-core/src/main/java/com/facebook/litho/ComponentUtils.kt"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8e87a8616ba4a02ca2ff0839f3e82973620f20055b767359b857e7df62d96d"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoReducer.spliceFromSnapshot (cognitive 42): LithoReducer.spliceFromSnapshot has cognitive complexity 42 (threshold 15). Drivers by points: loops 9 (21 pts), if/else 12 (18 pts), boolean chains 3 (nesting depth added 18). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoReducer.kt"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"f35401a9cfbf66dab839ba43d8dada18f902a6e1acee36dec64820e612f1a3b5"}},{"ruleId":"D2","level":"warning","message":{"text":"TextStylesHelper.resolveStyleAttrsForTypedArray (cognitive 42): TextStylesHelper.resolveStyleAttrsForTypedArray has cognitive complexity 42 (threshold 15). Drivers by points: if/else 32 (41 pts), loops 1 (nesting depth added 9). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/TextStylesHelper.kt"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f22ddc420ce7c41ba4a062d5887f420349d0c4e875353dc92a20cf3bb7f344c"}},{"ruleId":"D2","level":"warning","message":{"text":"EventValidation.validateOnEventMethods (cognitive 41): EventValidation.validateOnEventMethods has cognitive complexity 41 (threshold 15). Drivers by points: if/else 8 (24 pts), loops 5 (14 pts), boolean chains 3 (nesting depth added 25). 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63b50dca492162a01326b57bbe185b06eb83def84a58dbbfcc3b88ea715603b"}},{"ruleId":"D2","level":"warning","message":{"text":"TestLayoutState.create (cognitive 40): TestLayoutState.create has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 6, error handling 3 (6 pts), match/switch 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":"litho-core/src/main/java/com/facebook/litho/TestLayoutState.kt"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5981d9f3c6428be978149dc8dec5a77a34c4127faf82a2cdc2e55533979ee4"}},{"ruleId":"D2","level":"warning","message":{"text":"SectionTree.createNewTreeAndApplyStateUpdates (cognitive 40): SectionTree.createNewTreeAndApplyStateUpdates has cognitive complexity 40 (threshold 15). Drivers by points: if/else 17 (24 pts), ternaries 4 (9 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java"},"region":{"startLine":1770}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4be2cfedbef4b2d54e520f1b332931b25fe2d9b429ab11d5d6b51ced2ae13ac"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentAccessibilityDelegate.onInitializeAccessibilityNodeInfo (cognitive 39): ComponentAccessibilityDelegate.onInitializeAccessibilityNodeInfo has cognitive complexity 39 (threshold 15). Drivers by points: if/else 21 (28 pts), boolean chains 9, error handling 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentAccessibilityDelegate.kt"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ee0aec1c4b263cebcf423c6cd754bdf6fdb9b0f34b061cc2db9523ffacea2e"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegateMethodGenerator.getDelegationCode (cognitive 39): DelegateMethodGenerator.getDelegationCode has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 8, ternaries 1 (2 pts), loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/DelegateMethodGenerator.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"53afcc594b8e959c7bdce11760ae73d1593a946961805dc216ce7337fb53d399"}},{"ruleId":"D2","level":"warning","message":{"text":"BinderMigratedViewAttributes.equals (cognitive 38): BinderMigratedViewAttributes.equals has cognitive complexity 38 (threshold 15). Drivers by points: if/else 38. 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":"litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2376c7ff42d6e83ef8012b15e6fc65e3c0a6dcc6579fec6b1e79d9dbcd2f885"}},{"ruleId":"D2","level":"warning","message":{"text":"RCTextStyleHelper.resolveStyleAttrsForTypedArray (cognitive 37): RCTextStyleHelper.resolveStyleAttrsForTypedArray has cognitive complexity 37 (threshold 15). Drivers by points: if/else 29 (36 pts), loops 1 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RCTextStyleHelper.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1e836d7c26deb9c7596b93e38ab8404f54c2bea9e03b9f09c48d80d8341a77d"}},{"ruleId":"D2","level":"warning","message":{"text":"TextMeasurementUtils.createTextLayout (cognitive 37): TextMeasurementUtils.createTextLayout has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 9 (17 pts), if/else 14, boolean chains 4, match/switch 2 (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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextMeasurementUtils.java"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae4abe5e7b582e59098737250e02f51e08597b2c7f572a679d14aaffacaa977"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentTree.setRootAndSizeSpecInternal (cognitive 36): ComponentTree.setRootAndSizeSpecInternal has cognitive complexity 36 (threshold 15). Drivers by points: if/else 23 (30 pts), boolean chains 6 (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"a079d2113ab3ebeaa3498b50138bb73b0126517164d5180875ea9989767e87c0"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoNode.needsHostView (cognitive 36): LithoNode.needsHostView has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoNode.kt"},"region":{"startLine":1260}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aad37eb7d7c06de7e56b3f6d1e0a13e55123a68d99d89b32b92fbaa5be231f4"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoNode.hasViewAttributes (cognitive 36): LithoNode.hasViewAttributes has cognitive complexity 36 (threshold 15). Drivers by points: if/else 18 (34 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoNode.kt"},"region":{"startLine":1339}}}],"partialFingerprints":{"codehealthFindingId/v1":"5664aa9863fd49ffa4f9ae6ef4c7b531f1ada2801bc818d48a15eefefe9a426d"}},{"ruleId":"D2","level":"warning","message":{"text":"VisibilityMountExtension.clearVisibilityItemsNonincremental (cognitive 35): VisibilityMountExtension.clearVisibilityItemsNonincremental has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (34 pts), loops 1 (nesting depth added 22). 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":"litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"6881b173922d227962a3ad1c87d0e47d3aa634fda1f2055116df138749e85842"}},{"ruleId":"D2","level":"warning","message":{"text":"NodeInfo.isEquivalentTo (cognitive 34): NodeInfo.isEquivalentTo has cognitive complexity 34 (threshold 15). Drivers by points: if/else 33, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/NodeInfo.kt"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"7358698cced8f3c8f036f423bbfa4f649f2789e8e00cbe4efcd964c2a1a85395"}},{"ruleId":"D2","level":"warning","message":{"text":"TransitionManager.maybeCreateAnimation (cognitive 34): TransitionManager.maybeCreateAnimation has cognitive complexity 34 (threshold 15). Drivers by points: if/else 20 (27 pts), boolean chains 7 (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":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"39e522087d881f76318f0fb504993d32addbf8f1421d4c5654f64c9839f811d8"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionRecyclerComponentKt.buildCollectionItems (cognitive 34): CollectionRecyclerComponentKt.buildCollectionItems has cognitive complexity 34 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 5 (11 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionRecyclerComponent.kt"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c947beb90c104d5be06f125cbaab4af14db084f17fb9c1c9d2653f402d51f3b"}},{"ruleId":"D2","level":"warning","message":{"text":"BinderMigratedNodeInfo.equals (cognitive 33): BinderMigratedNodeInfo.equals has cognitive complexity 33 (threshold 15). Drivers by points: if/else 33. 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":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"2920dbf2150328e452584e89fee4529149d383e9dd0fd71a8c5b78ed82046cb8"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoYogaLayoutFunction.buildYogaTree (cognitive 33): LithoYogaLayoutFunction.buildYogaTree has cognitive complexity 33 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 7, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f42c1c836eda9cc89a722ef628afd873e65810ca4d38f805f04aa35327b59f"}},{"ruleId":"D2","level":"warning","message":{"text":"Resolver.resolveImpl (cognitive 33): Resolver.resolveImpl has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 8, error handling 2 (4 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Resolver.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"403755ef5da8bf0b92b987aa7d7a0a74d3ac7bdffbbf7c51595d6fb61674e876"}},{"ruleId":"D2","level":"warning","message":{"text":"StyleTransitionPlanner.createPlans (cognitive 33): StyleTransitionPlanner.createPlans has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (21 pts), boolean chains 8, loops 3 (4 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/animation/StyleTransitionManager.kt"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"55cccde1c37f47ee13383d9e5ebccd929deee276fddb9e99a566168b429f91b1"}},{"ruleId":"D2","level":"warning","message":{"text":"RCSelectionController.onTouchEvent (cognitive 33): RCSelectionController.onTouchEvent has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 5, match/switch 1 (nesting depth added 14). 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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCSelectionController.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17e1c6b131362c251a69b078c4009154d30941e6b416bbe51c9ff7cbaed43c7"}},{"ruleId":"D2","level":"warning","message":{"text":"DataUtils.getPropData (cognitive 31): DataUtils.getPropData has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (26 pts), boolean chains 2, error handling 1 (2 pts), loops 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/DataUtils.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"55a64b2581d06f957e3278604d4806322f7ff278e13e297ec35cd8507ef9fba1"}},{"ruleId":"D2","level":"warning","message":{"text":"DataFlowGraph.regenerateSortedNodes (cognitive 31): DataFlowGraph.regenerateSortedNodes has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 4 (7 pts), boolean chains 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/litho/dataflow/DataFlowGraph.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f6846b13b4be3f375b425e6a9cd3417b60207336b57363320aa450004ad776"}},{"ruleId":"D2","level":"warning","message":{"text":"ExperimentalTextInputKt.setParams (cognitive 31): ExperimentalTextInputKt.setParams has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21 (24 pts), boolean chains 4, error handling 1 (3 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0d12b79f7b4bfc95e95e3ded5788c9120e1d8f4505b9f296731e9369b2c890"}},{"ruleId":"D2","level":"warning","message":{"text":"Component.measure (cognitive 31): Component.measure has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (21 pts), boolean chains 5, ternaries 3 (4 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Component.java"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"73965b4f3e55f7b104b18eb57d22c50fb3de302906b3e66d33ce041265ea15d7"}},{"ruleId":"D2","level":"warning","message":{"text":"RCTextAccessibilityDelegate.performAccessibilityAction (cognitive 31): RCTextAccessibilityDelegate.performAccessibilityAction has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (25 pts), boolean chains 6 (nesting depth added 15). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":2029}}}],"partialFingerprints":{"codehealthFindingId/v1":"51226c95946e4f4b21b22f29799c3f2c2cfdd462b04d1f334c35970b7be0fc90"}},{"ruleId":"D2","level":"warning","message":{"text":"TransitionManager.finishUndeclaredTransitions (cognitive 30): TransitionManager.finishUndeclaredTransitions has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 4 (12 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"b08cf42d5193cab56198b393e5b9c807fd821ed33f781cdc5cd24b46a3bf3d75"}},{"ruleId":"D2","level":"warning","message":{"text":"RecyclerBinder.computeRange (cognitive 30): RecyclerBinder.computeRange has cognitive complexity 30 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 5 (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":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":3175}}}],"partialFingerprints":{"codehealthFindingId/v1":"0960d2adf6f8ba7e4554ffd5c9dc793525eeb87b0b2e06b679931856fab55371"}},{"ruleId":"D2","level":"warning","message":{"text":"DelegateMethodValidation.validateMethods (cognitive 30): DelegateMethodValidation.validateMethods has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 3 (4 pts), ternaries 1 (4 pts), boolean chains 2 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/DelegateMethodValidation.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b14eac41c3ac351c1c7afac44b9618d00b8c9f1e90b76a893d706994622cba6"}},{"ruleId":"D2","level":"warning","message":{"text":"MeasureUtils.measureWithAspectRatio (cognitive 29): MeasureUtils.measureWithAspectRatio has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (23 pts), boolean chains 6 (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":"litho-core/src/main/java/com/facebook/litho/utils/MeasureUtils.kt"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"b85178225beb219d34ee0d42fec54ea94353840411a782c67d4d9e7402000c45"}},{"ruleId":"D2","level":"warning","message":{"text":"PsiMountSpecModelFactory.getMountType (cognitive 29): PsiMountSpecModelFactory.getMountType has cognitive complexity 29 (threshold 15). Drivers by points: if/else 8 (18 pts), boolean chains 5, error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiMountSpecModelFactory.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"678844af768545430b70f852607b079e44649110b3a9e616137a5196a061f759"}},{"ruleId":"D2","level":"warning","message":{"text":"InternalAdapter.onBindViewHolder (cognitive 29): InternalAdapter.onBindViewHolder has cognitive complexity 29 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":3739}}}],"partialFingerprints":{"codehealthFindingId/v1":"9624a1cce6ea8fc3eb4ac7cafc85df00cac037e1644bd1eccea69b9e59905d63"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionPrimitiveViewLayoutBehavior.layout (cognitive 29): CollectionPrimitiveViewLayoutBehavior.layout has cognitive complexity 29 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 6 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionRecyclerComponent.kt"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"958b7439d65ac4c708af38179ccdf059a5a2092ab64c9d88b80c47584df303e3"}},{"ruleId":"D2","level":"warning","message":{"text":"BuilderGenerator.generateBuilder (cognitive 29): BuilderGenerator.generateBuilder has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (19 pts), loops 7 (8 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b01b83436074eb8292d99673658a9e6c781ab3193db942051ad14133e1ea8fb"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchedTarget.dispatchLastEvent (cognitive 29): BatchedTarget.dispatchLastEvent has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (28 pts), match/switch 1 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/BatchedTarget.java"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"421a8fc51f132cc6f6242594c77eae52b63860820908be5cb3c526002973a982"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimatedPropertiesComponent.render (cognitive 28): AnimatedPropertiesComponent.render has cognitive complexity 28 (threshold 15). Drivers by points: if/else 28. 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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/AnimatedPropertiesComponent.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7561ceb6b732d27652ace79fb1c4f4b529ac0074c465cedce66046a74577a4"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoMountData.getViewAttributeFlags (cognitive 28): LithoMountData.getViewAttributeFlags has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (20 pts), match/switch 3 (7 pts), boolean chains 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":"litho-core/src/main/java/com/facebook/litho/LithoMountData.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"d58b79bef0807333181cf22d2226debe3b1c06b941901ba5bb785220d428e82b"}},{"ruleId":"D2","level":"warning","message":{"text":"TransitionsAnimationBindingListener.finishAnimation (cognitive 28): TransitionsAnimationBindingListener.finishAnimation has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"447b3c9322a476b47b009316fae85587b3ef52b9c1563cc645ec2e1066f5b41f"}},{"ruleId":"D2","level":"warning","message":{"text":"RecyclerBinder.validateMeasureSpecs (cognitive 28): RecyclerBinder.validateMeasureSpecs has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 2, match/switch 1 (nesting depth added 12). 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":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":4497}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f37af6562edb2ed1a4b9ceaf6f836234a4aee1739e46efa376a070e4a2d777c"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionLayoutFunctionsKt.getChildSizeConstraints (cognitive 28): CollectionLayoutFunctionsKt.getChildSizeConstraints has cognitive complexity 28 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionLayoutFunctions.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0708549c2a629559b72111097666a7d75a5690bd10cb97bafc45449989993779"}},{"ruleId":"D2","level":"warning","message":{"text":"OtherProps.copyInto (cognitive 27): OtherProps.copyInto has cognitive complexity 27 (threshold 15). Drivers by points: if/else 22 (24 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/CommonProps.kt"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"81eb3c9f2a61340f8204f0cbd2d93d5e177df1904d8f9be6bbdda71d49b95386"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicPropsManager.resetDynamicValues (cognitive 27): DynamicPropsManager.resetDynamicValues has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 1, match/switch 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":"litho-core/src/main/java/com/facebook/litho/DynamicPropsManager.kt"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c82c460fa404eacfa59f50e68f6e099d27bb4d017f7521cf56488f90ccb36e"}},{"ruleId":"D2","level":"warning","message":{"text":"TestLayoutState.createImmediateLayout (cognitive 27): TestLayoutState.createImmediateLayout has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (21 pts), boolean chains 5, match/switch 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/TestLayoutState.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfe015ef88b14a739892c293d1eb0aca36de1e7425a58dc250c137666c91b639"}},{"ruleId":"D2","level":"warning","message":{"text":"IncrementalMountExtension.scanCostAwareCandidatesInDirection (cognitive 27): IncrementalMountExtension.scanCostAwareCandidatesInDirection has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 1, 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":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4fbfcf5931e069a045c7b3a50f4e93d8190981d34f10b302f490c9557fc8d26"}},{"ruleId":"D2","level":"warning","message":{"text":"RecyclerBinder.mount (cognitive 27): RecyclerBinder.mount has cognitive complexity 27 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 2 (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":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":2684}}}],"partialFingerprints":{"codehealthFindingId/v1":"56737d02583d03cce620116d50c8cd5ee32d50db21d3ba9cac7f503bd5171815"}},{"ruleId":"D2","level":"warning","message":{"text":"PropValidation.validateResType (cognitive 27): PropValidation.validateResType has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (14 pts), ternaries 6 (12 pts), match/switch 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/PropValidation.java"},"region":{"startLine":487}}}],"partialFingerprints":{"codehealthFindingId/v1":"be20ef799fadadd7c507ea996f11ff134a519c5309010a3a79227b95e2d6038c"}},{"ruleId":"D2","level":"warning","message":{"text":"StyleTransitionManager.run (cognitive 26): StyleTransitionManager.run has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 3 (6 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/animation/StyleTransitionManager.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab77e2113561147299b00bea14579f5fe9aa6d40ecaca756fe62fffef549d1e1"}},{"ruleId":"D2","level":"warning","message":{"text":"CustomSpeedLinearSnapHelper.findTargetSnapPosition (cognitive 26): CustomSpeedLinearSnapHelper.findTargetSnapPosition has cognitive complexity 26 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/CustomSpeedLinearSnapHelper.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ede499a684485a38fa734aac898f4f0da3800217382f60ac66ce93aaff0778"}},{"ruleId":"D2","level":"warning","message":{"text":"RecyclerBinder.applyReadyBatchesWithRetry (cognitive 26): RecyclerBinder.applyReadyBatchesWithRetry has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 4, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"079375efd0c876aaef52f673cc391838b34c2e8dd1146a0d50198dca3c5adcc5"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoView.onMeasureInternal (cognitive 25): LithoView.onMeasureInternal has cognitive complexity 25 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoView.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcc9c25098f95b6cba402abf3eee979c0c2018ce67ee720bc7ab11edf1c31ee2"}},{"ruleId":"D2","level":"warning","message":{"text":"SizeUtilsKt.withAspectRatio (cognitive 25): SizeUtilsKt.withAspectRatio has cognitive complexity 25 (threshold 15). Drivers by points: if/else 17 (20 pts), boolean chains 5 (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":"litho-rendercore/src/main/java/com/facebook/rendercore/utils/SizeUtils.kt"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"39700682c731d9a81ed0f9a1b9c3857f3ab461e8c37580c8e87d891701a639b8"}},{"ruleId":"D2","level":"warning","message":{"text":"PrimitiveCard.render (cognitive 25): PrimitiveCard.render has cognitive complexity 25 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveCard.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d7e6c6da87b66c793e98e3db6472f7dc95396170d2516a385ac15522bf5c65"}},{"ruleId":"D2","level":"warning","message":{"text":"TextDrawable.handleTouchForSpans (cognitive 25): TextDrawable.handleTouchForSpans has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 6 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/TextDrawable.kt"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"8380e4809eaa7aa934b2ab494e43bc2ec9cd76c601b7823bc683c4f317bd1704"}},{"ruleId":"D2","level":"warning","message":{"text":"NewStickyHeaderController.onScrolled (cognitive 25): NewStickyHeaderController.onScrolled has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/NewStickyHeaderController.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c4533b43aa284bd053815024b3aeb27160e02bfb121347a21ea0596ecff7a65"}},{"ruleId":"D2","level":"warning","message":{"text":"TextMeasurementUtils.truncateText (cognitive 25): TextMeasurementUtils.truncateText has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (18 pts), ternaries 2 (4 pts), 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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextMeasurementUtils.java"},"region":{"startLine":754}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3dbf2a5f53c5e3cd85219412245e547f7f10f5a765bb2d0b6a9abe6f2da733a"}},{"ruleId":"D2","level":"warning","message":{"text":"LayoutState.getMountTimeTransitions (cognitive 24): LayoutState.getMountTimeTransitions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 1 (3 pts), 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":"litho-core/src/main/java/com/facebook/litho/LayoutState.kt"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"582c82a3fc447fc04e7830e9ecd64af4f3f6afa706c47b2c757ada6f2db08a26"}},{"ruleId":"D2","level":"warning","message":{"text":"LayoutUtils.measurePendingSubtrees (cognitive 24): LayoutUtils.measurePendingSubtrees has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (14 pts), error handling 2 (5 pts), loops 2 (4 pts), boolean chains 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":"litho-core/src/main/java/com/facebook/litho/LayoutUtils.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"52efa86cf0812a70ba14de3c400a76c6571283815aaa33e41772a29731981efb"}},{"ruleId":"D2","level":"warning","message":{"text":"TestLayoutState.resolve (cognitive 24): TestLayoutState.resolve has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/TestLayoutState.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"c43267115d2bcfa982f774172da85c7a6eae7d3468068a7782855871c042e102"}},{"ruleId":"D2","level":"warning","message":{"text":"ContextualEffectHandler.updateEffects (cognitive 24): ContextualEffectHandler.updateEffects has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 4, loops 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/effects/ContextualEffectHandler.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9fe051fd4c808148d4ee3c567797821d5d0cc77e46e3ed155017d5855662786"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexboxContainerComponent.isEquivalentProps (cognitive 24): FlexboxContainerComponent.isEquivalentProps has cognitive complexity 24 (threshold 15). Drivers by points: if/else 18 (21 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/layout/flexbox/FlexboxContainerComponent.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e892d9730d92e3577c28204a7bf1679a33593cc0d08e964a0297d71c6e6880d4"}},{"ruleId":"D2","level":"warning","message":{"text":"SpecGeneratedComponent.resolve (cognitive 24): SpecGeneratedComponent.resolve has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 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":"litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b772128a0fdc36e46a4d3a8609c51d31fc041981b85d8d43f88eb6689e84018"}},{"ruleId":"D2","level":"warning","message":{"text":"EventGenerator.generateEventMethod (cognitive 24): EventGenerator.generateEventMethod has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (19 pts), ternaries 1 (3 pts), boolean chains 1, loops 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventGenerator.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c567eeed05e9561b25e86b7daeb9cb6fc244381aacaed4205c42afa55e5dc7"}},{"ruleId":"D2","level":"warning","message":{"text":"StateContainerGenerator.generateApplyStateUpdateMethod (cognitive 24): StateContainerGenerator.generateApplyStateUpdateMethod has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 4 (6 pts), 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/StateContainerGenerator.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb425a9f75ab7c2c0f2cd3a14c41a81b93754ba9d06f29e01042c49222908ec2"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentTree.measure (cognitive 23): ComponentTree.measure has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 7 (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":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"4070df1d78943febdcdf575d1e576f621b23c340f3ef79ad97070b6b5d318e46"}},{"ruleId":"D2","level":"warning","message":{"text":"IncrementalMountExtension.onVisibleBoundsChanged (cognitive 23): IncrementalMountExtension.onVisibleBoundsChanged has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"156a0152f89e2a6c073a09d64c75e8d206435ab2ac9025eeef9be792446c1e7e"}},{"ruleId":"D2","level":"warning","message":{"text":"ZoomableViewBaseController.onTouch (cognitive 23): ZoomableViewBaseController.onTouch has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 3, match/switch 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":"litho-rendercore-zoomable/src/main/java/com/facebook/rendercore/zoomable/ZoomableViewBaseController.kt"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"528f34f7ce5c1597ece4da7a36b6f4f660dba3538ae1914050f02360eeaa3d81"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoStaggeredGridLayoutManager.onAttachedToWindow (cognitive 23): LithoStaggeredGridLayoutManager.onAttachedToWindow has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (23 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":"litho-widget/src/main/java/com/facebook/litho/widget/StaggeredGridLayoutInfo.kt"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"8becaf26b6cc4422238f8b1492e7bbfec1c493420646510ed373d3cea9f73d7f"}},{"ruleId":"D2","level":"warning","message":{"text":"StickyHeaderControllerImpl.onScrolled (cognitive 23): StickyHeaderControllerImpl.onScrolled has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/StickyHeaderControllerImpl.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e1ca4bee2842253ad99076a67f6c1c6c4f49d23051c9f41a482c287036d4ed"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionRecyclerComponent.render (cognitive 23): CollectionRecyclerComponent.render has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 4 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionRecyclerComponent.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba7bc7d60a72d811b636c9e340c72756ae7c3cc8a8bfc77a34b1535edc3226a2"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentBodyGenerator.getImplAccessorFromContainer (cognitive 23): ComponentBodyGenerator.getImplAccessorFromContainer has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java"},"region":{"startLine":1135}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd6ba15a10014f5bd2e5ea30f61957c72782834004f1978a98aae06c5096e473"}},{"ruleId":"D2","level":"warning","message":{"text":"MethodParamModelFactory.create (cognitive 23): MethodParamModelFactory.create has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/MethodParamModelFactory.java"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"edbb43e9881451f8c7230f403a4710ce691215841c85a091aa7dfbe6aa86d9fc"}},{"ruleId":"D2","level":"warning","message":{"text":"EventMethodExtractor.getOnEventMethods (cognitive 23): EventMethodExtractor.getOnEventMethods has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 2 (6 pts), error handling 1 (3 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"357dc5f886d39fea466fdb1faab02bc0aa2ca3ef91002df6c84278bdb7ad676f"}},{"ruleId":"D2","level":"warning","message":{"text":"RCRecyclerView.requestChildFocus (cognitive 23): RCRecyclerView.requestChildFocus has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 1, match/switch 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":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/RCRecyclerView.java"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b6d44a30106678ddf9885839d40b66df8ca345f4b4902e5b85fb4501254ca7"}},{"ruleId":"D2","level":"warning","message":{"text":"RCTextView.onKeyUp (cognitive 23): RCTextView.onKeyUp has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 5 (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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":1496}}}],"partialFingerprints":{"codehealthFindingId/v1":"95f4109490497bb1b2e3d664ffa421352587b64eb797b869c12b88f1dc1301e2"}},{"ruleId":"D2","level":"warning","message":{"text":"EventCaseGenerator.writeCase (cognitive 22): EventCaseGenerator.writeCase has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 2 (8 pts), boolean chains 1, loops 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventCaseGenerator.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db425aa9f48eb58c273d343a93a2f3dfe74e29f6a686dda0f3178a1963310df"}},{"ruleId":"D2","level":"warning","message":{"text":"CachedValueValidation.validate (cognitive 22): CachedValueValidation.validate has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 5 (7 pts), ternaries 1 (3 pts), boolean chains 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/CachedValueValidation.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0a8e563abff81794c0437ba5d0fd9bdf3f8b98f6b78380b9cfa10454b9a0de"}},{"ruleId":"D2","level":"warning","message":{"text":"StateValidation.validateOnUpdateStateMethod (cognitive 22): StateValidation.validateOnUpdateStateMethod has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 3 (7 pts), 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/StateValidation.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"487f7fd1c6b9aa11764e2ac69acbe4e6125fbf785c7f77caa82ca63ea4bf7621"}},{"ruleId":"D2","level":"warning","message":{"text":"PaginatedListComponent.render (cognitive 21): PaginatedListComponent.render has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2, match/switch 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":"sample-kotlin/src/main/java/com/facebook/samples/litho/integration/listpagination/PaginatedListComponent.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce91d708ebf75a54194dce95136827d150ca2eec6d4575e28c710f51c49a419b"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentTree.backgroundLayoutStateUpdated (cognitive 21): ComponentTree.backgroundLayoutStateUpdated has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"88fc1ca5e40491bbebdc8281203f869b8ab43cf2508e185785e8e59a6068804d"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoRenderTreeView.onMeasure (cognitive 21): LithoRenderTreeView.onMeasure has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoRenderTreeView.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3afd5fb6e8d8549c8f4417cf7decb7dd1f3ac5d23ce2dacb8f302c2cf3079ffa"}},{"ruleId":"D2","level":"warning","message":{"text":"ThreadMap.newWith (cognitive 21): ThreadMap.newWith has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (5 pts), boolean chains 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/utils/LithoThreadLocal.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d2a8a10cbf12abd690853d0a013cc7e365c445c72e9a9447f383a96257aff5"}},{"ruleId":"D2","level":"warning","message":{"text":"SelectableTextView.mount (cognitive 21): SelectableTextView.mount has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 2, match/switch 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/SelectableTextView.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fabf98d627ee27dbc3ec925aa6ca915f95a40b94f6cd5b34677e234953baa7c"}},{"ruleId":"D2","level":"warning","message":{"text":"TransitionsExtension.updateAnimationLockCount (cognitive 21): TransitionsExtension.updateAnimationLockCount has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 2, boolean chains 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":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionsExtension.kt"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d568e69a350686eb14da92b29cb52e9a2bb2d6e2dd2721365137ae65dabd034"}},{"ruleId":"D2","level":"warning","message":{"text":"MountState.unmountOrMoveOldItems (cognitive 21): MountState.unmountOrMoveOldItems has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 2, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountState.kt"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb0c3dd2d36a527db2b1f98be977e57b913b66092ac9a3b0faf0d46a5996f78"}},{"ruleId":"D2","level":"warning","message":{"text":"LevenshteinDistance.getLevenshteinDistance (cognitive 21): LevenshteinDistance.getLevenshteinDistance has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/viewtree/LevenshteinDistance.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8467e338edcc84da39a2f5314f7fdf30fda52c331ce9849780c84104668560d"}},{"ruleId":"D2","level":"warning","message":{"text":"InputBackgroundComparator.equals (cognitive 21): InputBackgroundComparator.equals has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt"},"region":{"startLine":1889}}}],"partialFingerprints":{"codehealthFindingId/v1":"4302ad4d13c268856e73287fa8cca5a63cd5b2cd8703044639a4e5ae8122c63b"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionRecyclerComponentKt.applyChangeset (cognitive 21): CollectionRecyclerComponentKt.applyChangeset has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), match/switch 1 (3 pts), loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionRecyclerComponent.kt"},"region":{"startLine":819}}}],"partialFingerprints":{"codehealthFindingId/v1":"406673536f4f823179c08f83a29824ea691f26124b6cfb615cd387235b5152be"}},{"ruleId":"D2","level":"warning","message":{"text":"DeferredLithoNode.transferInto (cognitive 20): DeferredLithoNode.transferInto has cognitive complexity 20 (threshold 15). Drivers by points: if/else 20. 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":"litho-core/src/main/java/com/facebook/litho/DeferredLithoNode.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"66df20e3925cc10061e2ed3d3dfde48d6eeb2529a7e5c9b48ebea8338d7f484e"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewStylesKt.background (cognitive 20): ViewStylesKt.background has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (20 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/view/ViewStyles.kt"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c8217c9633218afddb83fc9d9d3b7ad2f3ccaa833d6937acc9303b2410fce9"}},{"ruleId":"D2","level":"warning","message":{"text":"TransitionsExtension.unmountDisappearingItem (cognitive 20): TransitionsExtension.unmountDisappearingItem has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (12 pts), error handling 1 (4 pts), loops 1 (3 pts), boolean chains 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":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionsExtension.kt"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc45c3ab5649ab68c82ace7b612dd08ed8b4c87f20ca97de83e20cbaaaeb707b"}},{"ruleId":"D2","level":"warning","message":{"text":"Spring.advance (cognitive 20): Spring.advance has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 3, loops 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":"litho-rendercore-transitions/src/main/java/com/facebook/litho/dataflow/springs/Spring.kt"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abd73006ccb349d5b664189f5999443374a78461b7380183aac98cfbecf69a3"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderUnit.rebindBinders (cognitive 20): RenderUnit.rebindBinders has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 6 (13 pts), if/else 5, error handling 1 (2 pts) (nesting depth added 8). 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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9dd9883f86f5adf9cbde6d6ddaf782adbd2dda4c9ee065cfe59b10daae99b4d"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentBodyGenerator.generateMakeShallowCopy (cognitive 20): ComponentBodyGenerator.generateMakeShallowCopy has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java"},"region":{"startLine":725}}}],"partialFingerprints":{"codehealthFindingId/v1":"151633872524c6438526f13e56243d1db69f616c9d75b6c67648a8979c3e8ba4"}},{"ruleId":"D2","level":"warning","message":{"text":"DebugComponentDescriptionHelper.writeViewFlags (cognitive 19): DebugComponentDescriptionHelper.writeViewFlags has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14, boolean chains 5. 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":"litho-core/src/main/java/com/facebook/litho/DebugComponentDescriptionHelper.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f603292cfd0f47881a29e0ad6c11b519077e533a2817e0a3b49e2c75ddb4df"}},{"ruleId":"D2","level":"warning","message":{"text":"TransitionManager.setupTransitions (cognitive 19): TransitionManager.setupTransitions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 4 (7 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7452c7f500909a93f1d08678b5549a57c1043479d901f2f9fa4a59c61cf3b64"}},{"ruleId":"D2","level":"warning","message":{"text":"TransitionManager.createAnimationsForTransitionUnit (cognitive 19): TransitionManager.createAnimationsForTransitionUnit has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), match/switch 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":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt"},"region":{"startLine":563}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f508f5486b0d9b56f3cdcaf7ddef37f6e1e1987576759dd237ac337cc4d926"}},{"ruleId":"D2","level":"warning","message":{"text":"MountItemPoolsReleaseValidator.assertValidRelease (cognitive 19): MountItemPoolsReleaseValidator.assertValidRelease has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (18 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":"litho-rendercore/src/main/java/com/facebook/rendercore/MountItemPoolsReleaseValidator.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"66988000d0f2d76a8921fdab2a283d6694c23fb55e4b536eebbe275682b58f50"}},{"ruleId":"D2","level":"warning","message":{"text":"MountState.buildLeftoverItemsDiagnostic (cognitive 19): MountState.buildLeftoverItemsDiagnostic has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, error handling 1 (2 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountState.kt"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3aaafdb38008dacabbe77bf0ad31c49d8a8ff0556b5d5841a45afe03c192cf3"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderState.measure (cognitive 19): RenderState.measure has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderState.kt"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"41bf60cea9f09f16e1daa01e1f71bcf4be992e469467301bd8f74089aacbdbd1"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderUnit.resolveBindersToUpdateMasks (cognitive 19): RenderUnit.resolveBindersToUpdateMasks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b2b49cd3029f66b6cfd8d6d7b4aecb753d4a74a9038c705884c63a74c51f052"}},{"ruleId":"D2","level":"warning","message":{"text":"InputFiltersComparator.equals (cognitive 19): InputFiltersComparator.equals has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt"},"region":{"startLine":1943}}}],"partialFingerprints":{"codehealthFindingId/v1":"36ac2b73205e505b5a8b6671c27f26ebe9ef1cc34da4c04845b3be42fd3e3ed9"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionPrimitiveViewScroller.scrollToInitPosition (cognitive 19): CollectionPrimitiveViewScroller.scrollToInitPosition has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (19 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionPrimitiveViewScroller.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"d27e87637b209753f806c504e120dd38f576a7e69dd5d463dc31d20b50e759b3"}},{"ruleId":"D2","level":"warning","message":{"text":"YogaNodeJNIBase.getLayoutBorder (cognitive 19): YogaNodeJNIBase.getLayoutBorder has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 1 (2 pts), 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":"lib/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"efdc92f543d3c937b0d988634f2bd172518fb9ee76a781460a5add8788bcea62"}},{"ruleId":"D2","level":"warning","message":{"text":"TreePropGenerator.generateGetTreePropsForChildren (cognitive 19): TreePropGenerator.generateGetTreePropsForChildren has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (16 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TreePropGenerator.java"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b43907b50303da630bc5841c484eb06d22710af1a31b1894e7cb36ce7df096"}},{"ruleId":"D2","level":"warning","message":{"text":"StateValidation.validateStateValues (cognitive 19): StateValidation.validateStateValues has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (11 pts), ternaries 1 (5 pts), loops 2 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/StateValidation.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"326166e63d12e46e54e5cfa613940fdab3c30cfe3503d31736d4f6c50de316f8"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerValidation.validateOnTriggerMethods (cognitive 19): TriggerValidation.validateOnTriggerMethods has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (5 pts), ternaries 1 (3 pts), boolean chains 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/TriggerValidation.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"44c72c0fd00a651fd3f016b478e4750918082d9d2fb9b0c44fb2491e798e4b31"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentHost.dispatchDraw (cognitive 18): ComponentHost.dispatchDraw has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (3 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentHost.kt"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca1a8cbde517d23ce881e57ccad4473e75ce01b2217b0da309f536dc540c2682"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoNodeUtils.createRenderUnit (cognitive 18): LithoNodeUtils.createRenderUnit has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"65066b1a0aef8984f0a6da6b5ac4224d000ec276e32e51e539f5b268848533e2"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoReducer.addRenderTreeNode (cognitive 18): LithoReducer.addRenderTreeNode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13, boolean chains 5. 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":"litho-core/src/main/java/com/facebook/litho/LithoReducer.kt"},"region":{"startLine":1897}}}],"partialFingerprints":{"codehealthFindingId/v1":"788cd2afa81142f2ec889d469a60327dcd8d3357c50b9db402f0fa1653f6b568"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkingRangeContainer.checkWorkingRangeAndDispatch (cognitive 18): WorkingRangeContainer.checkWorkingRangeAndDispatch has cognitive complexity 18 (threshold 15). Drivers by points: error handling 2 (8 pts), if/else 3 (5 pts), loops 2 (3 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":"litho-core/src/main/java/com/facebook/litho/WorkingRangeContainer.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64792b106329deacf1792f86d29bafa051a4fbee9982b99ca26903afe54389a"}},{"ruleId":"D2","level":"warning","message":{"text":"PerCornerRoundedRectangleOutlineProvider.setOutline (cognitive 18): PerCornerRoundedRectangleOutlineProvider.setOutline has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12, boolean chains 5, match/switch 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/view/ViewStyles.kt"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"598c12c98a9b62d57ac6f01120437e214b44500c1ade685075f85a2b44d3f3ec"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderState.layoutAndMaybeCommitInternal (cognitive 18): RenderState.layoutAndMaybeCommitInternal has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 6, 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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderState.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb610f1f29bbf86ef328638fb9d9373890e31f42b29806b8acd5f8f33f1b2ac2"}},{"ruleId":"D2","level":"warning","message":{"text":"CardShadowDrawable.drawShadowEdges (cognitive 18): CardShadowDrawable.drawShadowEdges has cognitive complexity 18 (threshold 15). Drivers by points: if/else 18. 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":"litho-widget/src/main/java/com/facebook/litho/widget/CardShadowDrawable.kt"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe13751a6aee1c1e06c899c1279fefe4fee38a5b51dfa51c6e6a386c2a8e64d"}},{"ruleId":"D2","level":"warning","message":{"text":"PrimitiveImageKt.calculateImageLayout (cognitive 18): PrimitiveImageKt.calculateImageLayout has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 5 (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":"litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveImage.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7bfd7967a9861da2fdb1ad8b4d76186395764d56dac02e9347a9efb481d6e30"}},{"ruleId":"D2","level":"warning","message":{"text":"BuilderGenerator.generatePropsBuilderMethods (cognitive 18): BuilderGenerator.generatePropsBuilderMethods has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 3 (6 pts), match/switch 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"a548fa7583962f4740a58fe62a6ad18ec8e9a4bc69217621b85388901690c054"}},{"ruleId":"D2","level":"warning","message":{"text":"ClassAnnotationsGenerator.withRawTypeSuppressions (cognitive 18): ClassAnnotationsGenerator.withRawTypeSuppressions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (7 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ClassAnnotationsGenerator.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b88051d2d0a6893f90fc9907d2a1f3080a698c77a0e37bd8d6dbf9e31124bb"}},{"ruleId":"D2","level":"warning","message":{"text":"DiffValidation.validate (cognitive 18): DiffValidation.validate has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, ternaries 1 (2 pts), loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/DiffValidation.java"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c83a532ad21d6a3f7edfb90226659e25206abbe58854c36a0d803ae034ff24"}},{"ruleId":"D2","level":"warning","message":{"text":"BaseMountingView.dispatchVisibilityEvent (cognitive 17): BaseMountingView.dispatchVisibilityEvent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BaseMountingView.kt"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95ac5e1cabde230309f7b222235f4a081a5d6730c907567f141affb7d753d18"}},{"ruleId":"D2","level":"warning","message":{"text":"BinderMigratedNodeInfo.copyInto (cognitive 17): BinderMigratedNodeInfo.copyInto has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17. 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. This shape REPEATS in the file: one other method here (BinderMigratedNodeInfo.copyInto) 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":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad334ec71ce8db59128df5b7f01cea67ad296b19bb71a16cc7ed004efec76058"}},{"ruleId":"D2","level":"warning","message":{"text":"BinderMigratedNodeInfo.copyInto (cognitive 17): BinderMigratedNodeInfo.copyInto has cognitive complexity 17 (threshold 15). Drivers by points: if/else 17. 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. This shape REPEATS in the file: one other method here (BinderMigratedNodeInfo.copyInto) 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":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"17786ecf485c7ad00929cc69ed04dddcc57a6b5d933ad22a462c0b869e4144de"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentHost.refreshAccessibilityDelegatesIfNeeded (cognitive 17): ComponentHost.refreshAccessibilityDelegatesIfNeeded has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1, loops 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":"litho-core/src/main/java/com/facebook/litho/ComponentHost.kt"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bb76f006cd70908e4752e5448635d15146e067dbad5f726adad8759f9c19a7"}},{"ruleId":"D2","level":"warning","message":{"text":"DebugComponentDescriptionHelper.getExtraProps (cognitive 17): DebugComponentDescriptionHelper.getExtraProps has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (9 pts), error handling 2 (5 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/DebugComponentDescriptionHelper.kt"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"069f839dc85fed9e189db739bc2935115984a04ab130a0e1c4b311717e3d37c7"}},{"ruleId":"D2","level":"warning","message":{"text":"DrawableMatrix.create (cognitive 17): DrawableMatrix.create has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/DrawableMatrix.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2dcf01823b349a6f604b4d9759586e17ba89d6f0d1b16daf6c579a6688dacc8"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicPropsManager.onValueChange (cognitive 17): DynamicPropsManager.onValueChange has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), loops 3 (6 pts) (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":"litho-core/src/main/java/com/facebook/litho/DynamicPropsManager.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c419717fe9af6093318c696fa00560e56c5795a0ccb1885b9dd39cccd023a4d"}},{"ruleId":"D2","level":"warning","message":{"text":"KStateContainer.retainByHookKeys (cognitive 17): KStateContainer.retainByHookKeys has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/KStateContainer.kt"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ed1078a400a3d257b16f7672ac1a6d5602a358c17607973b99064a218a7ce1"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoVisibilityEventsControllerDelegate.getTransitionState (cognitive 17): LithoVisibilityEventsControllerDelegate.getTransitionState has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (17 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoVisibilityEventsControllerDelegate.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce645c39d16fb5d004cce96e59bf3faa5fc61c57d868d56334bb0ec3a97d5d7"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewAttributes.unsetViewAttributes (cognitive 17): ViewAttributes.unsetViewAttributes has cognitive complexity 17 (threshold 15). Drivers by points: if/else 16, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ViewAttributes.kt"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ad3e9a8f818c3be51f2a28429ab6e9786ff78ee5c017e9e9df31d9d91affb7f"}},{"ruleId":"D2","level":"warning","message":{"text":"BoxConstraintsKt.resolveBoxConstraints (cognitive 17): BoxConstraintsKt.resolveBoxConstraints has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (BoxConstraintsKt.resolveRootBox) 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":"litho-core/src/main/java/com/facebook/litho/layout/BoxConstraints.kt"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde0105e176042106daa47eeb2550c448eff95f6636740c408d6618767122d15"}},{"ruleId":"D2","level":"warning","message":{"text":"BoxConstraintsKt.resolveRootBox (cognitive 17): BoxConstraintsKt.resolveRootBox has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (BoxConstraintsKt.resolveBoxConstraints) 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":"litho-core/src/main/java/com/facebook/litho/layout/BoxConstraints.kt"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b90649c806ee56f326f0ee877658f74844b854c0d07c77d4397ed4218cd5ff"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewStylesKt.blur (cognitive 17): ViewStylesKt.blur has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3 (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":"litho-core/src/main/java/com/facebook/litho/view/ViewStyles.kt"},"region":{"startLine":1592}}}],"partialFingerprints":{"codehealthFindingId/v1":"a26639e6185eb8f36a21f715734cbd0e1bb04e3c13ea0b0e3d4f06b7b924153b"}},{"ruleId":"D2","level":"warning","message":{"text":"DefaultContentPool.release (cognitive 17): DefaultContentPool.release has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 1 (3 pts), error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountItemsPool.kt"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac5249d038511360c1a9a5428f9835b9394767671e27d653e9e8a65416749c6"}},{"ruleId":"D2","level":"warning","message":{"text":"RenderUnit.resolveBindersToUpdate (cognitive 17): RenderUnit.resolveBindersToUpdate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 3, loops 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50ac66ffc90d17fc567435e5df8cda1c91b4d328ce6793abba74fb3712523b1"}},{"ruleId":"D2","level":"warning","message":{"text":"RecyclerBinder.maybeDispatchDataRendered (cognitive 17): RecyclerBinder.maybeDispatchDataRendered has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":1876}}}],"partialFingerprints":{"codehealthFindingId/v1":"729baa2a83f3073a6da546aef73b28c8f6e8b603e4b6c1832d1df45e60177429"}},{"ruleId":"D2","level":"warning","message":{"text":"TextDrawable.handleOnTouchForSpans (cognitive 17): TextDrawable.handleOnTouchForSpans has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (14 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/TextDrawable.kt"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a4c2903d1191ed87ef70a34ea45d9ee176f1cbe72943505f6c84cc979ffd97b"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionPreparationManager.computeRange (cognitive 17): CollectionPreparationManager.computeRange has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, 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":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionPreparationManager.kt"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bfc7157771550225250287defbc4ea06131a5f76e373fbdc5e10342d14eb93"}},{"ruleId":"D2","level":"warning","message":{"text":"CanvasState.configureStrokePaint (cognitive 17): CanvasState.configureStrokePaint has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/CanvasState.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9df51604d7cfbd46ef67f7cbc33769963c6fbe22ba365380a698221289bc18d"}},{"ruleId":"D2","level":"warning","message":{"text":"CanvasStroke.equals (cognitive 17): CanvasStroke.equals has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (17 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/CanvasModel.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bde357d1c1b24698e5cd0709fc7928f06ca2ef0acdbf47e8812082404074212"}},{"ruleId":"D2","level":"warning","message":{"text":"TriggerGenerator.generateOnTriggerMethodDelegate (cognitive 17): TriggerGenerator.generateOnTriggerMethodDelegate has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 1 (2 pts), boolean chains 1, loops 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"a572414d632e4e2161860c312db8fc2877cc7e25f7ebbd92dd51105a1f43fdc5"}},{"ruleId":"D2","level":"warning","message":{"text":"RCTextView.drawLayout (cognitive 17): RCTextView.drawLayout has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fdaf2338a48ac805b57e71ae4bd2893c77bbaadba89f285b40bc7e1590a1df5"}},{"ruleId":"D2","level":"warning","message":{"text":"RCTextView.unmount (cognitive 17): RCTextView.unmount has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 pts), loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"50636011050af4124197023b6a8a654140698ec4d502b2c68586d3c76fef71b2"}},{"ruleId":"D2","level":"warning","message":{"text":"DebugSection.getSectionChildren (cognitive 17): DebugSection.getSectionChildren has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 2 (5 pts), 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":"litho-sections-debug/src/main/java/com/facebook/litho/sections/debug/DebugSection.java"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a4c53438d3fb96257c52417d505382d9f4dd3daf563211775509227338b502"}},{"ruleId":"D2","level":"warning","message":{"text":"custom-layout-figures.main (cognitive 17): custom-layout-figures.main has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 1 (4 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/scripts/custom-layout-figures.js"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d7350463e3b69204c0223a0ec9ce06d2c8f9ab473cb431fcd7ddf2322c08c8"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimationCallbackComponent.render (cognitive 16): AnimationCallbackComponent.render has cognitive complexity 16 (threshold 15). Drivers by points: if/else 15, boolean chains 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/AnimationCallbackComponent.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"216194c8c3ffaa808d0389d39b622311d21c82d1de9cd0a6ef00363a710d922d"}},{"ruleId":"D2","level":"warning","message":{"text":"Column.isEquivalentProps (cognitive 16): Column.isEquivalentProps has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Column.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"6230199b0f238a7ada25c897608d238007c1a129ea25071e74cd0ad12ffc530d"}},{"ruleId":"D2","level":"warning","message":{"text":"ComponentTree.commitLayoutState (cognitive 16): ComponentTree.commitLayoutState has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, match/switch 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":2513}}}],"partialFingerprints":{"codehealthFindingId/v1":"1986b22a695f0ac59e1f4f8c89e6cfad45e832edcd107fa0c63c987b51e7715b"}},{"ruleId":"D2","level":"warning","message":{"text":"DebugComponentDescriptionHelper.getSyntheticViewDescriptions (cognitive 16): DebugComponentDescriptionHelper.getSyntheticViewDescriptions has cognitive complexity 16 (threshold 15). Drivers by points: loops 3 (10 pts), if/else 3 (6 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/DebugComponentDescriptionHelper.kt"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca4cb063f0cd6a514f4b8991fafca6e5aff0ab804a9c8956dc5729d11bdba5f0"}},{"ruleId":"D2","level":"warning","message":{"text":"DynamicPropsManager.onBindComponentToContent (cognitive 16): DynamicPropsManager.onBindComponentToContent has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 3, loops 2 (3 pts), error handling 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/DynamicPropsManager.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"730e32cd74554cc26050eb033ba22c51b00bdebe8ac21a38c801e82142a3ff61"}},{"ruleId":"D2","level":"warning","message":{"text":"CommittedEffects.report (cognitive 16): CommittedEffects.report has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/KResolveEffects.kt"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ab7053c25fc4382fa42aea6dde99460e931f46cf7e5c6847b6bda9e038cd38"}},{"ruleId":"D2","level":"warning","message":{"text":"KStateKt.getUpdatedStateByHookKey (cognitive 16): KStateKt.getUpdatedStateByHookKey has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 2, error handling 1 (2 pts) (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":"litho-core/src/main/java/com/facebook/litho/KState.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c106c6c7ebc0ddb838e38191a0570f1de73471002ded0852ded60e0905c64c3"}},{"ruleId":"D2","level":"warning","message":{"text":"LithoNode.copyLayoutPropsInto (cognitive 16): LithoNode.copyLayoutPropsInto has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoNode.kt"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c5d3e1dba237ef52f59c725adc57ade2d44febf408b7cdb4c8b20a43f45606"}},{"ruleId":"D2","level":"warning","message":{"text":"Row.isEquivalentProps (cognitive 16): Row.isEquivalentProps has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Row.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9571e766060a121d4def61eb8dd868fae39c9a10800f0323e2029fb1a1c3706f"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimationController.onFrame (cognitive 16): AnimationController.onFrame has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/animation/AnimationController.kt"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f891fd2df2acf24dfad4a462444bbfe449084b39b3ea664e7d223baef114a28"}},{"ruleId":"D2","level":"warning","message":{"text":"AnimationSpecCompositionKt.withCompositionVisibilityThreshold (cognitive 16): AnimationSpecCompositionKt.withCompositionVisibilityThreshold has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 1 (2 pts), match/switch 1 (nesting depth added 7). 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":"litho-core/src/main/java/com/facebook/litho/animation/AnimationSpecComposition.kt"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f151c7a615107a23e692fb78c26bdb10573e71da71e0d84b76a86d8246f8d4"}},{"ruleId":"D2","level":"warning","message":{"text":"FlexboxContainerComponent.resolve (cognitive 16): FlexboxContainerComponent.resolve has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, loops 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":"litho-core/src/main/java/com/facebook/litho/layout/flexbox/FlexboxContainerComponent.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"807f5ba9eaafdd5033b711e23b99632d11bc6c154e5975429af51e3a621f50c5"}},{"ruleId":"D2","level":"warning","message":{"text":"ObjectStyleItem.applyCommonProps (cognitive 16): ObjectStyleItem.applyCommonProps has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 1 (nesting depth added 5). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/view/ViewStyles.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f47b39858475f6c2fad5df2ffc238c8df9b41363d131b99197f94899abefd2"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewStylesKt.shadow (cognitive 16): ViewStylesKt.shadow has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (16 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/view/ViewStyles.kt"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"413cf21cd46cc32c1adffae936841685fb306d345ec1e81d4e1d49e7299a3e7c"}},{"ruleId":"D2","level":"warning","message":{"text":"MethodGenerateHandler.fillTemplate (cognitive 16): MethodGenerateHandler.fillTemplate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3 (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":"litho-intellij-plugin/src/main/java/com/facebook/litho/intellij/completion/MethodGenerateHandler.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bc811c3d9a754409d8cb22fc854a29803029367c7ca54c1389e0bc81ff3c19"}},{"ruleId":"D2","level":"warning","message":{"text":"TransitionsAnimationBindingListener.shouldStart (cognitive 16): TransitionsAnimationBindingListener.shouldStart has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd15485bb74011b588408716ab9029afd741d9acb2868a778ee14195ab3ecb11"}},{"ruleId":"D2","level":"warning","message":{"text":"MountDelegate.collateExtensionsToUpdate (cognitive 16): MountDelegate.collateExtensionsToUpdate has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (15 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c915e05aa7ee9a21f1bd25f867db9011a26ca1f433193881810be4bffa27b3"}},{"ruleId":"D2","level":"warning","message":{"text":"RecyclerBinder.computeLayoutAsync (cognitive 16): RecyclerBinder.computeLayoutAsync has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":2388}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6708c3500c9a894f34613be067164ab4a8fa06e6144d20737b2fe489849c60"}},{"ruleId":"D2","level":"warning","message":{"text":"CollectionPrimitiveViewScroller.rememberScrollPosition (cognitive 16): CollectionPrimitiveViewScroller.rememberScrollPosition has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (16 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionPrimitiveViewScroller.kt"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f30b8db068b850ee6a94e80ff9530381743f9a5e12cab0ce849e7b53096fc5"}},{"ruleId":"D2","level":"warning","message":{"text":"YogaNodeJNIBase.getLayoutPadding (cognitive 16): YogaNodeJNIBase.getLayoutPadding has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4960dcc7ba49be2298442bf5aa6bcb943f64140ba513938f256ebad4e26cef4"}},{"ruleId":"D2","level":"warning","message":{"text":"EventGenerator.getEventInfo (cognitive 16): EventGenerator.getEventInfo has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 1 (3 pts), loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventGenerator.java"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"54b9379e35f8e60969510c20d6331059c605476e386bc2bf6ede9fc871498c24"}},{"ruleId":"D2","level":"warning","message":{"text":"SectionTree.setRoot (cognitive 16): SectionTree.setRoot has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, ternaries 3 (5 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6c410a7c2e42df55c8214d68e9f6701863765829a67e0999b25e851ab454cf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RecyclerBinder: ClassTooLong \u2014 2784 significant lines (blank, comment-only and punctuation-only lines excluded), 121 methods. The bar is 400 significant lines; this is 2384 over it, 6.96\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":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02ad64253c3a94c1df78f702fe35b1091c3f4ac498f5779390b9545a76670f1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Builder: TooManyMethods \u2014 186 methods. The bar is 30 methods; this is 156 over it, 6.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Component.java"},"region":{"startLine":1095}}}],"partialFingerprints":{"codehealthFindingId/v1":"c488c59bd5da9a3eba0e9c731af668ef27e6883333173a1317520b7f1fe5c8c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widget/RecyclerBinder.kt: FileTooLong \u2014 2875 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: RecyclerBinder (114-4685). The bar is 500 significant lines; this is 2375 over it, 5.75\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":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"777b16aedf76b5e8235672651ebe5d5f863f6b539c22e79c206f55b3d8ab3424"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ComponentTree: ClassTooLong \u2014 2229 significant lines (blank, comment-only and punctuation-only lines excluded), 114 methods. The bar is 400 significant lines; this is 1829 over it, 5.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"c25708fedf92ea9b26cf88bb0cc32d9d7f77530ab87130b0ae48ce686bb3d885"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/ComponentTree.kt: FileTooLong \u2014 2317 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: ComponentTree (118-3716). The bar is 500 significant lines; this is 1817 over it, 4.63\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":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1ba901c9311c0b5d034fb40b155b44a2bb7ee316974a2586758baf1fdca4d3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CommonProps: TooManyMethods \u2014 134 methods. The bar is 30 methods; this is 104 over it, 4.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":"litho-core/src/main/java/com/facebook/litho/CommonProps.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"32027978b2cc12e3fa79a822425287d53023419ed0b2490de07e455e0a362df7"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: YogaNative: TooManyMethods \u2014 124 methods. The bar is 30 methods; this is 94 over it, 4.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/yoga/java/com/facebook/yoga/YogaNative.kt"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"792f5bead07bb0486927e0c512b225ea2d0735b1ee0ad2795c536e1db17f82ce"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RecyclerBinder: TooManyMethods \u2014 121 methods. The bar is 30 methods; this is 91 over it, 4.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":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e19f0b182206723dd764db4d3e8660435e46e979c1d72be8053df8ec70b41a89"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ComponentTree: TooManyMethods \u2014 114 methods. The bar is 30 methods; this is 84 over it, 3.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8aec55d8173ffac99447db226d0ba2a4dd67c7a23503bfa595636bd7f7f4f67"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ComponentHost: TooManyMethods \u2014 102 methods. The bar is 30 methods; this is 72 over it, 3.40\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":"litho-core/src/main/java/com/facebook/litho/ComponentHost.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"49adba7962ef0a617105a412bcb0f794277d236a0b75474ab3d36917e8274b36"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.processVisibilityOutputsNonInc: MethodTooLong \u2014 processVisibilityOutputsNonInc runs 328 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 228 over it, 3.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d445933906796f5995517c900471d41d40b3fba7bf9b158b96905d0baf25c2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RCTextView: ClassTooLong \u2014 1280 significant lines (blank, comment-only and punctuation-only lines excluded), 79 methods. The bar is 400 significant lines; this is 880 over it, 3.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab28a16cb801e21d63679db58933f2d767d3b9a6299c99e0786de163d27e0a19"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: IncrementalMountExtension: ClassTooLong \u2014 1248 significant lines (blank, comment-only and punctuation-only lines excluded), 49 methods. The bar is 400 significant lines; this is 848 over it, 3.12\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":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ccef4f013c4befbd00bc615b8424dad7ad1f6c0b4c2f2370428314cb9c97580"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: YogaNodeJNIBase: TooManyMethods \u2014 93 methods. The bar is 30 methods; this is 63 over it, 3.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":"lib/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba6e7b6f9843e0813b1777b89b674ef03b1ae41ce0a93f9eb24e5b66f92141c4"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Component: ClassTooLong \u2014 1223 significant lines (blank, comment-only and punctuation-only lines excluded), 81 methods. The bar is 400 significant lines; this is 823 over it, 3.06\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Component.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"967a902de1ceb3402be486a06c55e52913a6326d79aca1d3023570e47fd5f414"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SpecGeneratedComponent: TooManyMethods \u2014 91 methods. The bar is 30 methods; this is 61 over it, 3.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":"litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"03674594f5a2800ad9d192b2ee33a4ce7f070c311d2bf0be4a33fbd637c0b61a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Companion: TooManyMethods \u2014 88 methods. The bar is 30 methods; this is 58 over it, 2.93\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":"litho-core/src/main/java/com/facebook/litho/ViewAttributes.kt"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"c518090ae9180e8bb774cfdc795992d0196d3140dc79e5cdc89f39d62180086c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LithoNode: TooManyMethods \u2014 87 methods. The bar is 30 methods; this is 57 over it, 2.90\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":"litho-core/src/main/java/com/facebook/litho/LithoNode.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"219f7ea2911aeb0db3a20b9f993b392791fb15a242be33bbf868e113d0df6aaa"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BaseMountingView: TooManyMethods \u2014 86 methods. The bar is 30 methods; this is 56 over it, 2.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BaseMountingView.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4db68208452183754014c0e3a50b829ae68a4ed6b1fc3cfaf2e49028e770fb"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BuilderGenerator: ClassTooLong \u2014 1109 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 709 over it, 2.77\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"d482332ede7a70fdb58f45631a0d6db0d82d8ae2f54c36f2abf914aa2fc64b89"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: YogaNode: TooManyMethods \u2014 83 methods. The bar is 30 methods; this is 53 over it, 2.77\u00D7 the bar. Most of these members implement yoga.YogaProps (59 of 83 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":"lib/yoga/java/com/facebook/yoga/YogaNode.kt"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1c262f155d644e8b1e47c3523df1fba865ec0715ecc72e78b54c5cc56a2758"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Component: TooManyMethods \u2014 81 methods. The bar is 30 methods; this is 51 over it, 2.70\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":"litho-core/src/main/java/com/facebook/litho/Component.java"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec71313e20b2acc6de833f78881add6aa7478f7be2953210f65f422e493c9242"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: sections/SectionTree.java: FileTooLong \u2014 1348 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 848 over it, 2.70\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce31f750ac9be564818abbb5f9fa0cc9d3116588a1c77551b9cf72da545a50b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: text/RCTextView.java: FileTooLong \u2014 1347 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: RCTextView (91-2198). The bar is 500 significant lines; this is 847 over it, 2.69\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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f200823450743b2644916f9b7c821cfcbba389322642f49dcc31fa48e29c45fc"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LithoReducer.collectResults: MethodTooLong \u2014 collectResults runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoReducer.kt"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"86db9a06c5896f0b36cc3582a7d7a45b7c77d4fd94b79e89198d2b3fd076e362"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RCTextView: TooManyMethods \u2014 79 methods. The bar is 30 methods; this is 49 over it, 2.63\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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b7ec4bf3ce128f89e9b0467f5537c047fb5bc967287a5518c1c8e014bca6a1e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/Component.java: FileTooLong \u2014 1307 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: Component (109-2823). The bar is 500 significant lines; this is 807 over it, 2.61\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":"litho-core/src/main/java/com/facebook/litho/Component.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8519ae05e46cb7ebcd3b433449a419dd0eca04c6b203f76a96ba4a6d6615f956"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widget/ExperimentalTextInput.kt: FileTooLong \u2014 1299 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 799 over it, 2.60\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"054a4bf91633dbca0d3c68996bb8faecb1db794196a8a2f929e9c769a8a06bb2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: incrementalmount/IncrementalMountExtension.kt: FileTooLong \u2014 1275 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: IncrementalMountExtension (47-1999). The bar is 500 significant lines; this is 775 over it, 2.55\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":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7bbaa92131a915018270adfe8a59a9e1ad1c73ce67f520e7ff1d936c65cd57"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SectionTree: TooManyMethods \u2014 76 methods. The bar is 30 methods; this is 46 over it, 2.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49eee2b7a575666346d5d72dfca7890dc4ffe7513e5f21a017852d1be86b075"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ExperimentalTextInput.render: MethodTooLong \u2014 render runs 252 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 152 over it, 2.52\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"19dc84226a3a119020033e8ed8abc5b67b5cf27b4a742a96995d30d674c06633"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/LithoReducer.kt: FileTooLong \u2014 1247 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 747 over it, 2.49\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoReducer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffc14e5b6132ead632f7dcb0c1ad56bebe102de6b063fb263073eaf9d3e89bd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CommonProps: ClassTooLong \u2014 989 significant lines (blank, comment-only and punctuation-only lines excluded), 134 methods. The bar is 400 significant lines; this is 589 over it, 2.47\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/CommonProps.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"769fb198f73f231e6f2aeafe3b44e3b10367416cf8ae3606b309bb4c8e4d77b1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/LithoYogaLayoutFunction.kt: FileTooLong \u2014 1221 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 721 over it, 2.44\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f51281aa299a9079f281949c01dc2bd5f7ec02ca34be303a14b3106840be10"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RenderUnit: ClassTooLong \u2014 968 significant lines (blank, comment-only and punctuation-only lines excluded), 27 methods. The bar is 400 significant lines; this is 568 over it, 2.42\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89147707a3169ad71ff610c4e72e78518283687242c1529b69f4da3242848a9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: collection/CollectionRecyclerComponent.kt: FileTooLong \u2014 1208 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 708 over it, 2.42\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionRecyclerComponent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3b69e1d7acbeb8c955513ce01454dc8c8b3568643368ddeca649cda453c7d12"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ComponentHost: ClassTooLong \u2014 966 significant lines (blank, comment-only and punctuation-only lines excluded), 102 methods. The bar is 400 significant lines; this is 566 over it, 2.42\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentHost.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"d477d088712f226f105170cc954aeed7c43762abbf45792fb286e0b414434df8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ComponentBodyGenerator: ClassTooLong \u2014 943 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 543 over it, 2.36\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e55e57008e20722377dd711ef5466e4a5a434260bc1263a138908c33b7c64d4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: generator/BuilderGenerator.java: FileTooLong \u2014 1148 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: BuilderGenerator (60-1436). The bar is 500 significant lines; this is 648 over it, 2.30\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"591d5d85115d9736a27cff47fb6f5ce16612d0aee2ca157dce9fe3dd05583d7f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CollectionRecyclerComponent.render: MethodTooLong \u2014 render runs 229 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 129 over it, 2.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionRecyclerComponent.kt"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6f506519bd1c97d46558542e177fdecd779742e387573b73a308ca0dabcbfd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LithoNode: ClassTooLong \u2014 911 significant lines (blank, comment-only and punctuation-only lines excluded), 87 methods. The bar is 400 significant lines; this is 511 over it, 2.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoNode.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfb74c9facbf2747f0cb3edaae24710c92e94c28a1ad247c766447ee0cfe91c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rendercore/RenderUnit.kt: FileTooLong \u2014 1137 significant lines (blank, comment-only and punctuation-only lines excluded), about 85% of them inside a single declaration: RenderUnit (45-1547). The bar is 500 significant lines; this is 637 over it, 2.27\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2acfc222357be44aae7629646b2f6c5ab0a390761e04ca89d141e7b5674c70"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LazyCollection.render: MethodTooLong \u2014 render runs 223 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 123 over it, 2.23\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyCollection.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6aa627b221ff895994fd18528ea2c96017a30a429538e76ba1183fc04c376e70"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BaseMountingView: ClassTooLong \u2014 890 significant lines (blank, comment-only and punctuation-only lines excluded), 86 methods. The bar is 400 significant lines; this is 490 over it, 2.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BaseMountingView.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b8427b3707b81ab0b470bdc8c24c875a26476f4cd82f7b9c34fc408bb82c232"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SpecModelImpl: TooManyMethods \u2014 65 methods. The bar is 30 methods; this is 35 over it, 2.17\u00D7 the bar. Most of these members implement model.SpecModel (47 of 56 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75c997619f3aaf9df689f43c6fdf17a808c75e30c4ea2afb3a72962dee8da21"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MountState: TooManyMethods \u2014 64 methods. The bar is 30 methods; this is 34 over it, 2.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountState.kt"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"386cb8b00a05dc8a48aae4af2811db2d8299a5713ec10f458c9376c7509eb99e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RCTextEditor: TooManyMethods \u2014 63 methods. The bar is 30 methods; this is 33 over it, 2.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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCTextEditor.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"69482ebed91b5caf052eae8c9e7607a635430377514e04da5f353713e0a01b0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rendercore/MountState.kt: FileTooLong \u2014 1044 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 544 over it, 2.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountState.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d25b8978dcfbe6f0b2b065b600b5ba067da492037a2c0780697d1305aabaec"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SpecModelImpl: ClassTooLong \u2014 828 significant lines (blank, comment-only and punctuation-only lines excluded), 65 methods. The bar is 400 significant lines; this is 428 over it, 2.07\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa240313836e990edd90f5491f39037c29ca774550cfa33e5fe1fb303ceda0c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/ComponentHost.kt: FileTooLong \u2014 1032 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: ComponentHost (81-1813). The bar is 500 significant lines; this is 532 over it, 2.06\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":"litho-core/src/main/java/com/facebook/litho/ComponentHost.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"351542c215632346f06aef4231d6b61572270b2995432af1a1c452b6788d6eea"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/CommonProps.kt: FileTooLong \u2014 1030 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: CommonProps (61-1662). The bar is 500 significant lines; this is 530 over it, 2.06\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":"litho-core/src/main/java/com/facebook/litho/CommonProps.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba54df031f9a40991a5591f99fb2525da7ac2477896affdcbb131daf23529c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: view/ViewStyles.kt: FileTooLong \u2014 1014 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 514 over it, 2.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/view/ViewStyles.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d5b83e83d19d9341bf8a8e71e3c66722d82a6aaaf4e6d50a2c29e6d8d36f928"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: generator/ComponentBodyGenerator.java: FileTooLong \u2014 1004 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: ComponentBodyGenerator (82-1325). The bar is 500 significant lines; this is 504 over it, 2.01\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f9f65bf3f8274757ffba7429a1f4375b91f5351dd3991963fea29f49a72a64"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/LithoNode.kt: FileTooLong \u2014 1002 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: LithoNode (85-1580). The bar is 500 significant lines; this is 502 over it, 2.00\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":"litho-core/src/main/java/com/facebook/litho/LithoNode.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e9270eb7fc26784117895d15bb10ee03e22708a7b4f89fa890781a64d65a094"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RenderUnit.updateBindersBitmask: MethodTooLong \u2014 updateBindersBitmask runs 200 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 100 over it, 2.00\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":878}}}],"partialFingerprints":{"codehealthFindingId/v1":"6337757c5eb63040c64ada34a70c48ff2cce93bcc34ff8deb7e721c69f17e473"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RenderUnit.updateBindersWithLists: MethodTooLong \u2014 updateBindersWithLists runs 199 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 99 over it, 1.99\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":602}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f9f82b25b288aa40744a12ddf7de21c707272ebfe2e80aca05c65949b2fc6c8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/BaseMountingView.kt: FileTooLong \u2014 963 significant lines (blank, comment-only and punctuation-only lines excluded), about 92% of them inside a single declaration: BaseMountingView (92-1739). The bar is 500 significant lines; this is 463 over it, 1.93\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":"litho-core/src/main/java/com/facebook/litho/BaseMountingView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7236b5fb494c264d782c21966710ef3928b277712efc54a849d14282ccac80d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TransitionManager: ClassTooLong \u2014 765 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods. The bar is 400 significant lines; this is 365 over it, 1.91\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":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2424e4adcd8db91471d10122d1b32be827663b4e809220898f36fb27cf5f66b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MountSpecModel: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\u00D7 the bar. Most of these members implement model.SpecModel (48 of 57 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/MountSpecModel.java"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"7282e9bfc5c37f573f83f9b53bad44c919a9b01bbfdf979004a7435969c829a3"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LithoRenderer: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39f0356290e50d8927bb2a47140ecdc768fe0bd735278e9897e914d75efb469"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ViewAttributes: ClassTooLong \u2014 736 significant lines (blank, comment-only and punctuation-only lines excluded), 5 methods. The bar is 400 significant lines; this is 336 over it, 1.84\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":"litho-core/src/main/java/com/facebook/litho/ViewAttributes.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"248ca4506253894edda709d0d04bdbecb3c55fb4e330224e3ff7fb96f0019dc6"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: NodeInfo: ClassTooLong \u2014 735 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 335 over it, 1.84\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":"litho-core/src/main/java/com/facebook/litho/NodeInfo.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9adcec364744f84fdecd983f0be3a848eef7086db22dbd909f6b6955994055"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextMeasurementUtils.layout: MethodTooLong \u2014 layout runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextMeasurementUtils.java"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"010c03f535e308506506c16a49adf9d51d8474c0fe50573c8d68adda2b58b064"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TreeState: TooManyMethods \u2014 54 methods. The bar is 30 methods; this is 24 over it, 1.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/TreeState.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e8d2fe0960bb9cffd0777d16a9f055db90b56851433cf3fa6540d1e76f8a68"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CollectionRecyclerComponentKt.CollectionPrimitiveViewMountBehavior: MethodTooLong \u2014 CollectionPrimitiveViewMountBehavior runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionRecyclerComponent.kt"},"region":{"startLine":1473}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4ce12edc41ef1b48e15d0dcf8856197af108035a59698925c61bb42d87a8475"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LithoRenderer: ClassTooLong \u2014 717 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods. The bar is 400 significant lines; this is 317 over it, 1.79\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":"litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc157cddbabcc68a429fc88ae9295da1052b0ddd4f6f6e25e1ba1f5e6918799"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: VisibilityMountExtension: ClassTooLong \u2014 708 significant lines (blank, comment-only and punctuation-only lines excluded), 8 methods. The bar is 400 significant lines; this is 308 over it, 1.77\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":"litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6d5d315ee751696259b79d0a3b7f5178a6df8b2cb8fe9a093b8f2ee808c10cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LayoutSpecModel: TooManyMethods \u2014 53 methods. The bar is 30 methods; this is 23 over it, 1.77\u00D7 the bar. Most of these members implement model.SpecModel (50 of 53 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/LayoutSpecModel.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0be4f619e36424dbe3281e844d59cf5ddc29c9265431b98e9f4d3e7fa548df2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RCHandleView: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCHandleView.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c175464d24ca7d418e5601d9aa196e9ef9efb45eb24589daeb21341f1f27bbd"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextMeasurementUtils: ClassTooLong \u2014 682 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 282 over it, 1.71\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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextMeasurementUtils.java"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b61bcd6786658ddd78385abc12db2addd857f09d160cb0e6a737f6b69567d205"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: GroupSectionSpecModel: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. Most of these members implement model.SpecModel (48 of 51 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":"litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/model/GroupSectionSpecModel.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"890953b638fae8037aeea0b4cc2c374f4bcdb440c7e87f68159603fbaccfcb27"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MockSpecModel: TooManyMethods \u2014 51 methods. The bar is 30 methods; this is 21 over it, 1.70\u00D7 the bar. Most of these members implement model.SpecModel (47 of 51 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":"litho-testing/src/main/java/com/facebook/litho/testing/specmodels/MockSpecModel.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"52a36e1f95413b18f5cb964d30a14a3dfbbcf4e8d8c1b626c3114214b135d8c7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: model/SpecModelImpl.java: FileTooLong \u2014 848 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: SpecModelImpl (40-1335). The bar is 500 significant lines; this is 348 over it, 1.70\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05304b396fc4c524ec0f2a7e2081989d2258a94c4ddcc99e7db22ea0e220b348"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TextDrawable: ClassTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 272 over it, 1.68\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":"litho-widget/src/main/java/com/facebook/litho/widget/TextDrawable.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2be33d82b9465ef41668e6c3186699fc1a66426bac70684843c6902d75d4aec"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RCTextEditor: ClassTooLong \u2014 668 significant lines (blank, comment-only and punctuation-only lines excluded), 63 methods. The bar is 400 significant lines; this is 268 over it, 1.67\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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCTextEditor.java"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"99df23181e2cd17ae37d4653fde6c806ec23dcecd1836ce5a5db258b9589e666"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DelegateMethodGenerator.getDelegationCode: MethodTooLong \u2014 getDelegationCode runs 167 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 67 over it, 1.67\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/DelegateMethodGenerator.java"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e0509f3ca38038128ae12a7a8b6af58b9612965b2faf328dc918c4be000801"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TestSpecModel: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. Most of these members implement model.SpecModel (47 of 49 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/testing/TestSpecModel.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7abe9df7b7cf14a097d92b5e1c7256bd3d6bb4c9d1f9804d9cfb0a340ec202"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DiffSectionSpecModel: TooManyMethods \u2014 50 methods. The bar is 30 methods; this is 20 over it, 1.67\u00D7 the bar. Most of these members implement model.SpecModel (47 of 50 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":"litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/model/DiffSectionSpecModel.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dc5454364b69a3bcf3ba955efeed9f6f0a069096b0531bfdcaf5106c550d22"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LithoYogaLayoutFunction: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\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":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"61a65b275c2f358a2c3f9ead76d5ba4e5f40f4d11ccecd52adf4c5de0a3015ec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: JavaStyle: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\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":"litho-core/src/main/java/com/facebook/litho/StyleCompat.kt"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b7d5e27a4c5b4e68cfdfdb94951a330bb7b15f049311df4d924aa304646e081"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: IncrementalMountExtension: TooManyMethods \u2014 49 methods. The bar is 30 methods; this is 19 over it, 1.63\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":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b7179d2043edb30ec212aefc4482769f984917fff88912cf33e20007f71184"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MountDelegate: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"1729bd9b232fb2e595d9a8956b37884e925c7558e54b8c76fd6db2310f6544ac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LithoViewAssert: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/assertj/LithoViewAssert.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c2c860a14fafe7a9f6a1f28035cab5091c7e7a3df2f2d09e19c2f339c0f888"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Builder: TooManyMethods \u2014 48 methods. The bar is 30 methods; this is 18 over it, 1.60\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveCard.kt"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e04de363b6a99f9e07d920488510ac929bba56621b2e3e71f8f2a3066cbf0e1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LithoSaveableStateRegistry: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoSaveableStateRegistry.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d7a8a5ecea77d241b57fef35f014362079fd85b979a017d2a5e8eeb00d7f6b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StyleCompat: TooManyMethods \u2014 47 methods. The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/StyleCompat.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dc4a0303785f9d05aad02433644ab1837aab3847f0a14537c2dd3b39db130d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/TransitionManager.kt: FileTooLong \u2014 783 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: TransitionManager (84-1397). The bar is 500 significant lines; this is 283 over it, 1.57\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":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b330015e5bbacdd96fbf44fd86c02eee6ddeae9095c56f91a7ef809dd6f8efc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/LithoRenderer.kt: FileTooLong \u2014 771 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: LithoRenderer (42-1275). The bar is 500 significant lines; this is 271 over it, 1.54\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":"litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"651ba17c1805925b6222501baa75f41cb8579ccec0c2cfb01c8a63ff1c312751"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TransitionsExtension: ClassTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded), 15 methods. The bar is 400 significant lines; this is 216 over it, 1.54\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionsExtension.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cc06b4aa2cd7e5127a1fa7606febd150ba28ed9b1dd530cc621808f19c12a2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Builder: TooManyMethods \u2014 46 methods. The bar is 30 methods; this is 16 over it, 1.53\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/specmodels/MockSpecModel.java"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5fdb9e8b33f8b5c9e2ccc9ab0c8e462dd0b38b978876cdd14d873fa67e4c7f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/ViewAttributes.kt: FileTooLong \u2014 762 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: ViewAttributes (46-1277). The bar is 500 significant lines; this is 262 over it, 1.52\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":"litho-core/src/main/java/com/facebook/litho/ViewAttributes.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e5a21a78eeba29cdfc57458e67d19e2d52a76ee441fb3626e3e111b06c11de"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: PreparedStateRangeWorker: ClassTooLong \u2014 608 significant lines (blank, comment-only and punctuation-only lines excluded), 35 methods. The bar is 400 significant lines; this is 208 over it, 1.52\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":"range-manager/src/main/kotlin/com/meta/rangemanager/PreparedStateRangeWorker.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f3672c9c602f0d88572cf9ad73e5e0c4f602598e111c6c7f73ae4e10c91cf1b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MockSpecModel: ClassTooLong \u2014 602 significant lines (blank, comment-only and punctuation-only lines excluded), 51 methods. The bar is 400 significant lines; this is 202 over it, 1.51\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":"litho-testing/src/main/java/com/facebook/litho/testing/specmodels/MockSpecModel.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d762540cfb260f397b5ca8c9ba1f2227e2edf46d9987b412b802e6ecd558023"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: HostView: TooManyMethods \u2014 45 methods. The bar is 30 methods; this is 15 over it, 1.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/HostView.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2907c72e8a7c314589934b410ba42226e8847f65a8c06dbe20a9fb5f2544a0ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/NodeInfo.kt: FileTooLong \u2014 749 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: NodeInfo (36-1163). The bar is 500 significant lines; this is 249 over it, 1.50\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/NodeInfo.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32552c86b78b3e91dd59fc23065c34a681fc23e234ec4e21bb548f26172c778"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: visibility/VisibilityMountExtension.kt: FileTooLong \u2014 730 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: VisibilityMountExtension (41-1149). The bar is 500 significant lines; this is 230 over it, 1.46\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":"litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb5443ce1694f3181aec43d8f8f078602b67f49c20cd3f43ab4ab27c0ea46d2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MatcherGenerator: ClassTooLong \u2014 583 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 183 over it, 1.46\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc093d3a07bae46cb6e6ed9d45dc91d641cc6af15aa68a0648a81e456355dce"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CollectionPrimitiveViewLayoutBehavior.layout: MethodTooLong \u2014 layout runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionRecyclerComponent.kt"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1060a487d375b60774dbf9e47e6fa0af7815042bbfdf9bf22bf62f25de777d6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BuilderGenerator: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ecef6b9a33d3d3cb08465edbebda433377fefe5dab52e62d11598400c074132"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ZoomableViewBaseController: TooManyMethods \u2014 43 methods. The bar is 30 methods; this is 13 over it, 1.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-zoomable/src/main/java/com/facebook/rendercore/zoomable/ZoomableViewBaseController.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa51c0749069acfa45828dea271a795e976faf61b307ab6017dca399b0b4ca3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: text/TextMeasurementUtils.java: FileTooLong \u2014 715 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: TextMeasurementUtils (52-1033). The bar is 500 significant lines; this is 215 over it, 1.43\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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextMeasurementUtils.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"81b9b5cc45ad58783c123deff7ea4cbc9090bdfcc0f08bb054190a916518658a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widget/TextDrawable.kt: FileTooLong \u2014 707 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: TextDrawable (60-1058). The bar is 500 significant lines; this is 207 over it, 1.41\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":"litho-widget/src/main/java/com/facebook/litho/widget/TextDrawable.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec6bafc93dbac61faed98e82f4e70476776d098804fe61c502985cbdfa69c95"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: selection/RCTextEditor.java: FileTooLong \u2014 705 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: RCTextEditor (72-1326). The bar is 500 significant lines; this is 205 over it, 1.41\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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCTextEditor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee865e62388b1a3b399380594da495a5d95eb77add8a1fd745b958bf679ca2d0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LithoView: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\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":"litho-core/src/main/java/com/facebook/litho/LithoView.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"8129f37af2dc52c7f083f8602973d1be36a75e3f66d8e192a7d035b14cdcc30a"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DelegateMethodDescriptions: ClassTooLong \u2014 560 significant lines (blank, comment-only and punctuation-only lines excluded), 0 methods. The bar is 400 significant lines; this is 160 over it, 1.40\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/DelegateMethodDescriptions.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e54b5a97269ce2f3e749034ddb40a3e8e79d1b574af5a6bb0aa7c2953c781a6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BuilderGenerator.generatePropsBuilderMethods: MethodTooLong \u2014 generatePropsBuilderMethods runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"d731a055b39e5c6b11b48ace6d75d4eeb8d7356f460fb67a764859802781680b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PropValidation.validate: MethodTooLong \u2014 validate runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/PropValidation.java"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"c064e00f024c63f2f210026661af086e5ee4a88c07119a39a8904cb813a9d1e4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChangeSetState.generateChangeSetRecursive: MethodTooLong \u2014 generateChangeSetRecursive runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/ChangeSetState.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c50753370c5a7a2a7f001288ff914a6d3cac5b7b6a2fe2cb77511dc2124592"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ComponentContext: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"litho-core/src/main/java/com/facebook/litho/ComponentContext.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c0888e1aa3f1f85c14d882dac66253bdb58cd7cc3264a0690ae08e26bfe9d34"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ComponentBodyGenerator: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab709c666d12894ef152b486b6354f0265fcbcc5cef8c76e96e5fcae3570bff"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MatcherGenerator: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fe372c5704496928711b04ffb5570dff5c54cefbfb5d07801498c248ad7230"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TestLithoView: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\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":"litho-testing/src/main/java/com/facebook/litho/testing/TestLithoView.kt"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"745cf2fa9c3acf87b6871b530132f9d5299268f6753c41311d16b97d283b1e89"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ListRenderUnit: ClassTooLong \u2014 545 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods. The bar is 400 significant lines; this is 145 over it, 1.36\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":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/ListRenderUnit.java"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"572639ffa1a417dd8b2b9e8d244cf74b46729a9fa0e542ad677ca131481976e2"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: StateHandler: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/StateHandler.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b342f82b704e6b35bb2bad0e907ddf08892cc89b0f53e7af637e8e2bdeb968"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: YogaLayoutProps: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. Most of these members implement litho.LayoutProps (34 of 40 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":"litho-core/src/main/java/com/facebook/litho/YogaLayoutProps.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"06e098ac52a7a718ba01320fc545a3d25a15cd3a24f77f469aa5d21a36a5804d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SectionLifecycle: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/SectionLifecycle.java"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38f29c5e2e6f848376382961e92202afdcbb1ce56af15e209287ed657759c52"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TextDrawable: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/TextDrawable.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b458baf4600c7ee2de5b2f9e89f0d0ef36c6359711ce252b2e98ca10aa7a1a8"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LithoView: ClassTooLong \u2014 530 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 130 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoView.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"698dbd3b339ee31d0e4fb9cb9949f25dd4ce1cad23575627f0d47eb081813aee"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TextMeasurementUtils.createTextLayout: MethodTooLong \u2014 createTextLayout runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextMeasurementUtils.java"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c81c356060bbd820e1c2db792fc8ee9ce3990ba5f67f1c17e0d87e0e739933"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/TransitionsExtension.kt: FileTooLong \u2014 653 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: TransitionsExtension (57-1056). The bar is 500 significant lines; this is 153 over it, 1.31\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":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionsExtension.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ade21d66ae03c8c723e3fb5fb91df38f1ca36746735102e920c5407e51ffb7e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RCRecyclerView.dispatchKeyEvent: MethodTooLong \u2014 dispatchKeyEvent runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/RCRecyclerView.java"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5f062d57965ce81a185a054dbb3542096cc771f63452d83fc0388b22c7e39e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: specmodels/MockSpecModel.java: FileTooLong \u2014 641 significant lines (blank, comment-only and punctuation-only lines excluded), about 94% of them inside a single declaration: MockSpecModel (59-873). The bar is 500 significant lines; this is 141 over it, 1.28\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":"litho-testing/src/main/java/com/facebook/litho/testing/specmodels/MockSpecModel.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8485f24cb4619510c4c3113e2a1bb543c81ad005b4ecb47a7429437aead0edd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LithoYogaLayoutFunction.buildYogaTree: MethodTooLong \u2014 buildYogaTree runs 127 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 27 over it, 1.27\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"af182203bbfa73be7a2faa4bc29530a62119c3e13539be9f8fb67d3a81863015"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LithoReducer: TooManyMethods \u2014 38 methods. The bar is 30 methods; this is 8 over it, 1.27\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoReducer.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ff24b3f4cb1a83d3cb701e323117cb3a73bbccf75ed9906c94ca6938420bea"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ZoomableViewBaseController: ClassTooLong \u2014 496 significant lines (blank, comment-only and punctuation-only lines excluded), 43 methods. The bar is 400 significant lines; this is 96 over it, 1.24\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-zoomable/src/main/java/com/facebook/rendercore/zoomable/ZoomableViewBaseController.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"649e852e06fffce55c0d8a2db966720bbc8b45d79e253c3b1118575e94fb2015"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: LayoutState: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LayoutState.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d78595d4cf4a9fe08a60b461d8322354fca4dd4cece01be08cb7586fa78f376"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: NullWriter: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. Most of these members implement litho.LayoutProps (32 of 37 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":"litho-core/src/main/java/com/facebook/litho/NullNode.kt"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"2599549e3fadeedf5e9b6a3446741bc64ccd736eeb9babb09590885e8ad388cb"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Section: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/Section.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ea2d67427a6e2ec3b8cc0972682774bbbb56e9a90c389465f28b608dc6be29"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ComponentTestHelper: TooManyMethods \u2014 37 methods. The bar is 30 methods; this is 7 over it, 1.23\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/helper/ComponentTestHelper.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"815bad66819eab1851ca87d40326c555707ff2d279c614116390c8cafef0c063"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: model/DelegateMethodDescriptions.java: FileTooLong \u2014 616 significant lines (blank, comment-only and punctuation-only lines excluded), about 91% of them inside a single declaration: DelegateMethodDescriptions (77-678). The bar is 500 significant lines; this is 116 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/DelegateMethodDescriptions.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6558ca2c0e9d3238fb9dd561f229809c03e2d87429b2dfb483bf40fcd22488b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: testing/MatcherGenerator.java: FileTooLong \u2014 615 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: MatcherGenerator (53-793). The bar is 500 significant lines; this is 115 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fa0357d9f11d1edd101b6f63414826a0a7e898dea9dae397bdbe0e7cba76036"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rangemanager/PreparedStateRangeWorker.kt: FileTooLong \u2014 613 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: PreparedStateRangeWorker (38-920). The bar is 500 significant lines; this is 113 over it, 1.23\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"range-manager/src/main/kotlin/com/meta/rangemanager/PreparedStateRangeWorker.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3208f0ba53f4182f70a9ac9d6d5d17c8a15e21d3eda0bc363fd4cb672bb1e325"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ComponentBodyGenerator.getCompareStatement: MethodTooLong \u2014 getCompareStatement runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd16df996c3485c2580cae10e624d383cd75fdc4efabdc2a63260a90d9e62455"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.getLayoutData: MethodTooLong \u2014 getLayoutData runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/DebugComponentDescriptor.kt"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"133f606b58fed18651b14cfdef39006c1119fc92f1cfa870982a44a0656ecb7c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BoxLayoutPropsRecorder: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. Most of these members implement litho.LayoutProps (34 of 36 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":"litho-core/src/main/java/com/facebook/litho/BoxLayoutPropsRecorder.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4ebf0e0aad7eeb1534c92cf53a5e0a6f4932be56487a244e2e0ffcfbe134d7c"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: OtherProps: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/CommonProps.kt"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"91ae6e07477d7f7e2b61871b2e0018bb979ea870c7151033258c75b980a55cec"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DefaultLayoutProps: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. Most of these members implement litho.LayoutProps (34 of 36 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":"litho-core/src/main/java/com/facebook/litho/CommonProps.kt"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df4525645dd30e83854f60ac5bfea02acf0ecc33be10b3cc5d3bf2f157e8603"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Builder: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/config/ComponentsConfiguration.kt"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b5b017bbd3cf6d4d035be97a416c4ace08bb4aef8d576550ad009f6e205f0d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RCHandleView: ClassTooLong \u2014 479 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 79 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCHandleView.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84427c8d999b2b49d5f6b1f665fc9688a28b272b1cbb6158719c4d23994c99f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TreeFuture.runAndGet: MethodTooLong \u2014 runAndGet runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/TreeFuture.kt"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1537debcdeb83d441ab823265b1f1692c2ae47889ddac01c0ad597f275193b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MeasureListUtils.measureListSizeV2: MethodTooLong \u2014 measureListSizeV2 runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a955841d3cc8d4ef6d1ce5d0e38426e3a18df80506a770690311da05ecb5a2"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RenderState: ClassTooLong \u2014 475 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 75 over it, 1.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderState.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8f4bc4521089c24fa26a2c140f073af564995a90281288cda69361dd0e87af"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Component.measure: MethodTooLong \u2014 measure runs 118 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 18 over it, 1.18\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Component.java"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"131069aa0fb46a37120034fc8d8d726d59d8eae75ccd9a9c9ab4f858a041bc93"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rendercore/MountItemsPool.kt: FileTooLong \u2014 589 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 89 over it, 1.18\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountItemsPool.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0106ecece60a55271051708932f5696e2c5e349a9e815cecdfd7bd766f7215"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: YogaNodeJNIBase: ClassTooLong \u2014 468 significant lines (blank, comment-only and punctuation-only lines excluded), 93 methods. The bar is 400 significant lines; this is 68 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e436eab1d68b177cc80e536cdc027fa54ecae81260ad0ae8717ad8e1dedee46d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Companion.layout: MethodTooLong \u2014 layout runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LayoutTreeFuture.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"2827dbc7ccf64869e9e8101189cb44ec64387bef11c6b0c5f537792b4ee9cddc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ComponentAssert: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/assertj/ComponentAssert.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d16a038538bb7cadab113bb0ad790b81f93d34c4a45d1d67b0b051f00048bd5"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PreparedStateRangeWorker: TooManyMethods \u2014 35 methods. The bar is 30 methods; this is 5 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"range-manager/src/main/kotlin/com/meta/rangemanager/PreparedStateRangeWorker.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1a2d44f227682be82130ad15cea8454722cf1b842eb8928a45013fe849121a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LayoutUtils.measureDeferredNode: MethodTooLong \u2014 measureDeferredNode runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LayoutUtils.kt"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3231a9e91833f91c3107a519854b2622c93475d65ecbb490c67cb9146b3d04d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BuilderGenerator.generateBuilder: MethodTooLong \u2014 generateBuilder runs 116 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 16 over it, 1.16\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"11fa592a8e4e8881550a0229a9c248b148562132c53e66c75a7314edd85a9bdf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ComponentAccessibilityDelegate: ClassTooLong \u2014 460 significant lines (blank, comment-only and punctuation-only lines excluded), 32 methods. The bar is 400 significant lines; this is 60 over it, 1.15\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":"litho-core/src/main/java/com/facebook/litho/ComponentAccessibilityDelegate.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"10d9f19337d2b965b704d4177725c9e96b7dac53df7259071ea3a10ac3f6c740"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LithoYogaLayoutFunction.onBoundsDefined: MethodTooLong \u2014 onBoundsDefined runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":1187}}}],"partialFingerprints":{"codehealthFindingId/v1":"665232025c9b5ea7492646913df8459ab7d00a03e051cc909ad721151312635b"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ComponentContext: ClassTooLong \u2014 454 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 54 over it, 1.14\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":"litho-core/src/main/java/com/facebook/litho/ComponentContext.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f04d2a011af8f4585c56f99fafbae01f9ef28e0d78338ecb26eb5eb435e0788"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ResourceResolver: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/ResourceResolver.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"50918c856abe0a358626a5197499b65b64453804f5c0c6973faa01287746e741"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MountDelegate: ClassTooLong \u2014 453 significant lines (blank, comment-only and punctuation-only lines excluded), 48 methods. The bar is 400 significant lines; this is 53 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1fddc9fa880f223db892c0fe386de51a18018ad9f3b8f4a906f7581b700ba15"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: EventGenerator.generateEventMethod: MethodTooLong \u2014 generateEventMethod runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventGenerator.java"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"a31dba803b0e6f4848323a8219e4a9c5a9ccba6fd4415a9f72aa748d677c9061"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MeasureListUtils.measureListSize: MethodTooLong \u2014 measureListSize runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"915c98c7fbd0796b92d2269a7a94b81330e61c8d554ea63d932a4cc42b286e41"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: simplelist/ListRenderUnit.java: FileTooLong \u2014 564 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: ListRenderUnit (39-785). The bar is 500 significant lines; this is 64 over it, 1.13\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":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/ListRenderUnit.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0896da055c40c0ef94c46776bc3f07b436b7fb88e33ca84f3bf41181bcfe86c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/SpecGeneratedComponent.java: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 56 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1114e7d125c72edb864b0a9d6afe9bdcc090f38dbbdfb925b99e020c3d6c0f0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ComponentTree.setRootAndSizeSpecInternal: MethodTooLong \u2014 setRootAndSizeSpecInternal runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37d5985ba9c750061ec6dfcaea242b841d10a19dfb07220f15bf74a1c05b86f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NodeInfo.copyInto: MethodTooLong \u2014 copyInto runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/NodeInfo.kt"},"region":{"startLine":797}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1c3380179859849721173021699d5b63c977586857a9733172aef406e70988f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DelegateMethodValidation.validateMethods: MethodTooLong \u2014 validateMethods runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/DelegateMethodValidation.java"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"17309802a29e4f8b596d617e9d4e50af0f1898926145b7aa6e83ddcc5c633161"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: litho/LithoView.kt: FileTooLong \u2014 554 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: LithoView (44-938). The bar is 500 significant lines; this is 54 over it, 1.11\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45258e3f2449319afca099d2a9e22ffa41e51ddd4898f948f909ef1081026c12"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: TriggerGenerator: ClassTooLong \u2014 441 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 41 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4d2d11b0410bc04fb6e65e901d81f9afae3152ed385bad7953b614710cfb1a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: MatrixDrawable: 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":"litho-core/src/main/java/com/facebook/litho/MatrixDrawable.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed4a26095c7764521fb168fa0ba36cdf0b313836f60d82a70a0d95c13d6d02b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ComparableDrawableWrapper: 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":"litho-core/src/main/java/com/facebook/litho/drawable/ComparableDrawableWrapper.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"513137d1f347a5835047709bc5d26d2b5c335f66b268bc9f88658e32ce6e60f1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ViewTreeAssert: 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":"litho-testing/src/main/java/com/facebook/litho/testing/viewtree/ViewTreeAssert.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"55357a8f0e5ce3a3d2f29351b463fa3de3ba716379de2fcf1e2743c27ba89bcb"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DelegateMethodGenerator.generateDelegate: MethodTooLong \u2014 generateDelegate runs 110 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 10 over it, 1.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/DelegateMethodGenerator.java"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ceda2f18a1e7bf785497de71985f1a1e29c0a94b196dce31b71bc708e7d0706"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: LithoReducer.spliceFromSnapshot: MethodTooLong \u2014 spliceFromSnapshot runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoReducer.kt"},"region":{"startLine":1244}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c8de1867d1b16af8e1b4b645022f1e9aee34db27ea3e156a16c8dbdbf018e16"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: DelegateMethodValidation: ClassTooLong \u2014 433 significant lines (blank, comment-only and punctuation-only lines excluded), 19 methods. The bar is 400 significant lines; this is 33 over it, 1.08\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/DelegateMethodValidation.java"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae10e883fa38d883f1b028d0b4ff44e14fc61ae7dd5e44260936ecd2811bb98e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SpecModelImpl.\u003Cinit\u003E: MethodTooLong \u2014 \u003Cinit\u003E runs 108 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 8 over it, 1.08\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"81c26f9347ae54bc65b7460c7f95b98f65101ec00877c30ff75c3f8eb0eb78ff"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OptimizedContextualEffectHandler.updateEffects: MethodTooLong \u2014 updateEffects runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/effects/OptimizedContextualEffectHandler.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4c00ccf100677d6807d17a1847c627d8f300c2df1ae16b5e9aff73732dcf97"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ComponentAccessibilityDelegate: TooManyMethods \u2014 32 methods. The bar is 30 methods; this is 2 over it, 1.07\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":"litho-core/src/main/java/com/facebook/litho/ComponentAccessibilityDelegate.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1ebca720c7f97f3bed90ed4027da74ed4480b9d60e4db8e437338fa47fbb560"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: MountState.unmountItemRecursively: MethodTooLong \u2014 unmountItemRecursively runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountState.kt"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"e920136780225dbfc9f3a31b39398c2ac6826f481a200acef0d88365f671dc82"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rendercore/RenderState.kt: FileTooLong \u2014 527 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: RenderState (38-734). The bar is 500 significant lines; this is 27 over it, 1.05\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderState.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6060b8eb78b488003d72c9649417e290e13f8f0a637783b2dd1d298dc9d05a12"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: LithoSaveableStateRegistry: ClassTooLong \u2014 421 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods. The bar is 400 significant lines; this is 21 over it, 1.05\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":"litho-core/src/main/java/com/facebook/litho/LithoSaveableStateRegistry.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e07a5b72ae13bcb48ee7d34af6cd05870b21d8131242d5b4baa1f24c763eead"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: StateHandler: ClassTooLong \u2014 418 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods. The bar is 400 significant lines; this is 18 over it, 1.05\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":"litho-core/src/main/java/com/facebook/litho/StateHandler.kt"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f360ec3a7edf295486f5be9884aee367e97c1da81a32e4fc4e9e10d65350312"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DebugLayoutNodeEditor: 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":"litho-core/src/main/java/com/facebook/litho/DebugLayoutNodeEditor.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"76511f881bd69b098f5d57af4d58bc867d048884c0d063582ee611e75be4a79f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RCRecyclerView: 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":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/RCRecyclerView.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc39ae8006ee16fad4dbe428797b7f3942b630ee372387055dee78b29c32a662"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Spring: 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":"litho-rendercore-transitions/src/main/java/com/facebook/litho/dataflow/springs/Spring.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecac492246c1be8346d364f457783c35361af5c40eff48fc3b042471e8917665"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: zoomable/ZoomableViewBaseController.kt: FileTooLong \u2014 515 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: ZoomableViewBaseController (38-747). The bar is 500 significant lines; this is 15 over it, 1.03\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":"litho-rendercore-zoomable/src/main/java/com/facebook/rendercore/zoomable/ZoomableViewBaseController.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f66a5a6be4f50d23554eca46397e0925ad6aaae788e6bf4ff24f436062a365"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: widget/Recycler.kt: FileTooLong \u2014 510 significant lines (blank, comment-only and punctuation-only lines excluded), about 63% of them inside a single declaration: Recycler (53-505). The bar is 500 significant lines; this is 10 over it, 1.02\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":"litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2beacaf53b7b379f5343b29710506c42a28bf2c169e8b0ce866a57ee09cda8"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: selection/RCHandleView.java: FileTooLong \u2014 506 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: RCHandleView (61-865). The bar is 500 significant lines; this is 6 over it, 1.01\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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCHandleView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ea2ee56eddac1439b2324a1c810e3228f1c3782676e75f1cdf4543f951d6fa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: NodeInfo.isEquivalentTo: MethodTooLong \u2014 isEquivalentTo runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/NodeInfo.kt"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"448f0265c38887433bb56dec34111595be8b82130f73c547cc4b2a07e6c2899d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RCRecyclerView: ClassTooLong \u2014 401 significant lines (blank, comment-only and punctuation-only lines excluded), 31 methods. The bar is 400 significant lines; this is 1 over it, 1.00\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":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/RCRecyclerView.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9897898157abd7c4a351a8dfe68ab0d5fbe4132ee8ea9af6813fb2e15eb897"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (188 shared lines): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:612-871 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:888-1156 \u2014 These two members are variants of one another: 188 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbd80b58891be96e9e2f2ba57b481aebb24ddbd96f8563001fcdc3dbe2aac585"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (131 shared lines): litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:160-313 | litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:334-487 \u2014 These two members are variants of one another: 131 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82518e0826e4b99d45b965d5c1bd77531dc707c61dee912c9f99fb35e5dabad"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (100 shared lines): litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:84-223 | litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:245-390 \u2014 These two members are variants of one another: 100 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e4ebf4dff282921a6b272fdb52a8a9b0ee1ce52a971f0ef6aa3cee82e2a2354"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/CardClipDrawable.kt:58-96 | litho-widget/src/main/java/com/facebook/litho/widget/TransparencyEnabledCardClipDrawable.kt:68-110 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/CardClipDrawable.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7ad120615b4f935b0d5c951f2789cc6effc69018cd954b147b3c93f639d7e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/canvas/DrawPathCanvasKComponent.kt:39-82 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/SimpleCanvasExampleComponent.kt:48-156 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/canvas/DrawPathCanvasKComponent.kt"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e408349f47821c0fc2ed7e95022f6f81be71c7c5bbf0d108ab982082a314c5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/ParallelTransitionWithAnimatorsComponent.kt:49-81 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/SequenceTransitionLoopComponent.kt:51-88 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/ParallelTransitionWithAnimatorsComponent.kt"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"b92f4cd7278c81cb742390ee49e0d0172cc761e160f4666cb929b5e01afeeb56"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:278-295 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:297-314 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:358-375 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:377-394 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:401-424 \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":"litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df933563764ebacf5ef622bc587d80e7281ace5b899760379fb64c8ebbbd9d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt:241-260 | litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt:268-287 | litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt:295-316 | litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt:324-345 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b9164599f06d975a71eacf6f89676adda7611f0865c3f0ef982b63b18c38b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:597-620 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:631-654 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:665-688 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:699-722 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b4e89f9cbae4d8fedc032886582d555eba68fd8a6879c0f4a5f782b8056b92a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:209-218 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:222-230 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:234-246 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:250-259 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"103e3824b5d0e6a5ad4f30b427c681db222c86997e5c7f893111fcfb31f01ac4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): litho-processor/src/main/java/com/facebook/litho/specmodels/model/DefaultLayoutSpecGenerator.java:45-84 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/DefaultMountSpecGenerator.java:59-104 | litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/model/DefaultDiffSectionSpecGenerator.java:55-91 | litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/model/DefaultGroupSectionSpecGenerator.java:56-94 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/DefaultLayoutSpecGenerator.java"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"050c8d915aa572c7f20a2fbcd05cf37def70aaa03ff655048cc0cd9f704f16ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java:77-156 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/TriggerMethodExtractor.java:75-139 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/WorkingRangesMethodExtractor.java:68-101 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/WorkingRangesMethodExtractor.java:192-226 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61560ecd632d250c383f8cdc4f292e983c764f7befc6edd755d9d922c216faf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (77 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/RCTextStyleHelper.kt:76-152 | litho-widget/src/main/java/com/facebook/litho/widget/TextStylesHelper.kt:193-275 \u2014 These two members are one piece of code written twice and then edited apart: 77 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RCTextStyleHelper.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd73a6e60c39cc1f8ef56e133d40d2962541b0144913b97623d5ebcc557a562e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:368-410 | litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt:249-295 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"addf49f65b35a08940636ffc2d8b31e8a65043385a16862c5b668018cc6b2bae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (34 corresponding lines): litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:412-445 | litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt:297-335 \u2014 These two members are one piece of code written twice and then edited apart: 34 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4752d4b3f938af1dfd808fbe63c00b38dc028910ab79f9f7f6c18266eb341a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:276-315 | litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:317-366 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3c3f5573e003104cc6194200af982061abf0b5c31a0406ebdb24e2cca36919"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/DiffSectionSpecModelFactory.java:141-188 | litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/GroupSectionSpecModelFactory.java:138-184 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/DiffSectionSpecModelFactory.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"6113d7c29611b0efbec9feb0c7171e153e4cc2386db9afc627b11d8e2d5e7b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 62\u002B corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java:517-586 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java:654-724 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java:732-793 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java:827-896 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java:904-973 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java:981-1042 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 62 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a00ed827e839ef72340f53f4d9efcb867131a963075d1fbd7791bc95c1612c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/integration/dataflow/DataFlowComponent.kt:47-115 | sample-kotlin/src/main/java/com/facebook/samples/litho/integration/uistate/UiStateComponent.kt:93-139 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/integration/dataflow/DataFlowComponent.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a91d1eab361c9dcef44ffcbf61b359f0fa5e9c01d0b7d03a1125eff0b1f5641"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/HorizontalScroll.kt:176-245 | litho-widget/src/main/java/com/facebook/litho/widget/VerticalScroll.kt:357-422 \u2014 These two members are one piece of code written twice and then edited apart: 66 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/HorizontalScroll.kt"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f77eb6623ca171b2432f64df4badc2995bbea8b4993c2f07b4b09c606b39b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiDiffSectionSpecModelFactory.kt:43-89 | litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiGroupSectionSpecModelFactory.kt:46-92 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiDiffSectionSpecModelFactory.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec571a68412725f02de7268dc5d99c55c3c06e6a0483578b71e7553fc1c0d1a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): litho-core/src/main/java/com/facebook/litho/debug/DebugInfoReporter.kt:62-110 | litho-core/src/main/java/com/facebook/litho/debug/DebugInfoReporter.kt:123-171 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/debug/DebugInfoReporter.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"47996991d64c9f383ca4ce04405fea970d81bd80f1ffeaf0ee32ad3af45eaf93"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1390-1449 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1464-1517 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":1390}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e751f0a7cead62b74d714b6de60e9aa5e6774c668eef19d916e3938517bd35"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (47 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/RangeManagerFeedActivity.kt:283-329 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/RangeManagerFeedActivity.kt:340-391 \u2014 These two members are one piece of code written twice and then edited apart: 47 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/RangeManagerFeedActivity.kt"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"819ff319239ac137aa2ce8754f73de651dcb260fe32cc0feb715201cb5983fc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt:4141-4179 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionPreparationManager.kt:400-436 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":4141}}}],"partialFingerprints":{"codehealthFindingId/v1":"855eb36e3a4101b55a8bee2dc56c64c5c790c0d37872c2c4754140a1d173b5e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): litho-core/src/main/java/com/facebook/litho/KComponent.kt:44-94 | litho-core/src/main/java/com/facebook/litho/layout/RenderWithConstraints.kt:123-181 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/KComponent.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e37d0eaa700948a7df4fee58f3b120daad1e166b084d292a2ddd36c3d07aa34"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (58 corresponding lines): litho-rendercore-transitions/src/main/java/com/facebook/litho/animation/AnimatedProperties.kt:377-434 | litho-rendercore-transitions/src/main/java/com/facebook/litho/animation/AnimatedProperties.kt:458-515 \u2014 These two members are one piece of code written twice and then edited apart: 58 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/litho/animation/AnimatedProperties.kt"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"d44d20dad2c82bde9d083f8deb48354cbd82662ad7ba218b8e8568678307f91e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java:645-682 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java:685-723 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"854ccfd6553cf59c2d2b4d45b98a4c98c8c5f6c78181b828f140accab9ae476d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): litho-core/src/main/java/com/facebook/litho/Column.kt:121-164 | litho-core/src/main/java/com/facebook/litho/Row.kt:116-159 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Column.kt"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"052f02372cfc005b77c78f7ad39819ae93d2c18dc5d01bc6e8219059bfb9708d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 40\u002B corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/processor/BindDynamicValuesMethodExtractor.java:43-82 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/DelegateMethodExtractor.java:80-123 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/UpdateStateMethodExtractor.java:90-131 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 40 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/BindDynamicValuesMethodExtractor.java"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"090e4ed2e54ec8fc23e5b20a34ccc8fc435856cb16790c917ffef88a0634d3a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/animatedbadge/AnimatedBadgeKotlin.kt:75-138 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/AnimatedBadgeComponent.kt:87-138 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/animatedbadge/AnimatedBadgeKotlin.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81bb12b49e6ebcee8bff7f527f6a8b3cfdab3e8874793613c7f8bc0fc992e2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): litho-core/src/main/java/com/facebook/litho/Column.kt:77-109 | litho-core/src/main/java/com/facebook/litho/Row.kt:77-104 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Column.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"7906f1345bd3e43581ae9e0c221ced2461f527a0500e4f8387fbd50613274e9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/TextDrawable.kt:489-516 | litho-widget/src/main/java/com/facebook/litho/widget/TextDrawable.kt:774-825 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/TextDrawable.kt"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b5fbac9fb740dd6880cabc8f8226f83e6df769d7579e2fbc5ca2cbbc8c48ece"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt:666-688 | lib/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt:690-712 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"84082a7ad464c7437f5cf9d2d61b4580af61f01faed28b270b7703956b6ea794"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/WorkingRangeGenerator.java:55-78 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/WorkingRangeGenerator.java:81-104 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/WorkingRangeGenerator.java"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"af836bd8e566130c9560d984cd871b8fb252c655ee2c38ae32cb8a3d69791e6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): litho-core/src/main/java/com/facebook/litho/ComponentAccessibilityDelegate.kt:509-548 | litho-core/src/main/java/com/facebook/litho/ComponentAccessibilityDelegate.kt:560-607 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentAccessibilityDelegate.kt"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ae4020ef1e7731590ea6849a02b548f59f466adaf87adde0e9a09aaeaa89b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/bounds/BoundsAnimationComponent.kt:145-195 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/bounds/BoundsAnimationComponent.kt:197-235 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/bounds/BoundsAnimationComponent.kt"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2e9b5d20b6065ea55b571f8a5bdde99f51be12aa12829f2bfcb5617b5093f17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt:132-180 | litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt:184-227 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf2bdf5905bec0cc6b1342d2d5836a1ae1ebe7b301a302ff086e26f1fe836173"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinderOperationExecutor.kt:90-115 | litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinderOperationExecutor.kt:120-146 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinderOperationExecutor.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dd0777684a80368a3a9f54a3be2c26829c5ef2905ed75406a402ac1bd66dd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/SpanCollectionKComponent.kt:28-42 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/StickyHeaderCollectionKComponent.kt:28-37 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/SpanCollectionKComponent.kt"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf657338ac768230afc9c041270dbba13d0899a2977804f87ad790ac4bceb6d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:426-440 | litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:463-477 | litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:495-509 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/StyleCompat.kt"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"64e8a672f27684a6ecc99e53b200d32278754ccd3a001d891ba0f39efce0ccab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:442-456 | litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:479-493 | litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:511-525 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/StyleCompat.kt"},"region":{"startLine":442}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d8a9d17f0f730242fec68a7f613f53b03dbbbdf320b231e7c37d65d9792ef74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ListEditorInstance.kt:43-65 | litho-editor-core/src/main/java/com/facebook/litho/editor/instances/MapEditorInstance.kt:51-76 | litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ObjectEditorInstance.kt:54-78 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ListEditorInstance.kt"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d921d3446b4dc66145132c990adab56b4379e27f81acb4a1751b4a881cf20178"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/integration/reactivebridge/CallbackBridgeComponent.kt:48-93 | sample-kotlin/src/main/java/com/facebook/samples/litho/integration/reactivebridge/UseFlowBridgeComponent.kt:44-72 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/integration/reactivebridge/CallbackBridgeComponent.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"083d5cacdf57abca31117af2f10d4a8900820e0c731c368d0c710574a42f9ad0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): litho-testing/src/main/java/com/facebook/litho/testing/Whitebox.java:46-73 | litho-testing/src/main/java/com/facebook/litho/testing/Whitebox.java:95-123 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/Whitebox.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"8220188b149561c85f3f111c9c185730bfbc201c4f47af6cc51e7b995adb008a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:577-592 | litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:594-609 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/StyleCompat.kt"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"927a769f24cc389d3f04a3c38f6410bcdba4256ac879d408b35c431d809cfdd7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiDelegateMethodExtractor.kt:37-72 | litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiEventMethodExtractor.kt:39-79 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiDelegateMethodExtractor.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"debdbf64de337aa514ef851844dd5a50ef1316a72d9ed1173203d29b1dc1f656"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 30\u002B corresponding lines): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:234-266 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:273-310 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:328-365 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:373-402 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 30 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd06e0f813b4e9c38ba31d1ba1bad9d6bf8e7438d20b83e70e1c8fb54475d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountOutput.kt:54-95 | litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountOutput.kt:107-134 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountOutput.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a834a7ec2b517ddc1a61bf9e1f065e7210f3122fecb9b2fbc9abe6686236882"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:1071-1095 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:1104-1130 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":1071}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9260bb19e9d733745149b65c1937ff948991ba45a90a1081e604f06d991a8bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java:103-127 | litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java:132-156 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf4cf16fb95c01c5b96079434944bf2035ff8ecf4722b1d1c676c7395a2fc01"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/FlexboxComponent.kt:45-66 | sample/src/main/java/com/facebook/samples/litho/onboarding/PostStyledKComponent.kt:41-62 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/FlexboxComponent.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d80e6b207ec17a1053491fda5d1db926d757e9c03743445df63aa45b8a096a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCWordIterator.java:94-111 | litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCWordIterator.java:130-147 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCWordIterator.java"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c19e76f75ea8d0076f782f9399ac60d105bd0f9647ad8e884a68cb1f3212bdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 27\u002B corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/model/LayoutSpecModel.java:61-89 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/MountSpecModel.java:71-105 | litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/model/DiffSectionSpecModel.java:84-110 | litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/model/GroupSectionSpecModel.java:84-110 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 27 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/LayoutSpecModel.java"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"e474096c9c6d6f78aabfc36a1dc5e439d59765128b2934bca2fecee9a8598d2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt:3313-3348 | litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt:3357-3397 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":3313}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c203594a733d73a0de50a288cbafa60e71a061674b7b37becb84a77229577f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/canvas/DrawShapeCanvasKComponent.kt:36-58 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/canvas/DrawStrokedShapeCanvasKComponent.kt:37-63 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/canvas/DrawShapeCanvasKComponent.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8f8652b26f6cde00a0ce899f4903f51acb1a84a4659c059b0304cba0bad448"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:410-432 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:440-465 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6e5b7ece623fe430f203cc66a3b8c81bff80f5c92422b935d49bcc04ca8cda"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): litho-core/src/main/java/com/facebook/litho/animation/InfiniteAnimationGroup.kt:72-104 | litho-core/src/main/java/com/facebook/litho/animation/UseAnimationGroup.kt:67-106 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/animation/InfiniteAnimationGroup.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"25d1154b1d10549fd04918b948ca15f76e5d6a847f717f6f39f777220f200136"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:654-677 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java:383-402 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d6b8a0159f47ac6ab5ef058c26edbcae49efe7c8c67653305e3047add70e97"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt:1932-1949 | litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt:1955-1972 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f7d52abd6e8539946676c19de2eecf9185170a7f81a5151a2b3116d8d16cd98"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): litho-core/src/main/java/com/facebook/litho/LithoReducer.kt:1857-1874 | litho-core/src/main/java/com/facebook/litho/LithoReducer.kt:1876-1895 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoReducer.kt"},"region":{"startLine":1857}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc027705867954ee9c0dc087617511c2f424fb150442b19838419393f2ac2c1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): litho-core/src/main/java/com/facebook/litho/ComponentTree.kt:2341-2369 | litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt:796-825 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":2341}}}],"partialFingerprints":{"codehealthFindingId/v1":"511487e20f0347e352104d53a5ce92ed80015a13837e0c7028432d8671fd66cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): litho-rendercore-transitions/src/main/java/com/facebook/litho/animation/AnimatedProperties.kt:206-229 | litho-rendercore-transitions/src/main/java/com/facebook/litho/animation/AnimatedProperties.kt:262-285 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/litho/animation/AnimatedProperties.kt"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"52db5c0ae291c64da4ce4da95ab94c45fa4ccfb6fe93d25d7ae1b905c68d6a7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (36 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/ComponentTreeHolder.kt:235-270 | litho-widget/src/main/java/com/facebook/litho/widget/ComponentTreeHolder.kt:292-327 \u2014 These two members are one piece of code written twice and then edited apart: 36 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/ComponentTreeHolder.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b272f18afab155d57755b89f996dabac5dcd116fde8928c658bcbe251e6239a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): litho-editor-core/src/main/java/com/facebook/litho/editor/instances/MapEditorInstance.kt:32-49 | litho-editor-core/src/main/java/com/facebook/litho/editor/instances/StyleEditorInstance.kt:33-50 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-core/src/main/java/com/facebook/litho/editor/instances/MapEditorInstance.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d979136e7af7a56a8c7bf0ae041989da9f557d1b7640007e38c5771830eae22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java:279-302 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java:400-431 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9372004dce0f0be99e43dafda7abb924f1c459b52717007fff6247fb589ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/StartSnapHelper.kt:214-237 | litho-widget/src/main/java/com/facebook/litho/widget/StartSnapHelper.kt:243-265 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/StartSnapHelper.kt"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a26d2db84eb41780d695f46d2b2feb713e900b8b4157f65a787ec7409b1440"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/InterStagePropsContainerGenerator.java:30-46 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/PrepareInterStagePropsContainerGenerator.java:29-45 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/InterStagePropsContainerGenerator.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"f40c5e4037d63b5c3069baafc57ca7eee3792bbfdce55d90e4a96fa4c4df3513"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/model/DelegateMethodValidation.java:455-470 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelUtils.java:125-135 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelUtils.java:137-148 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/DelegateMethodValidation.java"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"0468c41cda2919f16b71490ba156aa4a36b288628acc82d4d8cdcb9a65a0fc3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): litho-core/src/main/java/com/facebook/litho/view/ViewStyles.kt:692-712 | litho-core/src/main/java/com/facebook/litho/view/ViewStyles.kt:722-741 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/view/ViewStyles.kt"},"region":{"startLine":692}}}],"partialFingerprints":{"codehealthFindingId/v1":"a119dbe5cdbb3d472ce4615bd7e0fb1f145336ec4c2a8278e3e7b7e2bb941de6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/GridLayoutInfo.kt:107-126 | litho-widget/src/main/java/com/facebook/litho/widget/GridLayoutInfo.kt:132-151 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/GridLayoutInfo.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc7601b285806f15d5a37a18a0c5ae1d42d65c031476a12d04aa26411c02609b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): litho-testing/src/main/java/com/facebook/litho/testing/specmodels/MockSpecModel.java:731-775 | litho-testing/src/main/java/com/facebook/litho/testing/specmodels/MockSpecModel.java:828-871 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/specmodels/MockSpecModel.java"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"254d16a42f40a6d118be72f6dd7cb114515cdf4e76f48ccf87c40dd7baa0f8fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): litho-editor-core/src/main/java/com/facebook/litho/editor/SimpleEditor.kt:37-49 | litho-editor-core/src/main/java/com/facebook/litho/editor/SimpleEditor.kt:52-64 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-core/src/main/java/com/facebook/litho/editor/SimpleEditor.kt"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad8ef1501c2655add051316cfab4220c91c2414932feaec4b7275c2146de5f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinderUpdateCallback.kt:68-83 | litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinderUpdateCallback.kt:110-123 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinderUpdateCallback.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"69eefbb7c0c3daac113a3b3f7eb907b215e59934a9cc6d389185aeca5a975d02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): litho-widget/src/main/kotlin/com/facebook/litho/widget/canvas/CanvasScope.kt:160-183 | litho-widget/src/main/kotlin/com/facebook/litho/widget/canvas/CanvasScope.kt:209-233 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/canvas/CanvasScope.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2538abaf41d56d14053ef49f4dc5c07c069f580e2f8c0c8b3b04045b75e76754"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 12\u002B corresponding lines): litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyGridScope.kt:173-184 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyGridScope.kt:208-220 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyListScope.kt:196-207 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyListScope.kt:233-245 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyGridScope.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"6322931618cba8a0f3508602255b04a2d3d1c9229a5a239f34e7797be5992e36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): litho-core/src/main/java/com/facebook/litho/LithoYogaMeasureFunction.kt:34-43 | litho-core/src/main/java/com/facebook/litho/LithoYogaMinContentMeasureFunction.kt:47-56 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoYogaMeasureFunction.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"893b7d46668f22a344653e6f35e576ef43d134a20d2e38537c0d997f44c3c7ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): litho-instrumentation-tests/src/main/java/com/facebook/litho/widget/focus/KeyboardTraversalCards.kt:61-74 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/accessibility/KeyboardTraversalComponent.kt:131-159 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-instrumentation-tests/src/main/java/com/facebook/litho/widget/focus/KeyboardTraversalCards.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"da74bf361f8c3cc0a8bd272ee2924b31d781f8463bb9b97c0fa5ae1b0194399a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/WorkingRangeGenerator.java:106-120 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/WorkingRangeGenerator.java:162-176 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/WorkingRangeGenerator.java"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9537426dd213aa5eb7be1fe4d92e02050b4d5a985e3e7f0473bb1ae90f5230f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/AlphaTransitionComponent.kt:46-61 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/TransitionComponent.kt:45-67 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/AlphaTransitionComponent.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa415055d17d706e585f5568782f8721813140c4287734d7ec3d4447227c719f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/StaggeredGridLayoutInfo.kt:106-121 | litho-widget/src/main/java/com/facebook/litho/widget/StaggeredGridLayoutInfo.kt:127-142 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/StaggeredGridLayoutInfo.kt"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f5e8055543b291bbed02b738c6acc890c84439cf7b6b41fcd1edc5587548ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionLayout.kt:135-160 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionLayout.kt:193-213 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionLayout.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"694d21b38ab65f2e882b1419bcb23a29aa5c67a0d9a3a1e57190d1d4652c8f57"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/GlobalKeyNotWorkingComponents.kt:61-79 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/GlobalKeyWorkingComponents.kt:64-82 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/GlobalKeyNotWorkingComponents.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1077e0c35e43b2fec7fb75adf49ec8268e0a679d7a62323369f5cbb2ec67539"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): litho-core/src/main/java/com/facebook/litho/LithoNode.kt:720-742 | litho-core/src/main/java/com/facebook/litho/LithoNode.kt:744-764 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoNode.kt"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"09425aa6809ad7a91cc165553a4c5712818e8bcf0877e038eb9ec84fe23d06a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): litho-rendercore/src/main/java/com/facebook/rendercore/Dimen.kt:78-95 | litho-rendercore/src/main/java/com/facebook/rendercore/Dimen.kt:97-112 | litho-rendercore/src/main/java/com/facebook/rendercore/Dimen.kt:114-129 | litho-rendercore/src/main/java/com/facebook/rendercore/Dimen.kt:135-150 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/Dimen.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6ec0bb5643ad6857e152b0d88d900edda97b5d2c1ad9a2bb1b87033433d0d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:112-126 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java:69-84 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab13e4ab8f1e9065965d114e237d22469372684f2397fd485bb95a30b8263fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/SimpleAllLayoutTransitionComponent.kt:44-52 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/SimpleAllLayoutTransitionComponent.kt:58-69 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/SimpleAllLayoutTransitionComponent.kt"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ad186f20a4e08dfb0354a80d3ddd7d5e0958a314da8e9207f568b991914c83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): litho-core/src/main/java/com/facebook/litho/DefaultComponentsReporter.kt:34-48 | litho-rendercore/src/main/java/com/facebook/rendercore/DefaultErrorReporter.kt:29-49 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/DefaultComponentsReporter.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"acca7aa5be6790be1e76b153a2efbd3e51fac51261908c2b7d402485e16f19c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): litho-core/src/main/java/com/facebook/litho/state/ReadTrackingUtils.kt:80-96 | litho-core/src/main/java/com/facebook/litho/state/ReadTrackingUtils.kt:105-121 | litho-core/src/main/java/com/facebook/litho/state/UiStateReadRecords.kt:154-166 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/state/ReadTrackingUtils.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"079eb73b730c312ee9b8a3298fbef472639f262ad73948f2d9bbe18b58b33871"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java:999-1018 | litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java:1030-1045 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0f561190427fd357f369e8c3e60d8e78aaf9ab0c252f77f61c2a44461e8979"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): litho-core/src/main/java/com/facebook/litho/BaseMountingView.kt:1150-1183 | litho-core/src/main/java/com/facebook/litho/BaseMountingView.kt:1231-1261 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BaseMountingView.kt"},"region":{"startLine":1150}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5eb76065b9e32c8cfc870846b535802089781251d66825110a1918fc67a4c80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt:646-665 | litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt:703-721 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1f76506b63ffaf6cc687167fb7a9aa908363f6bfa29f6863e8016b3d09ef6c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java:161-175 | litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java:180-194 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"d671eaca755639c3757f36441d771825f1ccf9608d2455e478901f5a8917bb5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): litho-core/src/main/java/com/facebook/litho/animated/Animated.kt:45-60 | litho-core/src/main/java/com/facebook/litho/animated/Animated.kt:75-91 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/animated/Animated.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87d607fa1b4ef1cb6226a07fe5ccaa07207765de789cbd6afaefbe5297049d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): litho-testing/src/main/java/com/facebook/litho/testing/sections/TestTarget.java:108-116 | litho-testing/src/main/java/com/facebook/litho/testing/sections/TestTarget.java:152-160 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/sections/TestTarget.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"336b89b6e26464e3405f2adba0ea07b17b925cce3a8b5e3b31486e8493536b8a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): litho-core/src/main/java/com/facebook/litho/ComponentHost.kt:353-369 | litho-core/src/main/java/com/facebook/litho/ComponentHost.kt:382-397 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentHost.kt"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"49f511c3792d4fe3f48bd2e4be4f225cc6065e8c505b22c569fd14bccdc7b417"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): litho-sections-core/src/main/java/com/facebook/litho/sections/BatchedTarget.java:60-75 | litho-sections-core/src/main/java/com/facebook/litho/sections/BatchedTarget.java:87-102 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/BatchedTarget.java"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca95c768e9681fe28a41dee33d8d25c63b95ed4ab136809c501341d1133f60e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 11\u002B corresponding lines): litho-core/src/main/java/com/facebook/litho/DebugLayoutNodeEditor.kt:123-133 | litho-core/src/main/java/com/facebook/litho/DebugLayoutNodeEditor.kt:135-145 | litho-core/src/main/java/com/facebook/litho/DebugLayoutNodeEditor.kt:159-169 | litho-core/src/main/java/com/facebook/litho/DebugLayoutNodeEditor.kt:171-181 | litho-core/src/main/java/com/facebook/litho/DebugLayoutNodeEditor.kt:199-209 | litho-core/src/main/java/com/facebook/litho/DebugLayoutNodeEditor.kt:211-221 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/DebugLayoutNodeEditor.kt"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"227737136022e557935b154953af4a8b6b76132152f99f014bb22d61687597d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): litho-sections-core/src/main/java/com/facebook/litho/sections/Children.java:59-72 | litho-sections-core/src/main/java/com/facebook/litho/sections/Children.java:82-95 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/Children.java"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"8943135ff1d60aeb929af5296231cf4a37ccd1fab75f11db5d8d91d177d3739e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 15\u002B corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/HasIntrinsicSizeGenerator.java:28-42 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/MountSpecGenerator.java:38-52 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/PureRenderGenerator.java:28-42 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/StateGenerator.java:69-83 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/HasIntrinsicSizeGenerator.java"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a34dd1c92be0a1a90de36c07e581e9c0dd96cbbd3bcbfb90c17642e28f9fc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): litho-testing/src/main/java/com/facebook/litho/testing/InteractionUtil.java:46-60 | litho-testing/src/main/java/com/facebook/litho/testing/InteractionUtil.java:62-72 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/InteractionUtil.java"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0b3ef91c6c5ce4eb5fffefd410f897ec5bf74e40bad70d5d196ad04728e01e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt:1103-1128 | litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt:1135-1165 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed17e9145612dcca36257a31a0407c8912bbfcc7a254928730075bf5bcc51b59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/HorizontalScrollKComponent.kt:65-76 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/HorizontalScrollKComponent.kt:81-92 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/HorizontalScrollKComponent.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d00fd9478974e3a9687dc0c7c8ef8763e1099e5659590115552ac3dd39fb8c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java:253-266 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java:269-280 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"609bbbfe95e638319da0750e50ff17b3ea6df4180e710518b00a2236bfe64c2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 10\u002B corresponding lines): litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java:538-547 | litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java:560-572 | litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java:1391-1402 | litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java:1404-1413 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ffc2dafd9eaba7aa122987931e19f81fab9e3488fe7178102ce51d3d213c8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/model/SpecModelValidation.java:36-46 | litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/model/SpecModelValidation.java:49-59 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/model/SpecModelValidation.java"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fd5d4c9e09525c37b83d22a12392b7f6bc200ae15b792dcedc04d4f34f7271"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionDiffCallback.kt:36-52 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionDiffCallback.kt:54-71 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionDiffCallback.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"30165a1f817fe5b9454450c6430a20611c208a41c6ba25b1d153dc9b1ca84b08"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): litho-core/src/main/java/com/facebook/litho/DebugLayoutNodeEditor.kt:99-109 | litho-core/src/main/java/com/facebook/litho/DebugLayoutNodeEditor.kt:111-121 | litho-core/src/main/java/com/facebook/litho/DebugLayoutNodeEditor.kt:147-157 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/DebugLayoutNodeEditor.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"1595136ff8d5b90c65b34128739d6442dea62f1c50d16ad3bd98b88f2c506c44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): litho-rendercore-transitions/src/main/java/com/facebook/litho/animation/AnimatedProperties.kt:188-201 | litho-rendercore-transitions/src/main/java/com/facebook/litho/animation/AnimatedProperties.kt:244-257 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/litho/animation/AnimatedProperties.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"85594682cbfd1aabe1e0d69a95e0d89155732630ff35f5004966501c6dd303d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/bordereffects/AlternateColorCornerPathEffectBorder.kt:32-55 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/bordereffects/AlternateColorPathEffectBorder.kt:31-48 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/bordereffects/CompositePathEffectBorder.kt:31-52 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/bordereffects/AlternateColorCornerPathEffectBorder.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"5776cbe61fab6fe9261426bfcec2bacbe74b410da10883e2d15664be2b907a36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): litho-intellij-plugin/src/main/java/com/facebook/litho/intellij/navigation/BaseLithoComponentsDeclarationHandler.kt:113-123 | litho-intellij-plugin/src/main/java/com/facebook/litho/intellij/navigation/BaseLithoComponentsDeclarationHandler.kt:130-140 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-intellij-plugin/src/main/java/com/facebook/litho/intellij/navigation/BaseLithoComponentsDeclarationHandler.kt"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"be21e13d9d9d342e02c83070cb12234a18e83f3e7b16b29e77a2ff1e5a893c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/AnimatedContainerDemos.kt:216-226 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/InfiniteAnimationDemos.kt:361-377 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/AnimatedContainerDemos.kt"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fdca3438729887fca3fa1d00066358a2a37ad78680238d67833ce3bb3cba993"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/bordereffects/AlternateColorWidthBorder.kt:30-47 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/bordereffects/RtlColorWidthBorder.kt:32-46 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/bordereffects/AlternateColorWidthBorder.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d2952805ad33e823a7a00609820370093789d3ea70563ef8f188e1f4274224"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/SimpleCanvasExampleComponent.kt:328-341 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/SimpleCanvasExampleComponent.kt:343-356 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/SimpleCanvasExampleComponent.kt"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"600f04e9cfec6dc85c44df453053a7dee7a0f48ca999e3c6ed8324c3b33aa2f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCTextEditor.java:371-382 | litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCTextEditor.java:385-396 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCTextEditor.java"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"34362a86d073bddc2657808c55dcd65b0eda0a56b3073e805bb05bea85dbf9e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCWordIterator.java:150-160 | litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCWordIterator.java:163-173 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCWordIterator.java"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6913f8244b8a102f5493528b12b0da092cd52126f155cded7c9ef2a0205ca5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): litho-testing/src/main/java/com/facebook/litho/testing/viewtree/ViewTreeAssert.kt:479-497 | litho-testing/src/main/java/com/facebook/litho/testing/viewtree/ViewTreeAssert.kt:499-513 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/viewtree/ViewTreeAssert.kt"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a65355d0fe77c2ae3311af5c7cb5aac89b228d8db10b338f208532d291dbb38"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 11\u002B corresponding lines): litho-core/src/main/java/com/facebook/litho/Component.java:1543-1553 | litho-core/src/main/java/com/facebook/litho/Component.java:1602-1612 | litho-core/src/main/java/com/facebook/litho/Component.java:1707-1717 | litho-core/src/main/java/com/facebook/litho/Component.java:2444-2454 | litho-core/src/main/java/com/facebook/litho/Component.java:2490-2500 | litho-core/src/main/java/com/facebook/litho/Component.java:2509-2519 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Component.java"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d3679fa9c5e9a9ffa42608c640ffb7585479b293b674d623d6841f1a8783a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java:493-507 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java:807-819 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"2917636d46f41954dfc47317f98fc56e4677b9e4f63f7ba89bcf72232858e161"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt:135-152 | litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt:1293-1307 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"7802a1343c41b29b5de97da132eb6b5950c83ac22d2a6ec054ef1b6a978bd633"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): litho-testing/src/main/java/com/facebook/litho/testing/eventhandler/EventHandlerTestHelper.java:86-96 | litho-testing/src/main/java/com/facebook/litho/testing/eventhandler/EventHandlerTestHelper.java:99-109 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/eventhandler/EventHandlerTestHelper.java"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"97e2c9b3db73aefc729dfcefb066e1891ad76ded72d9cc7e9a0d0868c366b91c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt:993-1003 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/SampleTextInput.kt:106-115 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf39876a76047adf80c8fbb88d9352f76d1d7e8ac61c711dc2cceea0f06e4e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (5 members, 11\u002B corresponding lines): litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyGridScope.kt:101-112 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyGridScope.kt:135-147 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyListScope.kt:120-131 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyListScope.kt:156-168 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyListScope.kt:270-280 \u2014 These 5 members are one piece of code written 5 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 5 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyGridScope.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"40339938329f473495130ed70b5ec533e23732bc44cce78ce6f5eae2b94fd6f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): litho-core/src/main/java/com/facebook/litho/layout/flexbox/FlexboxContainer.kt:99-115 | litho-core/src/main/java/com/facebook/litho/layout/flexbox/FlexboxContainer.kt:162-178 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/layout/flexbox/FlexboxContainer.kt"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc459d742e6a47882be18bf5b96ea0f2abbf78dad2fec9d3e546dbd8930e45ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 7\u002B corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventDeclarationModel.java:48-56 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/WorkingRangeDeclarationModel.java:33-39 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/WorkingRangeMethodModel.java:33-40 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 7 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventDeclarationModel.java"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3f3f0c045b8c9ea387dcf6a7c24421e8e01c9fcc3d07ff6e1ce7e48c8dca82"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): litho-surface/src/main/kotlin/com/facebook/litho/surface/LithoSurface.kt:139-155 | litho-surface/src/main/kotlin/com/facebook/litho/surface/LithoSurface.kt:193-209 | litho-surface/src/main/kotlin/com/facebook/litho/surface/LithoSurface.kt:234-250 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-surface/src/main/kotlin/com/facebook/litho/surface/LithoSurface.kt"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5aaf3fe618d43704a5544a02633ae13efddfe98d50c722da0aadcba28388d66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): litho-surface/src/main/kotlin/com/facebook/litho/surface/LithoSurface.kt:273-288 | litho-surface/src/main/kotlin/com/facebook/litho/surface/LithoSurface.kt:290-305 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-surface/src/main/kotlin/com/facebook/litho/surface/LithoSurface.kt"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a36992e12832121c69f048928a1011412d57cc2bf6d8477bb08c77444f65f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt:3007-3022 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionPrimitiveViewScroller.kt:227-243 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":3007}}}],"partialFingerprints":{"codehealthFindingId/v1":"f26c58d75e1e34677b084aa1e6cb21449244cc1189d689a80293db63eec6b38c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): litho-testing/src/main/java/com/facebook/litho/testing/assertj/ComponentAssert.java:57-66 | litho-testing/src/main/java/com/facebook/litho/testing/assertj/ComponentAssert.java:68-79 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/assertj/ComponentAssert.java"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45a1c048557d97b938ce6951f897aa15b5f5eeee6478ae94799aa9747d9c16d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 14\u002B corresponding lines): litho-core/src/main/java/com/facebook/litho/visibility/VisibilityStyles.kt:169-182 | litho-core/src/main/java/com/facebook/litho/visibility/VisibilityStyles.kt:201-214 | litho-core/src/main/java/com/facebook/litho/visibility/VisibilityStyles.kt:230-243 | litho-core/src/main/java/com/facebook/litho/visibility/VisibilityStyles.kt:259-272 | litho-core/src/main/java/com/facebook/litho/visibility/VisibilityStyles.kt:288-301 | litho-core/src/main/java/com/facebook/litho/visibility/VisibilityStyles.kt:320-333 | litho-core/src/main/java/com/facebook/litho/visibility/VisibilityStyles.kt:348-361 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/visibility/VisibilityStyles.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ed0e3a42932552d0a1b995fcf00f61d31a2789d4d12dad88989290ffab02e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): litho-espresso/src/main/java/com/facebook/litho/testing/espresso/ComponentHostMatchers.java:49-66 | litho-espresso/src/main/java/com/facebook/litho/testing/espresso/LithoViewMatchers.java:43-56 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-espresso/src/main/java/com/facebook/litho/testing/espresso/ComponentHostMatchers.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"74068c8a4935bdaffef241991f9b8cdf0411acee8b26f861e9b7c57f49ec55e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/bordereffects/AlternateColorBorder.kt:30-49 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/bordereffects/VaryingRadiiBorder.kt:30-51 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/bordereffects/AlternateColorBorder.kt"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"7098b525767c00b09209153ee5c4fe7cea8a3abdec5a41158f6cf27538d98a17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/HorizontalCardCarouselComponent.kt:148-159 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/HorizontalCardCarouselComponent.kt:178-190 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/HorizontalCardCarouselComponent.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"761491263b694b43b7f8522d9634160a0b71ca6a984b8ae8593c534ec44a08ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): litho-widget/src/main/kotlin/com/facebook/litho/kotlin/widget/Card.kt:45-60 | litho-widget/src/main/kotlin/com/facebook/litho/kotlin/widget/VerticalScroll.kt:50-69 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/kotlin/widget/Card.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"b647ea4d406a0d7c378984f449a6868ee3c76d2adcc44ca7fc20f6e2a4180c4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): litho-core/src/main/java/com/facebook/litho/DeferredLithoLayoutResult.kt:41-51 | litho-core/src/main/java/com/facebook/litho/DeferredLithoLayoutResult.kt:53-63 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/DeferredLithoLayoutResult.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"aae344c1c994a049fe670a1cad4ac287f9ebd98daa1f29113ac1ca2a7102f615"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelValidation.java:62-73 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelValidation.java:76-88 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelValidation.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91066cffbd729489d1d17a4c16d789ad6a0e37eafe10bdef8208a7801b24bbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): litho-sections-core/src/main/java/com/facebook/litho/sections/SectionLifecycle.java:372-390 | litho-sections-core/src/main/java/com/facebook/litho/sections/SectionLifecycle.java:435-446 | litho-sections-core/src/main/java/com/facebook/litho/sections/SectionLifecycle.java:458-468 | litho-sections-core/src/main/java/com/facebook/litho/sections/SectionLifecycle.java:477-487 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/SectionLifecycle.java"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1625a999058bf5c0318e3643861d33fb3c45da9113014b468c88c6410e33b2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/integration/listpagination/PaginatedGridComponent.kt:131-146 | sample-kotlin/src/main/java/com/facebook/samples/litho/integration/listpagination/PaginatedListComponent.kt:218-235 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/integration/listpagination/PaginatedGridComponent.kt"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79248b9585d3ee5a852e9b80da46f7bf43d87a058628cc8b0b5bc8336f00ac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:557-574 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:1013-1031 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d07f6d5f1e81efb72651ff1f15411b47137cab77deb6949aa520ca47d954e8f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java:530-537 | litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java:539-545 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc0a46c1fc5d9f1af7125de7bac5a548e2fa5c7207ac0c0c6b43b7f80b90c339"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): litho-core/src/main/java/com/facebook/litho/animation/AnimationGroup.kt:214-226 | litho-core/src/main/java/com/facebook/litho/animation/InfiniteAnimationGroup.kt:236-248 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/animation/AnimationGroup.kt"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a83b09db262750758e3c3924eb36bb4ba2e19369c141f48d5be0c7c25a91b09"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/RCTextStyleHelper.kt:169-180 | litho-widget/src/main/java/com/facebook/litho/widget/TextStylesHelper.kt:291-300 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RCTextStyleHelper.kt"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44d2275f45f1e0fbf6c62c44b554803428cd877943d251fa37514115a871ae1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/StickyHeaderControllerImpl.kt:42-56 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/NewStickyHeaderController.kt:247-260 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/StickyHeaderControllerImpl.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b63a0549ada18c148d31b2cf30cae8c2b6fc0efae33e3c078cf800fe6a39f9c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/canvas/SimpleImageViewExamplePrimitiveComponent.kt:34-43 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/SimpleImageViewWithAccessibilityExamplePrimitiveComponent.kt:33-47 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/canvas/SimpleImageViewExamplePrimitiveComponent.kt"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bc93d80a146e8c7dee72ddd2769d6e492a02bd4024f15a22e43220186fd67d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): litho-core/src/main/java/com/facebook/litho/ComponentTree.kt:1421-1429 | litho-core/src/main/java/com/facebook/litho/ComponentTree.kt:1437-1445 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c8b0fe1ea3f7e5ba3c990861d82fad945faf71cff2b2819850adb168a84753c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/UseCachedWithDependencyComponent.kt:31-40 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/UseCachedWithoutDependencyComponent.kt:31-42 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/UseCachedWithDependencyComponent.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"12e957fcc818c9ebecc93b3f0c5362d3610bd207ac81db2ec3c631db2f5a4f7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java:377-388 | litho-sections-core/src/main/java/com/facebook/litho/sections/SectionLifecycle.java:120-130 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5e84bc4db32631f90dc4aa261a97fe7778703933f185c9f6cef5420ab942f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 8\u002B corresponding lines): litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/ListRenderUnit.java:307-315 | litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/ListRenderUnit.java:323-330 | litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java:312-321 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 8 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/ListRenderUnit.java"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"4169d62394be5a671d37ffbbdca3861fd863f8b0287a7fabb6ac74a1a58b3963"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): litho-testing/src/main/java/com/facebook/litho/testing/assertj/LithoViewSubComponentDeepExtractor.java:78-92 | litho-testing/src/main/java/com/facebook/litho/testing/assertj/LithoViewSubComponentExtractor.java:52-66 | litho-testing/src/main/java/com/facebook/litho/testing/assertj/SubComponentDeepExtractor.java:113-126 | litho-testing/src/main/java/com/facebook/litho/testing/assertj/SubComponentExtractor.java:92-106 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/assertj/LithoViewSubComponentDeepExtractor.java"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5cac2abb8459ed6bb504779f22ba84c2492f8a2e237655d18214ef9e6c5c290"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/DebugComponentDescriptor.kt:120-127 | litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/DebugComponentDescriptor.kt:317-326 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/DebugComponentDescriptor.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"461ab50e5adb4e94752b4dcaf5d6b11a3581d7d95508b89ad1b711aaba7a20bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): litho-sections-widget/src/main/java/com/facebook/litho/sections/widget/GridRecyclerConfiguration.java:243-250 | litho-sections-widget/src/main/java/com/facebook/litho/sections/widget/ListRecyclerConfiguration.java:237-244 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-widget/src/main/java/com/facebook/litho/sections/widget/GridRecyclerConfiguration.java"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a33ae216841f5369b63a1b2e39ef309418a33d98451444f0d4110eeb29f838"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/HorizontalScrollKComponent.kt:52-58 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/ScrollSnappingComponent.kt:52-60 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/HorizontalScrollKComponent.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"9081b4cc00d8fb7da1d5a8ba6405c219b08eed06df7f1d5ac2f01eeb6f8c863d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): litho-widget/src/main/kotlin/com/facebook/litho/kotlin/widget/HorizontalScroll.kt:45-61 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/widgets/HorizontalScroll.kt:61-75 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/kotlin/widget/HorizontalScroll.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7554319f8a192b050d40d4504935a51adca6bfe9069f8c6bdab628d562da8707"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): litho-widget/src/main/kotlin/com/facebook/litho/kotlin/widget/HorizontalDivider.kt:50-61 | litho-widget/src/main/kotlin/com/facebook/litho/kotlin/widget/VerticalDivider.kt:50-61 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/kotlin/widget/HorizontalDivider.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"29cffa09653e7c1e32bfa522c23b3835fa89a34fbaf95032d3e7a565fe273b8d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/observability/UseFlowComponent.kt:31-43 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/observability/UseLiveDataComponent.kt:31-43 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/observability/UseFlowComponent.kt"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2f3fc3ff3606aee4cec7f9c5e42c869fda36dee5eafb02005ca22a8924d93c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): litho-intellij-plugin/src/main/java/com/facebook/litho/intellij/completion/EventHandlerCompletionContributor.kt:111-116 | litho-intellij-plugin/src/main/java/com/facebook/litho/intellij/completion/MethodCompletionContributor.kt:139-144 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-intellij-plugin/src/main/java/com/facebook/litho/intellij/completion/EventHandlerCompletionContributor.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a724019108aecf3ac040a059058b80c892667e940565e4fba421b5e7dacfbbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): litho-core/src/main/java/com/facebook/litho/SimpleNestedTreeVisibilityEventsController.kt:51-60 | litho-widget/src/main/java/com/facebook/litho/widget/ComponentTreeHolder.kt:498-506 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/SimpleNestedTreeVisibilityEventsController.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee5ab8ebf5468c1788cf5a1bdacc3f7222b7cd55a1843dc091cffaa53cf7972e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): litho-core/src/main/java/com/facebook/litho/ContextUtils.kt:51-62 | litho-rendercore/src/main/java/com/facebook/rendercore/MountItemsPool.kt:542-553 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ContextUtils.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ad279593dc9e8e32eb000948cc15d078f58f461f85aae1a93021824abb5c7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:1352-1358 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java:378-384 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8aa33efd338fc595cb3e6add1dfa9c1c5c432fb6cb1bcd2dc4b0b7548fa56ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): litho-sections-core/src/main/java/com/facebook/litho/sections/Change.java:274-284 | litho-testing/src/main/java/com/facebook/litho/testing/sections/TestTarget.java:50-58 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/Change.java"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"63cc65c0f78349e1d3793347e015708a5cd8fe35c60830ed50505c46574a31df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/RCTextStyleHelper.kt:182-191 | litho-widget/src/main/java/com/facebook/litho/widget/TextStylesHelper.kt:302-309 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RCTextStyleHelper.kt"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"e060f7c2bdfebd6e3a8d2444514b04fbf0e6d80421844a6afedddf680286818e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): litho-core/src/main/java/com/facebook/litho/ComponentUtils.kt:60-69 | litho-rendercore/src/main/java/com/facebook/rendercore/utils/EquivalenceUtils.kt:60-68 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentUtils.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5a1c30516bbbeea073dadd1478903121e1d012f5fdc471321b8ee2cd517403"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/CardShadowDrawable.kt:120-131 | litho-widget/src/main/java/com/facebook/litho/widget/TransparencyEnabledCardClipDrawable.kt:197-208 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/CardShadowDrawable.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbc1a750ab294a58f77269c2e8999eb36663f3be54a435c1842701dc47afaf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): litho-core/src/main/java/com/facebook/litho/LithoLayoutResult.kt:115-120 | litho-core/src/main/java/com/facebook/litho/YogaLayoutProps.kt:50-54 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoLayoutResult.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0cc8088ceebc3d4370d945f47d98a6a0cb099a9310d5f8081248c2ce720cfba"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): litho-editor-core/src/main/java/com/facebook/litho/editor/instances/AtomicBooleanEditorInstance.kt:29-33 | litho-editor-core/src/main/java/com/facebook/litho/editor/instances/AtomicIntegerEditorInstance.kt:27-31 | litho-editor-core/src/main/java/com/facebook/litho/editor/instances/NumberEditorInstance.kt:26-31 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-core/src/main/java/com/facebook/litho/editor/instances/AtomicBooleanEditorInstance.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd51d4f47f337f1f2456a1bb4dbec8b9f4e9a1147c7d325e5a848ce992afb39"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java:293-300 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/DelegateMethodGenerator.java:512-520 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccd9d2d44faf2392c03c2a39b57bbf649e88a42c9f28a3ff30c69425a5984ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/PathModel.kt:209-216 | litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/ShapeModel.kt:63-70 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/PathModel.kt"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"015cf5b304696670991c68391414a41881ae74e09230b3017d0dffdb399eca66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt:955-965 | litho-core/src/main/java/com/facebook/litho/NestedLithoTree.kt:295-305 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt"},"region":{"startLine":955}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fb125e644ccb7d037a1416a6069342458a60bae6b74302aee29046829e962bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt:972-982 | litho-core/src/main/java/com/facebook/litho/NestedLithoTree.kt:278-288 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c8ca456d28c9db5246748a29752deb9471e7df2a1ce81bfd20634b378eaab2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt:988-998 | litho-core/src/main/java/com/facebook/litho/NestedLithoTree.kt:311-321 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcdfa3e2dfeae40596a4f088ac52f2700e94d331d162ebd6da2ac9549c6bdf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): litho-core/src/main/java/com/facebook/litho/flexbox/FlexboxStyle.kt:557-560 | litho-widget/src/main/kotlin/com/facebook/litho/kotlin/widget/Border.kt:97-100 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/flexbox/FlexboxStyle.kt"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"712fb9bac057eaa60ead506653f72ad48ad677275ff4e7a9c7598455700830af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): litho-testing/src/main/java/com/facebook/litho/testing/assertj/SubComponentDeepExtractor.java:116-124 | litho-testing/src/main/java/com/facebook/litho/testing/assertj/SubComponentExtractor.java:95-104 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/assertj/SubComponentDeepExtractor.java"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd30368dde5b08531876477c3f22a3ed7013f5e9c2c0eb125301fa1c472b7e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): sample-common/src/main/java/com/facebook/samples/litho/kotlin/lithography/components/FeedItemComponent.kt:82-85 | sample-kotlin/src/main/java/com/facebook/samples/litho/samplekotlin/lithography/components/FeedItemComponent.kt:85-88 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-common/src/main/java/com/facebook/samples/litho/kotlin/lithography/components/FeedItemComponent.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bcf3621bc50135e88eb4859db5b8539442a9c8090ba54b2f5715d61d2520918"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/CachedValueGenerator.java:107-115 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/CachedValueValidation.java:123-131 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/CachedValueGenerator.java"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc3e3350e08c7e78e08041fb20b88938cac56ec18e749643a127a8b7437bbec"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/PathModel.kt:229-234 | litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/ShapeModel.kt:121-126 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/PathModel.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1d380d55e2bcfacb460f31aa0103996f9b1da62031cfa26eb025be4650b713b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/HorizontalScrollLithoView.kt:173-179 | litho-widget/src/main/java/com/facebook/litho/widget/LithoScrollView.kt:133-141 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/HorizontalScrollLithoView.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"2027cf452091a399266fa45129d0550e98d7ea578cb466c3470648da8ad7c341"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:258-264 | litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt:241-247 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"0316df5c7f666640368c19fc8256fbcf627c7f4335b61bfbf7203e3a45bf3b5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): litho-rendercore/src/main/java/com/facebook/rendercore/RenderTreeHostView.kt:85-96 | litho-rendercore/src/main/java/com/facebook/rendercore/RootHostDelegate.kt:53-64 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderTreeHostView.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a40d46da7bc64defe34790b606c59d9f4eda7feb36ca60774036a452ac5b1af"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): litho-core/src/main/java/com/facebook/litho/MatrixDrawable.kt:220-222 | litho-widget/src/main/java/com/facebook/litho/widget/TextDrawable.kt:518-522 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/MatrixDrawable.kt"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"5142325520e3d7e6e4c5792873c65cf04b96ae637fb9b0cfd4d94c45b514bebc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): litho-core/src/main/java/com/facebook/litho/Resolver.kt:694-702 | litho-core/src/main/java/com/facebook/litho/layout/flexbox/FlexboxContainerComponent.kt:153-160 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Resolver.kt"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0919ed14a015642f0bc1ec8c4f66d4f33b17e2029f270aa411e2fd4b392cdc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): litho-core/src/main/java/com/facebook/litho/animated/ParallelAnimation.kt:50-57 | litho-core/src/main/java/com/facebook/litho/animated/SequenceAnimation.kt:50-57 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/animated/ParallelAnimation.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca12aa7bec9632131af0b872b2d321592817bce205db9a464899e2bcfc60396e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ColorDrawableEditorInstance.kt:33-37 | litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ComparableColorDrawableEditorInstance.kt:34-39 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ColorDrawableEditorInstance.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf18af11b816980300327b3f7f362feeee2db1345dea51091cde46bf69be911"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): litho-it/processor/src/main/java/com/facebook/litho/testing/processor/TestingGenericComponentProcessor.java:47-53 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/ComponentsProcessor.java:32-35 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-it/processor/src/main/java/com/facebook/litho/testing/processor/TestingGenericComponentProcessor.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8b404858ee3eb839a82865bbfb055fcea625d658112a7a7c9b692f1f02a9413"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): litho-widget/src/main/java/com/facebook/litho/widget/HorizontalScrollLithoView.kt:109-113 | litho-widget/src/main/java/com/facebook/litho/widget/LithoScrollView.kt:157-163 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/HorizontalScrollLithoView.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7bfc7a656ceddbc695e9f871381b277b342a15c90fb43c980bb779e8ef2e83"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): litho-core/src/main/java/com/facebook/litho/LithoViewTestHelper.kt:197-205 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderTreeNode.kt:92-100 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoViewTestHelper.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d2871679bce4b7acd820a67ae54053263ee662ebb456e72011b9c626700d5e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/PathModel.kt:276-279 | litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/TextModel.kt:72-75 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/PathModel.kt"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"841c836e862566c8ac1043ab58830803c16b881ead41ca0ce0ea61d76a15a74b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:740-802 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1017-1079 \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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b879efdf9b6e8587b434bd91a85c07da01830048ab9a5e7cde3d0ad3f4e101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (52 lines \u00D7 2): litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyGrid.kt:119-170 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyStaggeredGrid.kt:122-173 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyGrid.kt:119\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":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyGrid.kt"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"37612fd36053de327e48394986750a844bc48627f444309054cd28d63baeb894"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/Column.kt:129-164 | litho-core/src/main/java/com/facebook/litho/Row.kt:124-159 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/Column.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/Row.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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 \u0060litho-core/src/main/java/com/facebook/litho/Column.kt:129\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":"litho-core/src/main/java/com/facebook/litho/Column.kt"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c10699bdacf6ef71fb8af3983b1a0438e2b124cfa1451a395acfceff7bb365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201334 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/TextDrawable.kt:490-508 | litho-widget/src/main/java/com/facebook/litho/widget/TextDrawable.kt:778-811 \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":"litho-widget/src/main/java/com/facebook/litho/widget/TextDrawable.kt"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9dcea968ae82df1fa00cc3faf545aa984bbf65650b0c88d78a8194255ffe0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/TextStylesHelper.kt:95-126 | litho-widget/src/main/java/com/facebook/litho/widget/TextStylesHelper.kt:130-162 \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 \u0060litho-widget/src/main/java/com/facebook/litho/widget/TextStylesHelper.kt:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/TextStylesHelper.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5328db7dac97ab41812130264840ec0f4d1c358de465b37571379769838300d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/CardClipDrawable.kt:66-96 | litho-widget/src/main/java/com/facebook/litho/widget/TransparencyEnabledCardClipDrawable.kt:80-110 \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 \u0060litho-widget/src/main/java/com/facebook/litho/widget/CardClipDrawable.kt:66\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":"litho-widget/src/main/java/com/facebook/litho/widget/CardClipDrawable.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb2045a7a31b5bb07114a2551f7e9b0059f78609852826ecb9c2f686a29c4d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28\u201329 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:189-217 | litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:362-389 \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 \u0060litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:189\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:218\u0060 calls \u0060requireLithoRecyclerView\u0060 and \u0060litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:390\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e14fa72bb4398cccc8f730075924b96a1fcabac7951aed30a5520eb3a6f432a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:160-187 | litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:334-361 \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 \u0060litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:160\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f471d4ffef0e026d00f5b6f7f9887f24a4563cee15b3483d97692c5370a05b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27\u201328 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/RangeManagerFeedActivity.kt:303-329 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/RangeManagerFeedActivity.kt:364-391 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/RangeManagerFeedActivity.kt:303\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/RangeManagerFeedActivity.kt"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6730986b4585b83a6d355a30943e83d9e116c8acc24f23e14ee1acbe1f388bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:220-246 | litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:390-416 \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":"litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df964df00fb4281c8cb523fd4d9a4d5473f6b9471275a1994bf1bc05b26db1b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:287-313 | litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:461-487 \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 \u0060litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:287\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"230d8afa8028ed30d5de4cbc64b2b8c14c399fdc08568377269ce2557e572eb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): sample-common/src/main/java/com/facebook/samples/litho/kotlin/lithography/components/FeedItemComponent.kt:46-72 | sample-kotlin/src/main/java/com/facebook/samples/litho/samplekotlin/lithography/components/FeedItemComponent.kt:49-75 \u2014 before extracting anything, compare \u0060sample-common/src/main/java/com/facebook/samples/litho/kotlin/lithography/components/FeedItemComponent.kt\u0060 and \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/samplekotlin/lithography/components/FeedItemComponent.kt\u0060 as WHOLE FILES: 98% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-common/src/main/java/com/facebook/samples/litho/kotlin/lithography/components/FeedItemComponent.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e132a5cd61140c5991739b11106a572c39e90da131490bfd08067af575651e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:665-689 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:934-958 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:665\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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":665}}}],"partialFingerprints":{"codehealthFindingId/v1":"34d1ee0bf528a93d228697c81605f0b7f253caabcb32d4aea9a012ccd2287964"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21\u201325 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.kt:84-108 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.kt:214-234 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.kt:84\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.kt"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc175894bebc6a691cf01d72317e8fd444c95969d3fd335213743f2094b0fcac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:284-307 | litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:325-348 \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 first that the copies are not typed on the same thing: the declarations holding them bind \u0060target\u0060 to \u0060BinderMigratedNodeInfo\u0060 in one and \u0060ViewAttributes\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"d451c5231e28deee1117e51a59e930637525f836f6e2330ee0c28df1759a4173"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpecComparisonComponent.kt:101-123 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpringComparisonComponent.kt:138-160 \u2014 before extracting anything, compare \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpecComparisonComponent.kt\u0060 and \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpringComparisonComponent.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpecComparisonComponent.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d54c338624c264cdd967783842577acb1b59c67566ab2a2243e5df92a3c914f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:444-465 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:687-708 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:444\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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"54a98d86dd4777c8dd3136f27a3b5f1f95a2154d04114d3c7ddf30d523bca3a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:265-285 | litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:430-450 \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":"litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c7b1dcbdf9760c8a5ce46458d178ad195a7e5cba6498ae3934c2f90e96226fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:705-724 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:978-997 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:705\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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"6573e536156f19e98764934db2f8fbc25b57653459d55c6ddfe281c028c351a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:822-841 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1103-1122 \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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a748ecc8b9e4b0016d55d37f61d99f753f4fbeb1014f1bd848264f0971f058"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201319 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1414-1432 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1485-1501 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1414\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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3f6b2ad8f966ba923d834640920e3ecc9196d35fd2c78c6fb856042862cd5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/SizeConstraints.kt:230-248 | litho-rendercore/src/main/java/com/facebook/rendercore/SizeConstraints.kt:252-270 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/SizeConstraints.kt:230\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":"litho-rendercore/src/main/java/com/facebook/rendercore/SizeConstraints.kt"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4de97d8be8abf67e86b02167af86095f0389aa79f40482258394eb496b2598"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:804-821 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1083-1100 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:804\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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7be264bf3ca211b084b2f373b53fd642acdda2a36e94304d2c122c2093142de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:62-79 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:139-156 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:62\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8729f396938101f030032096734a0af4e1c4b7f88083409f346bc9b40a38d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt:300-316 | litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt:329-345 \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 \u0060litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt:300\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":"litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d902fbe9330a8b1bd17ed328be433878ffaebf9aed9226eaf4eb1d120c4117"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/ProgressPrimitiveComponent.kt:140-156 | litho-widget/src/main/java/com/facebook/litho/widget/ProgressPrimitiveComponent.kt:188-204 \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 \u0060litho-widget/src/main/java/com/facebook/litho/widget/ProgressPrimitiveComponent.kt:140\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/ProgressPrimitiveComponent.kt"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"c894c397589d645db24477dd30191b6ee507572cf28978b1d74b6e1cd5a5f62d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/VerticalScroll.kt:173-189 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/widgets/VerticalScroll.kt:157-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/VerticalScroll.kt"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"da106ceb54f171bf3d1fc8b5afe75747408d5cadbd2cbdbdbf88ee49abf60815"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/AvoidingTextClippingSection.kt:152-168 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/AvoidingTextClippingSection.kt:231-247 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/AvoidingTextClippingSection.kt:152\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/AvoidingTextClippingSection.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"7063bd6eea05d9403cb4d399d13840e5c7ff3dd506a9bd1c0072c28f452c272c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201316 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/HorizontalScroll.kt:80-92 | litho-widget/src/main/java/com/facebook/litho/widget/VerticalScroll.kt:74-89 \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 \u0060litho-widget/src/main/java/com/facebook/litho/widget/HorizontalScroll.kt:80\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"litho-widget/src/main/java/com/facebook/litho/widget/HorizontalScroll.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"afd39a9a6cee82aa02edd0957c76ac93506b87a8babb32bbe35f57cf305dc0ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveImage.kt:110-125 | litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveImage.kt:154-169 \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 \u0060litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveImage.kt:110\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":"litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveImage.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfce22d51a968ae8f9fd53a4b8e159567dc064066ffc713a1af706a08a7283b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): litho-core/src/main/java/com/facebook/litho/KComponent.kt:111-125 | litho-core/src/main/java/com/facebook/litho/PrimitiveComponent.kt:122-136 | litho-core/src/main/java/com/facebook/litho/layout/RenderWithConstraints.kt:188-202 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/KComponent.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/PrimitiveComponent.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060litho-core/src/main/java/com/facebook/litho/KComponent.kt:132\u0060 calls \u0060canMeasure\u0060, \u0060getMountType\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/PrimitiveComponent.kt:142\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/KComponent.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2b115c1188df4ece1cef266cd91515a7feab5574a925c3a97700472c4e45c31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt:166-180 | litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt:213-227 \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 \u0060litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt:166\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":"litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d7bd15d168d0ebade07c5edc84868524ea84bcb387c53164bdbbfa1817e9659"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/state/ReadTrackingUtils.kt:82-96 | litho-core/src/main/java/com/facebook/litho/state/ReadTrackingUtils.kt:107-121 \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 \u0060litho-core/src/main/java/com/facebook/litho/state/ReadTrackingUtils.kt:82\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"litho-core/src/main/java/com/facebook/litho/state/ReadTrackingUtils.kt"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5979113a5479442b130ce0185aab8e6d300156285b70ad74d86d6adf13f8f6f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt:504-518 | litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt:727-741 \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 \u0060litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt:504\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":"litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03b2f542499f469ba09e958d2206dc68c3b2a33aeee9a9db0309cea34a22484"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/SolidColor.kt:115-129 | litho-widget/src/main/java/com/facebook/litho/widget/SolidColor.kt:156-170 \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 \u0060litho-widget/src/main/java/com/facebook/litho/widget/SolidColor.kt:115\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/SolidColor.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd8c276cef8cae3592512aeb46f439238527d6ad84c7ef75e5c7a30aa1113d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/integration/dataflow/DataFlowComponent.kt:78-92 | sample-kotlin/src/main/java/com/facebook/samples/litho/integration/uistate/UiStateComponent.kt:104-118 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/integration/dataflow/DataFlowComponent.kt:78\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/integration/dataflow/DataFlowComponent.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb7bb2fdd4a076e73110b64f7207e9b16b19a63f266286e7fef50ed8051325a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 11): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt:66-79 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt:102-115 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt:139-152 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt:174-187 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt:219-232 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt:253-266 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt:284-297 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt:320-333 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt:363-376 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt:407-420 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt:438-451 \u2014 all 11 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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt:66\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f91427019eabdd98f7730e4d230fd6451fde3c12aff3e59b75be7e2cc6380ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:448-461 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:691-704 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:962-975 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:448\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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d554bf53648914986b02c826d0d0d17c65db534ae19b5a4924096ac15315a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:419-437 | litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt:307-325 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 64 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":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"579a2cc42762a5f19f258523a4cc856f024ec1267e0f377b81fc942f89521758"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/layout/BoxConstraints.kt:137-150 | litho-core/src/main/java/com/facebook/litho/layout/BoxConstraints.kt:249-262 \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":"litho-core/src/main/java/com/facebook/litho/layout/BoxConstraints.kt"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c494a7167ee6f053781b07fece2b2f119c5d0d8355c7fbe2f60c51148c91da"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201314 lines \u00D7 2): litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ListEditorInstance.kt:52-63 | litho-editor-core/src/main/java/com/facebook/litho/editor/instances/MapEditorInstance.kt:61-74 \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 \u0060litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ListEditorInstance.kt:52\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ListEditorInstance.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"049a6e805c6df553440417ed3298b9a8ecb9704d1c9b2ad2cb60b7f1d07d71ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiDelegateMethodExtractor.kt:78-91 | litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiMethodExtractorUtils.kt:112-125 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiDelegateMethodExtractor.kt"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"af9d20ad608b5b25f9131cf2298482e0c3b30b37439a469a76195a4cba7ade33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:726-739 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1001-1014 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:726\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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"6199342bbd92e6083535c26db1b4e932cbcd5587fa017a294a57db803992195c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:843-856 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1126-1139 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:843\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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":843}}}],"partialFingerprints":{"codehealthFindingId/v1":"f501f680aa5dc3c042e3a0ae359ae5284e345b752dbfba822cc9033dddf35c72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): litho-surface/src/main/kotlin/com/facebook/litho/surface/LithoSurface.kt:194-207 | litho-surface/src/main/kotlin/com/facebook/litho/surface/LithoSurface.kt:235-248 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-surface/src/main/kotlin/com/facebook/litho/surface/LithoSurface.kt"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f4688eeb3a5b1bcb8cc12ac7f033a46cb355970d219f67748ba4e36da3be85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): litho-widget/src/main/kotlin/com/facebook/litho/widget/canvas/CanvasScope.kt:161-174 | litho-widget/src/main/kotlin/com/facebook/litho/widget/canvas/CanvasScope.kt:210-223 \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 \u0060litho-widget/src/main/kotlin/com/facebook/litho/widget/canvas/CanvasScope.kt:161\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":"litho-widget/src/main/kotlin/com/facebook/litho/widget/canvas/CanvasScope.kt"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d11b15120f1ce8abb8043ba0f313f0ab27728582ae67487527534a487727c35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyCollection.kt:292-305 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyCollection.kt:411-424 \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 \u0060litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyCollection.kt:292\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":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyCollection.kt"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"c70f19766950193cee0526a032ebf5b89e87c9fa419fb4aa2f716a81cf8e5eba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyGrid.kt:116-129 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyList.kt:132-145 \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 \u0060litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyGrid.kt:116\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":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyGrid.kt"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"00389e335928d2a074411a5e1e21e0e62ee3d52b9afd7f59b951a4ee9f7bb34a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/LongTextReplacerKComponent.kt:36-49 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/renderwithconstraints/RenderWithConstraintsKComponent.kt:78-91 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: \u0060UNSPECIFIED\u0060 names \u0060android.view.View.MeasureSpec.UNSPECIFIED\u0060 in one and \u0060com.facebook.litho.SizeSpec.UNSPECIFIED\u0060 in another \u2014 different types that share a simple name, which is why the text matched. A single extracted unit cannot be given a parameter type that fits both, so unifying those types (or introducing a shared abstraction over them) is the step that has to come BEFORE the extraction above; if they are deliberately separate, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/LongTextReplacerKComponent.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac71f67c690032fd6361c9372fc0f5623925f1a5189e6de0c494431748cdaf75"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:130-143 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:355-368 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:130\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"85421026fc08e2d8e366429af7fc13123729dc5bf1e57bdca7d5e35baa0d7a86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): litho-core/src/main/java/com/facebook/litho/Column.kt:132-144 | litho-core/src/main/java/com/facebook/litho/Row.kt:127-139 | litho-core/src/main/java/com/facebook/litho/layout/flexbox/FlexboxContainerComponent.kt:212-224 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/Column.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/Row.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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":"litho-core/src/main/java/com/facebook/litho/Column.kt"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"686d27483c1a02cbbc11c47296f08fb936d335b423c35560f5320900a878fdc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/KComponent.kt:74-86 | litho-core/src/main/java/com/facebook/litho/layout/RenderWithConstraints.kt:157-169 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/KComponent.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/layout/RenderWithConstraints.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 38 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-core/src/main/java/com/facebook/litho/KComponent.kt:74\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":"litho-core/src/main/java/com/facebook/litho/KComponent.kt"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"076d35115ead277175e9269f331f42c96357c548e19c52a7e99e14624f9a97f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/WorkingRangeContainer.kt:67-78 | litho-core/src/main/java/com/facebook/litho/WorkingRangeContainer.kt:136-148 \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 \u0060litho-core/src/main/java/com/facebook/litho/WorkingRangeContainer.kt: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":"litho-core/src/main/java/com/facebook/litho/WorkingRangeContainer.kt"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddd03250880d4f1b6bd244df598764298c3def20d20945ea4610a88b8b986e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiDiffSectionSpecModelFactory.kt:65-77 | litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiGroupSectionSpecModelFactory.kt:67-79 \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":"litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiDiffSectionSpecModelFactory.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6486f690e203e8254918de79bd2dc9d8630d4bfeb4440e147d0b3f64ecff220"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt:314-326 | litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt:335-347 \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 \u0060litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt:314\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt:328\u0060 calls \u0060add\u0060 and \u0060litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt:348\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fefad26740a4828b7e40a72d10e7287fecd9edf8c010c5540f305fbc9aad3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:178-190 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:220-232 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:178\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"9726f6d797ff56a7c537ae36a00708694d7ee20ba756bd001687247dcd400c5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveImage.kt:105-116 | litho-widget/src/main/java/com/facebook/litho/widget/ProgressPrimitiveComponent.kt:135-146 | litho-widget/src/main/java/com/facebook/litho/widget/SolidColor.kt:110-121 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveImage.kt:105\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":"litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveImage.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"742b65c6dd952edcf73b7a0ec5d63714cd19a5962aee3de4bf8f38f00ae1a359"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveImage.kt:149-160 | litho-widget/src/main/java/com/facebook/litho/widget/ProgressPrimitiveComponent.kt:183-194 | litho-widget/src/main/java/com/facebook/litho/widget/SolidColor.kt:151-162 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveImage.kt:149\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":"litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveImage.kt"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac7b5252736523102008710b6015a122ad3fa66fdd170e5034f2652d2ac91505"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt:672-683 | lib/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt:697-707 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt:672\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt:695\u0060 calls \u0060toInt\u0060 and \u0060lib/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt:670\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/yoga/java/com/facebook/yoga/YogaNodeJNIBase.kt"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3210b7710e1a2255f7cf35fe266c1c3933417f7885543afb4bd5ced9e129039"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/KComponent.kt:48-59 | litho-core/src/main/java/com/facebook/litho/PrimitiveComponent.kt:50-61 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/KComponent.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/PrimitiveComponent.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-core/src/main/java/com/facebook/litho/KComponent.kt:48\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":"litho-core/src/main/java/com/facebook/litho/KComponent.kt"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"e06303eeec3e99dbfe8d71a902cfcc3cc3d031209c8323f4a32afd0407e5d745"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/CardClipDrawable.kt:120-131 | litho-widget/src/main/java/com/facebook/litho/widget/TransparencyEnabledCardClipDrawable.kt:211-222 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/CardClipDrawable.kt"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a40fb7a2a9306fb6e56eb6367c6e9e09de60b791ee2d59e3f03fc828ff0b11b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt:4146-4157 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionPreparationManager.kt:406-417 \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 \u0060litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt:4146\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":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":4146}}}],"partialFingerprints":{"codehealthFindingId/v1":"421bfaadbe6ab7ce81fc4c205b766ba079d15a2f3d50d5a266266aa07a78f790"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/GlobalKeyNotWorkingComponents.kt:62-73 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/GlobalKeyWorkingComponents.kt:65-76 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/GlobalKeyNotWorkingComponents.kt: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. 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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/GlobalKeyNotWorkingComponents.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"583fdf339060c7f708325cb2b327a164e2b06bb53e80517e2161998f9a1dacf5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpecComparisonComponent.kt:76-86 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpringComparisonComponent.kt:57-68 \u2014 before extracting anything, compare \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpecComparisonComponent.kt\u0060 and \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpringComparisonComponent.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpecComparisonComponent.kt:76\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpecComparisonComponent.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"c155ebb4a9e5b3517ef1447781415c08071d83e697805cd814f7d57bd336a228"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/widgets/PrimitiveWidgetsExampleComponent.kt:81-92 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/WidgetsExamplesComponent.kt:471-482 \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. 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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/widgets/PrimitiveWidgetsExampleComponent.kt"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"2edcb7e6361442db0c5701a06c644c9e827e8c8617e8673f8e7142da49140caa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ListEditorInstance.kt:55-65 | litho-editor-core/src/main/java/com/facebook/litho/editor/instances/MapEditorInstance.kt:66-76 | litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ObjectEditorInstance.kt:67-78 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ListEditorInstance.kt:55\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":"litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ListEditorInstance.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6002cb529cc6bb1ade167e3eb96a368b1be7d8e6f29eab7cd56668fc5fe80c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt:1533-1543 | litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt:1614-1624 \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":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":1533}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ebcc90c2500b3243340a9599e46f106bcb9eefbb092b6c7a75dd11d34d9e5b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/Dimen.kt:79-89 | litho-rendercore/src/main/java/com/facebook/rendercore/Dimen.kt:98-107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-rendercore/src/main/java/com/facebook/rendercore/Dimen.kt:79\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":"litho-rendercore/src/main/java/com/facebook/rendercore/Dimen.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f5f59cc202f9bc4d0ecaef0f742e3e60fe57ab17929e96ce40ffd5638453d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/GridLayoutInfo.kt:111-121 | litho-widget/src/main/java/com/facebook/litho/widget/GridLayoutInfo.kt:135-145 \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":"litho-widget/src/main/java/com/facebook/litho/widget/GridLayoutInfo.kt"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e445d35b099a092e4d1e940fe10725d6b2b531a5350664051fa10bc0c65ca19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt:243-252 | litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt:270-279 | litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt:297-305 | litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt:326-334 \u2014 all 4 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 \u0060litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt:243\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":"litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5942e8b4a62560b1d69030f5630bcca8ada306726ab780001894876b5d00b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:372-389 | litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt:253-270 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt:272\u0060 calls \u0060isEquivalentTo\u0060, \u0060equals\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:391\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa94b16dcd0eb03b4d44e71192054dc32ff3232beb27d9f3215a087058005665"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt:1512-1521 | litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt:1582-1591 \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 \u0060litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt:1512\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt:1580\u0060 calls \u0060fromMeasureSpecs\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt:1510\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":1512}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb72ed4ecfb52499bfeecdbb2b643d3e3f3307e0944d1a65d2949ee2e7f682c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt:1805-1815 | litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt:1835-1844 \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 \u0060litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt:1805\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":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57f3e5203ebdea1387a92807d23f9c05cf4c7e5b0344387a6c68c0b676f085b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:960-969 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:999-1008 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:960\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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1a0c74230587a12b28f9e63a9ee86e433ff2d985e704c787e015e4731caade9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1081-1090 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1124-1133 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1081\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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e2f62cf910d41800a165947a15ebb8e76cd261e0b19b6887a1ce3067e92836d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/animatedbadge/AnimatedBadgeKotlin.kt:142-151 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/AnimatedBadgeComponent.kt:142-150 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/animatedbadge/AnimatedBadgeKotlin.kt:142\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/animatedbadge/AnimatedBadgeKotlin.kt"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"d483a2b54f4a609013fba74a82233a616018a566d36f772486b0fb6f3565c403"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:57-66 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:246-255 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt: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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43ca52eaadec2e974c5d5dc976559b9d5b9a192d09dfae7da72310ee2dc31e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): litho-core/src/main/java/com/facebook/litho/KComponent.kt:52-60 | litho-core/src/main/java/com/facebook/litho/PrimitiveComponent.kt:54-62 | litho-core/src/main/java/com/facebook/litho/layout/RenderWithConstraints.kt:132-141 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/KComponent.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/PrimitiveComponent.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-core/src/main/java/com/facebook/litho/KComponent.kt:52\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":"litho-core/src/main/java/com/facebook/litho/KComponent.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a579c9fe84af585d08f0bd4c5f001490fe2537a7ece722482118b5aaf4e0ccd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/BaseMountingView.kt:1659-1667 | litho-rendercore/src/main/java/com/facebook/rendercore/HostView.kt:645-653 \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":"litho-core/src/main/java/com/facebook/litho/BaseMountingView.kt"},"region":{"startLine":1659}}}],"partialFingerprints":{"codehealthFindingId/v1":"90918352b7e02221983f28e6a626b6c4303771f425e35b6d90d2bb319acfbbac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:803-811 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:842-850 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:803\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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"224fc101377bd7525c4274ed7c65035918ff60b59c85dab46bff3b47ea9aebde"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyListScope.kt:159-167 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyListScope.kt:272-280 \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 \u0060litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyListScope.kt:159\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":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyListScope.kt"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2f90fddbfabcb61af2b45563cf85a56e57b9ddca23fec0799bcc7aa6e3e760"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/animatedbadge/AnimatedBadgeKotlin.kt:76-84 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/AnimatedBadgeComponent.kt:88-95 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/animatedbadge/AnimatedBadgeKotlin.kt:76\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/animatedbadge/AnimatedBadgeKotlin.kt"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a10cac3266297c7c9e502b3097269b357d191bd41d429ef052dfeb05577bdd9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201320 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/canvas/DrawPathCanvasKComponent.kt:41-60 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/SimpleCanvasExampleComponent.kt:104-122 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/SimpleCanvasExampleComponent.kt:124\u0060 calls \u0060Size\u0060 and \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/canvas/DrawPathCanvasKComponent.kt:62\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/canvas/DrawPathCanvasKComponent.kt"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00256802608e83d1d5c95e11f08c4f4109928b8287317c0d19af534606679b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:210-218 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:251-259 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:210\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ea80deb8812db5296ccfbc466e72453d5b676a2da108b0508e007fcd7fa09c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:598-605 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:632-639 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:666-673 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:700-707 \u2014 all 4 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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:598\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":"litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"035bbc176859eb87209105f8df2435a763100c0719ec128747cdf97b972dd63e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:804-811 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:843-850 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1083-1090 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:1126-1133 \u2014 all 4 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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:804\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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"c561f7274b6f32a17724b37f79e48c315ac9b023d0bd3118344e3f8ab5b2de59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20138 lines \u00D7 3): litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:287-294 | litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:328-335 | litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt:362-367 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060target\u0060 to \u0060BinderMigratedNodeInfo\u0060 in one and \u0060ViewAttributes\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"231369b807cbd851fb72b3fe1ef39c0ac716c6aca1495be48518e0b27833b306"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:296-303 | litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:337-344 | litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt:350-357 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060target\u0060 to \u0060BinderMigratedNodeInfo\u0060 in one and \u0060ViewAttributes\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"42035e8bd084e212f661fe514f3f1cb21943d781122fcb874106b6a5620f501b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): litho-editor-core/src/main/java/com/facebook/litho/editor/SimpleEditor.kt:86-93 | litho-editor-core/src/main/java/com/facebook/litho/editor/SimpleEditor.kt:154-161 \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 \u0060litho-editor-core/src/main/java/com/facebook/litho/editor/SimpleEditor.kt:86\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":"litho-editor-core/src/main/java/com/facebook/litho/editor/SimpleEditor.kt"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be56a1bc6427c9ff219aac5a22ca6009e3af6ef7e6093cf5fb7156722d746ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt:4160-4167 | litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionPreparationManager.kt:420-427 \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":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":4160}}}],"partialFingerprints":{"codehealthFindingId/v1":"89425b5dd300a7b1a364a08c32902580c065733f3314f1749e42c16895321b27"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 3): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/ParallelTransitionWithAnimatorsComponent.kt:68-76 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/SequenceTransitionLoopComponent.kt:81-85 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/StaggerTransitionComponent.kt:56-63 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/ParallelTransitionWithAnimatorsComponent.kt:68\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/ParallelTransitionWithAnimatorsComponent.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f20771765224a462945acb1f61e7acc3d30c4c7a98e511dc9976d833ac3ba7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:579-592 | litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:596-609 \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 \u0060litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:579\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":"litho-core/src/main/java/com/facebook/litho/StyleCompat.kt"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf22e9ad5d7af1b894efc5011cd2fb30a736136e337d42334fc5dd954bcca184"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/drawable/BorderColorDrawable.kt:162-168 | litho-core/src/main/java/com/facebook/litho/drawable/BorderColorDrawable.kt:178-184 \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 \u0060litho-core/src/main/java/com/facebook/litho/drawable/BorderColorDrawable.kt:162\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":"litho-core/src/main/java/com/facebook/litho/drawable/BorderColorDrawable.kt"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"48dc13a9c06d420c12dd10cd1333fad9d891f397fc412276afec7eb745da0fcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/RCTextStyleHelper.kt:60-65 | litho-widget/src/main/java/com/facebook/litho/widget/TextStylesHelper.kt:90-96 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-widget/src/main/java/com/facebook/litho/widget/RCTextStyleHelper.kt:60\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"litho-widget/src/main/java/com/facebook/litho/widget/RCTextStyleHelper.kt"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e36b5312248fbbe7049fbfc4eb5ec8d1846e50cb248bdbe25428ab1a1bc9aab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/AnimatedBadgeComponent.kt:87-93 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/AnimatedBadgeComponent.kt:141-147 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/AnimatedBadgeComponent.kt: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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/AnimatedBadgeComponent.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae143885bb5991262ab7bd0effaedcc374c077e10a72109b7ab859486c231a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:211-216 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:224-229 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:240-245 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:252-257 \u2014 all 4 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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:211\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:217\u0060 calls \u0060child\u0060, \u0060ColorBlock\u0060, \u0060toInt\u0060 and \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt:230\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/SpacingBetweenElementsComponent.kt"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf0ecce9702d61bea23d1c99143556e5dfb446cdae55008304c445abbecb0cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:428-440 | litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:444-456 \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 \u0060litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:428\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":"litho-core/src/main/java/com/facebook/litho/StyleCompat.kt"},"region":{"startLine":428}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0daf85cfc36d735ee4c551da0d8009eceec554251107454f7f36f1464f167a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:465-477 | litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:481-493 \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 \u0060litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:465\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/StyleCompat.kt"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"901e5b514ff47322a94f89e831a82bf6e0b099b73718834b2040e6ee288e6f3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:497-509 | litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:513-525 \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 \u0060litho-core/src/main/java/com/facebook/litho/StyleCompat.kt:497\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":"litho-core/src/main/java/com/facebook/litho/StyleCompat.kt"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"66a168d6587419570628c2b3c73735f244732e10894924cdd4167d4e4c128573"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): range-manager/src/main/kotlin/com/meta/rangemanager/HandlerRangeWorker.kt:238-243 | range-manager/src/main/kotlin/com/meta/rangemanager/SynchronousRangeWorker.kt:123-128 \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":"range-manager/src/main/kotlin/com/meta/rangemanager/HandlerRangeWorker.kt"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fdda5189e65db8c03c47a0905da1a0ada500ed062b6f45f048984a391ceddfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:391-395 | litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt:276-280 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"12aaf00af3e725d45efab7249c6c72a82f2e1dfce103f29c3aa93e72d914be7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/Column.kt:80-85 | litho-core/src/main/java/com/facebook/litho/Row.kt:80-85 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/Column.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/Row.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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 \u0060litho-core/src/main/java/com/facebook/litho/Column.kt:80\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Column.kt"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8581b3fc246ec583070526f1088638804f552042f8dcc217f567b20eee7cfe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/SimpleAllLayoutTransitionComponent.kt:46-52 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/SimpleAllLayoutTransitionComponent.kt:63-69 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/SimpleAllLayoutTransitionComponent.kt:46\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/SimpleAllLayoutTransitionComponent.kt:61\u0060 calls \u0060useTransition\u0060, \u0060allLayout\u0060 and \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/SimpleAllLayoutTransitionComponent.kt:45\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/documentation/SimpleAllLayoutTransitionComponent.kt"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b2d50760aad280fcc734a700cf8a54fed2e157f4ceca486c85af3e49d03ac61"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/DebugHierarchy.kt:47-54 | litho-rendercore-transitions/src/main/java/com/facebook/litho/OutputUnitsAffinityGroup.kt:140-147 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-core/src/main/java/com/facebook/litho/DebugHierarchy.kt:47\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":"litho-core/src/main/java/com/facebook/litho/DebugHierarchy.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"f398b623019e6393c0cfb17b63a9359a52c7131eb554e7dc2662ba957cbea7e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/animation/AnimationGroup.kt:344-348 | litho-core/src/main/java/com/facebook/litho/animation/InfiniteAnimationGroup.kt:324-328 \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 \u0060litho-core/src/main/java/com/facebook/litho/animation/AnimationGroup.kt:344\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":"litho-core/src/main/java/com/facebook/litho/animation/AnimationGroup.kt"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"e46e45492603490732e1ca2593ba1dd6700ae6e41a706671a83ae64bbfa75168"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/debug/LithoDebugEvent.kt:263-268 | litho-rendercore/src/main/java/com/facebook/rendercore/debug/DebugEvents.kt:508-513 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/debug/DebugEvents.kt:508\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":"litho-core/src/main/java/com/facebook/litho/debug/LithoDebugEvent.kt"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"b631853f601ba15fb691aed1e6e798e4832ab7e12240b40f935d1dfab94b1bf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ColorDrawableEditorInstance.kt:27-31 | litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ComparableColorDrawableEditorInstance.kt:28-32 \u2014 before extracting anything, compare \u0060litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ColorDrawableEditorInstance.kt\u0060 and \u0060litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ComparableColorDrawableEditorInstance.kt\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 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. 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":"litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ColorDrawableEditorInstance.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f147eab5ed27371ff90bf372802a1129a46259b040cbf745e5ba452e3f02494"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/GridLayoutInfo.kt:272-277 | litho-widget/src/main/java/com/facebook/litho/widget/StaggeredGridLayoutInfo.kt:418-423 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/GridLayoutInfo.kt"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bde24a430cd213ebcfe18c844b15afb84d381f5d4e2fe44d6f95d731e979e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): sample-common/src/main/java/com/facebook/samples/litho/kotlin/lithography/components/FeedItemComponent.kt:88-92 | sample-kotlin/src/main/java/com/facebook/samples/litho/samplekotlin/lithography/components/FeedItemComponent.kt:91-95 \u2014 before extracting anything, compare \u0060sample-common/src/main/java/com/facebook/samples/litho/kotlin/lithography/components/FeedItemComponent.kt\u0060 and \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/samplekotlin/lithography/components/FeedItemComponent.kt\u0060 as WHOLE FILES: 98% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-common/src/main/java/com/facebook/samples/litho/kotlin/lithography/components/FeedItemComponent.kt"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31963b3d7e2607428c016718d210eb5649f5b9266a8d10067ac7c855cb420a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/HorizontalScrollKComponent.kt:96-100 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/ScrollSnappingComponent.kt:76-80 \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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/HorizontalScrollKComponent.kt"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"61feaccdb3986b77e38a5cc7860df9ecbe1b4313ef115f65f4a09c6f25370e2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/RangeManagerActivity.kt:197-202 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/RangeManagerFeedActivity.kt:540-545 \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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060holder\u0060 to \u0060LithoViewHolder\u0060 in one and \u0060FeedLithoViewHolder\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/RangeManagerActivity.kt"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d184cfd3ae1e3d18090272256ed69a4f93ec93d972a97e0bae994c7fea8e1b7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:388-398 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/layout/StackLayoutExamplesComponent.kt:208-218 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3943863c6af7e5b0ff72b430bb0ec2b9476bf12ae7b9710e829b8d9f1fdb81c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/SimpleImageViewPrimitiveComponent.kt:61-70 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/bindto/ImageViewComponent.kt:79-88 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/SimpleImageViewPrimitiveComponent.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c938ea76dc543f135623395c01d83f8ea56484255fbb40b3fa80b8a86f51bdf8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/Column.kt:203-212 | litho-core/src/main/java/com/facebook/litho/Row.kt:198-207 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/Column.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/Row.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 65 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":"litho-core/src/main/java/com/facebook/litho/Column.kt"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae5767850701c3d67d34a87d2c8ab62806d5def248f11eba6f2ea1ea5afe9188"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/CommonProps.kt:1027-1031 | litho-core/src/main/java/com/facebook/litho/LithoNode.kt:1014-1018 \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":"litho-core/src/main/java/com/facebook/litho/CommonProps.kt"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a70b9f1e93e93b1ce3224333671852f188e4151c724b1b923052dd927c1df9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/CommonProps.kt:1380-1387 | litho-core/src/main/java/com/facebook/litho/LithoNode.kt:1005-1012 \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":"litho-core/src/main/java/com/facebook/litho/CommonProps.kt"},"region":{"startLine":1380}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6fbd925e6f6fbb04de5faa272dd579b4808d63600b9fac704822f421e3c38b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/LithoTreeFutures.kt:54-66 | litho-core/src/main/java/com/facebook/litho/ResolveTreeFuture.kt:144-156 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoTreeFutures.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b1a53bc2017370b14d9d324e1c0a9580a9a0f315afd40f09a583ddb7b08ecd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): litho-editor-core/src/main/java/com/facebook/litho/editor/instances/BoolEditorInstance.kt:33-43 | litho-editor-core/src/main/java/com/facebook/litho/editor/instances/StringEditorInstance.kt:32-43 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-core/src/main/java/com/facebook/litho/editor/instances/BoolEditorInstance.kt"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b06d9c93a0e88bd61ff82586b70d20abd34810f7050c71eeed65cf305a09858"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): litho-it/src/main/java/com/facebook/litho/testing/treeprop/TreePropNumberType.kt:22-31 | litho-it/src/main/java/com/facebook/litho/testing/treeprop/TreePropStringType.kt:22-31 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-it/src/main/java/com/facebook/litho/testing/treeprop/TreePropNumberType.kt"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5345c744225c57cf5e42489e7139692b4fca56c25e6a68310cbf997acd0b15f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/GridLayoutInfo.kt:87-101 | litho-widget/src/main/java/com/facebook/litho/widget/StaggeredGridLayoutInfo.kt:86-100 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-widget/src/main/java/com/facebook/litho/widget/GridLayoutInfo.kt:87\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/GridLayoutInfo.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4aab1c9e0382d6580517fd287deb63ff350f0a5b45f61cf474e2c14287cfc24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/RangeManagerActivity.kt:183-191 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/RangeManagerFeedActivity.kt:526-534 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/RangeManagerActivity.kt"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56cfac32f3e7cc777faa0b4c9f1a42a1b06bffdff4b789ffad6187a2ea9d395"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt:4509-4535 | litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt:4545-4572 \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 \u0060litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt:4509\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":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":4509}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ab4bec5053bfcbd8ea28bc31e398bfea8c678a5d3457860534dc9541140735b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:68-89 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:257-277 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:68\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"64edb660197584f1ba4c603ffacbdce03869ce174574a14bbafd701b63f28d6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/layout/StackLayoutExamplesComponent.kt:146-164 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/layout/StackLayoutExamplesComponent.kt:166-184 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/layout/StackLayoutExamplesComponent.kt:146\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/layout/StackLayoutExamplesComponent.kt"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bcb9e9b1d6085631012147c551a5333dd275cc1ba5945774b7b2cadfab79c39"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/state/IdentityRootComponent.kt:51-68 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/state/IdentityRootComponent.kt:71-88 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/state/IdentityRootComponent.kt:51\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/state/IdentityRootComponent.kt"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"36cff14f801a8cd8a3942f6cb99699f43773722a3049acaf8115698104aace52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.kt:65-81 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/LayoutPositioningSection.kt:54-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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.kt:65\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.kt"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e58afb8ae3c26610fe3d6c13f653c8467a9518cc422a5adfe08925703fb1ef8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.kt:90-105 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.kt:174-186 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.kt:219-231 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.kt"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60b3c14b0245daa91de1569fde66571514f3d56bbd4d6795cc7ef3516df612e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/LayoutPositioningSection.kt:55-70 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/LayoutPositioningSection.kt:96-111 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/LayoutPositioningSection.kt:55\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/LayoutPositioningSection.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5a05e4d394069746de807a853bc1880deb9ce6dbf09c4251a23c8722cb9ff5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/layout/StackLayoutExamplesComponent.kt:52-65 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/layout/StackLayoutExamplesComponent.kt:92-104 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/layout/StackLayoutExamplesComponent.kt:131-144 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/layout/StackLayoutExamplesComponent.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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/layout/StackLayoutExamplesComponent.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"12757d99c229d06de7d83e7432b088365b46dbecd18bee48a4c4744b50261abc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/TextAlignmentSection.kt:55-68 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/TextAlignmentSection.kt:73-86 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/TextAlignmentSection.kt:55\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/TextAlignmentSection.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"36b85ca8cefb33d95d9fc42243afcdb82b8061ad71713f92f42b6e725d1a5d98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/samplekotlin/communicating/ParentComponentSendsEventToChildComponent.kt:47-57 | sample-kotlin/src/main/java/com/facebook/samples/litho/samplekotlin/communicating/ParentComponentSendsEventToChildComponent.kt:68-81 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/samplekotlin/communicating/ParentComponentSendsEventToChildComponent.kt:47\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/samplekotlin/communicating/ParentComponentSendsEventToChildComponent.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5da3230b3fee8462c9d3c49f152c3ed72920744e40ab66ee39d35af5b8fad05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/debug/DebugInfoReporter.kt:87-100 | litho-core/src/main/java/com/facebook/litho/debug/DebugInfoReporter.kt:148-160 \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 \u0060litho-core/src/main/java/com/facebook/litho/debug/DebugInfoReporter.kt:87\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/debug/DebugInfoReporter.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"09579dbe61d3a76e19355314e26d05f5fffbaa638142364dfccbd577e169a1dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/debug/DebugInfoReporter.kt:68-80 | litho-core/src/main/java/com/facebook/litho/debug/DebugInfoReporter.kt:129-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 \u0060litho-core/src/main/java/com/facebook/litho/debug/DebugInfoReporter.kt:68\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":"litho-core/src/main/java/com/facebook/litho/debug/DebugInfoReporter.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04e3a5580f8218923881656d94c2bbc438fb39be5f19eb1efbc5b7340a0f1b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:164-175 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:205-217 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:164\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f675af51f904a408a4506bfab6cdb1440c05f5c9f24c9c18e4ce14b0e5a49f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/AllCommonDynamicPropsKComponent.kt:95-106 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/AllCommonDynamicPropsKComponent.kt:109-120 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/AllCommonDynamicPropsKComponent.kt:123-134 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/AllCommonDynamicPropsKComponent.kt:95\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/AllCommonDynamicPropsKComponent.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"52489c4103f054ae0c0000ed8ab0a7a2c4f7bfa3df4bcb5337c11efff9af6b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/AvoidingTextClippingSection.kt:42-52 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/BasicTextStylingSection.kt:36-46 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.kt:51-61 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/LayoutPositioningSection.kt:40-50 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/TextAlignmentSection.kt:40-50 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 5 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/AvoidingTextClippingSection.kt:42\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/ComplexLayoutsSection.kt:48\u0060 calls \u0060RoundedRect\u0060, \u0060toColorInt\u0060 and \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/AvoidingTextClippingSection.kt:41\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/AvoidingTextClippingSection.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"09a27b231bda7b558aa17f64148327a91e24d5e1831611319a1bf642907ef708"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/diffbased/DiffBoundsReorderComponent.kt:58-68 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpecComparisonComponent.kt:77-86 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpringComparisonComponent.kt:58-68 \u2014 before extracting anything, compare \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpecComparisonComponent.kt\u0060 and \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/SpringComparisonComponent.kt\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 46 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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/diffbased/DiffBoundsReorderComponent.kt:58\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/diffbased/DiffBoundsReorderComponent.kt"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"ded40c1d69aae565b9f6cf73958dc3e85c1016d0fea7d3d002f806f8075a02d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/AvoidingTextClippingSection.kt:112-121 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/AvoidingTextClippingSection.kt:191-200 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/AvoidingTextClippingSection.kt:112\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/widgets/sections/AvoidingTextClippingSection.kt"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf93e63bca995b276c90bf68a7bc418f1ef4a84b9c5da618ca8c0b3d255b946"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:93-102 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:319-328 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt:93\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/flexbox/FlexExamplesComponent.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae8eec87813e71633b41b17ad1188463a4a57b7b4856bd7f1d43b938e53925c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/diffbased/ChoreographyComponent.kt:75-83 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/statebased/PathMotionComponent.kt:92-101 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/diffbased/ChoreographyComponent.kt:75\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":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/diffbased/ChoreographyComponent.kt"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"0083311369efbeb85ac91cfb40b7391bb615b913d62a22145754b91b3630686d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:279-287 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:298-306 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:359-367 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:378-386 | litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:402-410 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt:279\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":"litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"05358301f5638d217b1d1b38e8197eb0d7860175860189ccc06049f0186b79f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:332-339 | litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:444-451 \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 \u0060litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt:332\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":"litho-rendercore/src/main/java/com/facebook/rendercore/RenderUnit.kt"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"64baabca477e6ee74648c319b76e037623a809139b1dfcce9bb166131e30a5bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/LithoReducer.kt:1864-1869 | litho-core/src/main/java/com/facebook/litho/LithoReducer.kt:1883-1889 \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 \u0060litho-core/src/main/java/com/facebook/litho/LithoReducer.kt:1864\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":"litho-core/src/main/java/com/facebook/litho/LithoReducer.kt"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7f61b0684e2b5606b5018adcfe95776c05fb02d02a0be4252d3250a44355732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): range-manager/src/main/kotlin/com/meta/rangemanager/PreparedStateRangeWorker.kt:485-490 | range-manager/src/main/kotlin/com/meta/rangemanager/PreparedStateRangeWorker.kt:568-573 \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 \u0060range-manager/src/main/kotlin/com/meta/rangemanager/PreparedStateRangeWorker.kt:485\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":"range-manager/src/main/kotlin/com/meta/rangemanager/PreparedStateRangeWorker.kt"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f8f4672ebdf7937c84a9cd6f5d82ddac5edda4893ed952b0ed1292b6b2fdb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:413-418 | litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt:298-303 \u2014 before extracting anything, compare \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 64 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedViewAttributes.kt:304\u0060 calls \u0060hashCode\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt:419\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BinderMigratedNodeInfo.kt"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"680c13d78c7ebb967aa1a97656e66690c9d04411826644d5abe9a229312276f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/animatedbadge/AnimatedBadgeKotlin.kt:68-72 | sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/docs/AnimatedBadgeComponent.kt:80-84 \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 \u0060sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/animatedbadge/AnimatedBadgeKotlin.kt:68\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/animatedbadge/AnimatedBadgeKotlin.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f0c3fc8a888a28fe59149b2361b7c024837802571b0a315d5b71036b5a49fcf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (49 lines \u00D7 2): litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:108-156 | litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:271-319 \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 \u0060litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:108\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":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"676e83deb10260e3d15022f5850b6b284fab1fd237d3931ab186216ce64da5e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): litho-testing/src/main/java/com/facebook/litho/testing/specmodels/MockSpecModel.java:746-775 | litho-testing/src/main/java/com/facebook/litho/testing/specmodels/MockSpecModel.java:842-871 \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 \u0060litho-testing/src/main/java/com/facebook/litho/testing/specmodels/MockSpecModel.java:746\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":"litho-testing/src/main/java/com/facebook/litho/testing/specmodels/MockSpecModel.java"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4eb5d4c67171dd20845b13bf8bd049fd0e5b87711d1ec7b769b1bcfab161560"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/model/LayoutSpecModel.java:62-85 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/MountSpecModel.java:72-95 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/MountSpecModel.java:96\u0060 calls \u0060bindDynamicValueMethods\u0060 and \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/LayoutSpecModel.java:86\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/LayoutSpecModel.java"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"15926c3469920bed7d8f5d543d7c5d355afa3d037c9942987305b8cd850a7a10"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.java:115-131 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/TriggerValidation.java:73-93 \u2014 before extracting anything, compare \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.java\u0060 and \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/TriggerValidation.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.java"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e491be2ed258bd313ab4107c004c298f504641ccf4b948339c752a138e9e345"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): litho-testing/src/main/java/com/facebook/litho/testing/Whitebox.java:53-73 | litho-testing/src/main/java/com/facebook/litho/testing/Whitebox.java:103-123 \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 \u0060litho-testing/src/main/java/com/facebook/litho/testing/Whitebox.java:53\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/Whitebox.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf346af860a4c6bfb9b330bd12178156837c74efbf72e8b0ddb743887936240c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java:127-144 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/TriggerMethodExtractor.java:110-128 \u2014 before extracting anything, compare \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java\u0060 and \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/TriggerMethodExtractor.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49dddaeced6291d29fc86faedd1386fa149eaa98a0645fd9dbc08e09dfa42d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:161-179 | litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:324-342 \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 \u0060litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:161\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":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3032e098a2a38fa059f9667242b8745b782215c222cbb1add6af72b95f6496e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 4): litho-processor/src/main/java/com/facebook/litho/specmodels/model/DefaultLayoutSpecGenerator.java:49-63 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/DefaultMountSpecGenerator.java:63-77 | litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/model/DefaultDiffSectionSpecGenerator.java:59-74 | litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/model/DefaultGroupSectionSpecGenerator.java:61-76 \u2014 before extracting anything, compare \u0060litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/model/DefaultDiffSectionSpecGenerator.java\u0060 and \u0060litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/model/DefaultGroupSectionSpecGenerator.java\u0060 as WHOLE FILES: 86% 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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/DefaultLayoutSpecGenerator.java:49\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. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060specModel\u0060 to \u0060DiffSectionSpecModel\u0060 in one and \u0060GroupSectionSpecModel\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/DefaultLayoutSpecGenerator.java"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c95d86c1a6ab4561770ae469aa9f29b73dc0b9b99a59a6ecf80223bb40e8278"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201316 lines \u00D7 3): litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.java:122-133 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/TreePropValidation.java:47-62 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/TriggerValidation.java:80-95 \u2014 before extracting anything, compare \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.java\u0060 and \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/TriggerValidation.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.java:122\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.java"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d3a668c11d7f78c66651b53fdae6c60748f464faf0f1f6983eeab43d9c10ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/model/DelegateMethodValidation.java:201-215 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/DelegateMethodValidation.java:217-232 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/DelegateMethodValidation.java:217\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/DelegateMethodValidation.java"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc133bb985bff1b02804b3edb320c6d9cb43b81f1b6736a88665fb3dc0a024c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:185-200 | litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:348-363 \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 \u0060litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:185\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:365\u0060 calls \u0060isWidthMeasured\u0060 and \u0060litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:202\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"80ee10b59bea6344c1955ff54ce49add7f94f72748e23ea067d9a4262d1376c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 4): litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:145-158 | litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:168-182 | litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:308-321 | litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:331-345 \u2014 all 4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58ad65975c145d09c5eae52f4841d641259dbf93ef063c46debd43610f688d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java:113-127 | litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java:142-156 \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 \u0060litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java:113\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":"litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"9546e5afd19f1fdd4d3dde19f6fa9e6b04b977eb867a228d44e1f13ba94d522f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventGenerator.java:270-283 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java:217-231 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventGenerator.java:270\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventGenerator.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"65240a05a43160e4c68f465295486a2715127287c3ace3a3e9b709adbc435ee1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.java:96-111 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/TriggerValidation.java:49-64 \u2014 before extracting anything, compare \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.java\u0060 and \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/TriggerValidation.java\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 53 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.java:96\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/EventValidation.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dac9fe9f2afbbab9d658efea46ab1a3e736d12c17c9397348fdd6ce21dba516"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java:87-101 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/TriggerMethodExtractor.java:85-99 \u2014 before extracting anything, compare \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java\u0060 and \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/TriggerMethodExtractor.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.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":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"f76722db1ec0961b96199380baf01542c8bdd4821109bd5bfd5b86087d93a6c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/DiffSectionSpecModelFactory.java:142-156 | litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/GroupSectionSpecModelFactory.java:139-153 \u2014 before extracting anything, compare \u0060litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/DiffSectionSpecModelFactory.java\u0060 and \u0060litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/GroupSectionSpecModelFactory.java\u0060 as WHOLE FILES: 83% 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":"litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/DiffSectionSpecModelFactory.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf9882f791ef978ef75f5bfbb2c06b0c3f02b6acee1ca969f81c80f4e1482709"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): litho-testing/src/main/java/com/facebook/litho/testing/sections/SectionsTestHelper.java:96-108 | litho-testing/src/main/java/com/facebook/litho/testing/sections/SectionsTestHelper.java:111-123 | litho-testing/src/main/java/com/facebook/litho/testing/sections/SectionsTestHelper.java:126-138 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/sections/SectionsTestHelper.java"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de1af54a006863f3de9c36429fb60fd17658137d050be0f113e70f40a76666a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:697-709 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:800-811 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:697\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:812\u0060 calls \u0060annotation\u0060, \u0060parameterWithoutNullableAnnotation\u0060 and \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:710\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":697}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2c4fb16f24c3540bb11b2ea244663e33444f06d275de3fd0a55b48dbf4fed3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:746-757 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:879-891 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:746\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":746}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b6c07dfa899376dc3a0793f31b08b8143b2ba404c96196fcc52e6a89a5293d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/model/StateValidation.java:228-240 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/StateValidation.java:246-258 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060interStageInputParamModels\u0060 to \u0060List\u003CInterStageInputParamModel\u003E\u0060 in one and \u0060List\u003CPrepareInterStageInputParamModel\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/StateValidation.java"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7d1966d783916b10754ab9f4c3928f76cf3f3e3907b389d109a1a8f1faa4b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:85-95 | litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java:246-258 \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":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/MeasureListUtils.java"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb073f7eb13a995a62a728dbf4ab837433caede011028b90c237025903b1ed69"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextStylesAttributeHelper.java:110-121 | litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextStylesAttributeHelper.java:134-146 \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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextStylesAttributeHelper.java"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"616c265378891192d648d72054d3589843da9b47bc7a340a47a00e0146ba106b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventCaseGenerator.java:125-136 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java:129-140 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventCaseGenerator.java:125\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventCaseGenerator.java"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"5882945b68978ffa266db565e7e7dfa9f762e2e4043950667d27ef850bbe0518"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/WorkingRangeGenerator.java:56-67 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/WorkingRangeGenerator.java:82-93 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/generator/WorkingRangeGenerator.java:56\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/WorkingRangeGenerator.java"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae9dcc5d6ab74c3f88d674cb5242a77eab35be87d2b928ae5162256bbac5b48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): litho-sections-core/src/main/java/com/facebook/litho/sections/ChangeSetState.java:456-467 | litho-sections-core/src/main/java/com/facebook/litho/sections/ChangeSetState.java:472-483 \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 \u0060litho-sections-core/src/main/java/com/facebook/litho/sections/ChangeSetState.java:456\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":"litho-sections-core/src/main/java/com/facebook/litho/sections/ChangeSetState.java"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab7c77035c96d6bcd05cb9ecfb2b9e2fe4d167d2ff05f937a89ddae4e37bd50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): litho-testing/src/main/java/com/facebook/litho/testing/helper/ComponentTestHelper.java:605-616 | litho-testing/src/main/java/com/facebook/litho/testing/helper/ComponentTestHelper.java:623-634 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/helper/ComponentTestHelper.java"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"861a9ecaa792472cc4ee6d42b539597e9efb15cb7a2ce8645c007471262475d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java:87-98 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/TriggerMethodExtractor.java:85-96 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/UpdateStateMethodExtractor.java:103-113 \u2014 before extracting anything, compare \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java\u0060 and \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/TriggerMethodExtractor.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.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":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"73117a5c2d54873db5b1abc44db9b7cb24bba0639f38441ba3b9614d46fe296c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/Component.java:2632-2643 | litho-sections-core/src/main/java/com/facebook/litho/sections/Section.java:136-147 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. 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":"litho-core/src/main/java/com/facebook/litho/Component.java"},"region":{"startLine":2632}}}],"partialFingerprints":{"codehealthFindingId/v1":"4756e55f1cdc4b1df4dbd8385ba26fb80d51c0db6e44750e2fa5b0b8e4c685cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/processor/BindDynamicValuesMethodExtractor.java:69-79 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/UpdateStateMethodExtractor.java:118-127 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/BindDynamicValuesMethodExtractor.java:69\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/BindDynamicValuesMethodExtractor.java"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1eeffad780f4d39f8a1c5c0b401b4b3acb71af4b5f6c79e6bf23b03d2a37fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java:264-274 | litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java:295-305 \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":"litho-core/src/main/java/com/facebook/litho/SpecGeneratedComponent.java"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"2279bcf2d4609c3aab1fac7e4d67e748a8a1585aced9a92afafad37633f4e793"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java:485-495 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/InterStagePropsContainerGenerator.java:37-46 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java:485\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"351d987286db3782af62f5583df405cbee21f7bb8413ca180b6e31df888915cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java:653-661 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java:693-702 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java:693\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/ComponentBodyGenerator.java"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a89c8b6ebb98dc712ab7815b1d91f49ee617462f781e206d53b0120589cd4be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventGenerator.java:374-383 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java:79-88 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventGenerator.java:374\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventGenerator.java"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"aba489982e942298d4a3eb9ec5d1814f4b0bee11359b6698f1dac4da33330de0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/ScrollBarDecoration.java:149-158 | litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/ScrollBarDecoration.java:195-204 \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":"litho-rendercore-simplelist/src/main/java/com/facebook/rendercore/simplelist/ScrollBarDecoration.java"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"24f50485d58df535dae30378fec70b08ada3f5d0028a0a206ccc3fd361b5a617"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/model/CachedValueValidation.java:33-42 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/PropValidation.java:325-335 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/CachedValueValidation.java:33\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/CachedValueValidation.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5f1d5bbe0935b394b4a20e3a6bbc19eecc15f050cc87673d18e23989685db7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/DelegateMethodGenerator.java:245-252 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/WorkingRangeGenerator.java:145-152 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/generator/DelegateMethodGenerator.java:245\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/DelegateMethodGenerator.java"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d48a8fcc89b3b55d172e74760232673194550a258245446c6278cfd1381914c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java:586-593 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java:625-632 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"c164262a4df9b88600d96aa5d74daf7e7c3012b7a9c65ebf8c2c7140e1e14517"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): litho-testing/src/main/java/com/facebook/litho/testing/eventhandler/EventHandlerTestHelper.java:87-94 | litho-testing/src/main/java/com/facebook/litho/testing/eventhandler/EventHandlerTestHelper.java:100-107 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-testing/src/main/java/com/facebook/litho/testing/eventhandler/EventHandlerTestHelper.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. 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":"litho-testing/src/main/java/com/facebook/litho/testing/eventhandler/EventHandlerTestHelper.java"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9bf866870148410cef5dae827ef7d3c1fd67193e6f9e08db45dd153934e50af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:403-410 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:412-419 \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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91826a2523b1ce6989f50407a1fe2bb9d493214c1e5409e5b7ed41799d3abf0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventCaseGenerator.java:102-109 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventCaseGenerator.java:114-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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventCaseGenerator.java:102\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":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventCaseGenerator.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dee5e0feff8d6d85288a55e9c1ec815e668446a497d06e3349f98898976b247"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/model/DefaultLayoutSpecGenerator.java:70-76 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/DefaultMountSpecGenerator.java:92-97 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/DefaultLayoutSpecGenerator.java:70\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/DefaultLayoutSpecGenerator.java"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed8d7ec13be5d847ebd25fb7374719a67e28956e4839a687d34e6efcc69c895"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelUtils.java:127-135 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelUtils.java:140-148 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelUtils.java:127\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelUtils.java"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e2514aa416ee619bcecb61c158718f7a11b4ab010789c1c83faa071894d5980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextMeasurementUtils.java:969-976 | litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextMeasurementUtils.java:996-1002 \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 \u0060litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextMeasurementUtils.java:969\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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/TextMeasurementUtils.java"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a951b20a139c4cbbe94e52d7c59bd91d405f906795a174b8bc520d837597e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/DiffSectionSpecModelFactory.java:171-177 | litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/GroupSectionSpecModelFactory.java:166-172 \u2014 before extracting anything, compare \u0060litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/DiffSectionSpecModelFactory.java\u0060 and \u0060litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/GroupSectionSpecModelFactory.java\u0060 as WHOLE FILES: 83% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/DiffSectionSpecModelFactory.java:171\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":"litho-sections-processor/src/main/java/com/facebook/litho/sections/specmodels/processor/DiffSectionSpecModelFactory.java"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f4cc1c4e81b4b66628525e155449a51a1ca1ee858476ed575fc3101bf96993"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java:141-147 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/TriggerMethodExtractor.java:125-131 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/WorkingRangesMethodExtractor.java:90-96 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/WorkingRangesMethodExtractor.java:217-223 \u2014 before extracting anything, compare \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java\u0060 and \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/TriggerMethodExtractor.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java:141\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java:148\u0060 calls \u0060specMethod\u0060, \u0060EventMethod\u0060 and \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/TriggerMethodExtractor.java:132\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26d4a022c0524d01508ba3f182ed08551c13c2dce6952f5804d625886b99923"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java:198-202 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java:205-209 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java:213-218 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b6d484dd7d8d4429bca5f419dbb4a6e6667b3e57fb4210c6e019a4629b5651"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java:1765-1769 | litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java:1896-1901 \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 \u0060litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java:1765\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":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c13de08fdf838a5c808c54f61f85fc77e505687192667cedcd73f8062c1b1a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:297-305 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java:351-359 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f603f021956cc52025318af02537277d458f0bebbf4994461e70e47587f0616"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/StateContainerGenerator.java:270-277 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelUtils.java:271-279 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/StateContainerGenerator.java"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a0e87c048238913f8622166eb7d035751d14a8673d61ec242039488ed54e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/model/MethodParamModelUtils.java:33-41 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelUtils.java:261-269 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/MethodParamModelUtils.java:33\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060annotationClass\u0060 to \u0060Class\u003C? extends Annotation\u003E\u0060 in one and \u0060Class\u003C?\u003E\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/MethodParamModelUtils.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"82b4bfe4741b6bec2c68e406604b42e2d7173bc6b0477bfa9a064ff7bab678f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/processor/DelegateMethodExtractor.java:126-137 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/MethodExtractorUtils.java:117-127 \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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/DelegateMethodExtractor.java:126\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \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":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/DelegateMethodExtractor.java"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4b9c578873c0aa3c555b796b64ddbecfdb7e2009466514c26b9b511dcba898"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 5): litho-processor/src/main/java/com/facebook/litho/specmodels/processor/DelegateMethodExtractor.java:141-148 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java:160-167 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/TriggerMethodExtractor.java:143-150 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/UpdateStateMethodExtractor.java:135-142 | litho-processor/src/main/java/com/facebook/litho/specmodels/processor/WorkingRangesMethodExtractor.java:176-182 \u2014 before extracting anything, compare \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/EventMethodExtractor.java\u0060 and \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/TriggerMethodExtractor.java\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 61 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 \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/processor/DelegateMethodExtractor.java:141\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \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":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/DelegateMethodExtractor.java"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"1df4984bb82b901537398b2dd1fc6b0c4faa182527a49c6bb1cb7a8635cdc701"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCHandleView.java:223-230 | litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCTextEditor.java:467-473 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCHandleView.java"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd690722550b84094fe17d313ba139f7e6fac551db4282dcb5209655ad7cd92f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java:1331-1338 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java:86-93 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"34de5d3bbe1436873db4931e108aa051ac1dacee970dfd475b7c8fb3aad5199e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventGenerator.java:202-210 | litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java:171-179 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/EventGenerator.java"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"33142ec911cd43c5c1e53d319f65b85c87341297ea78d761d852bef1b73e2bb6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 5): litho-processor/src/main/java/com/facebook/litho/specmodels/model/CachedValueParamModel.java:65-72 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/InterStageInputParamModel.java:65-72 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/PrepareInterStageInputParamModel.java:69-76 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/RenderDataDiffModel.java:70-77 | litho-processor/src/main/java/com/facebook/litho/specmodels/model/TreePropModel.java:68-75 \u2014 before extracting anything, compare \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/CachedValueParamModel.java\u0060 and \u0060litho-processor/src/main/java/com/facebook/litho/specmodels/model/InterStageInputParamModel.java\u0060 as WHOLE FILES: 87% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 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. 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":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/CachedValueParamModel.java"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca935c20d643ae52e6f08f00313e3992b4686df2076dd2bbce06d17644c09d09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): litho-testing/src/main/java/com/facebook/litho/testing/assertj/LithoViewSubComponentDeepExtractor.java:81-90 | litho-testing/src/main/java/com/facebook/litho/testing/assertj/LithoViewSubComponentExtractor.java:55-64 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/assertj/LithoViewSubComponentDeepExtractor.java"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb4ea0a3b8847dbc2a40352811237eddf4f5239acce362c5ca78749f9d6c4ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): litho-testing/src/main/java/com/facebook/litho/testing/sections/SubSection.java:54-62 | litho-testing/src/main/java/com/facebook/litho/testing/subcomponents/SubComponent.java:53-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/sections/SubSection.java"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"a35738d445604c8fe11247f2a5b833f6508d00096d51faacc849b625d911f0b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (54 corresponding lines): sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt:151-204 | sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPagerIncrementalMountActivity.kt:136-189 \u2014 These two members are one piece of code written twice and then edited apart: 54 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80936c0f642a82a067af09683f89aa04ae8338d68dc8d5d39d7c98724eb5c40"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt:64-103 | sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPagerIncrementalMountActivity.kt:60-99 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"e924c6135e82814b9a815682321db6d39103264964da72d082794465768d6ad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 29\u002B corresponding lines): sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/IncrementalMountManualTriggerActivity.kt:226-255 | sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt:214-242 | sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPagerIncrementalMountActivity.kt:199-227 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 29 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/IncrementalMountManualTriggerActivity.kt"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"a207780500748039bc3e8d27f86766f6b24be98ae1f2c21e0ce5bd9cd784cfa9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): sample/src/main/java/com/facebook/samples/litho/playground/HostPlaygroundActivity.kt:101-120 | sample/src/main/java/com/facebook/samples/litho/playground/HostPlaygroundActivity.kt:124-143 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/playground/HostPlaygroundActivity.kt"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef635583f347c2dc0e11e9188d48a65ec940726e202fc94aba5236a8c96cef15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): sample/src/main/java/com/facebook/samples/litho/java/lifecycle/LifecycleFragment.kt:77-98 | sample/src/main/java/com/facebook/samples/litho/java/lifecycle/ScreenSlidePageFragment.kt:90-112 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/java/lifecycle/LifecycleFragment.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5d6da2f3bc099d1116cdf121d033bf48046e2526e7a66f4898a7847a6d479b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/IncrementalMountExcludeComponent.kt:196-218 | sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/IncrementalMountManualTriggerActivity.kt:269-286 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/IncrementalMountExcludeComponent.kt"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adbb0c5d5e80765c53d18e5d2082059a3339e6d559e6e89f9851c6bf3e7c473"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): sample/src/main/java/com/facebook/samples/litho/documentation/flexbox/TextInColumnWithExactHeight.kt:35-58 | sample/src/main/java/com/facebook/samples/litho/documentation/flexbox/TextInRow.kt:34-54 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/documentation/flexbox/TextInColumnWithExactHeight.kt"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8444a8bfea4ec6a8af35df3c7219a5edfce8a31461dbdc071b32bd243277ac0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 14\u002B corresponding lines): sample/src/main/java/com/facebook/samples/litho/changesetdebug/ItemsRerenderingActivity.java:53-66 | sample/src/main/java/com/facebook/samples/litho/changesetdebug/PropUpdatingActivity.java:57-74 | sample/src/main/java/com/facebook/samples/litho/changesetdebug/ScrollingToBottomActivity.java:56-69 | sample/src/main/java/com/facebook/samples/litho/changesetdebug/StateResettingActivity.java:56-69 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/changesetdebug/ItemsRerenderingActivity.java"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e77a514cc83f4571e3f1d57d41bd90efc74c19098aa0491985ac0a01585d7a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): sample/src/main/java/com/facebook/samples/litho/changesetdebug/ScrollingToBottomActivity.java:71-79 | sample/src/main/java/com/facebook/samples/litho/changesetdebug/StateResettingActivity.java:71-79 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/changesetdebug/ScrollingToBottomActivity.java"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e05e7f2d371df70ce08f50ad7b521e159211d0191573c6f0e210e4e8cdd8f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): sample/src/main/java/com/facebook/samples/litho/documentation/treeprops/BottomGroupKComponent.kt:29-36 | sample/src/main/java/com/facebook/samples/litho/documentation/treeprops/TopGroupKComponent.kt:29-39 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/documentation/treeprops/BottomGroupKComponent.kt"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"425e17dfd2b5da56940f59850f6dd0a6856450b259ae62ac08d1415e7d3fc59a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): sample/src/main/java/com/facebook/samples/litho/changesetdebug/ItemsRerenderingActivity.java:33-42 | sample/src/main/java/com/facebook/samples/litho/changesetdebug/PropUpdatingActivity.java:35-45 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/changesetdebug/ItemsRerenderingActivity.java"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2647a852e715db46ec05c36e7c18c358b537881290381c75c1c43d4a7940f5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): litho-instrumentation-tests/src/main/java/com/facebook/litho/sections/treeprops/LogContext.java:30-35 | sample/src/main/java/com/facebook/samples/litho/documentation/treeprops/LogContext.java:29-34 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-instrumentation-tests/src/main/java/com/facebook/litho/sections/treeprops/LogContext.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65ec5192e32f6f6634541fb3b2e7923adaf546c2eab9bcb8020291d622a0169"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): sample/src/main/java/com/facebook/samples/litho/kotlin/visibility/AOSPLithoVisibilityEventsControllerActivity.kt:36-47 | sample/src/main/java/com/facebook/samples/litho/kotlin/visibility/LithoVisibilityEventsControllerActivity.kt:39-44 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/kotlin/visibility/AOSPLithoVisibilityEventsControllerActivity.kt"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5b647bd0171c3b515ff1e5fc98cba536bb57118f1a8cf3855d9eb2e04b79d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2): sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt:158-192 | sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPagerIncrementalMountActivity.kt:143-177 \u2014 before extracting anything, compare \u0060sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt\u0060 and \u0060sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPagerIncrementalMountActivity.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 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 \u0060sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt:158\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":"sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"88092fd08553045cc9142b0cce8384dffeeb8f8ded9c899b1d096c2572d4aab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201320 lines \u00D7 3): sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/IncrementalMountExcludeComponent.kt:235-254 | sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt:258-274 | sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPagerIncrementalMountActivity.kt:243-259 \u2014 before extracting anything, compare \u0060sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt\u0060 and \u0060sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPagerIncrementalMountActivity.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/IncrementalMountExcludeComponent.kt"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99bfa4b8a8790b2eb943fc1d527f41f0e591d78e9453fdba5a3c6edfa3fad0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt:72-91 | sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPagerIncrementalMountActivity.kt:68-87 \u2014 before extracting anything, compare \u0060sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt\u0060 and \u0060sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPagerIncrementalMountActivity.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 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 \u0060sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt:72\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":"sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb690bc7bd145484b340619d8dc07ccb99b0601039e14d1859b910146f235e29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): sample/src/main/java/com/facebook/samples/litho/onboarding/PostStyledKComponent.kt:42-60 | sample/src/main/java/com/facebook/samples/litho/onboarding/PostWithActionsKComponent.kt:48-66 \u2014 before extracting anything, compare \u0060sample/src/main/java/com/facebook/samples/litho/onboarding/PostStyledKComponent.kt\u0060 and \u0060sample/src/main/java/com/facebook/samples/litho/onboarding/PostWithActionsKComponent.kt\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060sample/src/main/java/com/facebook/samples/litho/onboarding/PostStyledKComponent.kt:42\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":"sample/src/main/java/com/facebook/samples/litho/onboarding/PostStyledKComponent.kt"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18d96f38a092d11506f87cea3b8975d654747b51c4cce7353937bc244365577"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): sample/src/main/java/com/facebook/samples/litho/documentation/customlayout/CustomLayoutDemo.kt:204-215 | sample/src/main/java/com/facebook/samples/litho/documentation/customlayout/EqualSplitLayout.kt:136-146 \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 \u0060sample/src/main/java/com/facebook/samples/litho/documentation/customlayout/CustomLayoutDemo.kt:204\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":"sample/src/main/java/com/facebook/samples/litho/documentation/customlayout/CustomLayoutDemo.kt"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"72374989965ba77e51bd5f873e78e0eff87f88fd8c4dd1ab525e6110dca635bb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): sample/src/main/java/com/facebook/samples/litho/kotlin/visibility/AOSPLithoVisibilityEventsControllerActivity.kt:50-58 | sample/src/main/java/com/facebook/samples/litho/kotlin/visibility/LithoVisibilityEventsControllerActivity.kt:62-70 | sample/src/main/java/com/facebook/samples/litho/kotlin/visibility/SetVisibilityActivity.kt:93-101 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. 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":"sample/src/main/java/com/facebook/samples/litho/kotlin/visibility/AOSPLithoVisibilityEventsControllerActivity.kt"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"30c30c46347d10c47062497bac42677c70452e42206c72a95230893340fb3a25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): sample/src/main/java/com/facebook/samples/litho/playground/HostPlaygroundActivity.kt:105-115 | sample/src/main/java/com/facebook/samples/litho/playground/HostPlaygroundActivity.kt:128-138 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060sample/src/main/java/com/facebook/samples/litho/playground/HostPlaygroundActivity.kt:105\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":"sample/src/main/java/com/facebook/samples/litho/playground/HostPlaygroundActivity.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a0c7c7bcee77cc0d3de81a6e481d998a19dc67a25a3b9c4742aeac4fd3f4c48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt:218-227 | sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPagerIncrementalMountActivity.kt:203-212 \u2014 before extracting anything, compare \u0060sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt\u0060 and \u0060sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPagerIncrementalMountActivity.kt\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 85 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 \u0060sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt:218\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/kotlin/mountandvisibility/ViewPager2IncrementalMountActivity.kt"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1248625e99ce68886bff524a2650d92fd10174448b6f491db13bd9e2631e23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): sample/src/main/java/com/facebook/samples/litho/changesetdebug/ItemsRerenderingActivity.java:68-76 | sample/src/main/java/com/facebook/samples/litho/changesetdebug/PropUpdatingActivity.java:76-84 \u2014 before extracting anything, compare \u0060sample/src/main/java/com/facebook/samples/litho/changesetdebug/ItemsRerenderingActivity.java\u0060 and \u0060sample/src/main/java/com/facebook/samples/litho/changesetdebug/PropUpdatingActivity.java\u0060 as WHOLE FILES: 85% 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. 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":"sample/src/main/java/com/facebook/samples/litho/changesetdebug/ItemsRerenderingActivity.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7539dd70d998473c5b418b4c86db6d68d237f9df54c6aeccfd3da5157b8c28e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): litho-instrumentation-tests/src/main/java/com/facebook/litho/sections/treeprops/DiffingTreePropTestActivity.java:30-38 | litho-instrumentation-tests/src/main/java/com/facebook/litho/sections/treeprops/TreePropTestActivity.java:30-38 \u2014 before extracting anything, compare \u0060litho-instrumentation-tests/src/main/java/com/facebook/litho/sections/treeprops/DiffingTreePropTestActivity.java\u0060 and \u0060litho-instrumentation-tests/src/main/java/com/facebook/litho/sections/treeprops/TreePropTestActivity.java\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":"litho-instrumentation-tests/src/main/java/com/facebook/litho/sections/treeprops/DiffingTreePropTestActivity.java"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab1b95e4b9a844a297ade1061696eef2e45bdfe243a353c671cd26243f04f9fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): sample/src/main/java/com/facebook/samples/litho/fastscroll/FastScrollHandleActivity.java:27-33 | sample/src/main/java/com/facebook/samples/litho/triggers/CustomEventTriggerExampleActivity.java:27-34 \u2014 before extracting anything, compare \u0060sample/src/main/java/com/facebook/samples/litho/fastscroll/FastScrollHandleActivity.java\u0060 and \u0060sample/src/main/java/com/facebook/samples/litho/triggers/CustomEventTriggerExampleActivity.java\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample/src/main/java/com/facebook/samples/litho/fastscroll/FastScrollHandleActivity.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5cdf427d974a9dcaf2a52a1df84a1dc9ff8e7cb93ef06ca49e098e6a61c14bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): sample/src/main/java/com/facebook/samples/litho/java/communicating/CommunicatingBetweenSiblings.java:27-32 | sample/src/main/java/com/facebook/samples/litho/java/communicating/CommunicatingFromParentToChild.java:27-32 \u2014 before extracting anything, compare \u0060sample/src/main/java/com/facebook/samples/litho/java/communicating/CommunicatingBetweenSiblings.java\u0060 and \u0060sample/src/main/java/com/facebook/samples/litho/java/communicating/CommunicatingFromParentToChild.java\u0060 as WHOLE FILES: 92% 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":"sample/src/main/java/com/facebook/samples/litho/java/communicating/CommunicatingBetweenSiblings.java"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"365786d0a440348aa98460da397efa6580a5d46424f1520ab6daf96a73ed61d9"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: :litho-rendercore-thread-utils: :litho-rendercore-thread-utils: abstractness 0.20, instability 0.00, distance 0.80 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"903d85cdf1907a1e9a797219a757a0d0d5781665d88fe7c53b4e4f54ec185494"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LithoNode (LCOM4 13): LithoNode\u0027s methods fall into 13 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 13 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoNode.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"850192a5ff140e860ce61c12e9fe3cd933a156d23c7d7cd6b0512352cae7b8af"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Builder (LCOM4 12): Builder\u0027s methods fall into 12 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 12 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":3237}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fec335446e750a4174e028ba9dd7288ff8691d43bf72d9da0ec1d7f304b868e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Builder (LCOM4 11): Builder\u0027s methods fall into 11 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 11 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa044907475149c9ac502d660881cb7ccc477798edc6f5ee95aeaca9bacafd7"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditTextWithEventHandlers (LCOM4 11): EditTextWithEventHandlers\u0027s methods fall into 11 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 11 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/TextInputComponentSpec.kt"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf4e514a98eb272a884f2046b7c52de7ce740676d4827463891507996ed63da"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: EditTextWithEventHandlers (LCOM4 9): EditTextWithEventHandlers\u0027s methods fall into 9 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 9 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt"},"region":{"startLine":1200}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a26c75d2de336f93df0c1deaec25e1243c9f39d30310abf1881e1f77cac76e9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Builder (LCOM4 7): Builder\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/ComponentTreeHolder.kt"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"c069dd95a15784771d523fd9c12ec9a260887505cc811f7bed28a0a8a5c845ac"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: LithoRecyclerView (LCOM4 7): LithoRecyclerView\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/LithoRecyclerView.kt"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"2af236beff8151aa3d51fb2fc394f8baba5eef5532b6a40f74ddaaa012494520"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Style (LCOM4 5): Style\u0027s methods fall into 5 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 5 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Style.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98a48d06c1d04c84daa7461b891bb3defd6cb2d5226d6c1952e4be61f83c1a9"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: BaseMountingView (LCOM4 4): BaseMountingView\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BaseMountingView.kt"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6315645de404f532c51591fcb047f7b15e582768b217b574fe40bcc64e02989"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OtherProps (LCOM4 4): OtherProps\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/CommonProps.kt"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f61c94b6569382f02a317e94524665c0ad1a643a5a22601cb2660f34ece519"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ComponentContext (LCOM4 4): ComponentContext\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentContext.kt"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"1384bf6765dab0e8807a4892420a83e059b2679a57b11ca6d9a1b988ab12504e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: ScopedComponentInfo (LCOM4 4): ScopedComponentInfo\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ScopedComponentInfo.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fcb56a9cfc0bcb6cfd473d7e583a300b6e4cca14d5d7742bf433a75f605880"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt: litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in LithoYogaLayoutFunction.applyRootSizeConstraints at line 818. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:33:09 -08:00\u0027 --until=\u00272026-11-13 11:33:09 -08:00\u0027 --full-history --no-merges -- litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"93187c3803da8f987e11055acdd01810be55eb7720d59392c42e985e657ae177"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: litho-core/src/main/java/com/facebook/litho/ComponentTree.kt: litho-core/src/main/java/com/facebook/litho/ComponentTree.kt changed 21 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in ComponentTree.setRootAndSizeSpecInternal at line 1901. 1 of those changes was a fix/bug commit, and the other 20 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:33:09 -08:00\u0027 --until=\u00272026-11-13 11:33:09 -08:00\u0027 --full-history --no-merges -- litho-core/src/main/java/com/facebook/litho/ComponentTree.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":1901}}}],"partialFingerprints":{"codehealthFindingId/v1":"46c9fc0495ee25feb26e9bbfd28231a70873ebb035958f4a1cb2ea3cbd1d2308"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: litho-core/src/main/java/com/facebook/litho/LithoReducer.kt: litho-core/src/main/java/com/facebook/litho/LithoReducer.kt changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in LithoReducer.collectResults at line 527. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:33:09 -08:00\u0027 --until=\u00272026-11-13 11:33:09 -08:00\u0027 --full-history --no-merges -- litho-core/src/main/java/com/facebook/litho/LithoReducer.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoReducer.kt"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"c64567e756df0cb855ae4b8d01db1674a1deec41b6373b0983999576b4be1f6d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt: litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 82 in VisibilityMountExtension.processVisibilityOutputsNonInc at line 310. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:33:09 -08:00\u0027 --until=\u00272026-11-13 11:33:09 -08:00\u0027 --full-history --no-merges -- litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityMountExtension.kt"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"f77227552170505e3eaf4700826fbe7897a4c1f289f481805805423d17458f0a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyCollection.kt: litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyCollection.kt changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in LazyCollection.render at line 115. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:33:09 -08:00\u0027 --until=\u00272026-11-13 11:33:09 -08:00\u0027 --full-history --no-merges -- litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyCollection.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyCollection.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ceefbded50d8bae5ca1d939534b4eebadf344dd0b88d06294e3d4ddee75788"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt: litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in ExperimentalTextInputKt.setParams at line 1005. 1 of those changes was a fix/bug commit, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:33:09 -08:00\u0027 --until=\u00272026-11-13 11:33:09 -08:00\u0027 --full-history --no-merges -- litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"386aa72dc10208d1a2453ab8ab0a74d8df0a820f8832c79800a494abd7d45d7e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: litho-core/src/main/java/com/facebook/litho/Component.java: litho-core/src/main/java/com/facebook/litho/Component.java changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Component.measure at line 571. 1 of those changes was a fix/bug commit, and the other 5 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:33:09 -08:00\u0027 --until=\u00272026-11-13 11:33:09 -08:00\u0027 --full-history --no-merges -- litho-core/src/main/java/com/facebook/litho/Component.java\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Component.java"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dea293ac312d163733ac8456fb8c7786473a9129cee5be0a1c3cc06af08fdd5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: litho-core/src/main/java/com/facebook/litho/TreeFuture.kt: litho-core/src/main/java/com/facebook/litho/TreeFuture.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in TreeFuture.runAndGet at line 273. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:33:09 -08:00\u0027 --until=\u00272026-11-13 11:33:09 -08:00\u0027 --full-history --no-merges -- litho-core/src/main/java/com/facebook/litho/TreeFuture.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/TreeFuture.kt"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"b817cb23f691695560e210e4b3624063ebe126a5a28c03cf2f9eb1d165ab7807"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt: litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in RecyclerBinder.mount at line 2684. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:33:09 -08:00\u0027 --until=\u00272026-11-13 11:33:09 -08:00\u0027 --full-history --no-merges -- litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":2684}}}],"partialFingerprints":{"codehealthFindingId/v1":"292dd79fce7e3af1fae157e40ebcabf9e58c6cebdc614819d4baa24949a72e76"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt: litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in LithoNodeUtils.createRenderUnit at line 327. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:33:09 -08:00\u0027 --until=\u00272026-11-13 11:33:09 -08:00\u0027 --full-history --no-merges -- litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"950fe85f172ca8f6549e2716d75d7da718266e5b062dc666ea6323134a6e55ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java: litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in RCTextView.mount at line 547. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:33:09 -08:00\u0027 --until=\u00272026-11-13 11:33:09 -08:00\u0027 --full-history --no-merges -- litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RCTextView.java"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b1531a2dc76f26534aab0c761ad988e9d9edc65e8b833927a7e29e1b87ee36"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt: litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in IncrementalMountExtension.onVisibleBoundsChanged at line 995. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:33:09 -08:00\u0027 --until=\u00272026-11-13 11:33:09 -08:00\u0027 --full-history --no-merges -- litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd17fbb36e6a416e8417f34123bbd97574bffaa3bebdef6ed0c7086502e37c39"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: litho-core/src/main/java/com/facebook/litho/ViewAttributes.kt: litho-core/src/main/java/com/facebook/litho/ViewAttributes.kt changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in ViewAttributes.unsetViewAttributes at line 518. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-15..2026-11-13, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-15 11:33:09 -08:00\u0027 --until=\u00272026-11-13 11:33:09 -08:00\u0027 --full-history --no-merges -- litho-core/src/main/java/com/facebook/litho/ViewAttributes.kt\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ViewAttributes.kt"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"eace3d24e3d6504ced3e2e495863f43c174b1c6f17ee8e9de07c0f8fb476c176"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 11 significant file(s) lose their only recent owner: litho-processor/src/main/java/com/facebook/litho/specmodels/generator/StateGenerator.java, litho-sections-widget/src/main/java/com/facebook/litho/sections/widget/RecyclerCollectionEventsController.java, litho-widget/src/main/kotlin/com/facebook/litho/widget/canvas/CanvasScope.kt, litho-editor-core/src/main/java/com/facebook/litho/editor/model/EditorValue.kt, litho-widget/src/main/kotlin/com/facebook/litho/widget/canvas/Path.kt, sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/ApplyingUpdates.kt, litho-testing/src/main/java/com/facebook/litho/testing/eventhandler/EventHandlerTestHelper.java, litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/Extensions.kt (\u002B3 more). Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0a5cbed2257836bfc934e13f1de9a0c3f9fdb286b6c8ba12c0326b785029492f"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #2: If anonymized user #2 becomes unavailable, 7 significant file(s) lose their only recent owner: litho-core/src/main/java/com/facebook/litho/state/UiStateReadRecords.kt, litho-core/src/main/java/com/facebook/litho/transition/KTransitions.kt, litho-core/src/main/java/com/facebook/litho/state/StateReadRecorder.kt, sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/transitions/ContainersComponent.kt, sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/transitions/DeltaDemoComponent.kt, litho-core/src/main/java/com/facebook/litho/ComponentRenderer.kt, sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/SimpleAnimatableKComponent.kt. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"85925da152f28d6d5cf96ab403d67e74e6a91c5d3512bc517f73bf3d14ec7112"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #3: If anonymized user #3 becomes unavailable, 4 significant file(s) lose their only recent owner: litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/CanvasModel.kt, litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/ShadingModel.kt, litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/CanvasState.kt, litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/PathModel.kt. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"51556406048091833ac8b7c77ad999b96a398a67220087399c67dc2763427926"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #4: If anonymized user #4 becomes unavailable, 3 significant file(s) lose their only recent owner: litho-it/build.gradle, litho-it/src/main/java/com/facebook/litho/widget/TestAnimationMount.kt, litho-it/src/main/java/com/facebook/litho/widget/SimpleNestedTreeComponent.kt. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fcb156a221dfd3617d49afd792f4929a6819932fda99a5c4d978cd2b736434eb"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 8 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (37 single-owned of 913 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 913 of the 1785 production source files in this repository met that bar). They are anonymized user #5 (2 file(s)), anonymized user #6 (2 file(s)), anonymized user #7 (2 file(s)), anonymized user #8 (1 file(s)), anonymized user #9 (1 file(s)), anonymized user #10 (1 file(s)) (\u002B2 more) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above. The files folded here: litho-core/src/main/java/com/facebook/litho/stats/LithoStats.kt, litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionItem.kt, litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/RecyclerCollectionComponent.kt, litho-rendercore-primitive-components/canvas/src/main/java/com/facebook/primitive/canvas/model/TransformModel.kt, litho-coroutines-kotlin/src/main/kotlin/com/facebook/litho/UseCoroutineScope.kt, litho-rendercore-visibility/src/main/java/com/facebook/rendercore/visibility/VisibilityBoundsTransformer.kt, litho-rendercore/src/main/java/com/facebook/rendercore/ResourceResolver.kt, litho-rendercore-thread-utils/src/main/java/com/facebook/rendercore/thread/utils/ThreadUtils.kt (\u002B3 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo check default \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/widgets/VerticalScroll.kt"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1d49777f9537634be6614dac66966e8c49752c8f8b517a1256d7bb163a7803"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo check default \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/widgets/VerticalScroll.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd83a41578e6ab1ddce1e20b47e505e8963e5ea1eb7f5084cd055b7c63aed83"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo check default \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/widgets/VerticalScroll.kt"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0798d6ea2fc5d16af51311f926d6f74ee582123bd7c6782f2876657cd305641b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo check default \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/widgets/VerticalScroll.kt"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"759ed97158c7f4016cd029424961f4c54636b4c17220cca790b22971259b4d6a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo check default \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/primitives/widgets/VerticalScroll.kt"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f37dea8c93c52558c5f9ad1233b2d8c265bcb66c1e96a13c00053a7cdda302"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(T291074975): make this the behavior and remove the flag once Feed has tested it. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"range-manager/src/main/kotlin/com/meta/rangemanager/KeyBasedRangeWorker.kt"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"81240acd1a4a4731c413dea59f05e32d46ad706a676f28eb31aed4da8040e298"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle OOB exception \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionPrimitiveViewAdapter.kt"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5d823ce34bf1ec59348be4b1da5b7ba0e5577d9ebc589767a58e7aac0405be"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: use different strategies to have a more precise estimation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionRecyclerComponent.kt"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"359edd2623c5ece6304edf53614e2752eb7e671a2430e381e0277106e10f298a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Inline the layout calculation to ensure it happens in a single frame. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionRecyclerComponent.kt"},"region":{"startLine":1075}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fcab40125b4fe2dbe679b4bc4b04d52b7519a51208af0fb6232e39bab0b5dcf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(11759579) - don\u0027t allocate a new EditText in every measure. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/EditTextSpec.kt"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"315d042b8cae37f78bf7140c8f8e45745aadbfe580b26c1a5fcbba3e8e56621f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO:T182959582 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/HorizontalScroll.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"73baf0feb0047989a0715b40a4a4d6d866612c33c248150f887c576671587401"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(t28712163): Cancel pending layouts for async inserts \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ee4d08b656fd82dbdc5ccaa9fceb59c200246d0c81eb25660f13c26d3f28234"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Calling layoutStickyHeader() here may cause a double layout pass per frame \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/SectionsRecyclerView.kt"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b839065b391cbb0251dc1a6633179b0a11e106d7af3ccb0b51165c93e1fa2fcd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(T198956736): Add break down of change set to the trace \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/SectionTree.java"},"region":{"startLine":1667}}}],"partialFingerprints":{"codehealthFindingId/v1":"57c4884f97f7c8773d8cb40c2ab039005fd52dc6859280e55ea8cb8f4a6c08b8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: T199256988 temporarily fix for root view sometimes being null in carousel \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-zoomable/src/main/java/com/facebook/rendercore/zoomable/ZoomableViewBaseController.kt"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0403a490a305bc95a0d4ebf652d164efc51a5faff4b670682631d79e7749d1f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove dependency to MountDelegateInput \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/rendercore/transitions/TransitionsExtensionInput.kt"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c3d45e63eac2b10ceb3358e9dd5e5b653b4d410bcf13786f93cc822a9b6cb1e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This is only catching changes in appeared/disappeared items. We need to investigate items \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a437e12cdb5d952986e50fb9a40d3a93cdd1491df32ebe6fe70edc6265495e07"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(t20726089): Restore introspection of animations \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/litho/TransitionManager.kt"},"region":{"startLine":1011}}}],"partialFingerprints":{"codehealthFindingId/v1":"16843f12e49bca0666720278c373d5608577d8f3a30ff31285bc95cc83ec5f9c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This should copy the textLayout with new clickable spans \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RichTextPrimitive.kt"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4341c92e693574f08ebd511120226cb7e8859f952e394a04cbb73a3489eb8d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: this should be moved to TextStyle and emcompass all properties \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/RichTextPrimitive.kt"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9db6e81fcf9b1e0bc876822dcd6021d8790f98e6923e1def12d1440c2162c54"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: AOSP has additional BiDi run boundary detection here (Editor.java:6448-6472). \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/selection/RCSelectionHandleView.java"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"364355a3181bcfc49261b2e4d52c3ed2c52d1512fee5b225613f3c3e646e21b3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO 79642626: we should use the selected property here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-text/src/main/java/com/facebook/rendercore/text/accessibility/AccessibilityUtils.java"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"6760e2e759fec7c3d8f7196f8f2c5bcc7bd084145c7c6b34f7c3eff2feffc1f6"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (T64830748): extract animations logic out of this. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountExtension.kt"},"region":{"startLine":1693}}}],"partialFingerprints":{"codehealthFindingId/v1":"186a35fead60ee7dfd91135881f4b76b71deb2829cdcf569649fdebd9f82e0e5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: invert API to add child to a host rather than passing the host to the child. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-incremental-mount/src/main/java/com/facebook/rendercore/incrementalmount/IncrementalMountOutput.kt"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"607e3062038a29bd1488f44a7f83280b9fca198b823fb19997e3d1159672e85d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo here \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/test/java/com/facebook/rendercore/DimenTest.kt"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9455ecca065256279d13d269c6408946eb2f6bc8e18672d2108ce9e3b3ec85"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(T160790123): Why? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-it/src/test/com/facebook/litho/NestedTreeResolutionWithStateTest.kt"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42a88ab2f3491625a95a261859cc8b614765fa087c1e279d9739604538c7126"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(T160790123): WHY? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-it/src/test/com/facebook/litho/NestedTreeResolutionWithStateTest.kt"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"721bfd02d7af79b7f1dd63c4b165698b110b2b214ed9e549aaf433c88d11c04f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Why is this required? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-it/src/test/com/facebook/litho/StateUpdatesWithReconciliationTest.kt"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"22eaae081a31cf219dfa4acd4bc56f5aa52115cfd4b9c2b51795b86b29ff6029"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Why is this required? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-it/src/test/com/facebook/litho/StateUpdatesWithReconciliationTest.kt"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6d71d534fefc315c0a481fbc2a01179f0edbed38017659e3095246375737049"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This transition is lost; NestedTreeHolder does not transfer to the nested node \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-it/src/test/com/facebook/litho/layout/RenderWithConstraintsTest.kt"},"region":{"startLine":332}}}],"partialFingerprints":{"codehealthFindingId/v1":"57229489c4e9fa25c62bc8e00ccd9a458eae1b51bfa38a156df30c410f1e610f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: remove this method \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-intellij-plugin/src/test/java/com/facebook/litho/intellij/inspections/TestHolder.kt"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"636b7062a1f5ff359007aee24df5eb113f5847caeb75891f8ea265b10a8b09d1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO better error message, ideally w/ line number \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-intellij-plugin/src/main/java/com/facebook/litho/specmodels/processor/PsiModifierExtractor.kt"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f6202cad3a17f7520998159e438e7fce47460eaa434fd030842666f18c3c0b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(festevezga) - Remove educated guess when the Layout Plugin is updated to produce tagged \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/FlipperEditor.java"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"93c4b129995b65321461aff727140b7959771d8a5af9771fb8f99660efc96383"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(festevezga) - add support for null \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/FlipperEditor.java"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5533a62f864307469f6d74b247b5575a6f1a5af7012ab65d6865b4125fac89"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO add support for Type.Dimension or similar \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/DebugComponentDescriptor.kt"},"region":{"startLine":612}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fbe84b2fcc16c94a93ae5ccea0bee470800bba71815f2e6985c7c7a958fb8c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: can this be a generic callback? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/BaseMountingView.kt"},"region":{"startLine":1134}}}],"partialFingerprints":{"codehealthFindingId/v1":"c156d51b309e4228cb0e80d5be19fa60d1a449ca7517082ac53e475bc8e73e58"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Implement equals for values \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/CommonProps.kt"},"region":{"startLine":1634}}}],"partialFingerprints":{"codehealthFindingId/v1":"351c74c6584eaab4a6202bba793ab28006b446847e93801d1b427a655e0b8446"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Extract into more generic container to track hooks when needed \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentScope.kt"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"c546fa831918b81533c63c879f46906107957ed265a9ef7f26cf68949acd7af8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(t66287929): Remove isCommitted check by only allowing one LayoutStateFuture at a time \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentTree.kt"},"region":{"startLine":2531}}}],"partialFingerprints":{"codehealthFindingId/v1":"5340ab54b42c0d4065c7c2eab8585344dfb751442c77034841daf421ae87d780"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(t66287929): Remove isCommitted from LayoutState by matching RenderState logic around \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LayoutState.kt"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"a81e60e24de421e03de7f38bbd21f30be13145ae24772cd19f873cef9ec3cadc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (T151239896): Revaluate copy into and freeze after common props are refactored \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LayoutUtils.kt"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7dd5af233d696ca9cd2338b93f15c263e1db4c3466b03f3e1c077c3f35c5879"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(fabiocarballo): Remove with legacy Text; see LAYOUT_FLAG_NEEDS_HOST_VIEW_AS_DRAWABLE. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoNodeUtils.kt"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"731dca030ac6a6f851a3a79aebe1a5034f50ad2fd6895ef19dd362167acbf6a4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo Rename this class to LithoTreeContext \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9f25dd57aabd8a3b91a62c5a4461c5ca5b74372245cf736a7216b73a8dfa67"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: figure out how to handle lazy updates properly \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoRenderer.kt"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db29707e9c19a06c6a0159a3b0d9595ce1ba3600e3f35727fac45a0b31e5680"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(T163437982): Refactor this to build the cache after layout calculation \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"e58b6b2037dc159f75eb1c45f4670d238d443ac1d6f764ff5902360ff2dae361"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(zielinskim): calculateLayoutOutputId is mutated during resolve/layout and it may race. \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/PrimitiveComponentScope.kt"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d0ea744ffda4590e9ad10f958219cc2dd5fee0b33ad5b048ef517a35576db9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO(T143986616): optimise traversal for reused nodes \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Resolver.kt"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fdaea7f5eb58ee75d6020a0efd39a7b9daa0417fe5535556482a35d81e51b14"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO (T133699532): Do we really need 2 lifecycle events here? If not, we can get rid \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/TreeFuture.kt"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"512d8d373ee02f9fb252e5566fe9fb22da1ea81acba04fc4f1858cada40a0627"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: content that throws reports it as it\u0027s measured, as in a Yoga tree, even if \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/layout/internal/LeafLayoutBuilder.kt"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c24849aeb0f4f906ee9bf393c22a2f9c066b2b0dc0889f449acef6d29fce00"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: content that throws reports it as it\u0027s measured, as in any Yoga tree; hold it on its \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/layout/internal/YogaTreeBuilder.kt"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b4680cb1da8b7bcf713cd58196bbd9c0f8127ff52876ae4d965c0a1615fa92"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060build.gradle\u0060 makes this repository a deployable product (line 85)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"build.gradle"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"68298bd657456be32e67ca303bbd24a693782f3d091a177ef7a49dba192842b0"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060isSameID\u0060 spells \u0060ID\u0060 where 40 names in the project spell it \u0060Id\u0060: 40 of 41 names in project litho-widget spell the token \u0060Id\u0060 (40 of 41; unit: names in project litho-widget containing \u0060Id\u0060). Peers: Companion.stableIdSaveableStateKey (litho-widget/src/main/java/com/facebook/litho/widget/ComponentTreeHolder.kt:583); EditorActionEvent.actionId (litho-widget/src/main/java/com/facebook/litho/widget/EditorActionEvent.kt:33); EditTextWithEventHandlers.onEditorAction(actionId) (litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt:1311); Recycler.recyclerViewId (litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:78); RecyclerKt.bindLegacyMountBinder(recyclerViewId) (litho-widget/src/main/java/com/facebook/litho/widget/Recycler.kt:552). Rename to \u0060isSameId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/LazyCollection.kt"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"f891c5ca059700c16039a61b8044b619ac2f859d5463b2c0c8130aaec3b32df0"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 8 of 46 project(s) overshoot their size bounds, lowering Project Cohesion to 6.8/10. The most over is \u0060litho-core\u0060 (75624 LoC, 1179 module-visible types across 28 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"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":"097c23d2fd1c4c1db8928c36f19cab9b29218f20f62572207c7f923e73e38a29"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a95ca6190727811e752a6264685697f8fd6c73a5bff8171f94fdc8554b34cbda"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b75cfc41f3b93742ff49a2dcc94aac288a1cb1801181b284a298f316ba92ce19"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0dbb915274563a1a1c7710b67a8c19d2a107f22fcaf0daddfce999f66be50e9d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ed65b9c95a4dc53898afcb477735e650c15707ac619af8959b21ca0939b1e0af"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f3519ccf925af4dbcd14b3786ec69d9749c93b8d8119faf42ed9457ac3bbeaa7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d14f53cc9214e5b6289d2370176bcea39877af14cc2346cfb6caa4a453f6e0f7"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"54e166dc5840ed27de86744c9d4dac90f887e13b6058ca804d72355fcd8d545c"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"89216d843c290fdaccf1250127b3f1259d35e864107f69edd2aa145bfaac7247"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"23a3c153922061d8b6a12cb06526c89608d55d517be1e8a1ebe36191f905cd33"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cf46e0829d66ef2521b943e4f4108a85e34488ef53594bf2e998df31d55c061c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5be03ab325ce0dd57044d4e411f1428508ecf7870bea56774afff406be2e7ce3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"75369c09bb288495c1ec96550eb2aa9585bb73f2d0abcdd876376a94900b52cc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"899733f82a6086993688f43218095f678c60a8c6f84d6f71065f11e6cc13bbb0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3643ff687baaf09e4fa86f24721b381bb8ec583e4fb1bc9174a893ca376bdfb1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"24bcc8189b69961073a2a81a26475bc0ac4b4627119c2067a001ba82a978dc0a"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"65ee29109926fc78d37f0ed7fb76babb10c3211843c08521fe34dee9022a248f"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a95d582e55e2d8a4e340c33fad51281f9f14fefa5cf40cb1cb324f828606b09a"},"taxa":[{"id":"CWE-214","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-532","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A09:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"620f44f7d0814af2bb598a515423618ad407110d7f6058f12541a5a3763e870d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"35920ee1b98c18d278d7469fb5867e6438fd0df096df6577f4fd7875ae44a6d6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"865c1256b0af6cac7fabd52ec1703a6840a81e82c2cc09619e5e78e47af02756"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"953909073cda3a4f33914a7840ac0926bc83c86f31157c5e6838bb41edf04f40"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1d7a8548722a20e18eb37e5d83092030b4f5dcbcf72efe198dd8a46e209d6cfe"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"48d884f1d7651b31b59903e901e9d37f91491ef23e15991f454021bbd6222708"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"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":"f9059b86e308276d4d1894d503d71ebca2999c0b9a1b54763d48401483667cfb"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d391318853eddb8105bc36d34a431790a2d3cabf9a4e5851c86cc956f4cfb0a9"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"248fde5f71e063428aadec050a62069b3f1a64e5dfeec497b0e6ca5de32f581f"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5263ab310db5b3b4795ed8c04997ee4c26b7d6ac77e70568aab7c8b62e55f435"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"74d189197ca085d9f43b31c866ef3d648c728dd9a00f83c65dc3742fc982b76f"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ccf605d2f8577f17fcf88f6db8097175f8014d88200e0a2f682ca02e5bc00679"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9b79d5d4810f24bf0b2035c71376b6fc1323167a3bfaa78f3d03addd0a4b57c9"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc3c600fb124e047c041c5622d4021d4c91b7f1cce4df2631ed87b5344872702"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a24c7827746fa645158cae0d648efa3e7612c112ac5f578d54fcb92586651c56"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"edf5d401f3f53600a3644d786255f877172c88c70fea1ac3e9f9428c463d3d6f"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1258951b8bde5b5790ae80720e8c98ca2456173413316de3dabc050ed34a9ea7"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f8b65af8464decb0ffcbbc9474135a2f5f6b6a8b4af9368f9707241978520839"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"73c696947c21eeddcce266fce119f5330ca3fdd6b1a76fd80e5a6822e9767feb"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ef7512deb7cdf74c0dd5703bebbbbe99c953071aefba72416541da5729f30413"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b2bfcdb2692f0554834711162d8e5079f4b8bcf7338fbec93740caa01511fa08"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e5658dbe98a1000b87f66fe6476f95ccffc90fb5b695eb7ced8a84321f904883"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"78a5d0ddb9255766f910922a6e51351398a4b84a2ad964d06ad97505961a7300"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"30deee97a446f4d43c2b0527810c6d436e9e74071117e9fecfb2235b46f84932"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"67910060b6961f27422407a0b70a416f2b7dde1df44aa0b49018dbd5550eff30"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25328afdf430fbf9ab48924ec01ecbb078ee2f3e04095ed6896bb7cf4a493859"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eebe6ca1b56582b41f2f932860ab8a44fe8596b964f33ace43e8908c57d96770"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e286438006f4a26d904d7da04efc451318ee8b556a02cbeb25828199150aef29"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e24eb2f2f7b9d243217969fc8b670e618ded018e8928dce75b48036de70997c5"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5612d0b34674b3a44bd3e316241a09479cbcb7d3b7e1adc64cc9bfe61b50d5c1"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"67e19f743585dbee96936a9d9375cca1daf899aefd718d70d125d223f5382b14"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b1674ded20017325adf583558d2ea90128b4875fc32414d9a2b01e8d03eb262a"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"775d8720c32eb71fb456a49a3e28e1c26aa350fc69f93f4816b3c5ba6fcd3977"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2c30a343290c6e18281c4c9f3f07f05bc6b63c96687239f4a5581a4b5dbb73f8"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"27d0693d3617ad58536e872b72d570d40774d871724ce252406d4d7c4faf1d10"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"418632e010dc414df96c1d1c3349a4704b31a77e8677a844c48ff494f7cb065f"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3259324f68b4d35732165d174b3c89e034b7ad6406265e556f5fe6f608a5daa5"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0366a10607a79587d48c980ef880160ae6a2a39ef55b3bb6ed949b33693b42b9"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b78a453e7d80dd88ba457247936a8d2d55a55e8120a39950b2e332b8f65231a0"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2da0c8dc7e83e4f87806a641df0a74153a53b1eee997204e180adb766783f806"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7639c182e45f43cf55bcbf2887e84d03f271a86a570ce51056f91d0a63bec127"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"03b191f50214f9ff264d28a9b1416e8f0b894c7d37bbe9e77a2eeb5b8627f32f"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5fd277c3bf83d462f60e595d48c00c3d4a5e04cece987e354fc84743f6cf6985"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"758dd72bd902fadb5b0e4c992984499ecd95dec57bd4f846bc2479c255cf9b92"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f72be023da0d1b1de28931e2484452a4d22a34ad4ae797a74e7ed01a7ae0fe16"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"11f1a2ad9bf20bf4af0b7e7aed8eff2656d60431bc7665c5aebef268c412570a"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"22d90af948e0434e9ccd7757d934886d65947c238e3b2581f42643cb97ac3540"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8ef91474ecef3ba08bc27d29fddfd78cb7c1e1bbbc9d668c9fe845a41c0a859f"},"taxa":[{"id":"CWE-926","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/TriggerGenerator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"730a4f0ac16072871f912dc61b0ce76a1fbb0250e90d46c5025e4d0dfdc30db5"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountDelegate.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc529031a72a529ecf90998e29d3d7b44ec1b52b198950ca457dd4d2de408fa"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/StyleCompat.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1689f26729be01be20df5aad95f3ee835eff18476285f5f739401b0958c4795"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 42 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: litho-processor/src/main/java/com/facebook/litho/specmodels/generator/StateContainerGenerator.java, litho-processor/src/main/java/com/facebook/litho/specmodels/processor/WorkingRangesMethodExtractor.java, litho-processor/src/main/java/com/facebook/litho/specmodels/generator/WorkingRangeGenerator.java, litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/FlipperEditor.java, sample-java/src/main/java/com/facebook/samples/litho/dynamicprops/ClockView.java, litho-processor/src/main/java/com/facebook/litho/specmodels/model/DynamicPropsValidation.java, litho-testing/src/main/java/com/facebook/litho/testing/assertj/TestCollectionAssert.kt, litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/DataUtils.kt (and 34 more) (45 orphaned of 929 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 929 of the 1785 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/StateContainerGenerator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1c6d0d01e82e7804ca77cdacdfc7bfa24c0a676b35c427e2a34b4b4cdb79385"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/WorkingRangesMethodExtractor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9475cfb65107cc122a55b1d79745f314303208239c34484f227ca081f4b7b6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/WorkingRangeGenerator.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4a97bc43758c9fac507a7de796d5067b574fff827c59cf364ca432424fa7cc7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/FlipperEditor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bebcc3d81c6aadd0ebd2c0cfb1433d2e550c15727277be233a1d2dc5b118abb3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-java/src/main/java/com/facebook/samples/litho/dynamicprops/ClockView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"671a873316e86d24318cfbd06c7e69107b4b87e23397e52ed68cd915d6daf81a"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/DynamicPropsValidation.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"139154d6e1c349621bec8b9106a153cfa7810bdc866a4466065d7f0e225567a3"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/assertj/TestCollectionAssert.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70e2616e4d88694a00c877790d859561c1ef79e8c7abea81c3a4aa3c8b86962"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/DataUtils.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3e6c9d2dad71df96ffe36a7176671bccc5dbda1411177e932cbe2ae6845483"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/WorkingRangeValidation.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd8f4b00eb6b2a9a5014ec85bb1c84f4b57c247d9482fd1bc2027620d9bf5f1"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-debug/src/main/java/com/facebook/litho/sections/debug/DebugSection.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbe3aeae1a022ef821d9cc00286b47c34da9e886d4cb602f8a54f942357935c0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/ChangesetDebugConfiguration.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e412ed08621c24827c1ffe7b09b99c10dc6e41913926bcccb803cca62d8596f9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-java/src/main/java/com/facebook/samples/litho/lifecycle/LifecycleDelegateLog.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"892621d437937088ce2ce9691f8a2b458b298c55aee7026faa570789145d3e0f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-sections-core/src/main/java/com/facebook/litho/sections/FocusDispatcher.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da9f1c7317dda661fe080823c67a93928d33179b7c6ab3d4cc7482974f3d918"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/Whitebox.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c6f7cd43a313f6cd781e1d2d116f1727a9827316eddb8e4a34e320db91ef1a9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/Spacing.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2613aa601dcd450dfc016f514e6c820a92e2dca924dd16555bb76db470f3f65"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/tools/firstdraw/FirstDrawReporter.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c62b77fb6264a3133cb19aa019bc861675d7f497b31de1d3096f049b631c8c7f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-annotations/src/main/java/com/facebook/litho/annotations/ResType.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad4d7f947ca4b6e95c60585793d168975f77706444a2c98e152ec143fe1355e"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-java/src/main/java/com/facebook/samples/litho/fastscroll/ScrollController.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88be93ab61b3714a23d2b1eef4c769c5325de36bb961434da833a98e308d40fc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/GenerateLithoAccessibilityRenderExtensionCommand.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"134b1c391b8e534ef018d4e2e41cf2afa9923f37c1dca1885a8484c5a1ac4963"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-fresco/src/main/java/com/facebook/litho/fresco/FrescoImageHierarchyTools.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9bf07ef76a04e5f4f076c762651339c8df861e12e01bbb2b6c01ac8f5846188"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/TestTransitionComponent.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f6a58d7ba05c2a466c38384ed3735174f97f670de288449a950d0b78975506"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/PaginationCollectionKComponent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e3321b9ec5a4f021591cd8e5b3846aeb508a151c49d24b913da57742880029"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/BindDynamicValuesMethodExtractor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fc437a3294483459d21d6a1e2d055e79e552c9e10fa91f7f7a8b91c10d8adc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/DepsCollectionKComponent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"92692781fcb9e093ef09506d5bcff0f3181ee1df2cccd5770dcaa71e8ce519c6"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-java/src/main/java/com/facebook/samples/litho/lifecycle/ConsoleView.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d555c2eae8a2245a24d24d3ae56ff275771fd67c4405ad1f3588727880bce68"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/TabsCollectionKComponent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"775e70b5c4ca65db5d4155a7e3eca56f47ad988d11e04914a27b7c4af729e511"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-core/src/main/java/com/facebook/litho/editor/instances/StyleEditorInstance.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac78156890734e8a5e5086ca3a61135e4545178dbf057eac7ae84b05960a539c"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-core/src/main/java/com/facebook/litho/editor/instances/ObjectEditorInstance.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2153552eec0ab4d8c8c526fa521fcba21b86ce849cfda2122bc4aa226a9a52f9"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-common/src/main/java/com/facebook/samples/litho/kotlin/animations/dynamicprops/SimpleClockView.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"414bf1ae8006fbfba825bb16803d8b3bc1e3c0049395cbd9ac670292182abbdc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/SectionsMigrations.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d06a4b7d90530afd5fe3c592e25ccaa19138c43c1f56b200d93990a7ee2fe2"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-annotations/src/main/java/com/facebook/litho/annotations/FromBoundsDefined.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d745ad49e52acbd6ada5184ba21f88f8f8a593a481405091e30d398bd03bc4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-annotations/src/main/java/com/facebook/litho/annotations/FromPrepare.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"796260e268b2c1509744b4f5bd7dc32f20216f2f4ae191e6edcf045aa2f68194"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-annotations/src/main/java/com/facebook/litho/annotations/OnMount.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b750f03a85af53f9403cd1f8f362483b7b849d4f16a1cf9facced75a164a5da"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/collection/PullToRefreshCollectionKComponent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac821be859a7af18f59710b947887ec8a8f5adc92d7b6bfca929073728196b71"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/processor/ParamNameExtractor.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc64ce09801d7e73e6b983c76a7809206a56df8228cf0ba3b3c3de72fc94844b"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-core/src/main/java/com/facebook/litho/editor/instances/MapEditorInstance.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"def8d84e22435a7bcdcef056be71f65366f1d76fe4d2ff3eb14516bccd6502d7"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-common/src/main/java/com/facebook/samples/litho/kotlin/errors/KDebugComponent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b8fb8ca8b9ff4bc198fd9df2b01ae661c258b2708baab29b29c39e8e560fbc"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-annotations/src/main/java/com/facebook/litho/annotations/OnPrepare.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a3ce171587993253867f57875136cbb65c52ed8453876525d6cd79349a241c0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/TestCollectionItem.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"46bbcd4b3a328bee93729ce4131d141d56df966c266ab4fd2759b6d7060b6406"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-flipper/build.gradle"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e963d1d4713d9342fd64d08e5f3cadb9576b46fd8612a7686264302b8318b0ca"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"sample-kotlin/src/main/java/com/facebook/samples/litho/kotlin/animations/AnimateDynamicPropsKComponent.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"935bb194869d0dc808ec22495736c151fee97b410ef07a4ba7f731859686ba3d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/testrule/LithoAnimationEnablerTestRule.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaf7ad6c01df25551b6a02628bc199fa84b562adf2cc08037b71cc4b4868d076"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ComponentContextUtils.kt \u2194 LithoConfiguration.kt: \u0060litho-core/src/main/java/com/facebook/litho/ComponentContextUtils.kt\u0060 and \u0060litho-core/src/main/java/com/facebook/litho/LithoConfiguration.kt\u0060 change together 75% of the time (9 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 9 shared commits counted here, the most recent 3 are \u006050d02726\u0060 Move VisibilityBoundsTransform to ComponentsConfiguration; \u00604848a1e8\u0060 Move ComponentTreeDebugEventListener to ComponentsConfiguration; \u00602b530220\u0060 Migrate ComponentsLogger to ComponentsConfiguration \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentContextUtils.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0a2ad589bb39943c71234c971500a236d44e9a5d9313936943ee711f256d765"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: RenderCoreTestRule.java \u2194 RendercoreTestDriver.java: \u0060litho-rendercore-testing/src/main/java/com/facebook/rendercore/testing/RenderCoreTestRule.java\u0060 and \u0060litho-rendercore-testing/src/main/java/com/facebook/rendercore/testing/RendercoreTestDriver.java\u0060 change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060c34c655e\u0060 Introduce frame identifier calculation to the rendering pipeline; \u00607e96745c\u0060 clean up RenderResult; \u0060851b2d28\u0060 introduce ResolveResult \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-testing/src/main/java/com/facebook/rendercore/testing/RenderCoreTestRule.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2689e87d251ad084c2c144aa999cc703403337035df362a1afae38d62d8cd7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90ef8645d5d250a2cdd6c4ddecf434c2439a3eaf0b71b0b76b3e93b4d1bb9e49"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"32764f592568a416bbcea6a42811cba30593b64edaf3820fb9a9b2f6df32e2da"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"65d87ec21c1ecf43a0424ab644272e64330044f506a9f75bd32965b5f8696841"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"37bbed7843f3785673a7ac0d6d6e81d97ffbf65122b2118f8017b7f08db3ffb1"},"taxa":[{"id":"CICD-SEC-5","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060com.facebook.litho.layout.internal.DefaultLayoutBuilder.Stage\u0060 are marked as implementation by their own namespace, folder or name: \u0060MEASURING\u0060 (litho-core/src/main/java/com/facebook/litho/layout/internal/DefaultLayoutBuilder.kt:592, \u0060internal\u0060), \u0060RUNNING_FUNCTION\u0060 (litho-core/src/main/java/com/facebook/litho/layout/internal/DefaultLayoutBuilder.kt:593, \u0060internal\u0060), \u0060DONE\u0060 (litho-core/src/main/java/com/facebook/litho/layout/internal/DefaultLayoutBuilder.kt:594, \u0060internal\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/layout/internal/DefaultLayoutBuilder.kt"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"60be9349894727b9c7019a5db4668ff83d6a987ae4ba781012543e4a2fbec1d3"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060com.facebook.litho.layout.internal\u0060 are marked as implementation by their own namespace, folder or name: \u0060DefaultLayoutBuilderKt\u0060 (litho-core/src/main/java/com/facebook/litho/layout/internal/DefaultLayoutBuilder.kt:1, \u0060internal\u0060), \u0060LithoLayoutBuilderKt\u0060 (litho-core/src/main/java/com/facebook/litho/layout/internal/LithoLayoutBuilder.kt:1, \u0060internal\u0060), \u0060YogaTreeBuilderKt\u0060 (litho-core/src/main/java/com/facebook/litho/layout/internal/YogaTreeBuilder.kt:1, \u0060internal\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/layout/internal/DefaultLayoutBuilder.kt"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a72b9c63cb4149d83f2233c8a93a29cf0c2095411aec5d3d9f1cbc0e5ce5b91"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 3 public types in \u0060com.facebook.litho.specmodels.internal\u0060 are marked as implementation by their own namespace, folder or name: \u0060ImmutableList\u0060 (litho-processor/src/main/java/com/facebook/litho/specmodels/internal/ImmutableList.java:29, \u0060internal\u0060), \u0060RunMode\u0060 (litho-processor/src/main/java/com/facebook/litho/specmodels/internal/RunMode.java:21, \u0060internal\u0060), \u0060SimpleMemoizingSupplier\u0060 (litho-processor/src/main/java/com/facebook/litho/specmodels/internal/SimpleMemoizingSupplier.java:26, \u0060internal\u0060). While they are public, every consumer of the library can bind to them, so changing them is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/internal/ImmutableList.java"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"1800e630e3eb2d08ddd80817b8a91a4056275d824dff3fd5a55d95a5766eff42"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.facebook.litho.specmodels.model\u0060 is marked as implementation by its own namespace, folder or name: \u0060SpecModelImpl\u0060 (litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java:40, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/model/SpecModelImpl.java"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c8bc6fb18da4400093d40cf8b4e6d6b21afff926f8e2bc4a5950f15fa26b2d"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.facebook.litho.choreographercompat\u0060 is marked as implementation by its own namespace, folder or name: \u0060ChoreographerCompatImpl\u0060 (litho-rendercore-transitions/src/main/java/com/facebook/litho/choreographercompat/ChoreographerCompatImpl.kt:32, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore-transitions/src/main/java/com/facebook/litho/choreographercompat/ChoreographerCompatImpl.kt"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"42fef67e4603d50d82f0e7e4724971ca0927c18de827f502a9cd884ad11e6bd6"}},{"ruleId":"P10","level":"note","message":{"text":"Implementation type on the public API: 1 public type in \u0060com.facebook.litho.widget.ComponentWarmer\u0060 is marked as implementation by its own namespace, folder or name: \u0060ComponentTreeHolderPreparerWithSizeImpl\u0060 (litho-widget/src/main/java/com/facebook/litho/widget/ComponentWarmer.kt:63, name ends in \u0060Impl\u0060). While it is public, every consumer of the library can bind to it, so changing it is a breaking change for those consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/ComponentWarmer.kt"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4d765897161e15640c7dd75403a32174bef5b7c24b6cd79db34fec9f79af97"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add spotbugs with find-sec-bugs (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 4 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060website/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/package.json"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fce86b2103c4f2843d013c58b5c7f061667466a865c9a8b7a65b915759d9d19"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060other == null || getClass() != other.getClass()\u0060 appears character-identically in 3 files \u2014 litho-core/src/main/java/com/facebook/litho/Component.java, litho-sections-core/src/main/java/com/facebook/litho/sections/ChangeSet.java, litho-testing/src/main/java/com/facebook/litho/testing/specmodels/MockSpecModel.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Component.java"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e5e3963af3a5bc6e11c7ecdbc4eb468e9c4c2ecdb16a3215aa95828a1cfdb85"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060required != null \u0026\u0026 required.nextClearBit(0) \u003C requiredPropsCount\u0060 appears character-identically in 2 files \u2014 litho-core/src/main/java/com/facebook/litho/Component.java, litho-sections-core/src/main/java/com/facebook/litho/sections/Section.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Component.java"},"region":{"startLine":2632}}}],"partialFingerprints":{"codehealthFindingId/v1":"1198178a2f005b6eb45b05334a53a17ce17e6b91270b3e323f2c2c16501bd0c5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060type instanceof ParameterizedTypeName \u0026\u0026 !((ParameterizedTypeName) type).typeArguments.isEmpty()\u0060 appears character-identically in 2 files \u2014 litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java, litho-processor/src/main/java/com/facebook/litho/specmodels/generator/testing/MatcherGenerator.java. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-processor/src/main/java/com/facebook/litho/specmodels/generator/BuilderGenerator.java"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ec770f556a2900c00f6b830bca5791c3fb9d5dcf6714a4ea4ae6acdff8b4fa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!LithoDebugConfigurations.isDebugModeEnabled \u0026\u0026 !ComponentsConfiguration.isEndToEndTestRun\u0060 appears character-identically in 2 files \u2014 litho-core/src/main/java/com/facebook/litho/LayoutState.kt, litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LayoutState.kt"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"02707c9abe7db616254080461f8127d162f40431f9a173466b6759e803f71118"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!sizeConstraints.hasBoundedWidth \u0026\u0026 !sizeConstraints.hasBoundedHeight\u0060 appears character-identically in 3 files \u2014 litho-rendercore/src/main/java/com/facebook/rendercore/utils/SizeUtils.kt, litho-widget/src/main/java/com/facebook/litho/widget/PrimitiveImage.kt, litho-widget/src/main/java/com/facebook/litho/widget/ProgressPrimitiveComponent.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/utils/SizeUtils.kt"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bedb69ab063a2075333ec3e3c27c06fc4f7c438dee145f0bc3bb81b5db10105"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060canvas != null \u0026\u0026 drawIndex \u003C itemsToDraw\u0060 appears character-identically in 2 files \u2014 litho-core/src/main/java/com/facebook/litho/ComponentHost.kt, litho-rendercore/src/main/java/com/facebook/rendercore/HostView.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentHost.kt"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de206ab2ae0a23d83a9069c4f091c0d2f9883c18f66fb11bd8e1c01fe259bc6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060component is SpecGeneratedComponent \u0026\u0026 component.excludeFromIncrementalMount()\u0060 appears character-identically in 2 files \u2014 litho-core/src/main/java/com/facebook/litho/DebugComponent.kt, litho-core/src/main/java/com/facebook/litho/MountSpecLithoRenderUnit.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/DebugComponent.kt"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbcc3a17dd9724ff78384e8f73fcf594b49f3dae2b07183b7803e646d76702d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060component is SpecGeneratedComponent \u0026\u0026 component.needsPreviousRenderData()\u0060 appears character-identically in 2 files \u2014 litho-core/src/main/java/com/facebook/litho/SpecTransitionCreator.kt, litho-core/src/main/java/com/facebook/litho/TestLayoutState.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/SpecTransitionCreator.kt"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"3978e9ffb7fa909d36e613f568bea2612b60a77aa3550bab91ebdb4e4e84f974"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060component.canMeasure() \u0026\u0026 Component.isMountSpec(component)\u0060 appears character-identically in 3 files \u2014 litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt, litho-core/src/main/java/com/facebook/litho/Resolver.kt, litho-core/src/main/java/com/facebook/litho/TestLayoutState.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt"},"region":{"startLine":1100}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9859c25ea9a7e9fa3e3af12149edd8f764af662181ef5471ad71332017e1e87"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentContext is ContextWrapper \u0026\u0026 currentContext !is Activity \u0026\u0026 currentContext !is Application \u0026\u0026 currentContext !is Service\u0060 appears character-identically in 2 files \u2014 litho-core/src/main/java/com/facebook/litho/ContextUtils.kt, litho-rendercore/src/main/java/com/facebook/rendercore/MountItemsPool.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ContextUtils.kt"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54b0b7a93d064c97276df7254e59ef5fa39bee70e4ed6c1dea2c26dc4beedb7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fade != null || scale != null || slide != null || changeSize != null\u0060 appears character-identically in 2 files \u2014 litho-core/src/main/java/com/facebook/litho/animation/AnimatedContent.kt, litho-core/src/main/java/com/facebook/litho/animation/AnimatedVisibility.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/animation/AnimatedContent.kt"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3e46b81581109a92ed9b393cf5ef067b33606c6659927ac5e4d600e65835303"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060itemSize \u003C= 0 \u0026\u0026 ComponentsConfiguration.saneGridRangeEstimateForZeroSizeItems\u0060 appears character-identically in 2 files \u2014 litho-widget/src/main/java/com/facebook/litho/widget/GridLayoutInfo.kt, litho-widget/src/main/java/com/facebook/litho/widget/StaggeredGridLayoutInfo.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/GridLayoutInfo.kt"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"260891682d6cfe7b50940bf5e820f8e6fc025ba999630889930a08520b9b67de"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060label.isNotEmpty() \u0026\u0026 animationLabel.isNotEmpty()\u0060 appears character-identically in 2 files \u2014 litho-core/src/main/java/com/facebook/litho/animation/AnimationGroup.kt, litho-core/src/main/java/com/facebook/litho/animation/InfiniteAnimationGroup.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/animation/AnimationGroup.kt"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6eb95cab63a698754cdb1a6a39c8e32b874d0e8fb894eb239ee6806919a6658"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060layoutState != null \u0026\u0026 state != null \u0026\u0026 renderTreeView is LithoRenderTreeView\u0060 appears character-identically in 2 files \u2014 litho-widget/src/main/java/com/facebook/litho/widget/HorizontalScrollLithoView.kt, litho-widget/src/main/java/com/facebook/litho/widget/LithoScrollView.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/HorizontalScrollLithoView.kt"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffdc829513e2e47e7220364fc96a9181067070e6dc62308f49971eb667ca8f26"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060left == 0 \u0026\u0026 top == 0 \u0026\u0026 right == 0 \u0026\u0026 bottom == 0\u0060 appears character-identically in 3 files \u2014 litho-core/src/main/java/com/facebook/litho/LithoLayoutResult.kt, litho-core/src/main/java/com/facebook/litho/LithoYogaLayoutFunction.kt, litho-core/src/main/java/com/facebook/litho/layout/BoxLayoutProps.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/LithoLayoutResult.kt"},"region":{"startLine":249}}}],"partialFingerprints":{"codehealthFindingId/v1":"448a4a96e8244c20dda9282e8e076b110ff5485f276c0c842c9379555d0ae8bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lithoView != null \u0026\u0026 lithoView.visibility == View.VISIBLE\u0060 appears character-identically in 2 files \u2014 litho-core/src/main/java/com/facebook/litho/ComponentTreeDumpingHelper.kt, litho-core/src/main/java/com/facebook/litho/DebugComponentDescriptionHelper.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentTreeDumpingHelper.kt"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec745c3b10fd71399a4893f9d3619c3d3520e91dd1648dd9b6e87c5103f1dc0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mainAxisGapPx != null || crossAxisGapPx != null\u0060 appears character-identically in 2 files \u2014 litho-core/src/main/java/com/facebook/litho/Column.kt, litho-core/src/main/java/com/facebook/litho/Row.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Column.kt"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"10941bad4834e49be744805c52652d6f06d1776a8533212333a9056cd5f5f76b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mountedView == null || !mountedView.hasPendingAdapterUpdates()\u0060 appears character-identically in 2 files \u2014 litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt, litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionPreparationManager.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":4274}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e1034f76ca08dd28f954052c52efa5a347dca87dbde6de96425ff0ac25d19a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060obj == null || javaClass != obj.javaClass\u0060 appears character-identically in 2 files \u2014 litho-it/src/main/java/com/facebook/litho/testing/treeprop/TreePropNumberType.kt, litho-it/src/main/java/com/facebook/litho/testing/treeprop/TreePropStringType.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-it/src/main/java/com/facebook/litho/testing/treeprop/TreePropNumberType.kt"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5d34a5d3c86c110189ac625e7984b7a283929a6bb891f9f8c4306d6551b4aa"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060other == null || javaClass != other.javaClass\u0060 appears character-identically in 10 files \u2014 litho-core/src/main/java/com/facebook/litho/KComponent.kt, litho-core/src/main/java/com/facebook/litho/KEventHandler.kt, litho-core/src/main/java/com/facebook/litho/PrimitiveComponent.kt, litho-core/src/main/java/com/facebook/litho/Style.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/KComponent.kt"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1bd5d68082ee1766ab3ab86fdf01bbb9975eed108a3c230c22106aef673b38e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060otherChildren == null || children.size != otherChildren.size\u0060 appears character-identically in 2 files \u2014 litho-core/src/main/java/com/facebook/litho/Column.kt, litho-core/src/main/java/com/facebook/litho/Row.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/Column.kt"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"109d441c61479897a0d6fb2c9e7e67e9268c3358f8b9a0b8d0e58966ee542297"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060rangeStart == lastEmittedRangeStart \u0026\u0026 rangeEnd == lastEmittedRangeEnd\u0060 appears character-identically in 2 files \u2014 litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt, litho-widget/src/main/kotlin/com/facebook/litho/widget/collection/CollectionPreparationManager.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/RecyclerBinder.kt"},"region":{"startLine":4142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fab31bc0f661578985c3ee518d3ab3d1e48247655f7b2c3e4b536ca7554a21"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sizeConstraints.hasExactWidth \u0026\u0026 sizeConstraints.hasExactHeight\u0060 appears character-identically in 2 files \u2014 litho-rendercore/src/main/java/com/facebook/rendercore/RootHostDelegate.kt, litho-widget/src/main/java/com/facebook/litho/widget/ExperimentalTextInput.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/RootHostDelegate.kt"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"28e11e2291734c0c672d015709b6b62a0f6bad97bdbc334bfce65d2598dc1a33"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sourceElement == null || PsiTreeUtil.getParentOfType(sourceElement, PsiImportStatement::class.java) != null\u0060 appears character-identically in 2 files \u2014 litho-intellij-plugin/src/main/java/com/facebook/litho/intellij/navigation/BaseLithoComponentsDeclarationHandler.kt, litho-intellij-plugin/src/main/java/com/facebook/litho/intellij/navigation/ComponentsMethodDeclarationHandler.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-intellij-plugin/src/main/java/com/facebook/litho/intellij/navigation/BaseLithoComponentsDeclarationHandler.kt"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"318197a18fdeaaaea160e49710d4178ec02bbc481e9343512223c5fc48d4cd36"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060t.shouldHandleTouchEvent(event) \u0026\u0026 t.onTouchEvent(event, this)\u0060 appears character-identically in 2 files \u2014 litho-core/src/main/java/com/facebook/litho/ComponentHost.kt, litho-rendercore/src/main/java/com/facebook/rendercore/HostView.kt. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/ComponentHost.kt"},"region":{"startLine":934}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e904848df289798de11473dd4f8ec4b462f1793a64ce60f860dd91081e31539"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: RuntimeException)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-widget/src/main/java/com/facebook/litho/widget/TextureWarmer.kt"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fc05ddfc816b83d491444fe57dc8cb18eb6e7a91ba87f2317ff9be980e1c5e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-testing/src/main/java/com/facebook/litho/testing/TestCollection.kt"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"8454fe445ccb73c7453db455079a7143f2deb76090fac3e2156f22a8be5bb221"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountItemPoolsReleaseValidator.kt"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"8476786ace1db0345db580a7b55d7cffacd6007ef634f4cf3d5b30105f516938"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountItemPoolsReleaseValidator.kt"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ca945c0d00ef9ac65b1b678cb714cf527b21274679f8b53d6ac52f7e75a46e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountItemPoolsReleaseValidator.kt"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f03ee7c99225f40783d1762f9f62e7101f60ff8855c2545e0539a377319455"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-rendercore/src/main/java/com/facebook/rendercore/MountState.kt"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"684ea22a4a01f05fe350860f1b0cad0c9a4d347ca5f11ab592bdc9eaa455fc53"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/DebugComponentDescriptor.kt"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"44127037f8972cbd3c78d6246fbfd4ec3174c24c97ba93d87e1f0b800ca1e4e3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-flipper/src/main/java/com/facebook/litho/editor/flipper/DebugComponentDescriptor.kt"},"region":{"startLine":601}}}],"partialFingerprints":{"codehealthFindingId/v1":"248e1b78884d293f84c02e5996a51005fb68216908d476a304704aa8b7c8c95c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e: Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-editor-core/src/main/java/com/facebook/litho/editor/Reflection.kt"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1da57d9fe3244c36f428f8ae932175b36eb3545ecc3551f6479192e118ccc6c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"litho-core/src/main/java/com/facebook/litho/DebugComponentDescriptionHelper.kt"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e8601cb9b600a2b776d640de749f4e6ad7406c897080928c90bd9689ffd9e0"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"Use of Unmaintained Third Party Components","shortDescription":{"text":"Use of Unmaintained Third Party Components"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"Reliance on Component That is Not Updateable","shortDescription":{"text":"Reliance on Component That is Not Updateable"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-214","guid":"b10ad120-fb22-1351-9348-aa23b453e815","name":"CWE-214","shortDescription":{"text":"CWE-214"},"helpUri":"https://cwe.mitre.org/data/definitions/214.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"Insufficiently Protected Credentials","shortDescription":{"text":"Insufficiently Protected Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-532","guid":"1cd8877a-76e8-ce54-b40b-779af23364a0","name":"Insertion of Sensitive Information into Log File","shortDescription":{"text":"Insertion of Sensitive Information into Log File"},"helpUri":"https://cwe.mitre.org/data/definitions/532.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"Inclusion of Functionality from Untrusted Control Sphere","shortDescription":{"text":"Inclusion of Functionality from Untrusted Control Sphere"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-926","guid":"0d9b5579-5549-555a-8a97-f9cc14f3ad4a","name":"Improper Export of Android Application Components","shortDescription":{"text":"Improper Export of Android Application Components"},"helpUri":"https://cwe.mitre.org/data/definitions/926.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A09:2025","guid":"78892bc9-3c98-495d-881c-8af1390d643c","name":"Security Logging \u0026 Alerting Failures","shortDescription":{"text":"Security Logging \u0026 Alerting Failures"},"helpUri":"https://top10.owasp.org/2025/A09_2025-Security_Logging_and_Alerting_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-5","guid":"cc7f4610-8859-e654-9029-d5f97d992220","name":"Insufficient PBAC (Pipeline-Based Access Controls)","shortDescription":{"text":"Insufficient PBAC (Pipeline-Based Access Controls)"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-05-Insufficient-PBAC"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":74,"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."]}]}