{"$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":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"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":"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":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"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":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02: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":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXR1","name":"Runtime accessibility","shortDescription":{"text":"Runtime accessibility"},"helpUri":"https://codehealth.canine.dev/dimensions/AXR1"},{"id":"AXS1","name":"Runtime exposed surface","shortDescription":{"text":"Runtime exposed surface"},"helpUri":"https://codehealth.canine.dev/dimensions/AXS1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"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":"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":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"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":"HighlightedCodePrinter.processTreePrinting (cyclomatic 163): HighlightedCodePrinter.processTreePrinting has cyclomatic complexity 163 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala holds 4 of the 40 methods over the threshold \u2014 including the worst \u2014 and 211 of the 424 points over it (50%), 4.7\u00D7 the next-largest file (hearth/src/main/scala-2/hearth/typed/TypesScala2.scala at 45). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"9aca2e9c595d5438f1d9f350412e89041e1d74b18c65a350fbcb67a3c9d7d808"}},{"ruleId":"D1","level":"warning","message":{"text":"HighlighedRawTreePrinter.print (cyclomatic 53): HighlighedRawTreePrinter.print 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala holds 4 of the 40 methods over the threshold \u2014 including the worst \u2014 and 211 of the 424 points over it (50%), 4.7\u00D7 the next-largest file (hearth/src/main/scala-2/hearth/typed/TypesScala2.scala at 45). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"83a0ebcda92876e07481b62186d11f02983030767c74ea2d22de653537ef9cc1"}},{"ruleId":"D1","level":"warning","message":{"text":"HighlightedCodePrinter.processTypePrinting (cyclomatic 39): HighlightedCodePrinter.processTypePrinting has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala holds 4 of the 40 methods over the threshold \u2014 including the worst \u2014 and 211 of the 424 points over it (50%), 4.7\u00D7 the next-largest file (hearth/src/main/scala-2/hearth/typed/TypesScala2.scala at 45). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"822b65791eb4c93482128416a101c03df2e1ee7c0879e25257ab51bfc3134c6c"}},{"ruleId":"D1","level":"warning","message":{"text":"Expr.ArrayExprCodec (cyclomatic 31): Expr.ArrayExprCodec has cyclomatic complexity 31 (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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"23170a5e3ee22d8d402e7a259f3dce466eca23147cf0ce87030bde017a7bf142"}},{"ruleId":"D1","level":"warning","message":{"text":"CrossQuotesTreeMap.transform (cyclomatic 29): CrossQuotesTreeMap.transform has cyclomatic complexity 29 (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":"hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf4acdf299d9e62ee37020d09ae11b9aa19931f6d1cb719ea350a108feb76e6"}},{"ruleId":"D1","level":"warning","message":{"text":"SemiEval.evalWithLocals (cyclomatic 29): SemiEval.evalWithLocals has cyclomatic complexity 29 (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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dae65798e220990e27855607133f204f6db955605b2da4e6e0d1c22687890c3"}},{"ruleId":"D1","level":"warning","message":{"text":"UntypedType.unsafeNewSubtype (cyclomatic 29): UntypedType.unsafeNewSubtype has cyclomatic complexity 29 (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":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b184abe0fb3b0885d06ab02325c29c4fd6039bb60a09d2d1f7798296abf70a9"}},{"ruleId":"D1","level":"warning","message":{"text":"SemiEval.evalWithLocals (cyclomatic 26): SemiEval.evalWithLocals has cyclomatic complexity 26 (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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"172a111564be23535ce7588c4f11fcd7b7db4f88e9c39101445f41c3389225df"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple22Codec (cyclomatic 24): Type.Tuple22Codec has cyclomatic complexity 24 (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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b991dfb65d9dce9e6977466840ec78ec5a4e188cbe8b3d03788e1320aecebad"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple22Codec (cyclomatic 24): Type.Tuple22Codec has cyclomatic complexity 24 (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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"206465980ef2c8bffd6fc42bec492135cdc2af3ed7051e906d6e020637ee7d41"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple21Codec (cyclomatic 23): Type.Tuple21Codec has cyclomatic complexity 23 (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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"988ba0480adc41bb289f2a02e477c88ede4aecf651ba9be19d067995cece0176"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple21Codec (cyclomatic 23): Type.Tuple21Codec has cyclomatic complexity 23 (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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ccf0fc7be0c014aef27e32fa99e241f8500af414dab912339911e4b740564ac"}},{"ruleId":"D1","level":"warning","message":{"text":"HighlightedTreePrinter.escapedStringValue (cyclomatic 22): HighlightedTreePrinter.escapedStringValue 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":"hearth-better-printers/src/main/scala-3/hearth/treeprinter/ShowCodePrettyScala3.scala"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa956b87d9ee40c4497aa651dd7333d9ab84c84c58c86f4c075a87d9e539de3"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple20Codec (cyclomatic 22): Type.Tuple20Codec 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb355f78605c8359482a55fdc0c1a3fa074b042fc79b27ccfe068d62efc4baf5"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple20Codec (cyclomatic 22): Type.Tuple20Codec 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a901f602b65c97c8da7ccf5a278df4154e349d7559f5259d9c08406a46461b6"}},{"ruleId":"D1","level":"warning","message":{"text":"UntypedTypeModule.toClass (cyclomatic 22): UntypedTypeModule.toClass 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":"hearth/src/main/scala/hearth/untyped/UntypedTypes.scala"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"147bb97b52abf8795b9d2da727f460e2caca8263e13b106e72cb58e19d97cce4"}},{"ruleId":"D1","level":"warning","message":{"text":"IsCollectionProviderForJavaStream.extend (cyclomatic 22): IsCollectionProviderForJavaStream.extend 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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaStream.scala"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3f3249f6f7f65f9721b673390c94be33267222de1aee600a298574792b0cd14"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple19Codec (cyclomatic 21): Type.Tuple19Codec has cyclomatic complexity 21 (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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8cc7c073e87ea3dfd16848c7e55a25bc21245b2f2cc51cdc1c4b67399641f8"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple19Codec (cyclomatic 21): Type.Tuple19Codec has cyclomatic complexity 21 (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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecaae71aaf6f78b8a92037d2ce31fd68f2efb211be957436402de44b7455914"}},{"ruleId":"D1","level":"warning","message":{"text":"CrossQuotesMacros.TypeWithUnderlyingInjected (cyclomatic 20): CrossQuotesMacros.TypeWithUnderlyingInjected 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":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"8904ecc4744af7ed75605a15cc1bdad7994e0c4dd139c043d99d5b8ccfd31756"}},{"ruleId":"D1","level":"warning","message":{"text":"Expr.MapExprCodec (cyclomatic 20): Expr.MapExprCodec has cyclomatic complexity 20 (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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"f964161a54ad94464be1a5f92fdcbff55537780195c6f6e11948f33894d2762e"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple18Codec (cyclomatic 20): Type.Tuple18Codec has cyclomatic complexity 20 (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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8e2337e2aa65ba9d8e67f245062709afa208f7e8dd843801392bd2ebc01833"}},{"ruleId":"D1","level":"warning","message":{"text":"UntypedMethod.paramTypePrintsImpl (cyclomatic 20): UntypedMethod.paramTypePrintsImpl has cyclomatic complexity 20 (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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"31963361c453e12adec0ee246b4dbb98b8fabda60571bd825785247f93a20f4e"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple18Codec (cyclomatic 20): Type.Tuple18Codec has cyclomatic complexity 20 (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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c045b24fb3b90e66603be933997f2584435ebd9bcca9341733028287808531b"}},{"ruleId":"D1","level":"warning","message":{"text":"UntypedMethod.toTyped (cyclomatic 20): UntypedMethod.toTyped 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":"hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"af1e2649e38f6f33e44233a3ea3bad77817b5f021b569dde60c12c37e9a66657"}},{"ruleId":"D1","level":"warning","message":{"text":"CrossQuotesSupport.stripFreeTypes (cyclomatic 19): CrossQuotesSupport.stripFreeTypes 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":"hearth/src/main/scala-2/hearth/EnvironmentCrossQuotes.scala"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"392d5ef7a2ad6c94046ae150a35e20aff923bd46560f0006fe86bd4208aa88e8"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple17Codec (cyclomatic 19): Type.Tuple17Codec has cyclomatic complexity 19 (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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"518bb4724008ce2e6eba9533d09073972135ef2de6d912080f4dc748c9607a2f"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple17Codec (cyclomatic 19): Type.Tuple17Codec has cyclomatic complexity 19 (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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"50425c473157571df6777cf11457408ad8107093c7f505dbfe0fcc413244ae88"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple16Codec (cyclomatic 18): Type.Tuple16Codec has cyclomatic complexity 18 (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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e94f536f1b0c49028aae8673629201eb00ff00cbeb2fb6f868920620c5d869"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple16Codec (cyclomatic 18): Type.Tuple16Codec has cyclomatic complexity 18 (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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ea2e771104e3ca144861ef390d83285c38c03e54fb8715a4bfea432c9a5e1f"}},{"ruleId":"D1","level":"warning","message":{"text":"UntypedType.unionMemberDispatch (cyclomatic 18): UntypedType.unionMemberDispatch 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":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"7138f288e65dbe75c98c5c62c02b7e39d211ef37626afa3a0828bca7ee671035"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple15Codec (cyclomatic 17): Type.Tuple15Codec has cyclomatic complexity 17 (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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eca1d2b804de69be6584b37c3aa9684f07b4122360c4d300f80f83b5a3b53ea"}},{"ruleId":"D1","level":"warning","message":{"text":"UntypedMethod.toTyped (cyclomatic 17): UntypedMethod.toTyped 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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"1326e085ee91e8e7cfc86b48c03157a1f72e8424622514fedba78ded97e4b747"}},{"ruleId":"D1","level":"warning","message":{"text":"ExprsScala3.dstrStatements (cyclomatic 17): ExprsScala3.dstrStatements has cyclomatic complexity 17 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing. This is NOT this file\u0027s highest cyclomatic complexity: SemiEval.evalIntBinOp (cyclomatic 18) 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":5236}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa1a59a94663b4bf7a33e43ce373d67cb1b6f8a56ba6c6cf7aec60c735c8221"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple15Codec (cyclomatic 17): Type.Tuple15Codec has cyclomatic complexity 17 (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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b541764ee1e5551dbe4e91b9853432e33ca48a47f31d59a826ea538965b00f"}},{"ruleId":"D1","level":"warning","message":{"text":"HighlightedCodePrinter.printTypePrefix (cyclomatic 16): HighlightedCodePrinter.printTypePrefix 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. This file is where this pass\u0027s cyclomatic complexity CONCENTRATES: hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala holds 4 of the 40 methods over the threshold \u2014 including the worst \u2014 and 211 of the 424 points over it (50%), 4.7\u00D7 the next-largest file (hearth/src/main/scala-2/hearth/typed/TypesScala2.scala at 45). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":1019}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fca6344bca0b0ed95da856890b9e6a8f55f2f619ea0539b4cf7e74905df2a86"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple14Codec (cyclomatic 16): Type.Tuple14Codec has cyclomatic complexity 16 (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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9301ccd407f78caf916a1b607327ffdf2c9970f7d525917dc42088c9e6c566"}},{"ruleId":"D1","level":"warning","message":{"text":"Type.Tuple14Codec (cyclomatic 16): Type.Tuple14Codec has cyclomatic complexity 16 (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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75e669d5d2f993c9ff49fa381de6b0ccfcb4bf2fbb9e1f6fbc70f7de16737ed"}},{"ruleId":"D1","level":"warning","message":{"text":"UntypedMethod.signatureSegmentsImpl (cyclomatic 16): UntypedMethod.signatureSegmentsImpl 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":"hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"195ea907f7548f32d4e57c4c8641e1ad14923f5e1cf9e0df77c20d147fe0497f"}},{"ruleId":"D1","level":"warning","message":{"text":"UntypedType.directChildrenList (cyclomatic 16): UntypedType.directChildrenList 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":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c889c56989cde6cc7db151c5014e8257315bba7bf57334575010ae47de92f3d"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple22Codec (cognitive 277): Type.Tuple22Codec has cognitive complexity 277 (threshold 15). Drivers by points: loops 22 (275 pts), if/else 1, match/switch 1 (nesting depth added 253). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1832}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad66c4286f2d9cea9be0c4fec491857b9fa9df67f8b58241b3fb2a67b45bff9"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple22Codec (cognitive 277): Type.Tuple22Codec has cognitive complexity 277 (threshold 15). Drivers by points: loops 22 (275 pts), if/else 1, match/switch 1 (nesting depth added 253). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8f3e46f8ad0e6b1682593422b7249c9766367bf7d4e657b529925d2e52deae"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple21Codec (cognitive 254): Type.Tuple21Codec has cognitive complexity 254 (threshold 15). Drivers by points: loops 21 (252 pts), if/else 1, match/switch 1 (nesting depth added 231). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1666}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12a83d8a93ce4dabc90a8c3b2a059e5c6c42b2e24b1c0d19beeec7784eb6744"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple21Codec (cognitive 254): Type.Tuple21Codec has cognitive complexity 254 (threshold 15). Drivers by points: loops 21 (252 pts), if/else 1, match/switch 1 (nesting depth added 231). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1623}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f1e3f8fce7e4ad4c3b178b2e7f00042e693519a6f5a03c3a365fa857bdd5fd"}},{"ruleId":"D2","level":"warning","message":{"text":"HighlightedCodePrinter.processTreePrinting (cognitive 242): HighlightedCodePrinter.processTreePrinting has cognitive complexity 242 (threshold 15). Drivers by points: if/else 105 (168 pts), match/switch 21 (49 pts), boolean chains 25 (nesting depth added 91). 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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"140c5a51949406be323e599adc3c82bcb4bfe85ba1398314d6ec7d9f7a9cc5da"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple20Codec (cognitive 232): Type.Tuple20Codec has cognitive complexity 232 (threshold 15). Drivers by points: loops 20 (230 pts), if/else 1, match/switch 1 (nesting depth added 210). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1506}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ca9479827f30f5764beaea7315ffe23b1d3df7797d6287d640c2d0ed5fa8e4"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple20Codec (cognitive 232): Type.Tuple20Codec has cognitive complexity 232 (threshold 15). Drivers by points: loops 20 (230 pts), if/else 1, match/switch 1 (nesting depth added 210). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"912c36ea1396f54f8ae891a77cab770e242659bf4589229a536e8bb391689f5b"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple19Codec (cognitive 211): Type.Tuple19Codec has cognitive complexity 211 (threshold 15). Drivers by points: loops 19 (209 pts), if/else 1, match/switch 1 (nesting depth added 190). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a47c69025850e1191438e331986049e323d18646f6b4e8434f5e91e21e16a2b"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple19Codec (cognitive 211): Type.Tuple19Codec has cognitive complexity 211 (threshold 15). Drivers by points: loops 19 (209 pts), if/else 1, match/switch 1 (nesting depth added 190). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"106ac91dbbcc865f5bea481a71dffd7cf347f2147b854b5278e1ec7b07c48d8b"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple18Codec (cognitive 191): Type.Tuple18Codec has cognitive complexity 191 (threshold 15). Drivers by points: loops 18 (189 pts), if/else 1, match/switch 1 (nesting depth added 171). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d99e5ce70c801be2322d20321c64dfa85503e884a1dcafc81fc3273b70cabb"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple18Codec (cognitive 191): Type.Tuple18Codec has cognitive complexity 191 (threshold 15). Drivers by points: loops 18 (189 pts), if/else 1, match/switch 1 (nesting depth added 171). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"70442aeac08aa8cf899d7ca888055ddf646e6ea4108a70ee3af55218e73acaf2"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple17Codec (cognitive 172): Type.Tuple17Codec has cognitive complexity 172 (threshold 15). Drivers by points: loops 17 (170 pts), if/else 1, match/switch 1 (nesting depth added 153). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff411175844cf2653f8d82db5a6028c447b88e3640145325c0f74c89f1cde264"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple17Codec (cognitive 172): Type.Tuple17Codec has cognitive complexity 172 (threshold 15). Drivers by points: loops 17 (170 pts), if/else 1, match/switch 1 (nesting depth added 153). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1126}}}],"partialFingerprints":{"codehealthFindingId/v1":"79902f88a6e4a82b3511ed2832e3fdb3eb6f573da553ae7ad807a06b49890bfe"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple16Codec (cognitive 154): Type.Tuple16Codec has cognitive complexity 154 (threshold 15). Drivers by points: loops 16 (152 pts), if/else 1, match/switch 1 (nesting depth added 136). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"84e6f5fcf2b36233bd7a5c9b89f54a4309b00b553fb22562cba69d2ac528f0fb"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple16Codec (cognitive 154): Type.Tuple16Codec has cognitive complexity 154 (threshold 15). Drivers by points: loops 16 (152 pts), if/else 1, match/switch 1 (nesting depth added 136). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"deb520208c112a1e0ac32f6d02bf7e9dfc10b692c4b7f8411b5d717329a50dd4"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple15Codec (cognitive 137): Type.Tuple15Codec has cognitive complexity 137 (threshold 15). Drivers by points: loops 15 (135 pts), if/else 1, match/switch 1 (nesting depth added 120). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1268dbf2e44f1fd6ea792361bcc9263e41ec10c8aed87453e3e00ca0fa2317"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple15Codec (cognitive 137): Type.Tuple15Codec has cognitive complexity 137 (threshold 15). Drivers by points: loops 15 (135 pts), if/else 1, match/switch 1 (nesting depth added 120). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c0475777352b3bd97b5daf9e1b218e38b8aea616dd404eafb4adb5a923ae70"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple14Codec (cognitive 121): Type.Tuple14Codec has cognitive complexity 121 (threshold 15). Drivers by points: loops 14 (119 pts), if/else 1, match/switch 1 (nesting depth added 105). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"0068671f6cb359044563014245e3b22d22e8c6a882e17ae76031fa0d7e1c60aa"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple14Codec (cognitive 121): Type.Tuple14Codec has cognitive complexity 121 (threshold 15). Drivers by points: loops 14 (119 pts), if/else 1, match/switch 1 (nesting depth added 105). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"0074c2498707219305e9726d92910c0dcc43e801d1b0b198e29f9ea3b90ed746"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple13Codec (cognitive 106): Type.Tuple13Codec has cognitive complexity 106 (threshold 15). Drivers by points: loops 13 (104 pts), if/else 1, match/switch 1 (nesting depth added 91). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"69ecf002f6cfbecac4e633e3a39e128c5b27e90e7a660c5b4c8123236525b284"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple13Codec (cognitive 106): Type.Tuple13Codec has cognitive complexity 106 (threshold 15). Drivers by points: loops 13 (104 pts), if/else 1, match/switch 1 (nesting depth added 91). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"85809b5a61d9291c26f7fccd26bbf852355fd7a30db80417d31a09f98944a297"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple12Codec (cognitive 92): Type.Tuple12Codec has cognitive complexity 92 (threshold 15). Drivers by points: loops 12 (90 pts), if/else 1, match/switch 1 (nesting depth added 78). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5843f8621856776e8c14331b6ad92dcc164cba756939a59fb81e2fdcdd7892"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple12Codec (cognitive 92): Type.Tuple12Codec has cognitive complexity 92 (threshold 15). Drivers by points: loops 12 (90 pts), if/else 1, match/switch 1 (nesting depth added 78). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"01feadad6b7995a97fb4fc1af82275d3565659aea7683648dc3d1bc35c0e470b"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple11Codec (cognitive 79): Type.Tuple11Codec has cognitive complexity 79 (threshold 15). Drivers by points: loops 11 (77 pts), if/else 1, match/switch 1 (nesting depth added 66). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0d95c0a798e96d99f21f968e293beafe1dcfdb684f9d7105e6cb98d94da4348"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple11Codec (cognitive 79): Type.Tuple11Codec has cognitive complexity 79 (threshold 15). Drivers by points: loops 11 (77 pts), if/else 1, match/switch 1 (nesting depth added 66). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59bad2ec27537191e586d4d811000e5d23e97b5f7d1e8409e3daf980d60c80b"}},{"ruleId":"D2","level":"warning","message":{"text":"HighlightedCodePrinter.processTypePrinting (cognitive 77): HighlightedCodePrinter.processTypePrinting has cognitive complexity 77 (threshold 15). Drivers by points: if/else 28 (52 pts), match/switch 7 (15 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 36). 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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1e382964e7fe94971c8019eb607b0503f735b2f3618447955816bb7f689616c"}},{"ruleId":"D2","level":"warning","message":{"text":"HighlighedRawTreePrinter.print (cognitive 76): HighlighedRawTreePrinter.print has cognitive complexity 76 (threshold 15). Drivers by points: if/else 30 (58 pts), match/switch 5 (11 pts), boolean chains 7 (nesting depth added 34). 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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ac5cbfd285091fc43ddc0594c73243bb23b374bd2b9a1cd5723a0cdc203ec4"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple10Codec (cognitive 67): Type.Tuple10Codec has cognitive complexity 67 (threshold 15). Drivers by points: loops 10 (65 pts), if/else 1, match/switch 1 (nesting depth added 55). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b1a02722a6e84a5e88d404274f0de23ccd1ec4c265dfb80b207bef5f5b9346"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple10Codec (cognitive 67): Type.Tuple10Codec has cognitive complexity 67 (threshold 15). Drivers by points: loops 10 (65 pts), if/else 1, match/switch 1 (nesting depth added 55). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e03c6e773350f96048855c1336c7f00fdc3506e3c46df70b75d2995312a4344"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple9Codec (cognitive 56): Type.Tuple9Codec has cognitive complexity 56 (threshold 15). Drivers by points: loops 9 (54 pts), if/else 1, match/switch 1 (nesting depth added 45). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7da1b89bb897e2f3b50d3f64e422b0fc46619c3216668cc7337c89762cbcd34"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple9Codec (cognitive 56): Type.Tuple9Codec has cognitive complexity 56 (threshold 15). Drivers by points: loops 9 (54 pts), if/else 1, match/switch 1 (nesting depth added 45). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":436}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f817f7d33c28e46a2763f33c03fd9aab96666f535ae621e1cc371021cd8abc7"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple8Codec (cognitive 46): Type.Tuple8Codec has cognitive complexity 46 (threshold 15). Drivers by points: loops 8 (44 pts), if/else 1, match/switch 1 (nesting depth added 36). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d28c3e9498a69338ebd87ec02947c5e90b3037307d2cc65a1e583a5268f4617"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple8Codec (cognitive 46): Type.Tuple8Codec has cognitive complexity 46 (threshold 15). Drivers by points: loops 8 (44 pts), if/else 1, match/switch 1 (nesting depth added 36). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"96f6415ef98bbd7c9b6f9ca36515793830465b730fd0a5641f51b594303e80e1"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedType.unionMemberDispatch (cognitive 43): UntypedType.unionMemberDispatch has cognitive complexity 43 (threshold 15). Drivers by points: if/else 15 (25 pts), match/switch 3 (10 pts), boolean chains 8 (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":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2d22ad9bccbff016028989d633df6b49e6a55011183eacdef38bfcd7d770b9"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedType.unsafeNewSubtype (cognitive 41): UntypedType.unsafeNewSubtype has cognitive complexity 41 (threshold 15). Drivers by points: if/else 20 (22 pts), match/switch 11 (14 pts), boolean chains 3, error handling 2 (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":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70edfe4d5e84dc8b667f0fce50d0237b26fba7d4d399e62f37371915b66328c"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedTypeModule.toClass (cognitive 38): UntypedTypeModule.toClass has cognitive complexity 38 (threshold 15). Drivers by points: if/else 23 (28 pts), match/switch 3 (10 pts) (nesting depth added 12). 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":"hearth/src/main/scala/hearth/untyped/UntypedTypes.scala"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ced6da7e89ebd3f66b17e45e98122dcc7fae4acb6934780c06e58cc0a47cd6"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple7Codec (cognitive 37): Type.Tuple7Codec has cognitive complexity 37 (threshold 15). Drivers by points: loops 7 (35 pts), if/else 1, match/switch 1 (nesting depth added 28). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b87d51b1d204ebbe5a8730f172f4cfc46a432a20345f26384857649baca3c3d"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple7Codec (cognitive 37): Type.Tuple7Codec has cognitive complexity 37 (threshold 15). Drivers by points: loops 7 (35 pts), if/else 1, match/switch 1 (nesting depth added 28). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"81182780e1355dc2e11f1a22048b6a58be146d278af670de48ecbbfc9d761fa2"}},{"ruleId":"D2","level":"warning","message":{"text":"IsValueTypeProviderForAnyVal.extend (cognitive 37): IsValueTypeProviderForAnyVal.extend has cognitive complexity 37 (threshold 15). Drivers by points: match/switch 5 (22 pts), loops 3 (9 pts), if/else 4, boolean chains 2 (nesting depth added 23). 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":"hearth/src/main/scala/hearth/std/extensions/IsValueTypeProviderForAnyVal.scala"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d16b31e4ca15e278a4239ff645bf2b4abcd35369768d236f39f37013ce764c6d"}},{"ruleId":"D2","level":"warning","message":{"text":"CrossQuotesMacros.TypeWithUnderlyingInjected (cognitive 35): CrossQuotesMacros.TypeWithUnderlyingInjected has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (23 pts), match/switch 5 (11 pts), error handling 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":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7bb45fc71cbaef1a3ac296fa50b767af1d7d61c96c408848efad4b6d6897e1"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedType.directChildrenList (cognitive 34): UntypedType.directChildrenList has cognitive complexity 34 (threshold 15). Drivers by points: if/else 17 (23 pts), match/switch 2 (5 pts), boolean chains 3, error handling 1 (3 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":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"bccd7e829f90e960ef45f0130b349147dc74e05d5f894e261309b67353714708"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple6Codec (cognitive 29): Type.Tuple6Codec has cognitive complexity 29 (threshold 15). Drivers by points: loops 6 (27 pts), if/else 1, match/switch 1 (nesting depth added 21). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cce7652034ad9ff033c1b58752f21c641d1e2bed81d9b9eccc544f84c396d4"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple6Codec (cognitive 29): Type.Tuple6Codec has cognitive complexity 29 (threshold 15). Drivers by points: loops 6 (27 pts), if/else 1, match/switch 1 (nesting depth added 21). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"3269e0b5abad05d5c013ebf7ecf53b126d74b11b7af77784f49148e6c123f841"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedMethod.signatureSegmentsImpl (cognitive 29): UntypedMethod.signatureSegmentsImpl has cognitive complexity 29 (threshold 15). Drivers by points: if/else 20 (26 pts), boolean chains 3 (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":"hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bce8c106ff33d4e5256c873199f40773582ccfe9579070d598355f67f4f9019"}},{"ruleId":"D2","level":"warning","message":{"text":"ImplicitTypeReferenceReplacer.transform (cognitive 27): ImplicitTypeReferenceReplacer.transform has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (24 pts), error handling 1 (2 pts), 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":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":1334}}}],"partialFingerprints":{"codehealthFindingId/v1":"4912e6537ce05cc42773bcfe7ebbf194f2f0354a422018e94969a15abdb748e4"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedType.directChildrenList (cognitive 27): UntypedType.directChildrenList has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 4, match/switch 1 (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":"hearth/src/main/scala-2/hearth/untyped/UntypedTypesScala2.scala"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"447b38e7a72fa55bb553576af93c354447be2b457117c170b2ef9d2b48ff1d87"}},{"ruleId":"D2","level":"warning","message":{"text":"FlameGraph.renderSpeedscopeTo (cognitive 26): FlameGraph.renderSpeedscopeTo has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (5 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":"hearth-micro-fp/src/main/scala/hearth/fp/effect/FlameGraph.scala"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddca85758b61fcd0db2c28bbe977eb44af69fca5a8a61f3f985c4be60c0c61a5"}},{"ruleId":"D2","level":"warning","message":{"text":"Expr.MapExprCodec (cognitive 26): Expr.MapExprCodec has cognitive complexity 26 (threshold 15). Drivers by points: loops 8 (20 pts), if/else 4, match/switch 2 (nesting depth added 12). 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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b9d9f750efda6ad872473b9b656b47ff1c7689e7c1c98716420c0891c7713ff"}},{"ruleId":"D2","level":"warning","message":{"text":"SemiEval.valueOfValue (cognitive 24): SemiEval.valueOfValue has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 5, match/switch 1 (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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cdf03cdd588473b69493247e64d67defe23f62ee92938c6cf76dc28afbc9fcb"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedMethod.toTyped (cognitive 24): UntypedMethod.toTyped has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (15 pts), match/switch 5 (6 pts), boolean chains 3 (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":"hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"db016607232c6103dad5535fddd816475de4978a9c9bdb076ccad2ba4cb4e1c9"}},{"ruleId":"D2","level":"warning","message":{"text":"MLocalCacheOps.buildCachedWith (cognitive 24): MLocalCacheOps.buildCachedWith has cognitive complexity 24 (threshold 15). Drivers by points: loops 6 (21 pts), if/else 2 (3 pts) (nesting depth added 16). 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":"hearth/src/main/scala/hearth/MIOIntegrations.scala"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae14af475966af692836201f6e90995c4354a05dea98c5c50a9fcef4fc3c7481"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedMethodMethods.renderSignature (cognitive 24): UntypedMethodMethods.renderSignature has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (22 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":"hearth/src/main/scala/hearth/untyped/UntypedMethods.scala"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"658cb3b1cee63a8210176636678ca0e4a9fd49db1357195459456c98b34fa3cd"}},{"ruleId":"D2","level":"warning","message":{"text":"CrossQuotesTreeMap.transform (cognitive 23): CrossQuotesTreeMap.transform has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (11 pts), match/switch 1 (nesting depth added 4). 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":"hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e70be948ae3a5ad4748c51424877316a300d0a483e69757424603db7f05809e"}},{"ruleId":"D2","level":"warning","message":{"text":"HighlightedTreePrinter.escapedStringValue (cognitive 22): HighlightedTreePrinter.escapedStringValue has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 2 (3 pts), match/switch 3 (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":"hearth-better-printers/src/main/scala-3/hearth/treeprinter/ShowCodePrettyScala3.scala"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ae85a885c72b897a3c68ac43ae87c5e9d14ad4540ae5c8ae3c8d1788add196c"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple5Codec (cognitive 22): Type.Tuple5Codec has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (20 pts), if/else 1, match/switch 1 (nesting depth added 15). 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"35f7629c836c76ed345af5aa01662891b7fe212908134474fae76f581005b297"}},{"ruleId":"D2","level":"warning","message":{"text":"Expr.ArrayExprCodec (cognitive 22): Expr.ArrayExprCodec has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16, match/switch 5 (6 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":1178}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5f7186877f2705aa0cbd8d1ee1d2a47615b82eb89069be223089b12d581e78"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple5Codec (cognitive 22): Type.Tuple5Codec has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (20 pts), if/else 1, match/switch 1 (nesting depth added 15). 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"6627120f09093a74480f07694d6bc7d57737ff01afb08d4e22955a5dce8c6626"}},{"ruleId":"D2","level":"warning","message":{"text":"IsCollectionProviderForJavaMap.extend (cognitive 22): IsCollectionProviderForJavaMap.extend has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 4 (5 pts), 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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9f037ac9c06c13246d8e65bee6a0ea24784e4840d0c2a4c8030d520686d46ad"}},{"ruleId":"D2","level":"warning","message":{"text":"CrossQuotesSupport.stripFreeTypes (cognitive 21): CrossQuotesSupport.stripFreeTypes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 5 (7 pts), boolean chains 1, error handling 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":"hearth/src/main/scala-2/hearth/EnvironmentCrossQuotes.scala"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"4378054cf7576aa881b68cfcb9fca0dc2e1ac1a1b2045bf15c077da75f648fd7"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedMethod.toTyped (cognitive 21): UntypedMethod.toTyped has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (15 pts), match/switch 4, boolean chains 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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d166283b6bd656d666b146689586debab2f2fff1968095439c3ca4035803e1"}},{"ruleId":"D2","level":"warning","message":{"text":"IsCollectionProviderForJavaDictionary.extend (cognitive 21): IsCollectionProviderForJavaDictionary.extend has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (12 pts), match/switch 5 (6 pts), loops 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaDictionary.scala"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ee5d14990cea29f70ead49eaacbe8a98141aa1fcb5801216e27d8519014f52"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedParameters.resolveTypesByParamName (cognitive 20): UntypedParameters.resolveTypesByParamName has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (13 pts), match/switch 4 (6 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":"hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a7615099960a30a913d2b93824fb2f9f3cd1d66e7acb6e08b16e3f6cc8e2b5"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedType.isEnumeration (cognitive 20): UntypedType.isEnumeration has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (6 pts), error handling 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"416cd06e8fa5573df227de8c738eca2c3b20e0d4e8a78ba0b080ff07960b6458"}},{"ruleId":"D2","level":"warning","message":{"text":"IsCollectionProviderForJavaCollection.extend (cognitive 20): IsCollectionProviderForJavaCollection.extend has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (15 pts), match/switch 3 (4 pts), 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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f97abb2d18e58252d5dff1cb5b07ded6abe6159502b120144cb1f981025ddcc"}},{"ruleId":"D2","level":"warning","message":{"text":"CrossQuotesMacros.outerEnclosingMethodImplicitTypes (cognitive 19): CrossQuotesMacros.outerEnclosingMethodImplicitTypes has cognitive complexity 19 (threshold 15). Drivers by points: loops 3 (8 pts), match/switch 2 (6 pts), if/else 2 (3 pts), boolean chains 1, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec4326dabaef7c90cbd4f3de4068d03d66628e58f5ef40cf0468607e61078af"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedMethod.paramTypePrintsImpl (cognitive 19): UntypedMethod.paramTypePrintsImpl has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, match/switch 4 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":345}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6115576bfa71bb1fac3fea1eaf07c65bbbcef3f170a289be971e4d028ed539e"}},{"ruleId":"D2","level":"warning","message":{"text":"IsCollectionProviderForJavaStream.extend (cognitive 19): IsCollectionProviderForJavaStream.extend has cognitive complexity 19 (threshold 15). Drivers by points: match/switch 9 (13 pts), loops 4, boolean chains 1, if/else 1 (nesting depth added 4). 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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaStream.scala"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"942395f5c3aaf08265a92335c9471c9b71f8a5a9b6e3bdb459231eb10f543da9"}},{"ruleId":"D2","level":"warning","message":{"text":"ExprsScala3.dstrTryMethodCall (cognitive 18): ExprsScala3.dstrTryMethodCall has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (14 pts), match/switch 2 (3 pts), boolean chains 1 (nesting depth added 8). 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":5399}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad18a6e690ab831e0f1ec0f9759e100bd18f6fb7cee6c32f70ca6387d3c07237"}},{"ruleId":"D2","level":"warning","message":{"text":"EnvironmentModule.handleMioTerminationException (cognitive 18): EnvironmentModule.handleMioTerminationException has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 2 (3 pts), error handling 1 (nesting depth added 11). 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":"hearth/src/main/scala/hearth/Environments.scala"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b148ac88bcc69ff25f6ffd851546d35e75313ee9e29f07dce48505d2b40d3c6"}},{"ruleId":"D2","level":"warning","message":{"text":"DataCommons.parsePairs (cognitive 18): DataCommons.parsePairs has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 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":"hearth/src/main/scala/hearth/data/DataCommons.scala"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2427688867bd2fe95b3b9e77e021e6d8ddc9f29ac251153ed2c6a5693c7f135"}},{"ruleId":"D2","level":"warning","message":{"text":"AnonymousInstance.parseWithMixins (cognitive 18): AnonymousInstance.parseWithMixins has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), match/switch 2 (6 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":"hearth/src/main/scala/hearth/typed/Classes.scala"},"region":{"startLine":1358}}}],"partialFingerprints":{"codehealthFindingId/v1":"8810af40f72c8e4d915cfdc97a810ae3b57072389dfc26c59bd9e82ef67165c1"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedType.unsafeNewSubtype (cognitive 17): UntypedType.unsafeNewSubtype has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13, boolean chains 3, 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":"hearth/src/main/scala-2/hearth/untyped/UntypedTypesScala2.scala"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67d9580867f87460a1575e426f49893ae0ff711add188a07ea3d12641d0b29b"}},{"ruleId":"D2","level":"warning","message":{"text":"MatchCase.matchOn (cognitive 17): MatchCase.matchOn has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 4). 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c24a89697b7afdc3549e48fbe2a098992f32e8c681bfe4b5b57d1f127afb237"}},{"ruleId":"D2","level":"warning","message":{"text":"CtorLikes.parse (cognitive 17): CtorLikes.parse has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 4 (12 pts), if/else 4 (5 pts) (nesting depth added 9). 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":"hearth/src/main/scala/hearth/std/StdExtensions.scala"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"a02ed9a828aedc41da749362a8fd16c70d9113a780c6b7c0ccc39a5417e37f74"}},{"ruleId":"D2","level":"warning","message":{"text":"CtorLikes.extractCtorLikesResult (cognitive 17): CtorLikes.extractCtorLikesResult has cognitive complexity 17 (threshold 15). Drivers by points: match/switch 5 (11 pts), if/else 5, boolean chains 1 (nesting depth added 6). 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":"hearth/src/main/scala/hearth/std/StdExtensions.scala"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"e490ae1c33c6fa60dde36de5fdaa33aa4c38d5377ae836d2a5bddd975840d435"}},{"ruleId":"D2","level":"warning","message":{"text":"implementationDetails.render (cognitive 16): implementationDetails.render has cognitive complexity 16 (threshold 15). Drivers by points: if/else 14 (15 pts), 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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0273decce4556fec25031b998b738d0195bfecb668fe88e301127494a77e218"}},{"ruleId":"D2","level":"warning","message":{"text":"HighlightedCodePrinter.resolveSelect (cognitive 16): HighlightedCodePrinter.resolveSelect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, match/switch 1 (nesting depth added 3). 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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f90dffede8ae6578e8d62d6c5d6cdb076efe8a69db3e15204426e79bbfb265"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple4Codec (cognitive 16): Type.Tuple4Codec has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa02dd80f457a61006b179eb68400be1cea0b03f235287d2791b61c59ca0fac"}},{"ruleId":"D2","level":"warning","message":{"text":"Type.Tuple4Codec (cognitive 16): Type.Tuple4Codec has cognitive complexity 16 (threshold 15). Drivers by points: loops 4 (14 pts), if/else 1, match/switch 1 (nesting depth added 10). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"c506f311d697c8a3dd264c8af8103b938b8327f56e5b8d5116d30d434d4dc9ba"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedMethod.unsafeApplyWithTypes (cognitive 16): UntypedMethod.unsafeApplyWithTypes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), match/switch 2 (3 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":"hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d7d5cce71fe644ebb43ace3ed437e0c7e7e519776cb20d3012c5844dea17ee"}},{"ruleId":"D2","level":"warning","message":{"text":"UntypedMethod.unsortedMethodsOfSingleSymbol (cognitive 16): UntypedMethod.unsortedMethodsOfSingleSymbol has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4, loops 3 (4 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddfaaaaaf85eb1d1435206b723a8b0c1d26f469f7b23dd9a2aebfed209be11c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: typed/ExprsScala3.scala: FileTooLong \u2014 4635 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 4135 over it, 9.27\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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e7349cb91fdd774bec544126c30c340193a691d9359ced09e9d96ad36fab7c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: implementationDetails.ifSym: MethodTooLong \u2014 ifSym runs 738 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 638 over it, 7.38\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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"506b0658aef8242405326aec2f6490e34167e7368487655044b9ab4d5fbc3f1d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: typed/ExprsScala2.scala: FileTooLong \u2014 3322 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 2822 over it, 6.64\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c850f197b12034c5b85c9f380c471dea6918fe099f8e64a65784fd8de52c4b8e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Expr.typeOf: MethodTooLong \u2014 typeOf runs 443 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 343 over it, 4.43\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0761d905866f1691f9f09f0d0be2ca243573d3c5cb8cfa6f86c31329e2c4884"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Expr.semiEval: MethodTooLong \u2014 semiEval runs 440 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 340 over it, 4.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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebae781546ef695a4a707c4ddb77d16aee7facb7a9cd99118faa10ac0b284ed6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: typed/TypesScala2.scala: FileTooLong \u2014 1828 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1328 over it, 3.66\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49001747ab368a9c54b42bc039f2c2c2e57261e705c80f0b2d497b181d8aea9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: typed/TypesScala3.scala: FileTooLong \u2014 1802 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1302 over it, 3.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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bca9c290235e425eccec5d550c6b1d1fe22d33552a8070e8f99d9468ce8929d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: typed/Exprs.scala: FileTooLong \u2014 1315 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 815 over it, 2.63\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":"hearth/src/main/scala/hearth/typed/Exprs.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea8750b21e026cf348e558fbef8ebf69e93557da732aa22b6592f5ad7203030"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CrossQuotesMacros: TooManyMethods \u2014 72 methods. The bar is 30 methods; this is 42 over it, 2.40\u00D7 the bar. This type is on a published API surface \u2014 a MiMa binary-compatibility gate (build.sbt) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"0873b44a122ba45856227850c167cd1cab0013dd6b4fa50e54edfa5cf2147f6f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TypeMethods: TooManyMethods \u2014 71 methods. The bar is 30 methods; this is 41 over it, 2.37\u00D7 the bar. This type is on a published API surface \u2014 a MiMa binary-compatibility gate (build.sbt) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/typed/Types.scala"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f893a6f8f23944f52dee2df65ec722e860c89b087cd28561d9227b1cf636c6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: TypeModule: TooManyMethods \u2014 70 methods. The bar is 30 methods; this is 40 over it, 2.33\u00D7 the bar. This type is on a published API surface \u2014 a MiMa binary-compatibility gate (build.sbt) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/typed/Types.scala"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d1ac7ade8a7e0cd91b676825ff66b46461d06fb046bd958e4ae6b5d5027157"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: typed/Types.scala: FileTooLong \u2014 1058 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 558 over it, 2.12\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":"hearth/src/main/scala/hearth/typed/Types.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62718e2353de49f066bf4aa4d703b733ff10452ba6e3a18e0bd9cef91001a4f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: treeprinter/ShowCodePrettyScala2.scala: FileTooLong \u2014 1038 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 538 over it, 2.08\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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c10d60f0bd5f9a5ed6381f05cb4c1de7cc1dae723a6a240562ce8c18e44b8e2a"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: UntypedTypeMethods: TooManyMethods \u2014 61 methods. The bar is 30 methods; this is 31 over it, 2.03\u00D7 the bar. This type is on a published API surface \u2014 a MiMa binary-compatibility gate (build.sbt) declares its compatibility contractual \u2014 so moving members onto a smaller type is a breaking change for every consumer, not a local refactor. To reduce it, treat the split as an API migration: move each cohesive group onto its own published type and keep the old members as deprecated forwards for a deprecation period, removing them at the next compatibility break. Where the surface has to stay as it is, that is a decision to record rather than a change to make."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/untyped/UntypedTypes.scala"},"region":{"startLine":542}}}],"partialFingerprints":{"codehealthFindingId/v1":"9500d331bb48586ec4cdcd868280b634853259fb6b86c6aae7502dd2f9a5111d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cq/CrossQuotesMacros.scala: FileTooLong \u2014 956 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 456 over it, 1.91\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":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cba0fec2c741d824cf04f7cd26b8b2c522e0613713aaa18f1b2e0eadc06c0341"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: untyped/UntypedMethodsScala3.scala: FileTooLong \u2014 820 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 320 over it, 1.64\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":"hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45b81c755b03a7f5b9c97b086fedbf55bd794967fd4b33dae46be476a7ca1763"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: untyped/UntypedTypesScala3.scala: FileTooLong \u2014 652 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 152 over it, 1.30\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":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2cf2e7292f25598f2c10d370a5d12f9da29de20529f88adbff31bf23c968531"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SemiEval: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb80defea10669dc1f157654f5b8d74383d18872d1a98a09d0cd12f2542105b2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: typed/Classes.scala: FileTooLong \u2014 618 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 118 over it, 1.24\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":"hearth/src/main/scala/hearth/typed/Classes.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5a2c9162964941881af6ffb538cc1412a87ac6c81d1bc00666ce0dcd760636a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Method.buildChain: MethodTooLong \u2014 buildChain 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":"hearth/src/main/scala/hearth/typed/Methods.scala"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"908ab5cb468d5d993e952620f4fb4f104b3c222585738377e3e0fa237b62628f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: untyped/UntypedMethodsScala2.scala: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 55 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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b44d268874fb86dd34b57907c8d9898ec98759ee2f61d848ecad21dcc4036d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (41 shared lines): hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala:15-80 | hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForArray.scala:14-84 \u2014 These two members are variants of one another: 41 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":"hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f4227de680de47557b047721e70b7abe3d81bdda08ef4b287e2e68148246fe2"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (40 shared lines): hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala:517-637 | hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala:804-931 \u2014 These two members are variants of one another: 40 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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"7adfcc66de9633a8d04a9e8b047a0893331d509616f3a3cc4a4bfef93eebb290"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:526-547 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:751-770 \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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ecfb34bb31398b1e414337ed3ca6085994cba27242bcfb45d54067375848b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2738-2762 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3364-3388 \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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":2738}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a0ed12a3b6b670b650e5ae4e8f8eb612a390242c3c679eeb680e6f515dacc51"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:2009-2021 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1932-1950 \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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"da4579179c8272f73b4f94bfda5881ed30bebc75cbb1819c03a38d79408137be"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (32 members, 50\u002B identical tokens): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:302-344 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:356-401 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:414-465 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:479-533 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:548-608 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:624-700 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:717-797 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:815-899 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:918-1008 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1028-1122 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1143-1243 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1265-1370 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1393-1504 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1528-1664 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1689-1830 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1858-2006 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:334-376 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:388-434 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:447-500 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:514-571 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:586-650 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:666-734 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:751-823 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:841-917 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:936-1018 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1038-1124 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1145-1239 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1261-1360 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1383-1488 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1512-1621 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1646-1759 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1787-1929 \u2014 These 32 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 32 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 32 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f53a98edb03250f8daa0d2134d29f748c8262cc43ef0d5178627d69d1df23ec"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (20 members, 50\u002B identical tokens): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1662-1679 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1686-1705 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1713-1734 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1743-1766 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1776-1801 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1812-1839 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1851-1880 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1893-1924 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1938-1971 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1986-2021 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2037-2074 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2091-2130 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2148-2189 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2208-2251 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2271-2316 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2337-2384 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2406-2455 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2478-2529 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2553-2606 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2631-2686 \u2014 These 20 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 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":1662}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c63d1ad4102a0312c18eccd9594243df0999e9c1151487f05f9547babcf2543"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (20 members, 50\u002B identical tokens): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2038-2058 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2065-2088 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2096-2122 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2131-2160 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2170-2202 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2213-2248 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2260-2298 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2311-2352 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2366-2410 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2425-2472 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2488-2538 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2555-2608 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2626-2682 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2701-2760 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2780-2842 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2863-2928 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2950-3018 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3041-3112 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3136-3210 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3235-3312 \u2014 These 20 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 20 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 20 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":2038}}}],"partialFingerprints":{"codehealthFindingId/v1":"59cd731b0ff41f77ca22a5a1e674ae4cb533972093e5132e255726731c0506d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (19 members, 50\u002B identical tokens): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:174-208 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:212-248 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:252-291 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:302-344 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:356-401 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:414-465 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:479-533 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:548-608 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:624-700 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:717-797 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:815-899 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:918-1008 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1028-1122 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1143-1243 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1265-1370 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1393-1504 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1528-1664 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1689-1830 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1858-2006 \u2014 These 19 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 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"f17a30bd81fa90d2a433e2f4ecd29016103b7bbcf3dbab392047513648684fec"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (19 members, 50\u002B identical tokens): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3626-3658 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3665-3701 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3709-3749 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3758-3802 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3812-3860 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3871-3923 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3935-3991 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4004-4064 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4078-4142 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4157-4225 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4241-4313 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4330-4406 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4424-4504 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4523-4607 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4610-4698 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4702-4794 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4798-4894 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4898-4998 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5002-5106 \u2014 These 19 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 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":3626}}}],"partialFingerprints":{"codehealthFindingId/v1":"1328810fb35f0fe8029c0bc30bf4e057172786f9a50df1a49f61aa22d98a5f44"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (19 members, 50\u002B identical tokens): hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:213-243 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:247-281 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:285-323 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:334-376 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:388-434 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:447-500 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:514-571 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:586-650 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:666-734 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:751-823 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:841-917 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:936-1018 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1038-1124 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1145-1239 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1261-1360 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1383-1488 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1512-1621 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1646-1759 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1787-1929 \u2014 These 19 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 19 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 19 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eb5f1b7b31273d20dafd4ab7817d406d8eeeba1a79bf24e8334e071ad705235"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (18 members, 50\u002B identical tokens): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2972-2985 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2993-3007 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3016-3031 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3041-3057 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3068-3085 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3097-3115 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3128-3147 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3161-3181 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3196-3217 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3233-3255 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3272-3295 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3313-3337 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3356-3381 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3401-3427 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3448-3475 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3497-3525 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3548-3577 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3601-3631 \u2014 These 18 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 18 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 18 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":2972}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1d727825cdd4dcef5d9edc8ec65fced34ef72218dad1d6001b8144d11aa45b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (15 members, 50\u002B identical tokens): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3592-3620 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3626-3658 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3665-3701 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3709-3749 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3758-3802 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3812-3860 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3871-3923 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3935-3991 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4004-4064 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4078-4142 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4157-4225 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4241-4313 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4330-4406 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4424-4504 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4523-4607 \u2014 These 15 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 15 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 15 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":3592}}}],"partialFingerprints":{"codehealthFindingId/v1":"4561ad7ad85c81e36f112fb1363d7fa668fdfdcc0b9893f79d771957f0025518"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (10 members, 50\u002B identical tokens): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:560-579 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:581-597 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:599-612 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:614-627 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:653-660 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:782-801 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:803-819 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:821-834 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:836-849 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:875-882 \u2014 These 10 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 10 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 10 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"6131eea009754b33651ac785754accebbc001480252785f53f641a9ab8ac2924"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:501-524 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:680-695 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:573-606 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:727-749 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:912-927 \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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5b585f3814f6d18d4dcbe86946c55c5a83b0d0e85cc32de9f7906804a34848"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (5 members, 50\u002B identical tokens): hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherIterableStringOrValue.scala:15-41 | hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherIterableThrowableOrValue.scala:15-41 | hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherStringOrValue.scala:15-41 | hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherThrowableOrValue.scala:15-41 | hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForPlainValue.scala:15-39 \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":"hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherIterableStringOrValue.scala"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"20b43104bc030c242531013936c07e45ad2d479aa6ecdd6c86b9a2695cfcfb4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyList.scala:79-113 | hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyVector.scala:79-113 | hearth-micro-fp/src/main/scala/hearth/fp/instances.scala:62-94 | hearth-micro-fp/src/main/scala/hearth/fp/instances.scala:102-134 \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":"hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyList.scala"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d0c66cafca7f2a0e7a70ed6ec3a637a7095168b321dc39f6533c0534638556"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaBoolean.scala:15-57 | hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaDouble.scala:15-57 | hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaFloat.scala:15-57 | hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaShort.scala:15-57 \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":"hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaBoolean.scala"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5810cc2f8f555da9b66ce9c86195c8022293938a320b5601b569da767948f85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201340 lines \u00D7 2): hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:1541-1580 | hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:1610-1641 \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 \u0060hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:1541\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":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":1541}}}],"partialFingerprints":{"codehealthFindingId/v1":"463a238042b39a24e01277a0555418a4f0c4657d36d027e39b54719869d5d587"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:430-466 | hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:478-514 \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 \u0060hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:430\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:429\u0060 calls \u0060hktTypeExpr\u0060 and \u0060hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:477\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":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a914982220908213b772d2e893644e7952394df40179362fc23648457f90cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3659-3683 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5134-5158 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":3659}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb8c27b95dbfc36c7df0199686c807797a560acba28afe243c25fade9596dbc9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u201324 lines \u00D7 5): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1315-1318 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1445-1448 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1583-1606 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1746-1768 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1919-1941 \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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1315\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"506289185fef4e9a5fc552fe10b209ef293059c1ca332e6304dadd8eab6dc763"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:450-472 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:663-685 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a7bae34729d5e879ca40808babdfcf55faec41ccd484cf0e6a10515b3d793b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2741-2762 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3367-3388 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2741\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":2741}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbc4a3381cf94d14c31b7692f9e81206534acade4eb35f0e8f78b66d316ad91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:586-607 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:629-650 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:586\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d115235197e1d72190338b18fca58a20f0c22fb22d82cee4b561a4fccbbb5f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 4): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala:85-104 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaEnumeration.scala:54-73 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterator.scala:54-73 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaStream.scala:67-86 \u2014 before extracting anything, compare \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala\u0060 and \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaEnumeration.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala:85\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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d832b9a47e862874b60d57157be74d489aede476890b54b391298029ec97b09"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4629-4646 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4722-4739 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4819-4836 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4920-4937 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5025-5042 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":4629}}}],"partialFingerprints":{"codehealthFindingId/v1":"6529aadbcaf0da7ee633a6e374f092c33e4fe7f0dbcc562956bd4e922130d6c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 3): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaDictionary.scala:87-103 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:100-116 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:164-180 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaDictionary.scala:87\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaDictionary.scala"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fc25b4d15da98a87e7a07593749c97a2aeebc72c84324c2967fce706a0826a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:480-496 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:693-709 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"227fc5ab6d127300ccaddd6f5daf20b4b596f3b29f2a01e8388ceb138bca6dd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala:557-572 | hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala:850-866 \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 \u0060hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala:557\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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcef011dddaa4700d228843952a6b8016884f7934098a69b88dd6e29b9ca44b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201316 lines \u00D7 8): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:940-955 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1051-1065 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1167-1181 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1290-1304 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1419-1433 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1555-1569 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1717-1731 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1889-1903 \u2014 all 8 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:940\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c9825ee2421131015dd6f93d404300016cecdb0a9e203e95ffa828d399929d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:937-952 | hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:985-1000 \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 \u0060hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:937\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":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b016cc4f3763e456e51588226a1e364e8cb03c615a609485408beb54939302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:517-532 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:556-571 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:517\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dcadc6103309a8a57f5d76249f70cf85014f510223c68fd17b627aa1347e4ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1990-2005 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1914-1929 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1990\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1990}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4407335940ec94a476344de94584fa9fa68646c3b51646014ad8143b1d2a5dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala:622-637 | hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala:916-931 \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 \u0060hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala:622\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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca341e602fcbaae5e0f0f915bdb53f838ebc6c8aeebf9f3e488c731cb06ab50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 9): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:834-848 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:940-953 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1051-1064 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1167-1180 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1290-1303 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1419-1432 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1555-1568 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1717-1730 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1889-1902 \u2014 all 9 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:834\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":834}}}],"partialFingerprints":{"codehealthFindingId/v1":"267ff5077a75c869ac7762c7acdd8c18345d5666cc7aa8e72ad9684ea53ee863"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala:440-455 | hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala:474-488 \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 \u0060hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala:440\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":"hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2a1aa63a43c20e5d9aee488afc70b7cd4a1142f2b297712c92dd00296dedce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:450-464 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:486-500 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:450\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"d76f5f3e6244fae1d90083c55df4bb1583a8fe876c2a7843466c7121b364dbb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1489-1503 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1474-1488 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1489\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1489}}}],"partialFingerprints":{"codehealthFindingId/v1":"39c0141da255743062b93a741a901c2aafbe2e0a248eaa895dd329c09d10704e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1649-1663 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1607-1621 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1649\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1649}}}],"partialFingerprints":{"codehealthFindingId/v1":"870543c598ed86fa6b09ac52685063b05e85996194e9f150db3262bce8b5bd30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1815-1829 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1745-1759 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1815\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1815}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38f5441b482a04a23a31c2fe322d82a726dbfb375796f01a5ea70835a881627"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 10): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:735-748 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:834-846 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:940-952 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1051-1063 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1167-1179 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1290-1302 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1419-1431 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1555-1567 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1717-1729 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1889-1901 \u2014 all 10 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:735\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":735}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9123f3b584b9ac3ce814b10ce0987b745ece3bcf6d30ab6770671be912bbe28"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala:541-554 | hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala:631-644 \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 \u0060hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala:541\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":"hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"102192940917a2d03d121ce9b0215fb7beb95c2932ffdc12b42128dd90e478f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:387-400 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:421-434 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:387\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"b391b511243cecac825b12aeedc4ae6de8b73fb97e2f8449820bc5fda72a6210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 11): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:641-653 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:735-746 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:834-845 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:940-951 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1051-1062 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1167-1178 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1290-1301 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1419-1430 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1555-1566 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1717-1728 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1889-1900 \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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:641\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82ae9bbb2d1e331a642a93ab69fc9172bf2cf6522af8623ce2e923ebaa7a50a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:385-397 | hearth/src/main/scala/hearth/typed/Classes.scala:14-26 \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":"hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala"},"region":{"startLine":385}}}],"partialFingerprints":{"codehealthFindingId/v1":"53dc5d3f790c628ff42a2e23d3d06ba0047257478d5628402da73e6de7660c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2777-2789 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3410-3422 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2791\u0060 calls \u0060isBuilt\u0060, \u0060get\u0060, \u0060exists\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3424\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":2777}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cc067f0a942e3dd5b9f4869d11d30281eaf5dd80584366f0f436b8363a0bbfa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:331-343 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:364-376 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:331\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"79ad96f0ec033991759cc8df17a6ffb625a572a2f65588cf11b0096408e0b13a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1230-1242 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1227-1239 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1230\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b0555c7f687b659d1a7c488c6a659e5ed769ed4f8ee58bb4f90afd91f510bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1357-1369 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1348-1360 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1357\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b13d2bcfc93680457b060f020f828ec43749f1dde9a6904a95d286885e591d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala:906-917 | hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala:1066-1077 \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 \u0060hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala:906\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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f95e70924917779a33c1ec51d5e735587a65ee85d8d56178af6b85b5921a817"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala:424-435 | hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala:459-470 \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 \u0060hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala:424\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":"hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b76835dfda84a2d8c52b75edd7bfff47080ec88d6ae883681a28e7c5e5740b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:279-290 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:312-323 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:279\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"9efc0e5f2a304dce3f2fb26e1ee286a9cdff25600ba7450c6faca7d4179de0c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala:54-65 | hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForArray.scala:59-69 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala\u0060 and \u0060hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForArray.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 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 \u0060hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b139c92cec6c41400522c9e5da2efaaad2e6823df6d7472f14963b133d195beb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala:69-80 | hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForArray.scala:73-84 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala\u0060 and \u0060hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForArray.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 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 \u0060hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala:69\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":"hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0fbb3de6139dfb09a9498e0ca20f5406bdb85a2f1d58c582755d47653756c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): hearth/src/main/scala/hearth/typed/Classes.scala:716-727 | hearth/src/main/scala/hearth/typed/Classes.scala:742-753 \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 \u0060hearth/src/main/scala/hearth/typed/Classes.scala:716\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: \u0060Underlying\u0060 names \u0060exprResult.Underlying\u0060 in one and \u0060param.tpe.Underlying\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":"hearth/src/main/scala/hearth/typed/Classes.scala"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"afb1af18aa14fb979d51bb640ad623d9d5e102e616d9fdd145c70503475061a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaIterator.scala:49-58 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala:159-169 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterable.scala:65-74 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaIterator.scala:49\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":"hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaIterator.scala"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f331cea67aa5a8a48b07e6b3387ef1186b87b821b82c2885c002e9f2fda5ed8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:766-775 | hearth/src/main/scala-2/hearth/EnvironmentCrossQuotes.scala:46-56 \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 \u0060hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:766\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":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"112572cdf36c2acbb1e1a01ec549d3fe93339de81e3d7e3754dcce6de9c62899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:685-695 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:917-927 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:685\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"937893a1ab03a5fec4209a99d43bdfb2954521818b982e8aa7bba4b87b497f48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1364-1374 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:1656-1666 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1364\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"e29095dd9c2fd84719aaee442db53480605fb0602835f03f2f52023b7be65f80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:197-207 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:233-243 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:197\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"093307db6aef5b94f6ab5782e5e5e36de3b5aaf82d12c5804360a0fb3a4261ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:237-247 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:271-281 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:237\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"529ac5a36e553c3783ef80232b2bfd43809fbe9780bdb0cda33bb865614e029a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:678-688 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:713-723 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:678\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"2983c23570cd255695f48b411f8390794abe3d95201da994982f02ae0be055d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:689-699 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:724-734 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:689\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"2337686fb8ffac332a24d5586147ca87dc5fe78246f0e0bbce5852957e202b0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:774-784 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:801-811 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:774\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fef9282dc076f1e8a4fce34fc9a5e80bd68c4387b0ae074904c7c2414e6194"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:786-796 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:813-823 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:786\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":786}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef0147605839dc529345d71a24b14e999189526ca737d4263b64992be7430561"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:888-898 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:907-917 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:888\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":888}}}],"partialFingerprints":{"codehealthFindingId/v1":"002e463265a5fb8e4faec506936ff2b06998bb001417bfac392a9760c327ae70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:997-1007 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1008-1018 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:997\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da1d508de7297f03ec2d34d134a05da3224a6926c1a654fbf15b75d945d693d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1111-1121 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1114-1124 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1111\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a62c1b01a73874f548669866e1cca283e70c401bc25d1a885f9c0828c72f4b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201311 lines \u00D7 2): hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaOption.scala:52-60 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaOptional.scala:59-69 \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 \u0060hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaOption.scala: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. 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":"hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaOption.scala"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"a25e6329f1a88cfd68dd87f75ddde924bf89e8beaac6a5d16348fcac3ef376f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaBitSet.scala:67-77 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaStream.scala:126-136 \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 \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaBitSet.scala:67\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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaBitSet.scala"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3c6a53458db1ef6c04f0cd510cf1d3370eaf72d502fd02bc10e81b85e723436"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 13): hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:526-535 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:599-608 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:680-689 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:766-775 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:857-866 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:955-964 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1058-1067 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1166-1175 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1283-1292 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1406-1415 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1536-1545 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1671-1680 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1815-1824 \u2014 all 13 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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":526}}}],"partialFingerprints":{"codehealthFindingId/v1":"83c65d7663da90893188507bba61dc523abce5fdaf1f2a9dc1249dbf7b19fe8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1546-1555 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1681-1690 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1825-1834 \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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"553a0d96b691fd4f17d43fdfe37eaf059e4c638ab7ff946d13a935e7c45375cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:780-789 | hearth/src/main/scala-2/hearth/EnvironmentCrossQuotes.scala:58-67 \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 \u0060hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:780\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":780}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3ed8da3f08a89a5e1de1b4e83c30f5b6d7f7c7c2fcac0d03a5a1d0365e39a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:322-331 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:401-410 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:322\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"433fae3a686da7a145a73277970f3ca147790361282c99a7832b33538d740a18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:515-524 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:741-749 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:515\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f56e9794d6fb4a6eb67a6842c27b438819df76b3b8a85d033d437ca281344a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:538-547 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:761-770 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:538\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c6d151f68fd0d5664850408af2b186f85c9e8a6b5b01e096a3f7385148927e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:712-720 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:944-953 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:712\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"6263cceffda6ccbfe5991a1573690a4bdcba71aa789b0679a0a052026ee0d3f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:876-885 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:895-904 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:876\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"24b3f0ffea8cf94fd6e4da656b7f7b98782e1b7eb6841a5e1ac71cb497b0d6b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:984-993 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:995-1004 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:984\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"d81a46f8606fce57405416de2ac901d4f423863633b97a88f4be8e13c1aecacb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1097-1106 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1100-1109 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1097\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1097}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5149b75183c9a47e6791b56eabd2f8f28659d2e1209e030e1e04520f24698b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1215-1224 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1212-1221 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1215\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"6211123ed8c7e6052ff74d3d2872679f035a06e1a1ba1d0168aad4e2645123ff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1341-1350 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1332-1341 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1341\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f9060427d521aca701c8670ba1694677fd0ef0054fd85056c10cdbfd881173a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1472-1481 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1457-1466 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1472\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73ad547741e6f78199dfe5cc1204b3234511983a87777032eee4778a633ad2d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1631-1640 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1589-1598 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1631\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1631}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5737201892faa61ee4394ecbe7ba9eaaacc3cf956c2aef5e30ef90343744cc8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1796-1805 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1726-1735 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1796\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1796}}}],"partialFingerprints":{"codehealthFindingId/v1":"520836213148af6600959bfc5305cc1df44767bd0d870c81c65374dad31d261c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1971-1980 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1895-1904 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1971\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1971}}}],"partialFingerprints":{"codehealthFindingId/v1":"835e1021f13736e2822b527115f2deec19f129a2dc033a0922e9325e595d71a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:494-503 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5631-5640 \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 \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:494\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc02aa778e141f767ee3c3abd295e5d3019bc00147cf03b57ef8cd2074befec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 19): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3640-3648 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3681-3688 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3727-3734 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3778-3785 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3834-3841 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3895-3902 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3961-3968 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4032-4039 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4108-4115 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4189-4196 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4275-4282 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4366-4373 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4462-4469 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4563-4570 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4652-4659 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4746-4753 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4844-4851 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4946-4953 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5052-5059 \u2014 all 19 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 \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3640\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3688\u0060 calls \u0060ValDef\u0060, \u0060Some\u0060, \u0060suppressUnused\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3648\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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":3640}}}],"partialFingerprints":{"codehealthFindingId/v1":"750553bcdecf2cf347199e8eea70655ee5db9a2f1570d1a556a3b6b1f3d7a657"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 15): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3842-3850 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3903-3910 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3969-3976 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4040-4047 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4116-4123 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4197-4204 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4283-4290 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4374-4381 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4470-4477 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4571-4578 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4660-4667 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4754-4761 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4852-4859 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4954-4961 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5060-5067 \u2014 all 15 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3910\u0060 calls \u0060ValDef\u0060, \u0060Some\u0060, \u0060suppressUnused\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3850\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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":3842}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d9889c89bee61d64c1e7e0f6860d57407aec0380af06388c536f7fb4e63135"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 11): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4124-4132 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4205-4212 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4291-4298 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4382-4389 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4478-4485 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4579-4586 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4668-4675 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4762-4769 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4860-4867 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4962-4969 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5068-5075 \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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4212\u0060 calls \u0060ValDef\u0060, \u0060Some\u0060, \u0060suppressUnused\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4132\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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":4124}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4832a393b7d091bc9c3ddd487a62609e4e336fa108c904c74ca153e320ea7df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 7): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4486-4494 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4587-4594 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4676-4683 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4770-4777 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4868-4875 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4970-4977 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5076-5083 \u2014 all 7 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4594\u0060 calls \u0060ValDef\u0060, \u0060Some\u0060, \u0060suppressUnused\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4494\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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":4486}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2fccada9d6f02ce236eec27fbe5e9491489a315234dd761f6e84304e7ccf733"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherIterableStringOrValue.scala:16-24 | hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherIterableThrowableOrValue.scala:16-24 | hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherStringOrValue.scala:16-24 | hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherThrowableOrValue.scala:16-24 | hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForPlainValue.scala:16-24 \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 \u0060hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherIterableStringOrValue.scala:16\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":"hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherIterableStringOrValue.scala"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"3600d9277ce0117ca20d1e266e299895fbc0fa2471ef79e4d0564a42e63e1c58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaCollection.scala:42-50 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala:90-98 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaEnumeration.scala:59-67 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterator.scala:59-67 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaStream.scala:72-80 \u2014 before extracting anything, compare \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala\u0060 and \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaEnumeration.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaCollection.scala: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaCollection.scala"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6411ebe08df94d3c36dbc5d835e52733104653faf1c7023780ef6fe242ed7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaCollection.scala:75-83 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaDictionary.scala:90-98 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:103-111 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:167-175 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaCollection.scala: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaCollection.scala"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"868e07b1894b005c35a8c396359b9d897046d7f4e74aa95e5ece58eb28e567e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4876-4884 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4978-4986 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5084-5092 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4987\u0060 calls \u0060ValDef\u0060, \u0060Some\u0060, \u0060suppressUnused\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4885\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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":4876}}}],"partialFingerprints":{"codehealthFindingId/v1":"6601358ef4167ebe1b0415ad81872717193b03fc22dd40b4fe2d4f40a6c1489b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3961-3969 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5505-5513 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3961\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":3961}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e71d631d3b35a0ce8985fc63f430049326ba4df1f430327869bc218da8520b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala:707-716 | hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala:1105-1113 \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 \u0060hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala:707\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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d7889e100145aaf6fdb1fe170a9329baa26e953c43e8b55a5c23d400453fdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala:39-47 | hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForArray.scala:38-46 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala\u0060 and \u0060hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForArray.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 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 \u0060hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala:39\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":"hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"753b0c519c6e3277cf26a5b800d369bdfba05fb87dc5cb640ca711985c91a827"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20139 lines \u00D7 3): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaDictionary.scala:71-73 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:79-86 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:147-155 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaDictionary.scala:71\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaDictionary.scala"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"71f0118e6050839f63bc1c717099ff1d880e8ddc574ffc187b2ba3990b438ff4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 32): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:331-338 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:387-393 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:450-456 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:517-523 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:590-597 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:681-688 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:777-784 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:878-885 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:986-993 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1099-1106 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1217-1224 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1343-1350 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1474-1481 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1633-1640 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1798-1805 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1973-1980 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:364-371 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:421-427 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:486-492 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:556-562 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:633-640 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:716-723 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:804-811 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:897-904 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:997-1004 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1102-1109 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1214-1221 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1334-1341 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1459-1466 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1591-1598 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1728-1735 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1897-1904 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:331\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"a109c33af96c7768fb44a89b7c1e429213aec192859f7c56d63de994a7818626"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 4): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala:71-78 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterable.scala:47-53 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterator.scala:37-44 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaStream.scala:53-60 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala:71\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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa093127af61d2f21ebd3a0f44feb9de3922a5ebe70d154214b15403f855c3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:671-678 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:892-899 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:671\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":671}}}],"partialFingerprints":{"codehealthFindingId/v1":"02771504f9121330a18e57af2249538ac5d817449b1100e126ed8a33247249e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:722-730 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:962-969 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:722\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeacf80813b04549d521c15a2f783c554f18bad296575e27635012dc227a8a9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1597-1604 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1613-1620 \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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1597\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":1597}}}],"partialFingerprints":{"codehealthFindingId/v1":"31dbebb588ce0ef4994c9ad7794da3a3a85a493656d278f6c1ae587a8fc5711e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala:574-581 | hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala:868-876 \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 \u0060hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala:574\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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a8dcd3c92f16598aff9767758dfc169f945520fec950345bf0d1654e26a0ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala:663-670 | hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala:1060-1067 \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 \u0060hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala:663\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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"95c10ed5691114d3ba6abf9a607d040b5e3d0bb64f18778892318866dd600243"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 20): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:785-791 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:886-891 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:994-999 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1107-1112 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1225-1230 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1351-1356 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1482-1487 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1641-1646 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1806-1811 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1981-1986 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:812-818 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:905-910 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1005-1010 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1110-1115 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1222-1227 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1342-1347 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1467-1472 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1599-1604 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1736-1741 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1905-1910 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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. 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"20bc95bea252f62920d4b3a7a98cf356840e26b56a2740d21af137529749fa43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 8): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1488-1494 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1647-1652 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1812-1817 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1987-1992 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1473-1479 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1605-1610 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1742-1747 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1911-1916 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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. 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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"c344faeb0ce561986cd0ac0af4c9fb45c3cc1a4ff623cf8039d47d2c2be698b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 6): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala:70-77 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterable.scala:46-52 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterator.scala:36-43 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:79-85 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:147-154 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaStream.scala:52-59 \u2014 there are 6 copies across 5 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 6 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala: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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce526830d34a6f14c1a0b60dc02a2cadf31f6b67673e78866a630f61c427fb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaCollection.scala:85-92 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:114-120 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:178-184 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaCollection.scala:85\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":"hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaCollection.scala"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3ba543dff0a2cdd350ecbc4ce19bfe84298d4186c9fdad3b5abcd6d3ca7762"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth-micro-fp/src/main/scala-2/hearth/fp/NaturalLanguageOrdering.scala:20-26 | hearth-micro-fp/src/main/scala-3/hearth/fp/NaturalLanguageOrdering.scala:20-26 \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 \u0060hearth-micro-fp/src/main/scala-2/hearth/fp/NaturalLanguageOrdering.scala:20\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":"hearth-micro-fp/src/main/scala-2/hearth/fp/NaturalLanguageOrdering.scala"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"66fa2c418993b8206020272ce5b59c3753a3b7d737858fb56592fddd34e15d29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:2083-2089 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:2007-2013 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:2083\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":2083}}}],"partialFingerprints":{"codehealthFindingId/v1":"61c95abb4142e0d360a3566f330dbf0d2f66318127657abd3542f5e9644a9a14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:2107-2113 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:2026-2032 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:2107\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":2107}}}],"partialFingerprints":{"codehealthFindingId/v1":"956a62045f14863720f59434785a4fff3e00855bf0f3e992767c36adeb3f5850"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:515-520 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:687-692 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:586-591 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:741-746 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:919-924 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:515\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":515}}}],"partialFingerprints":{"codehealthFindingId/v1":"57503e050ac299b1e3acd8e75ecc3ae6d6ae32a14cd445d653d81e670345ec65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala:72-78 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaEnumeration.scala:38-44 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterable.scala:48-53 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterator.scala:38-44 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaStream.scala:54-60 \u2014 before extracting anything, compare \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala\u0060 and \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaEnumeration.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 36 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala:72\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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c5e796c30040c9c5f9108ec77fd7639671d384a6145b75a4d15f510b41b46b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherIterableStringOrValue.scala:27-32 | hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherIterableThrowableOrValue.scala:27-32 | hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherStringOrValue.scala:27-32 | hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherThrowableOrValue.scala:27-32 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherIterableStringOrValue.scala:27\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060Result\u0060 names \u0060EitherIterableStringOrValue.Result\u0060 in one and \u0060EitherIterableThrowableOrValue.Result\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":"hearth/src/main/scala/hearth/std/extensions/CtorLikeProviderForEitherIterableStringOrValue.scala"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb163a3a6ba6babcae25e6a09febaf5c5987929b2ace166d4437716a3baf1a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:822-827 | hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:939-944 | hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala:987-992 \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":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c00930bff8fbc6f9480523e8dc80284ea3fadfaef125a40382c9735d113b3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala:347-352 | hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala:394-399 \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 \u0060hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala:347\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":"hearth-cross-quotes/src/main/scala-3/hearth/cq/CrossQuotesPlugin.scala"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"01c8aed4a89b841d985f1157f94989729881b7f6bc04e136f6fa84cc12301437"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:257-262 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:318-323 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"a543c634f214ecc2628857d64960a94e961481b97faf04321b4734dd4941b5aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:742-749 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:989-994 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:742\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"59083c0967956e8d5877bee03dae07242d638332fce94bb022bced250b6e8144"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5442-5447 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5453-5458 \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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":5442}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6f24fc5ca886bdc64f302d5e2c34a531be10b4197df3f82c3609ccd2394b8c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 18): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2973-2977 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2994-2998 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3017-3021 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3042-3046 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3069-3073 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3098-3102 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3129-3133 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3162-3166 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3197-3201 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3234-3238 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3273-3277 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3314-3318 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3357-3361 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3402-3406 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3449-3453 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3498-3502 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3549-3553 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3602-3606 \u2014 all 18 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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":2973}}}],"partialFingerprints":{"codehealthFindingId/v1":"4378244e0a150aa7f75015ba0af87eb67de2065917b1440711598a039a676c0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 18): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2097-2101 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2132-2136 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2171-2175 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2214-2218 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2261-2265 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2312-2316 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2367-2371 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2426-2430 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2489-2493 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2556-2560 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2627-2631 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2702-2706 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2781-2785 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2864-2868 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2951-2955 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3042-3046 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3137-3141 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3236-3240 \u2014 all 18 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":2097}}}],"partialFingerprints":{"codehealthFindingId/v1":"b688cf7ec1e19fb5bc5e3c5eb2bd197e9af66f4a35a135de7b80730bcc9024d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 13): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3103-3107 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3134-3138 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3167-3171 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3202-3206 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3239-3243 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3278-3282 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3319-3323 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3362-3366 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3407-3411 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3454-3458 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3503-3507 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3554-3558 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3607-3611 \u2014 all 13 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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":3103}}}],"partialFingerprints":{"codehealthFindingId/v1":"97916ff8d64cf7d94052b4c94c3826a4bec3150e85336a7b553f7cdf39caad08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 14): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2266-2269 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2317-2321 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2372-2376 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2431-2435 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2494-2498 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2561-2565 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2632-2636 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2707-2711 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2786-2790 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2869-2873 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2956-2960 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3047-3051 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3142-3146 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3241-3245 \u2014 all 14 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":2266}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5a131a7def635f2bae41b14cf3c4f815b4acf66a4e1515f717832cea7ce3e9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3283-3287 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3324-3328 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3367-3371 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3412-3416 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3459-3463 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3508-3512 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3559-3563 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3612-3616 \u2014 all 8 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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":3283}}}],"partialFingerprints":{"codehealthFindingId/v1":"030767106e638fc9e661839fe0ac2027d60ef3f2439e6c3634f7105e9edd8bc7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 9): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2566-2569 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2637-2641 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2712-2716 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2791-2795 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2874-2878 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2961-2965 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3052-3056 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3147-3151 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3246-3250 \u2014 all 9 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":2566}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c019611174be0ad6d150d43eb69382687a81415aaeb04365576f39ebf9a9517"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyList.scala:96-100 | hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyVector.scala:96-100 | hearth-micro-fp/src/main/scala/hearth/fp/instances.scala:75-79 | hearth-micro-fp/src/main/scala/hearth/fp/instances.scala:115-119 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyList.scala:96\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyList.scala"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"53a8783d8b0f0673f186f12ed6a3bc2ab4634bf08dd1c0f2ab779599f8660b68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1566-1570 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1597-1601 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1613-1617 \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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":1566}}}],"partialFingerprints":{"codehealthFindingId/v1":"73fa6bb07d01618d9c377c2f6edfd3c35dfb2926f0fbef9c180011b759c1bcbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3513-3517 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3564-3568 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3617-3621 \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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":3513}}}],"partialFingerprints":{"codehealthFindingId/v1":"323efec94ccc73143ee29b86ec1fb2d33cb100afd9016bea845c35f245f4da60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 4): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2966-2969 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3057-3061 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3152-3156 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3251-3255 \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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":2966}}}],"partialFingerprints":{"codehealthFindingId/v1":"4faa9a31766f48ed11147745ab2050c22911f0270f87108d597d1d8449c1984d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5445-5449 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5456-5460 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5477-5481 \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 \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5445\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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":5445}}}],"partialFingerprints":{"codehealthFindingId/v1":"34baf3a5073cb6a206a94a69e4f2cbe8936b551cb5fd195ae775ade06b3d95c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaEnumeration.scala:54-58 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterable.scala:63-67 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterator.scala:54-58 \u2014 before extracting anything, compare \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaEnumeration.scala\u0060 and \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterator.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaEnumeration.scala:54\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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaEnumeration.scala"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"348c7b7ee7d64ac27eebf647f29a80b9e2b1e0029b550c81d0712943aebdaedf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:507-511 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:733-737 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:507\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"e20a9a017d6ab344929a438037f86114869b8cdede61cb643bc29ff2ce12b7bd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:664-668 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:885-889 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:664\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, \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:662\u0060 calls \u0060SuppressWarnings\u0060, \u0060Array\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:882\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":664}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a79325283597edc5f928301be9b138876aa6f77985ed1d041b3ef2135e01a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:137-141 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:181-185 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:137\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fc37cee02459235dcb26ea308d1c11cd9283a8bbfc3089a61c7cf72f792cd79"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:166-170 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:206-210 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala: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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee1271e79b3017f17824034e44754b1cb49ce5c043d49edcc1725325e9640578"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:920-924 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:938-942 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:920\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec5b85a08f7a4723393fa30058a0dd639b9b917c19d6a4964a7b9fa84c9b995"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1030-1034 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1040-1044 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1030\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3e4b20b6f3c5e680ff693c8d26e823408ef0becd32da0ab97030e3459c3b34d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1145-1149 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1147-1151 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1145\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90b963987ad8f570d6b53067653e652796ec5dd1695160e897fc50234cb3892"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1267-1271 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1263-1267 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1267\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"decc698ca64fa170eb33473d0781b8a05cc1e1d992e347b0921bf63200b37d50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:2014-2018 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1937-1941 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:2014\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca42fc0c2afc04254b6123e8f775d9afeeedc03adaf842d40925ffde80fcbbf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaIterator.scala:64-68 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterator.scala:81-85 \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 \u0060hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaIterator.scala:64\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaIterator.scala"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff20f32429b43fb0453a16851db5b4484f6bbd00bf00777ff2cc2ba8fa8b7c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaBitSet.scala:60-64 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaStream.scala:119-123 \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 \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaBitSet.scala:60\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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaBitSet.scala"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e4e159d1f2bb5dc5b479b10a4e4e2bc2bec3ee159208d5f27c160a819ffb1ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala:234-238 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala:276-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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala:281\u0060 calls \u0060orElse\u0060, \u0060leaf\u0060, \u0060quote\u0060 and \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala:239\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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaCollection.scala"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"0852befc6943ab08c5580142dc21f378eea7e480f5a9b3fc2a9db2d9bdb3e980"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u201314 lines \u00D7 16): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:572-574 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:575-577 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:590-592 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:593-595 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:599-612 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:620-622 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:623-625 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:657-660 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:794-796 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:797-799 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:812-814 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:815-817 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:821-834 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:842-844 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:845-847 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:879-882 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:572\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:569\u0060 calls \u0060Right\u0060 and \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:589\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"359b3a8b1f81a85aef3bf0250b0fb5e56839e401436c854cb55c295ce18d6fb5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43 lines \u00D7 4): hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaBoolean.scala:15-57 | hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaDouble.scala:15-57 | hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaFloat.scala:15-57 | hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaShort.scala:15-57 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaBoolean.scala"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b647511d1fdf9369972fa915294a0161ee71be3a589adb671219c26adbdbcb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaByte.scala:15-56 | hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaLong.scala:15-56 \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":"hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaByte.scala"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bdcc24d5bd80fa66b7feaaef67bf7c5f4740bdaba94b25c1c5e8eaa0b158cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth-better-printers/src/main/scala-2/hearth/treeprinter/RuntimeAwareTypePrinterScala2.scala:58-62 | hearth-better-printers/src/main/scala-3/hearth/treeprinter/RuntimeAwareTypePrinterScala3.scala:117-121 \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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/RuntimeAwareTypePrinterScala2.scala"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b5a2e0fafed5cdf41cf632fa161f73a166a036757bddc221811b3137bc44a25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:387-393 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:507-513 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"49285cff986d3c207bf484a86243dc115b5dd3fc849189b6ff3ffd83a8f2acf7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2768-2774 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3394-3400 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":2768}}}],"partialFingerprints":{"codehealthFindingId/v1":"d259b2ee211f814c94db6f25815de4237820ee0a68f7bba9957a4e079b98b4c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala:63-67 | hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala:117-121 \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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf248bdfded583104b0cdaa2cd5f1d212217dd85f8e32b927c64bdf55f26553"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyList.scala:101-105 | hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyList.scala:108-112 \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 \u0060hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyList.scala:101\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":"hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyList.scala"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"4712c802a2ecd98278ec16fccb1066a3f3425e610d7f9ce5f5131e929e17abf4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyVector.scala:101-105 | hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyVector.scala:108-112 \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 \u0060hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyVector.scala:101\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":"hearth-micro-fp/src/main/scala/hearth/fp/data/NonEmptyVector.scala"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9b3869b5b372c6b0ca8c26386c6419e969381b03cfa03f57bda199792a8a207"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth-micro-fp/src/main/scala/hearth/fp/instances.scala:80-85 | hearth-micro-fp/src/main/scala/hearth/fp/instances.scala:88-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 \u0060hearth-micro-fp/src/main/scala/hearth/fp/instances.scala:80\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":"hearth-micro-fp/src/main/scala/hearth/fp/instances.scala"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"4116517e1227bf7cd1059106a3ecbdf925f9c87f8dabdc3ebca6c077e565d5af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth-micro-fp/src/main/scala/hearth/fp/instances.scala:120-125 | hearth-micro-fp/src/main/scala/hearth/fp/instances.scala:128-133 \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 \u0060hearth-micro-fp/src/main/scala/hearth/fp/instances.scala:120\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-micro-fp/src/main/scala/hearth/fp/instances.scala"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e1db9269613bd7debc94e38c017c2179243d81fc7bb49036a48d3a87643fea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:550-558 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:772-780 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"32f1603002473ea4cc1674bc7c3cf0ab261c6b53e6849b5866a74d6db6777ad4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:643-651 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:865-873 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd926028e40ee45894ea3f50618cc97cf2c872c9d03899a012d5781bd60b0a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:629-635 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:851-857 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"135645487b80338c08c54a8b35c6ab2f7f090c97460689f8870c7d003f7f6054"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:637-641 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:859-863 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7ae6ffd6ba4f100a07b9cb3a573bba18af78596e02602f69f4b983edd03948b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:764-774 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:1007-1017 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5dfe36087bb8236ccca9c14bdef4f78f0d52f012e5b76c200d42282ba8b2f84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1580-1584 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:1933-1937 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 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 \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1580\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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":1580}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c3057263ff5723784f193fba4367a32cd4eea373c9254def75c04333788b9f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 20): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1663-1668 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1687-1692 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1714-1719 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1744-1749 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1777-1782 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1813-1818 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1852-1857 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1894-1899 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1939-1944 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1987-1992 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2038-2043 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2092-2097 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2149-2154 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2209-2214 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2272-2277 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2338-2343 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2407-2412 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2479-2484 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2554-2559 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2632-2637 \u2014 all 20 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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":1663}}}],"partialFingerprints":{"codehealthFindingId/v1":"b209ac29834ec306525d3ea0cf2c2349b85de14fe8098ca1d7952b97f2c6232e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 17): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1750-1755 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1783-1788 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1819-1824 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1858-1863 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1900-1905 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1945-1950 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1993-1998 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2044-2049 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2098-2103 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2155-2160 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2215-2220 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2278-2283 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2344-2349 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2413-2418 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2485-2490 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2560-2565 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2638-2643 \u2014 all 17 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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":1750}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b59e8855b56de6bc2f6d839f82154dff34be118665071c95416f8b35fca7095"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 14): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1864-1869 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1906-1911 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1951-1956 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:1999-2004 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2050-2055 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2104-2109 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2161-2166 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2221-2226 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2284-2289 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2350-2355 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2419-2424 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2491-2496 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2566-2571 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2644-2649 \u2014 all 14 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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d414dcb8e98347595fe9999ea28ccedd925df1a6c7c96758cb1d4dd88144a13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 11): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2005-2010 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2056-2061 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2110-2115 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2167-2172 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2227-2232 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2290-2295 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2356-2361 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2425-2430 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2497-2502 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2572-2577 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2650-2655 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":2005}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6496e4afbb2437e625d81cbe4454b3290030b2f6e60919ac37c4809c71bae6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2173-2178 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2233-2238 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2296-2301 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2362-2367 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2431-2436 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2503-2508 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2578-2583 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2656-2661 \u2014 all 8 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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":2173}}}],"partialFingerprints":{"codehealthFindingId/v1":"413767978e53d65b5eae395379b57d1adc160084bbf91406fcc39d436167cb58"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2368-2373 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2437-2442 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2509-2514 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2584-2589 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2662-2667 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":2368}}}],"partialFingerprints":{"codehealthFindingId/v1":"8620a5266e42312cd42486f0bbfe09e1e825821c7acc88bb99380414525d80d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2590-2595 | hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2668-2673 \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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":2590}}}],"partialFingerprints":{"codehealthFindingId/v1":"4147b99b4503a8e60d15a69eafe9caa4cc6dfac372e7dcd36b2c8daf3a7e6c04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:2724-2735 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3350-3361 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":2724}}}],"partialFingerprints":{"codehealthFindingId/v1":"16abe9ee5324bc9871cdb048742b6747504efe1d7f3e0f2f70b805c826a03288"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala:3645-3656 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5120-5131 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala\u0060 as WHOLE FILES: this scan already matched 30 separate duplicated blocks between them, totalling at least 316 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":3645}}}],"partialFingerprints":{"codehealthFindingId/v1":"287ef03e1cf9c0177a41fc2bd78c8c90b17bf66a7aabd5d498e6a52daa6cd6f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:145-149 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:188-192 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:145\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe7755f8d8f5c8e161d4cae935180130c399c437a4a519c68083c30f27d0618"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:174-178 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:213-217 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:174\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d40b27bb9e2b32c2fdae5cdb1cc31eff10c8d87fb623389c5f5ec0119bac082"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 19): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:192-196 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:230-234 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:271-275 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:322-326 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:377-381 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:438-442 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:504-508 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:574-578 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:664-668 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:759-763 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:859-863 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:966-970 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1078-1082 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1195-1199 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1320-1324 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1450-1454 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1608-1612 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1772-1776 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1946-1950 \u2014 all 19 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:192\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"285de5747604dddb0db1bf168ca2fa3a9580a4c89f2d3452c0386077327c5b0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:212-216 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:247-251 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:212\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"82dd0cc52453afdb215e4d27aeadd83453b9a3cb2248cec2c854b861d91cd3ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:252-256 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:285-289 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:252\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d7aedba2fb9d148522a107fcc72582cde72012464ec70b64996e9e94b515eee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:302-306 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:334-338 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:302\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8aeadbef7eb0f5ea96655c139a4fb50ccef6e04d80364cfb250b3fec679049a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:356-360 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:388-392 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:356\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"601a1aed8ac8f521d853b5d1447da67c698929ebbe68db4d260ba7eac1d7d9d3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 30): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:361-365 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:419-423 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:484-488 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:553-557 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:629-633 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:722-726 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:820-824 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:925-929 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1035-1039 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1150-1154 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1272-1276 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1400-1404 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1535-1539 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1696-1700 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1867-1871 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:393-397 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:452-456 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:519-523 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:591-595 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:671-675 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:756-760 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:846-850 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:943-947 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1045-1049 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1152-1156 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1268-1272 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1390-1394 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1519-1523 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1653-1657 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1796-1800 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:424\u0060 calls \u0060toType\u0060 and \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:366\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c29d888c902b49ccaf9947dfa60d2fb9c179d6b188c46dabc9bbbfb23b14b3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 20): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:727-731 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:825-829 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:930-934 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1040-1044 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1155-1159 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1277-1281 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1405-1409 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1540-1544 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1701-1705 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1872-1876 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:761-765 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:851-855 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:948-952 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1050-1054 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1157-1161 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1273-1277 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1395-1399 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1524-1528 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1658-1662 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1801-1805 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:830\u0060 calls \u0060toType\u0060 and \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:732\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e3dbc7febae6696d069e6f136fbad924b54b8c98b53dd7b27086c635ea4ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 10): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1282-1286 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1410-1414 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1545-1549 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1706-1710 | hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1877-1881 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1278-1282 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1400-1404 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1529-1533 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1663-1667 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1806-1810 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1415\u0060 calls \u0060toType\u0060 and \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1287\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"da5f6b2af807a2ab30b0fdc8183aaf763696e41a0aba8565d3329ef2b780db73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1393-1399 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1383-1389 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1393\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1393}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee86558a9885c10e3503f1d9c3475c4ec6d3436e0ada914c6cad750dcb2b54a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1528-1534 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1512-1518 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1528\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1528}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed55a5af8380ca75d65fbccbc61479ccd7375b3f54a3db71c86a6a17e1938aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1689-1695 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1646-1652 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1689\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1689}}}],"partialFingerprints":{"codehealthFindingId/v1":"843343b0248879aa8397a85f6c020a7960d11b8172cdbb0ff6806233595d0bd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1858-1862 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1787-1791 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:1858\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":1858}}}],"partialFingerprints":{"codehealthFindingId/v1":"8560c24b0ab58646594f2d724682cedcf3244dccef30160cc855e065d410fddd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:2054-2060 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1982-1988 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:2054\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":2054}}}],"partialFingerprints":{"codehealthFindingId/v1":"42e1f1b544b007c0cdb8a5476bfc62f1d4fd87923004a4216ec8b0667dc4f52a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:2061-2066 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1989-1994 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala\u0060 and \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala\u0060 as WHOLE FILES: this scan already matched 57 separate duplicated blocks between them, totalling at least 523 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 \u0060hearth/src/main/scala-2/hearth/typed/TypesScala2.scala:2061\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":"hearth/src/main/scala-2/hearth/typed/TypesScala2.scala"},"region":{"startLine":2061}}}],"partialFingerprints":{"codehealthFindingId/v1":"19f90a6d5347817a0f087294d9b142ff66cdd157f6d1398fbdd7db9c1205268a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala:420-424 | hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala:504-508 \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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"70245d8a267fcf7978d0faa8ab9324376b6f978ce6b86039ce3a5af7b7ff5b95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala:24-32 | hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForArray.scala:23-31 \u2014 before extracting anything, compare \u0060hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala\u0060 and \u0060hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForArray.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 42 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 \u0060hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala:24\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":"hearth/src/main/scala-3/hearth/std/extensions/IsCollectionProviderForIArray.scala"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce4a912bbc10a0dc9069d5fcb0572dfd5a2de74499059efa90d3dd0d465c30fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:1919-1923 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:1950-1954 \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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":1919}}}],"partialFingerprints":{"codehealthFindingId/v1":"f943c876726afd23041271328309e102b74f893cccf836e1b693dc3378b9968b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 20): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2049-2053 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2077-2081 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2109-2113 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2145-2149 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2185-2189 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2229-2233 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2277-2281 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2329-2333 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2385-2389 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2445-2449 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2509-2513 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2577-2581 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2649-2653 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2725-2729 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2805-2809 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2889-2893 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2977-2981 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3069-3073 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3165-3169 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3265-3269 \u2014 all 20 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":2049}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab0e016d9f2d01e50a3c021821ce0fd0cbf5eaae01ae62b0dd64af1f74e1e5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 17): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2151-2155 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2191-2195 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2235-2239 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2283-2287 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2335-2339 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2391-2395 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2451-2455 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2515-2519 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2583-2587 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2655-2659 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2731-2735 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2811-2815 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2895-2899 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2983-2987 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3075-3079 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3171-3175 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3271-3275 \u2014 all 17 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":2151}}}],"partialFingerprints":{"codehealthFindingId/v1":"094b0adc8e59678baa0d47f4a3de5b9d2a6d31eef45ae6a304d7666e33482ea1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 14): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2289-2293 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2341-2345 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2397-2401 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2457-2461 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2521-2525 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2589-2593 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2661-2665 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2737-2741 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2817-2821 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2901-2905 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2989-2993 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3081-3085 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3177-3181 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3277-3281 \u2014 all 14 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":2289}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c513650e0168d22841fc790b1f11b8a2fd9632ee87cb30bef6e3bfc50339f43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 11): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2463-2467 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2527-2531 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2595-2599 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2667-2671 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2743-2747 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2823-2827 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2907-2911 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2995-2999 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3087-3091 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3183-3187 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3283-3287 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":2463}}}],"partialFingerprints":{"codehealthFindingId/v1":"3727e5943d60dd625a022ca6f1b8b0ce35a563836cc4dd9306ec478253e8d344"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 8): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2673-2677 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2749-2753 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2829-2833 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2913-2917 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3001-3005 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3093-3097 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3189-3193 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3289-3293 \u2014 all 8 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":2673}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bd51cd31d2b76f63e86893dc3d20aaf0d4db6e5c097a01c7a39f0d70bfd1501"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:2919-2923 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3007-3011 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3099-3103 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3195-3199 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3295-3299 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":2919}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d749a9b5ad00b8b96d1c553b442b06b4adf14e9f89813f932867c7dc33563a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4452-4456 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4551-4555 \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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":4452}}}],"partialFingerprints":{"codehealthFindingId/v1":"1073a94ac365357846ec19d6447ab22f5b793962b1e73f0d055da4cc41b24269"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3201-3205 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3301-3305 \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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":3201}}}],"partialFingerprints":{"codehealthFindingId/v1":"4827c4322e5d0e5853d2c0e5129bfe54c58ce983a8b8de36e9732772a37d7e1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 15): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3594-3598 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3628-3632 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3667-3671 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3711-3715 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3760-3764 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3814-3818 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3873-3877 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3937-3941 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4006-4010 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4080-4084 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4159-4163 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4243-4247 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4332-4336 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4426-4430 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4525-4529 \u2014 all 15 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":3594}}}],"partialFingerprints":{"codehealthFindingId/v1":"62e9d13f38324ccb6870f7460dedf75169bc74604d175f07683391a0a9e0011e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 12): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3717-3721 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3766-3770 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3820-3824 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3879-3883 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3943-3947 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4012-4016 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4086-4090 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4165-4169 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4249-4253 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4338-4342 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4432-4436 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4531-4535 \u2014 all 12 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":3717}}}],"partialFingerprints":{"codehealthFindingId/v1":"32dc28cfc62c5b7335408b609365a5f8f7e32843d35ec622df66a13966d5bfb2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 9): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3885-3889 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:3949-3953 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4018-4022 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4092-4096 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4171-4175 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4255-4259 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4344-4348 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4438-4442 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4537-4541 \u2014 all 9 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":3885}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e92947d7ea399f2504ca3dadca75597fad2ff4c3ad86c1aaced67b693452dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4098-4102 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4177-4181 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4261-4265 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4350-4354 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4444-4448 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4543-4547 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":4098}}}],"partialFingerprints":{"codehealthFindingId/v1":"876716a36d7964f0534fe5ec4b888656fa0be30fb56bf07e114b86a702ed6101"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 5): hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4611-4628 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4703-4720 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4799-4816 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:4899-4916 | hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala:5003-5020 \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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":4611}}}],"partialFingerprints":{"codehealthFindingId/v1":"891b439b06b6d6dce270f0039f14d59119cb52224ffdb6f07eb05741b64dc821"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 19): hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:228-232 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:264-268 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:304-308 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:355-359 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:411-415 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:474-478 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:543-547 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:617-621 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:699-703 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:786-790 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:878-882 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:977-981 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1081-1085 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1192-1196 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1311-1315 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1435-1439 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1566-1570 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1702-1706 | hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:1870-1874 \u2014 all 19 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 \u0060hearth/src/main/scala-3/hearth/typed/TypesScala3.scala:228\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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fe954cfa2421236023ba605573a596877c27bef02f0978820d84e12cfb2269"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaOption.scala:33-39 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaOptional.scala:33-39 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaOption.scala:33\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":"hearth/src/main/scala/hearth/std/extensions/IsCollectionProviderForScalaOption.scala"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e559665c133f05b4aabdfbd2249895d9a630897cedbaf1d735b2e4f40d7ad48"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaBitSet.scala:49-54 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaStream.scala:108-113 \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 \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaBitSet.scala:49\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaBitSet.scala"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdcdf2b216d81ea8e815fc0128d9dbab191b14a09da9ea949ed342aff587b1be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterable.scala:54-59 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterator.scala:45-50 \u2014 before extracting anything, compare \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterable.scala\u0060 and \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterator.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 34 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterable.scala:54\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaIterable.scala"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"e84def94639f8473da607afad267e121eed21448a1acbdfa0f2ba1ccaa982ade"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:122-126 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:186-190 \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 \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:122\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"f869e9e69a90715eca5bb033f2d2fffc878cf13aea77349f5e766daa09c0674b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:252-257 | hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:283-288 \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 \u0060hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala:252\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":"hearth/src/main/scalajvm/hearth/std/extensions/IsCollectionProviderForJavaMap.scala"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"19702b33d53d5f818450b9be54d6fb7436da9d3cf94dc57aadce427e45dcdb35"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (21 members, 50\u002B identical tokens): hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:167-202 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:225-264 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:288-331 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:356-403 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:429-480 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:507-562 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:590-649 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:678-741 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:771-838 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:869-940 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:972-1047 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1080-1159 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1193-1276 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1311-1398 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1434-1525 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1562-1657 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1695-1794 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1833-1936 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1976-2083 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:2124-2235 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:2277-2392 \u2014 These 21 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 21 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 21 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbe84e81ae4c582231b8d75942162408f774fa0717afe2ca9b94edf4735eac1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (18 members, 50\u002B identical tokens): hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:336-354 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:408-427 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:485-505 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:567-588 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:654-676 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:746-769 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:843-867 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:945-970 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1052-1078 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1164-1191 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1281-1309 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1403-1432 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1530-1560 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1662-1693 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1799-1831 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1941-1974 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:2088-2122 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:2240-2275 \u2014 These 18 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 18 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 18 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"37010ad9e265d52b8fbad32ac45f5a2233266521f753b6982c5f7ee257901587"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (8 members, 50\u002B identical tokens): hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:101-124 | hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:126-149 | hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:227-250 | hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:252-275 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1627-1641 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1654-1668 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1681-1695 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1708-1722 \u2014 These 8 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 8 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 8 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"c433878d7c25102673051c45a9ef0ddc65aa59434422040a25347f6c527b0ed9"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:129-154 | hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:350-374 | hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:376-407 | hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:472-506 \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":"hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"485316fbce07fd3ccd3be2a9a3669ea0def520ddc7d32dec59272969f8af4f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:196-205 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:275-284 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:396-404 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:613-621 \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":"hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e32a3dadec238f076c2a1c6f8459bb032682eba2e24c15e97957abe529293f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2): hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:606-649 | hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:705-748 \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 \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:606\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:704\u0060 calls \u0060splice\u0060 and \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:605\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":"hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"14101bd25acdacf785e2d88d9fcb4f017a2da36e8dcfc8bfb8893893d6d07f74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201343 lines \u00D7 9): hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala:65-107 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:404-420 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:424-441 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:445-463 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:467-486 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:491-512 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:517-539 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:550-589 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:601-642 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 151 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 \u0060hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala: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":"hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0275428d5405b552da189b91a2bad22dc5ebb2e7cbf1f5ce3b43591707476cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42 lines \u00D7 2): hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala:175-216 | hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala:164-205 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"27ba1505dda5e4f107b96cc62f55539212314bd2cb584e9e9275e934a3dc0300"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala:133-172 | hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala:122-161 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 230 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 \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala:133\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":"hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdc5df2a5ea6cb1a8f5dbd555316adacc9f60a7706a09435ffd4467c211227ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2): hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala:232-270 | hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala:221-259 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"214a295b44e251a1efe19c5ca3aea59480346977920fae06db15b75f197742f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala:26-59 | hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala:26-59 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"646ea78c51c9569c015f8e668cdc15f8b5d169755b5714ab0eab90771902c93b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201333 lines \u00D7 8): hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:386-402 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:406-422 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:427-443 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:449-465 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:472-489 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:498-515 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:525-557 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:575-607 \u2014 all 8 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 \u0060hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:386\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d0688eaa4f790cc37360abb3b398ffd1cab5c54b4510b835cc9846065741d2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201331 lines \u00D7 9): hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:368-383 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:387-402 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:407-422 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:428-443 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:450-465 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:473-489 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:499-515 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:526-556 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:576-606 \u2014 all 9 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 \u0060hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:368\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":"hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a620dc0e999a41d7835ccf6a24316eb129ad51cba67a1da1f1f2c920dc46461"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201330 lines \u00D7 10): hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala:66-95 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:385-399 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:404-417 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:424-437 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:445-458 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:467-480 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:491-505 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:517-531 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:551-580 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:602-631 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 151 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 \u0060hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala:66\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd10cd45280654e15a3cb893c30064919a306deb62c5a83bf0cabf05c0167f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15\u201329 lines \u00D7 10): hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:351-365 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:369-383 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:388-402 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:408-422 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:429-443 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:451-465 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:474-489 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:500-515 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:527-555 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:577-605 \u2014 all 10 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 \u0060hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:351\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":"hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec8d0e3592a75834b47a1f33e432d3dd13317153d009aba4148f223a7f4add7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201328 lines \u00D7 11): hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala:67-94 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:367-380 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:385-397 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:404-416 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:424-436 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:445-457 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:467-479 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:491-504 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:517-530 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:552-579 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:603-630 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 151 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 \u0060hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala:67\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":"hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c144ac6dbcc5105ea6902dda1bc12b98b7593f7990195c8cea0db5a2375f7b2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201327 lines \u00D7 11): hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:335-348 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:352-365 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:370-383 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:389-402 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:409-422 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:430-443 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:452-465 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:475-489 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:501-515 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:528-554 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:578-604 \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 \u0060hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:335\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":"hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3558cff90973bd5f5d25f632007c504f989d806dfef7abad0d7d38a93cd8a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201326 lines \u00D7 12): hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala:68-93 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:350-362 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:367-378 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:385-396 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:404-415 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:424-435 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:445-456 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:467-478 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:491-503 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:517-529 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:553-578 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:604-629 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 151 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 \u0060hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala: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. 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":"hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b2148c8b2d2187f8874c8ee647733c7feaba501393637d97fda5ef6da7ca21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201324 lines \u00D7 13): hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala:69-92 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:334-345 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:350-360 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:367-377 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:385-395 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:404-414 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:424-434 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:445-455 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:467-477 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:491-502 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:517-528 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:554-577 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:605-628 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 151 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 \u0060hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala:69\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-3/hearth/typed/TypesFixtures.scala"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9c2241e2b6a865648f90df2c8a360bdabe2ccd25463ba4640f5fedc903ff7a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 3): hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:501-524 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:563-586 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:627-650 \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 \u0060hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:501\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":"hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa45019f5afb6330ca694b0c20b66ee6a583b1e321a8d0c70d2dcfe9c217aea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:482-504 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:553-575 \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 \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:482\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note first that the copies are not typed on the same thing: \u0060Underlying\u0060 names \u0060p.tpe.Underlying\u0060 in one and \u0060param.tpe.Underlying\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":"hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala"},"region":{"startLine":482}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a54a6b6089996dada71a7f23da95e3933dac98c20557f623fca151b7e01a6c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala:273-293 | hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala:262-282 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b0aba68984b438ba05ce9200bada69d00c689d2df64dd895f5dad90cf3dbc90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201320 lines \u00D7 15): hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:124-133 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:148-157 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:173-182 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:199-208 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:227-236 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:256-265 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:287-296 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:319-328 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:352-361 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:386-395 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:422-433 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:461-472 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:513-532 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:575-594 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:639-658 \u2014 all 15 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 \u0060hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:124\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, \u0060hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:158\u0060 calls \u0060quote\u0060 and \u0060hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:134\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":"hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac4d8847050fa2fd2db3f76c0ff39fea8640296bc8a273aaa992d674a2ee22c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:738-757 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:781-800 \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 \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:738\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 first that the copies are not typed on the same thing: \u0060Underlying\u0060 names \u0060p.tpe.Underlying\u0060 in one and \u0060param.tpe.Underlying\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:758\u0060 calls \u0060reportErrorAndAbort\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:801\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":"hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3bffce83e57d74c133e7cc444c1a4a5d35a435b2a92aa9769a7db6f64ca2a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala:88-104 | hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala:88-104 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea8a846dd033c81ee79d85e283e2e8e8dcecbe5763e5a8196a09ab59f300563"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:471-486 | hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:527-542 \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 \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:471\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":"hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9016ec8731b118291a83b6abdfa920d4ea3122ddfe6fd2757d32a85e26c3cb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:31-42 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1032-1046 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 137 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. 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":"hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e967acb22ad688c361433f308edc14c3d81f917a4f588253adf56c467968f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:56-67 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1059-1073 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 137 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. 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":"hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af8aa947794c508408d9812b7724f0ba44cd4951d9a92afd3571720740e1b64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:282-293 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1736-1750 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 137 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. 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":"hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"82255f28be3dfd6f1abed3036d67624cc46669dd8817082a7ae00010a43a4da5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 4): hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:111-124 | hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:136-149 | hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:237-250 | hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:262-275 \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 \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"696c0985e50afd86341615bd2a23ab2d4da6bd4251a59dcd7e1d6651e81f21de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:106-116 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1627-1640 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 137 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. 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":"hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8b48b09093aabd55c58cf142cb81f77cbdfca636b678d9d3e540d22c58d440e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:131-141 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1654-1667 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 137 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. 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":"hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"42f8e3e7f78a5d695ed8a65306008676df62b6445430eb2b1a7934e8cfe4ab9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:232-242 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1681-1694 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 137 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. 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":"hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18d93c915df8516cd6d364675bc24d6cdb16eedea7ea0eefe59fe88501b78c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201314 lines \u00D7 2): hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:257-267 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1708-1721 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 137 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. 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":"hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"3849a2c9df328af75e35d423198e8592f7ef11c4a932238d75ecb26920989fac"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:592-605 | hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:691-703 \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 \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:592\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, \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:704\u0060 calls \u0060splice\u0060 and \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:606\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":"hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"63209347c6d1d1f16f5c2f102cbb6a5acf9f4b2f249869e4445ed2a08045e694"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:237-249 | hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:276-288 | hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:337-349 \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 \u0060hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:237\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":"hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"7479b66aa341510c8d17b22982fe258c67b4e910be80f9689e0fd6aab30e5205"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:467-479 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:586-598 \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":"hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala"},"region":{"startLine":467}}}],"partialFingerprints":{"codehealthFindingId/v1":"efbb2886e1507b352675516db6753ac2e825ed0ed6673e6e2609a8acd4051d3d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:153-164 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:65-76 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 137 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 \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:153\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"04dff3040d843eba6d585ad23805ecfe2d29baee85e9e8ee12f689ea6facf6bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/ExprCodecFixturesImpl.scala:95-105 | hearth-tests/src/main/scala/hearth/typed/ExprCodecFixturesImpl.scala:180-191 \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 \u0060hearth-tests/src/main/scala/hearth/typed/ExprCodecFixturesImpl.scala:95\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":"hearth-tests/src/main/scala/hearth/typed/ExprCodecFixturesImpl.scala"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef64d32600525e2035dd12e656273111e6435468413225262a9173aab5c277b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 14): hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:127-137 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:152-162 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:178-188 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:205-215 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:234-244 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:264-274 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:296-306 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:329-339 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:363-373 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:398-408 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:437-447 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:477-487 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:538-548 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:601-611 \u2014 all 14 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 \u0060hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:151\u0060 calls \u0060quote\u0060 and \u0060hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:126\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":"hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"28457caec22483ce29e1c8f914063730ee78aac53902e48cebeff0dac0225156"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala:66-76 | hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala:66-76 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e09565a02e7a3885ae07fe4011badb16ff7370eaa8eb82866de2c9c2319226"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala:219-229 | hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala:208-218 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3fe170aedd16563065c64fce055cdb1e1e5d2e13feb9afc3a995c09f02859c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth-tests/src/main/scala/hearth/crossquotes/CrossExprsFixturesImpl.scala:142-152 | hearth-tests/src/main/scala/hearth/crossquotes/CrossExprsFixturesImpl.scala:159-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. 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":"hearth-tests/src/main/scala/hearth/crossquotes/CrossExprsFixturesImpl.scala"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82d36064026649eaa0a8f1347afba91ae2b1c86708177ef83ad02ebfe1bbc6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:153-163 | hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:171-181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:153\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"095404c5ed694c63a0eeb3e680928d78f593d660a88a8377fc87e5a4cd287b50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:424-434 | hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:515-524 \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 \u0060hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:424\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":"hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d42177ce115d7f9869ea16cb709c7a98f80e4d37fe0694e64c95bcb7fb7685d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:468-477 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:587-596 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:634-643 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:822-831 \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. Note first that the copies are not typed on the same thing: \u0060Underlying\u0060 names \u0060p.tpe.Underlying\u0060 in one and \u0060param.tpe.Underlying\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":"hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b7636e0d8b0b9194289fc2021dd93c57e001b55c145e406e354ca5f01c30dbd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:560-569 | hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:670-679 | hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:769-777 \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 \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala:560\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":"hearth-tests/src/main/scala-next-lts/hearth/demo/allfeatures/internal/compiletime/FastShowPrettyMacrosImpl.scala"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"211138a5a5fa8c29527641e7c013dc8c03780b3bd7ce391cbaf8155f4f050a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:398-407 | hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:497-506 \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 \u0060hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:398\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":"hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc7ed0c82ea2bd3a96af9b7c80a45d92a2fe2ce15ac80dbca14b2be8fe23937"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 18): hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:338-346 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:410-417 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:487-494 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:569-576 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:656-663 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:748-755 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:845-852 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:947-954 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1054-1061 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1166-1173 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1283-1290 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1405-1412 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1532-1539 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1664-1671 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1801-1808 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1943-1950 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:2090-2097 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:2242-2249 \u2014 all 18 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 \u0060hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:338\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:417\u0060 calls \u0060Data\u0060 and \u0060hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:346\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":"hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala"},"region":{"startLine":338}}}],"partialFingerprints":{"codehealthFindingId/v1":"8071f97a2be54a29a7b6e315c8325a38b3501603c7ae2c0feb8fcb75a2b23e0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:685-693 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:712-720 \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 \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:685\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 first that the copies are not typed on the same thing: \u0060Underlying\u0060 names \u0060p.tpe.Underlying\u0060 in one and \u0060param.tpe.Underlying\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:695\u0060 calls \u0060reportErrorAndAbort\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:722\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":"hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"9611904d491e162b8a14baf2af53839d525a143b351a997f65abf62ee5db8c2a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:879-887 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:897-905 \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 \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:879\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 first that the copies are not typed on the same thing: \u0060Underlying\u0060 names \u0060p.tpe.Underlying\u0060 in one and \u0060param.tpe.Underlying\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":"hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala"},"region":{"startLine":879}}}],"partialFingerprints":{"codehealthFindingId/v1":"348c1decb6e8a61cd9b2a06e1d65e15a76c7b4a677355bf2d7fecb71e2a43c0c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:280-287 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:466-473 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:585-592 \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 \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:280\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, \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:474\u0060 calls \u0060reportErrorAndAbort\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:288\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":"hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba58c70c996944738f22d03c4445929e6bcccd89f5f8ab6a3767acd2445a831d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:499-506 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:570-577 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:1222-1229 \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 \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:499\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 first that the copies are not typed on the same thing: \u0060Underlying\u0060 names \u0060p.tpe.Underlying\u0060 in one and \u0060param.tpe.Underlying\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:578\u0060 calls \u0060Expr\u0060, \u0060Data\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:1230\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":"hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ea782ac90d24980b8a914d52ef0953e327bcd60328b0911662bbc7394868c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20138 lines \u00D7 2): hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:87-91 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1092-1099 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 137 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 \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:87\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0370cca62f748475b03870d6bbf6a4b723acc9e7ec0f9114aa897029db0ebff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala:121-128 | hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala:110-117 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 230 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 \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala:121\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"8211878b8555ac01a35e3274cce2c046307e346d47c552cb9c442abba99db89f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20138 lines \u00D7 3): hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:226-233 | hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:265-272 | hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:323-326 \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 \u0060hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:226\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":"hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"04c0a9dd21bf1508666882afa7eea30d5557b93676f822ecabd8f5d8f587404b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:300-307 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:328-335 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:300\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 first that the copies are not typed on the same thing: \u0060Underlying\u0060 names \u0060p.tpe.Underlying\u0060 in one and \u0060param.tpe.Underlying\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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:309\u0060 calls \u0060Data\u0060, \u0060removeAnsiColors\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:337\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":"hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"988bee3a8d6a78b6dd8c16cb86bab5ae6ac34cb0d1492520f44a7c7c8762af67"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:416-423 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:862-869 \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 \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:416\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 first that the copies are not typed on the same thing: \u0060Underlying\u0060 names \u0060p.tpe.Underlying\u0060 in one and \u0060param.tpe.Underlying\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":"hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala"},"region":{"startLine":416}}}],"partialFingerprints":{"codehealthFindingId/v1":"3661d4518e8e780749af71ee055965541958003d3cbde81a819be949d90360fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 12): hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:853-859 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:955-960 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1062-1067 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1174-1179 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1291-1296 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1413-1418 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1540-1545 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1672-1677 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1809-1814 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1951-1956 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:2098-2103 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:2250-2255 \u2014 all 12 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. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:960\u0060 calls \u0060Data\u0060 and \u0060hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:859\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":"hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9405058130913aaf65fbdc5d036514402e9fe7c1d18907cbbcc78db5c711a9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 8): hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:111-117 | hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:136-142 | hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:237-243 | hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:262-268 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1632-1641 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1659-1668 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1686-1695 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1713-1722 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 137 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 \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:111\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. 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":"hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4cdf43113da87b9609d89ee5eba03d094d66ad266d0145fb7feec7592880a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 6): hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1546-1552 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1678-1683 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1815-1820 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1957-1962 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:2104-2109 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:2256-2261 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1683\u0060 calls \u0060Data\u0060 and \u0060hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1552\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":"hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"7851b1f5602707b2be7092df7e422e85c5c329e7f3c846fbe9da007596a7a3d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:701-707 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:605-611 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:769-775 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:701\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:709\u0060 calls \u0060runToExprOrFail\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:776\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":"hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b8814cdb00d0a36a17caf06c0ba9f896c21b34bf70b54841c343070d4c85c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth-tests/src/main/scala/hearth/std/StdExtensionsFixturesImpl.scala:325-331 | hearth-tests/src/main/scala/hearth/std/StdExtensionsFixturesImpl.scala:341-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala/hearth/std/StdExtensionsFixturesImpl.scala"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2059ceafd9b7cc7bebbaeffa802637498c644945cf79aff8af6fa3480f5038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth-tests/src/main/scala/hearth/std/StdExtensionsFixturesImpl.scala:333-339 | hearth-tests/src/main/scala/hearth/std/StdExtensionsFixturesImpl.scala:349-355 \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":"hearth-tests/src/main/scala/hearth/std/StdExtensionsFixturesImpl.scala"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"77f735a13444a264e50b317a8ba6bc968cab250847b2f7ea94e2bf26fd8097f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:81-86 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:1086-1091 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 137 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 \u0060hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala:81\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":"hearth-tests/src/main/scala-3/hearth/typed/ExprsScala3Fixtures.scala"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d1ca18c0a144f24f3fd001b5add658e6916d3924c1249c2bb911240a36b309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (2\u20136 lines \u00D7 3): hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:766-771 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:804-810 | hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:815-816 \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 \u0060hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:766\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:771\u0060 calls \u0060buildCachedWith\u0060, \u0060quote\u0060 and \u0060hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:816\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":"hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"865af78ee6d8be65b73fad6a23320cfd69b2475ee60a309a3f5c412435be4e95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20136 lines \u00D7 3): hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala:682-685 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:581-586 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:745-750 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:581\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":"hearth-tests/src/main/scala/hearth/MioIntegrationsFixturesImpl.scala"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fc0ea10dbabe4ee063c527afd2b12efcfb38ce85a88369ea869ad663322da2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:764-769 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:805-810 \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 \u0060hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:764\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":"hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7e7b4ef7012642dbbbc142cf59b65c170a80851a50d22782919c99095e0f04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:52-57 | hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:129-134 \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 \u0060hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala: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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:126\u0060 calls \u0060Data\u0060 and \u0060hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala:49\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":"hearth-tests/src/main/scala/hearth/typed/TypesFixturesImpl.scala"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd62451bca612630cd45a7d305f6e1e5a3b922a2726f221b1ef4abd71154aa51"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 21): hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:194-198 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:256-260 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:323-327 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:395-399 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:472-476 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:554-558 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:641-645 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:733-737 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:830-834 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:932-936 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1039-1043 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1151-1155 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1268-1272 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1390-1394 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1517-1521 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1649-1653 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1786-1790 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:1928-1932 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:2075-2079 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:2227-2231 | hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:2384-2388 \u2014 all 21 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 \u0060hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala:194\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":"hearth-tests/src/main/scala/hearth/crossquotes/CrossTypesFixturesImpl.scala"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a56056fd3f2d984693c403274b34fd16f2581a207e984d9c8ead3f8f8daa8b11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:199-203 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:278-282 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:398-402 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:615-619 \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 \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:199\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":"hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f225a8208c17b2c847a6cfc77e5cae5a5b7141a05d2a2d87e2109350bb8355a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20135 lines \u00D7 4): hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:132-135 | hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:356-360 | hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:379-383 | hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:477-481 \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 \u0060hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:356\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":"hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf750f9d1a40e9b451163ae5bb34fc0649ca1be5796b110a3403154dd429db4c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:210-214 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:408-412 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:625-629 \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 \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:210\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":"hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"560d2ffee63f840b5bcb8ea9f676319bf44f355749d3297340490590791640fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:203-207 | hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:675-679 \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 \u0060hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6a0cc331e5d165fac990a9a75e32fea7d5561cabfb8d096b5a5a72784f71354"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:388-392 | hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:451-455 \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 \u0060hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala:388\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":"hearth-tests/src/main/scala/hearth/typed/AnonymousInstanceFixturesImpl.scala"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7fe5a531c1dd51257bc7ba3d494c9962a01d8a3ec566b7cd5bd541f848f9eff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:292-296 | hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:2401-2405 \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 \u0060hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala:292\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":"hearth-tests/src/main/scala/hearth/typed/ExprsFixturesImpl.scala"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f8f30cdebac87d9135c60c9ac195d4b0b1d96709c86db6cd5f1b501e2dc026"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): hearth-tests/src/main/scala-3/hearth/demo/simple/ShowCompanionCompat.scala:14-24 | hearth-tests/src/main/scala-next-lts-3/hearth/demo/sanely_automatic/ShowCompanionCompat.scala:14-24 \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 \u0060hearth-tests/src/main/scala-3/hearth/demo/simple/ShowCompanionCompat.scala:14\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":"hearth-tests/src/main/scala-3/hearth/demo/simple/ShowCompanionCompat.scala"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"046410346a678278612b3ee588eedd26e9be8a9b0171a74fbc36d94d596739c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala:15-21 | hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala:15-21 \u2014 before extracting anything, compare \u0060hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/demo/simple/ShowMacrosImpl.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 230 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-next-lts/hearth/demo/sanely_automatic/ShowMacrosImpl.scala"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07515277b36b853216677aa6aab4700401c5e1dd1df96a2508b4e32b8c18a6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:451-456 | hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala:511-516 \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":"hearth-tests/src/main/scala/hearth/typed/ClassesFixturesImpl.scala"},"region":{"startLine":451}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d61caefaca1f3120632e5f706eb08fe7ad872a055d4f911af1679355cf12582"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:918-922 | hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala:943-947 \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: \u0060Underlying\u0060 names \u0060p.tpe.Underlying\u0060 in one and \u0060param.tpe.Underlying\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":"hearth-tests/src/main/scala/hearth/typed/MethodsFixturesImpl.scala"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d2223a7ebfb5da7e35bc0a0e6f59922f6ce89a1346a5deb5e3411f7783b14e"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: hearthMicroFp: hearthMicroFp: abstractness 0.18, instability 0.00, distance 0.82 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"4d00869dc64426b6dd4e24b365b108383354381dc321821209895161baad8a0d"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: hearthBetterPrinters: hearthBetterPrinters: abstractness 0.19, instability 0.00, distance 0.81 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"2ae21d139a338ed6a883fd8986e30842faa13dece0da45725bf6f798201b3f56"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala: hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in UntypedType.unsafeNewSubtype at line 427. 2 of those changes were fix/bug commits, 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-05..2026-11-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-05 13:52:07 \u002B01:00\u0027 --until=\u00272026-11-03 13:52:07 \u002B01:00\u0027 --full-history --no-merges -- hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala\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":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":427}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf8d9471de9b8b0f196029038c5d0769c33a2e6fb42a382f3e86836ab403062"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala: hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in UntypedMethod.toTyped at line 804. 2 of those changes were fix/bug commits, and the other 2 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-05..2026-11-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-05 13:52:07 \u002B01:00\u0027 --until=\u00272026-11-03 13:52:07 \u002B01:00\u0027 --full-history --no-merges -- hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala\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":"hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"086c3058457d0963004aeac402805a3eeab8e29646d8049457edfb92cf58ce1b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala: hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in UntypedMethod.toTyped at line 517. 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-05..2026-11-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-05 13:52:07 \u002B01:00\u0027 --until=\u00272026-11-03 13:52:07 \u002B01:00\u0027 --full-history --no-merges -- hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala\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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"defbab017ae3f125849f957a930c908dd0f64a19cfb3100b6ace43743f55ffc4"}},{"ruleId":"D16","level":"warning","message":{"text":"bus factor 1 \u2014 one contributor carries this repository: 3 contributor(s) have commits in this repository (automation and bot accounts excluded), but the commits of a single one of them cover most of its history \u2014 89% of the 847 commit(s) sampled \u2014 so the number of people who actually carry it is 1. This is not the ambient state of a solo project: there ARE other contributors, and if the one who carries the repository becomes unavailable, the knowledge behind most of its history goes with them. Spread the next changes deliberately \u2014 have a second contributor review or pair on them \u2014 and write down the parts only one person can currently change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a99f114ab4dfee37ae0bf0665b44c7468d85b809d361949e2b6258101fa1e5a2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: annotations? Could we even use StaticAnnotation on Java classes? Can we detect Java annotations in macro at all? \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":"hearth-tests/src/test/scalajvm/hearth/typed/TypesJvmSpec.scala"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa7fb6f849dafab4b4ad61ef00d8701ac694a3b6e697b490aa780002eaf88f5a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u003C:\u003C and =:= should behave the same way, let\u0027s test it another day \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":"hearth-tests/src/test/scalajvm/hearth/typed/TypesJvmSpec.scala"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e89284bdbeda8f2ccf1dbfb690837a560cffddfaa1c391d2fdedf47c1cbcc93"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: \u003C:\u003C and =:= should behave the same way, let\u0027s test it another day \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":"hearth-tests/src/test/scala-3/hearth/typed/TypesScala3Spec.scala"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"84085f24c4c2324a1f05751a4786eabefaa64051c19cc89773941dd8ae791db7"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \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":"hearth-tests/src/test/scala/hearth/typed/TypesSpec.scala"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"af6d570499baaf2d389282bde09186950ea83d7b0a102d58e2cac18a9d100563"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \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":"hearth-tests/src/test/scala/hearth/typed/TypesSpec.scala"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"596176d57ef71a8c64a86c74710c83a5d1651aa7c5372eeac67a089d27f70efb"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: \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":"hearth-tests/src/test/scala/hearth/typed/TypesSpec.scala"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"944be745897d4d22340130de8de9a7230bc9f63b59ab2edfe2fa8835ed2a2d22"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: when it had a form: \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":"hearth-tests/src/main/scala/hearth/std/StdExtensionsFixturesImpl.scala"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33cec80937a5a962df82d8f255842729543815f02434615eba087869f3fb390"}},{"ruleId":"D17","level":"warning","message":{"text":"HackComment: // Hack to make Arrays compare sanely; at some point we may want some \u2014 a workaround marked in source: record what it is compensating for and what would allow its removal (the upstream fix, the API it is waiting on, the invariant it restores), so the next reader can judge whether it is still needed rather than rediscovering why it is there."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-munit/src/main/scala/hearth/Suite.scala"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd74b044a430521b3cfdfc11271834f6256ffd8bd5e99c322585258b18f84a1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: This: import _root_.scala.reflect.api.{Mirror, TypeCreator, Universe} \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":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"7406dec75b46faae3e5067f324221355ef77eabbdcfd6e34ab7b4038a19ce293"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check how it\u0027s colored in Scala 3 \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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f7b94a3bbe61b7b9e0f0c4e786101abda838ae1e5a2408678bcf971f244fc19"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check how it\u0027s colored in Scala 3 \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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9aaab9d44e46df977f570f38d5a4ef379b1cef39faaaf0938f2cec49e649ef3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check how it\u0027s colored in Scala 3 \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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"c30aa6c7b69bb33071ecb388afe9f7209937ddd5b00abc8407ec7280b6f03cdf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check coloring of that \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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e779b548e32abd137c28164e1417d433de90f154a2088ab367b2586a28ca0fd"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check coloring of that \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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3917d37da7e0046553ef86989d1db8152de7fd58b9f438122e70e2437979ae"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check coloring of that \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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"f751c77cb525efd7b584648571d1afd124f1a1a2ed064bd10d6e017ee332fbd1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check coloring of that \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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba53c929a1d8724c814b63c4ca6e0468eff459c546d83ab5d393c3d75d0544fc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check wth is this, and how should we print 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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":846}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b407817ea347077281954d374dc8e39ae837c702da0659b17ec33540b854334"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check if we can do better \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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":945}}}],"partialFingerprints":{"codehealthFindingId/v1":"633823a180896cd4a46590c4c79aeab247b16c32006be1de228798c43230b00b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: with \u0060import x.sth as importedName\u0060 we print \u0060importedName.value\u0060 instead of just \u0060importedName\u0060. \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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fb9a62790febc587709aca71b71cb57b572c150033f3ebba69a796efa293b1e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: why it does not propagate? \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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d7a44d3d44db1044d90e287966be853a317ebbd4d37659a4c6331c96140f5f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: is this even printed? \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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"04a0d6f510e4069ac6c19cc396143e3bfe2679489c01a05a8b838cc30fcf6a39"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check if we can improve 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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"06c91f27d5d030c67243018899ef0751d66b40b56febbeedc9fac9d55a4c3a23"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: figure out somehow if it\u0027s inherited and if it\u0027s a module \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":"hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a402b7b0875ad74519065b67529d9548c9c07a3c1a87dc3fc679f7000383fd9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: some better error message if child has an extra type param that doesn\u0027t come from the parent \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":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"80a71cdafd167a6f48ab4c31bef50df96758f17bb028b0d243ed04deec03fbba"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check if it\u0027s not a general issue with Java classes in Scala 3 \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":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b289d5d4ad36d850d331e2d8023693738464d910230b737267142c177cd04f7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: check if it\u0027s not a general issue with Java classes in Scala 3 \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":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"5905e910d2ae2095bc44396ee995a04c7d6e79262484fb3a6876fa4ef4c0d36d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider parsing the message to get the list of ambiguous implicit 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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0524e1e641e77d3d4016ceb31108f6f4f64692712b294fbd48a028e8ac660da"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider parsing the message to get the list of ambiguous implicit 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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c28035dfa89f9ec503e854bac77dd1b9c1de0612db3566d735c7e52432f601d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: the ExprCodecs below are of PoC quality. Each should have unit tests keeping Scala 2 and Scala 3 in sync \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":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d0225c5533f2ed224b726c94b51793f1e97291b437d9f8e78079a36a39be06"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: the ExprCodecs below are of PoC quality. Each should have unit tests keeping Scala 2 and Scala 3 in sync \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":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dc9c75ad7fdfa5f02a39584f6ecc611f2c72a3d12354c64d29ef3306fe05f35"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: Currently we only add prefix to the outermost type, type parameters are not fixed this way. \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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"042168612896f708b8d7b1c7dc08d92708627ded69ae4a76058e8590fa40e3d6"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: This is a quick workaround for missing .type, we have to fix it properly for nested types. \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":"hearth/src/main/scala-3/hearth/typed/TypesScala3.scala"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"f15a99a76346d457b3e43d7155876c85103eb3be0da60df29e1382ea9eebb740"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: make it pass true for Scala 3 case val \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":"hearth/src/main/scala-2/hearth/untyped/UntypedTypesScala2.scala"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f0692a5ff6aff9246b335f019ae596b580ace15193daa566ba350ca2d2e3d50"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: handle it somehow for GADT in abstract type context \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":"hearth/src/main/scala/hearth/untyped/UntypedTypes.scala"},"region":{"startLine":440}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e6fb528e6508672bfb9f6de795574f538046c954766a17e1bc7c1eff759753"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: On Scala 2 the nested blocks look ugly when printed - but it\u0027s harmless. \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":"hearth/src/main/scala/hearth/typed/Classes.scala"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edf37a3997cf11817166600588177986a505a821ac34f2e6a5e84a30a980af4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: specialize for primitive types \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":"hearth/src/main/scala/hearth/typed/Types.scala"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9ad93dc4088d8200e56915d342365ae25e33f106f06d3f9edc51171e37123f"}},{"ruleId":"D17","level":"warning","message":{"text":"FixmeComment: // FIXME: Expr(None) is not compiling \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":"hearth/src/main/scala/hearth/std/extensions/IsOptionProviderForScalaOption.scala"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37e5c68944d66b9694f3f2653eac81938e381181fe0690c3731bf68b7061173"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 2 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (60538 LoC, 1040 module-visible types across 66 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":"d5b8f11381d61a58459ffc7c595fd52d09c03c711894a63a9578043d2338412b"},"taxa":[{"id":"CWE-829","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":"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":"a1f31e3fc38e806c632551480508ae27b2701acddad0a9d80c648ba1fc9463b3"},"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":"12d518131787ce2648150ee5b8c00674da2eee9da14313fefa697ed573f8c4f8"},"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":"c1bb7814097052b3b9e49cf20adb5ffa3c94da3abc00863955683dc4725b2e91"},"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":"c7838abd0c933c3440606254d0ca070d0d26281df17ed74c1cf523eb787f7ef6"},"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":"6aa6e9abeab18827585e07b28deb46a6c3f6f67cc4bc70e882e65feee62bb2bc"},"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":"7c7237749c4ac82efce888fa5c77836b6193cf1f61b7506dd396ee6dc39e3bbc"},"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":"a97e8563773d3b4aaea5c5673c3e514b16335bb95a5fe2111348e86e81b0f0f0"},"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":"ae4b19a624088a80ae967fa19fc6e2d3b4d86bf95f6afb9918729adad8224e32"},"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":"33f098943efd269ecb10bf59f2a8ee0ce9ee0847c0cc20eee0fb31abd14f7dac"},"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":"848e2a9a264bed4d54abf3f7854a29e520ba021352aa16bd546135886cf7fe2f"},"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":"f31733cc815de25a7bae74d164778ec098ea9aa6fcbd8c5cb1ce929451728f28"},"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":"96f88121b035a898a6759141862415469563ae4858d3bd2449d90d5e5ba04a57"},"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":"de348603cee281ca1c4b7c0d85544d8539f7117191be3b16cb51c2e9e6c08c56"},"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":"16fc675212c0b8b20da7e3f2f58c00e6e7ec3bb989fc24224c5e2c20659ac663"},"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":"3340dd4e53d3f4050488220fc5bcee1208b3708a7e53a910d434e90c728f6d44"},"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":"693249723480b7d3690fbc9002e4acaa2fd5c4f5277d52948268b51530c89d1e"},"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":"ba02832f9ee7fd35201c07749b847f2021cb03b0cddcbdb7ca03a97343f52e13"},"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":"3e8d0fad5308c9305f4c5a73c1dede7393dae24eab37f445f7de631ec0ae4cb0"},"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":"0e579e2ec0f2ecce14f6ca2b69e07963453bd7802f593ce342b975d1ffb88093"},"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":"4d05bcefc9879463fbb987fa1aa3cee8cd9d45f60842d5dfa6b925386f05ce78"},"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":"0faa177341a35f03552d9db872431e97e2cc7ae081a6f919cd2805db84c256ee"},"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":"D35","level":"warning","message":{"text":"Change coupling: ClassesFixtures.scala \u2194 classes.scala: \u0060hearth-tests/src/main/scala-2/hearth/typed/ClassesFixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/examples/classes.scala\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00603e70c67e\u0060 Fix #246: add CaseClass.copyMethod; enable MiMa against 0.4.0; \u006053339163\u0060 Change CaseClass.caseFieldValuesAt default from Anywhere to AtCallSit\u2026; \u00601b9896d2\u0060 Align Scala 3 no-pos reportWarn to report.warning; caseFieldValuesAt \u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-2/hearth/typed/ClassesFixtures.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"52d0a5507c214a82ea2f0a029b6dc547fd3148df012dc26902f90f12fe436b8c"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: ClassesFixtures.scala \u2194 classes.scala: \u0060hearth-tests/src/main/scala-3/hearth/typed/ClassesFixtures.scala\u0060 and \u0060hearth-tests/src/main/scala/hearth/examples/classes.scala\u0060 change together 60% of the time (6 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u00603e70c67e\u0060 Fix #246: add CaseClass.copyMethod; enable MiMa against 0.4.0; \u006053339163\u0060 Change CaseClass.caseFieldValuesAt default from Anywhere to AtCallSit\u2026; \u00601b9896d2\u0060 Align Scala 3 no-pos reportWarn to report.warning; caseFieldValuesAt \u2026 \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-tests/src/main/scala-3/hearth/typed/ClassesFixtures.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5687d586acb96ceae9b3507241a85507105aa8a31abe6f9fdabec44994d1b235"}},{"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":"c3e0160299b4666b48efe51fae02827abc36987129d0864e9446dfb320eb7836"},"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":"D44","level":"warning","message":{"text":"End-of-life runtime: Java 24: .sdkmanrc declares Java 24 as this project\u0027s version file, and Java 24, a non-LTS release, superseded by Java 25 on 2025-09-16. An unsupported runtime receives no security patches, so every vulnerability disclosed in it since 2025-09-16 is present and unfixable without moving off it. This is a migration rather than an upgrade: there is no newer release of a runtime that has ended."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".sdkmanrc"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d8e895ee622701df7e64a7242a0086dd7687f52a03ecf4b3324c93fa2392b7"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ExprModule (48 abstract members): \u0060ExprModule\u0060 declares 48 abstract members: \u0060plainPrint\u0060, \u0060prettyPrint\u0060, \u0060plainAST\u0060, \u0060prettyAST\u0060, \u0060summonImplicit\u0060, \u0060summonImplicitIgnoring\u0060, \u0060summonImplicitByType\u0060, \u0060upcast\u0060, \u0060suppressUnused\u0060, \u0060annotated\u0060, \u0060singletonOf\u0060, \u0060typeOf\u0060, \u0060semiEval\u0060, \u0060semiQuote\u0060, \u0060NullExprCodec\u0060, \u0060UnitExprCodec\u0060, \u0060BooleanExprCodec\u0060, \u0060ByteExprCodec\u0060, \u0060ShortExprCodec\u0060, \u0060IntExprCodec\u0060, \u0060LongExprCodec\u0060, \u0060FloatExprCodec\u0060, \u0060DoubleExprCodec\u0060, \u0060CharExprCodec\u0060, \u0060StringExprCodec\u0060, \u0060ClassExprCodec\u0060, \u0060ClassTagExprCodec\u0060, \u0060BigIntExprCodec\u0060, \u0060BigDecimalExprCodec\u0060, \u0060StringContextExprCodec\u0060, \u0060ArrayExprCodec\u0060, \u0060SeqExprCodec\u0060, \u0060ListExprCodec\u0060, \u0060NilExprCodec\u0060, \u0060VectorExprCodec\u0060, \u0060MapExprCodec\u0060, \u0060SetExprCodec\u0060, \u0060OptionExprCodec\u0060, \u0060SomeExprCodec\u0060, \u0060NoneExprCodec\u0060, and 8 more. Counted over its ABSTRACT members \u2014 a \u0060def\u0060 with no body or a \u0060val\u0060/\u0060var\u0060 with no initializer, once per signature; concrete members, private and protected members, and members of a companion \u0060object\u0060 are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/typed/Exprs.scala"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"065592eaadefc88a84f89ac900fa66583bbdae7b76f4f2bc49654e997e3da0ea"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ValDefBuilderModule (33 abstract members): \u0060ValDefBuilderModule\u0060 declares 33 abstract members: \u0060ofVal\u0060, \u0060ofVar\u0060, \u0060ofLazy\u0060, \u0060ofDef0\u0060, \u0060ofDef1\u0060, \u0060ofDef2\u0060, \u0060ofDef3\u0060, \u0060ofDef4\u0060, \u0060ofDef5\u0060, \u0060ofDef6\u0060, \u0060ofDef7\u0060, \u0060ofDef8\u0060, \u0060ofDef9\u0060, \u0060ofDef10\u0060, \u0060ofDef11\u0060, \u0060ofDef12\u0060, \u0060ofDef13\u0060, \u0060ofDef14\u0060, \u0060ofDef15\u0060, \u0060ofDef16\u0060, \u0060ofDef17\u0060, \u0060ofDef18\u0060, \u0060ofDef19\u0060, \u0060ofDef20\u0060, \u0060ofDef21\u0060, \u0060ofDef22\u0060, \u0060build\u0060, \u0060buildCached\u0060, \u0060forwardDeclare\u0060, \u0060isBuilt\u0060, \u0060partition\u0060, \u0060traverse\u0060, \u0060directStyle\u0060. Counted over its ABSTRACT members \u2014 a \u0060def\u0060 with no body or a \u0060val\u0060/\u0060var\u0060 with no initializer, once per signature; concrete members, private and protected members, and members of a companion \u0060object\u0060 are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/typed/Exprs.scala"},"region":{"startLine":1031}}}],"partialFingerprints":{"codehealthFindingId/v1":"51ce4395665d4f3ab7fc12e52f0461e90a7c70b0766abccdbde251d02accdffd"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: ValDefsCacheModule (25 abstract members): \u0060ValDefsCacheModule\u0060 declares 25 abstract members: \u0060empty\u0060, \u0060get0Ary\u0060, \u0060get1Ary\u0060, \u0060get2Ary\u0060, \u0060get3Ary\u0060, \u0060get4Ary\u0060, \u0060get5Ary\u0060, \u0060get6Ary\u0060, \u0060get7Ary\u0060, \u0060get8Ary\u0060, \u0060get9Ary\u0060, \u0060get10Ary\u0060, \u0060get11Ary\u0060, \u0060get12Ary\u0060, \u0060get13Ary\u0060, \u0060get14Ary\u0060, \u0060get15Ary\u0060, \u0060get16Ary\u0060, \u0060get17Ary\u0060, \u0060get18Ary\u0060, \u0060get19Ary\u0060, \u0060get20Ary\u0060, \u0060get21Ary\u0060, \u0060get22Ary\u0060, \u0060toValDefs\u0060. Counted over its ABSTRACT members \u2014 a \u0060def\u0060 with no body or a \u0060val\u0060/\u0060var\u0060 with no initializer, once per signature; concrete members, private and protected members, and members of a companion \u0060object\u0060 are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/typed/Exprs.scala"},"region":{"startLine":1540}}}],"partialFingerprints":{"codehealthFindingId/v1":"e48b8ee656aaebeb73cb5b151bd8e32dae785e1636e60d91a0ff013f3ad5e276"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: LambdaBuilderModule (26 abstract members): \u0060LambdaBuilderModule\u0060 declares 26 abstract members: \u0060of1\u0060, \u0060of2\u0060, \u0060of3\u0060, \u0060of4\u0060, \u0060of5\u0060, \u0060of6\u0060, \u0060of7\u0060, \u0060of8\u0060, \u0060of9\u0060, \u0060of10\u0060, \u0060of11\u0060, \u0060of12\u0060, \u0060of13\u0060, \u0060of14\u0060, \u0060of15\u0060, \u0060of16\u0060, \u0060of17\u0060, \u0060of18\u0060, \u0060of19\u0060, \u0060of20\u0060, \u0060of21\u0060, \u0060of22\u0060, \u0060build\u0060, \u0060partition\u0060, \u0060traverse\u0060, \u0060directStyle\u0060. Counted over its ABSTRACT members \u2014 a \u0060def\u0060 with no body or a \u0060val\u0060/\u0060var\u0060 with no initializer, once per signature; concrete members, private and protected members, and members of a companion \u0060object\u0060 are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/typed/Exprs.scala"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"df804fd033592f3c3f3011e55f877ea67c5ee0caaf4c4d088f7b991a67ede83b"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: TypeModule (45 abstract members): \u0060TypeModule\u0060 declares 45 abstract members: \u0060shortName\u0060, \u0060plainPrint\u0060, \u0060prettyPrint\u0060, \u0060runtimePlainPrint\u0060, \u0060runtimePrettyPrint\u0060, \u0060runtimeShortPrint\u0060, \u0060NullCodec\u0060, \u0060UnitCodec\u0060, \u0060BooleanCodec\u0060, \u0060ByteCodec\u0060, \u0060ShortCodec\u0060, \u0060IntCodec\u0060, \u0060LongCodec\u0060, \u0060FloatCodec\u0060, \u0060DoubleCodec\u0060, \u0060CharCodec\u0060, \u0060StringCodec\u0060, \u0060Tuple1Codec\u0060, \u0060Tuple2Codec\u0060, \u0060Tuple3Codec\u0060, \u0060Tuple4Codec\u0060, \u0060Tuple5Codec\u0060, \u0060Tuple6Codec\u0060, \u0060Tuple7Codec\u0060, \u0060Tuple8Codec\u0060, \u0060Tuple9Codec\u0060, \u0060Tuple10Codec\u0060, \u0060Tuple11Codec\u0060, \u0060Tuple12Codec\u0060, \u0060Tuple13Codec\u0060, \u0060Tuple14Codec\u0060, \u0060Tuple15Codec\u0060, \u0060Tuple16Codec\u0060, \u0060Tuple17Codec\u0060, \u0060Tuple18Codec\u0060, \u0060Tuple19Codec\u0060, \u0060Tuple20Codec\u0060, \u0060Tuple21Codec\u0060, \u0060Tuple22Codec\u0060, \u0060OptionCodec\u0060, and 5 more. Counted over its ABSTRACT members \u2014 a \u0060def\u0060 with no body or a \u0060val\u0060/\u0060var\u0060 with no initializer, once per signature; concrete members, private and protected members, and members of a companion \u0060object\u0060 are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/typed/Types.scala"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"8113c6c2ba3149ce85b573598320be19db90789c4f024404be99fcdcdf7fc8df"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: UntypedMethodMethods (32 abstract members): \u0060UntypedMethodMethods\u0060 declares 32 abstract members: \u0060invocation\u0060, \u0060hasTypeParameters\u0060, \u0060typeParameters\u0060, \u0060parameters\u0060, \u0060methodExpectations\u0060, \u0060unsafeApply\u0060, \u0060unsafeApplyWithTypes\u0060, \u0060name\u0060, \u0060position\u0060, \u0060annotations\u0060, \u0060annotationTypes\u0060, \u0060isConstructor\u0060, \u0060isConstructorArgument\u0060, \u0060constructorArgumentIndex\u0060, \u0060isCaseField\u0060, \u0060isVal\u0060, \u0060isVar\u0060, \u0060isLazy\u0060, \u0060isDef\u0060, \u0060isDeclared\u0060, \u0060isSynthetic\u0060, \u0060isImplicit\u0060, \u0060isFinal\u0060, \u0060isAbstract\u0060, \u0060isOverride\u0060, \u0060isPrivate\u0060, \u0060isProtected\u0060, \u0060privateWithin\u0060, \u0060protectedWithin\u0060, \u0060isAvailable\u0060, \u0060paramTypePrints\u0060, \u0060signatureSegments\u0060. Counted over its ABSTRACT members \u2014 a \u0060def\u0060 with no body or a \u0060val\u0060/\u0060var\u0060 with no initializer, once per signature; concrete members, private and protected members, and members of a companion \u0060object\u0060 are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/untyped/UntypedMethods.scala"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fe97a1c9b755beb1ce560d803110268906a65e18184ed7737d4480f18222370"}},{"ruleId":"AX6","level":"note","message":{"text":"Fat interface: UntypedTypeModule (37 abstract members): \u0060UntypedTypeModule\u0060 declares 37 abstract members: \u0060fromTyped\u0060, \u0060toTyped\u0060, \u0060position\u0060, \u0060fromClass\u0060, \u0060fromClassName\u0060, \u0060isInJavaLangPackage\u0060, \u0060isOpaqueType\u0060, \u0060opaqueUnderlyingType\u0060, \u0060isTuple\u0060, \u0060functionComponents\u0060, \u0060isAbstract\u0060, \u0060isFinal\u0060, \u0060isTrait\u0060, \u0060isClass\u0060, \u0060isSealed\u0060, \u0060isJavaEnum\u0060, \u0060isJavaEnumValue\u0060, \u0060isEnumeration\u0060, \u0060isCase\u0060, \u0060isObject\u0060, \u0060isVal\u0060, \u0060isAvailable\u0060, \u0060parents\u0060, \u0060baseClasses\u0060, \u0060unsafeNewSubtype\u0060, \u0060isSubtypeOf\u0060, \u0060isSameAs\u0060, \u0060companionObject\u0060, \u0060pseudoCompanionObject\u0060, \u0060directChildren\u0060, \u0060dealias\u0060, \u0060typeConstructor\u0060, \u0060typeArguments\u0060, \u0060applyTypeArgs\u0060, \u0060sameTypeConstructorAs\u0060, \u0060annotations\u0060, \u0060annotationTypes\u0060. Counted over its ABSTRACT members \u2014 a \u0060def\u0060 with no body or a \u0060val\u0060/\u0060var\u0060 with no initializer, once per signature; concrete members, private and protected members, and members of a companion \u0060object\u0060 are not counted, because no implementer is forced to write them. A wide interface forces every implementer and caller to depend on methods they don\u0027t use (the Interface-Segregation \u0027I\u0027 in SOLID). Split it into focused role-interfaces."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/untyped/UntypedTypes.scala"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa33b44ac2902fb7ea305078cb97a43fb191b84d41d687e482d6d398639f8917"}},{"ruleId":"AX8","level":"error","message":{"text":"Production project references a test project: hearthTests \u2192 hearthMunit: \u0060hearthTests\u0060 (production) references the test project \u0060hearthMunit\u0060. Production must never depend on test code \u2014 it pulls a unit-test framework and test fixtures into the shipped product and inverts the only correct direction (tests depend on production, never the reverse). Move any shared helper into a production support library, or invert the reference."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"f08d64be473f94f1e6017b7bf29c13d5f9082d34fb097ff6e9e4d4c65c08d036"}},{"ruleId":"AXS1","level":"warning","message":{"text":"Runtime opened a port the repository does not declare: wd-runtime-app 32768-\u003E8000/tcp on 0.0.0.0: The booted stack published container port 8000/tcp of service \u0027wd-runtime-app\u0027 as host port 32768, but no ports:/expose:/EXPOSE entry in this repository names it \u2014 so it is most likely inherited from a base image. Observed after booting the stack in our sandbox, not read from a manifest. Advisory evidence for CRA Annex I (2)(j) (limit attack surfaces, including external interfaces); we do not assess whether the network it is published onto makes this a risk."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b7b260570437e90c54bd5e9855843368f2f82468bc958c8982df24d162a0c71b"}},{"ruleId":"IC1","level":"note","message":{"text":"Blanket warning suppression: A bare \u0060// scalastyle:off\u0060, \u0060// scalafix:off\u0060 or \u0060@nowarn\u0060 (or Wartremover\u0027s \u0060warts.All\u0060) switches every rule or warning off \u2014 hidden debt. Suppress the specific rule on the specific line, with a justification, instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6c879c37f541be2a50f6ccdc32e3c341aa2ce4d6f373404d6f69f3c49e25212"}},{"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":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add scalafix or scapegoat (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 5597 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":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"Dependabot does not watch pip: \u0060.github/dependabot.yml\u0060 schedules updates, but no \u0060package-ecosystem\u0060 entry covers \u0060pip\u0060, which this tree depends on \u2014 so those dependencies get no update pull requests and no advisory pressure, however complete the dep-scan credit looks. Add the missing entry to the \u0060updates:\u0060 list."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/dependabot.yml"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf68ee1ea2969cbbdae4336ca738b5320c565628ea6ee894219d523831dd0f17"}},{"ruleId":"P4","level":"note","message":{"text":"No release approval gate: The release is automated and no gate that pauses it for a human is DECLARED IN THIS REPOSITORY\u0027S PIPELINE FILES. What was read: every file under \u0060.github/workflows/\u0060, \u0060.forgejo/workflows/\u0060, \u0060.gitea/workflows/\u0060, \u0060.azuredevops/\u0060 and \u0060.azure-pipelines/\u0060, plus \u0060.gitlab-ci*\u0060 and \u0060azure-pipelines*\u0060 \u2014 with comment text stripped, so documenting a gate is not declaring one. What would have counted: GitLab\u0027s \u0060when: manual\u0060, CircleCI\u0027s \u0060type: approval\u0060, an Azure \u0060ManualValidation@\u0060 task or an \u0060approvals:\u0060 block, a Jenkins \u0060input\u0060 step, a \u0060uses:\u0060 step naming an approval action, an \u0060environment:\u0060 paired with \u0060reviewers\u0060 / \u0060required_reviewers\u0060 / \u0060protection\u0060 / \u0060wait-timer\u0060 / \u0060deployment_branch_policy\u0060, a draft-release step, a \u0060workflow_dispatch\u0060 promotion, or a release-event gate. \u2605 What this cannot see, because none of it is a file: a GitHub environment whose required reviewers are configured in repo SETTINGS, a branch protection rule, or an organisation deployment policy \u2014 all of them real, enforced gates that live outside the repository. If yours is one of those, this row is wrong and nothing in the tree could have told us. Otherwise: whatever the release trigger points at is published to users unreviewed, so a mistagged or unverified commit ships and the only remedy is a follow-up release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6c11e2dbd483b4b423b95ac61bfcc7af1d55351b28a20d2b1105b31cfe38cc60"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!hasUnresolvedTypeParams || !methodTypeParamSyms.forall(typeArgs.contains)\u0060 appears character-identically in 2 files \u2014 hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala, hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala. 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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c6308b2ceeab9a0e0d78876c6b091ba1a558bca9b3c1a8b1a45b5c5da900ff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060aChar.isDigit \u0026\u0026 bChar.isDigit \u0026\u0026 magnitudeComparison != 0\u0060 appears character-identically in 2 files \u2014 hearth-micro-fp/src/main/scala-2/hearth/fp/NaturalLanguageOrdering.scala, hearth-micro-fp/src/main/scala-3/hearth/fp/NaturalLanguageOrdering.scala. 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":"hearth-micro-fp/src/main/scala-2/hearth/fp/NaturalLanguageOrdering.scala"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e5a47d8e791fd2b26f43850a69ef6040da7a813f3e2990ce565db41562bab0e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060aNumber.nonEmpty \u0026\u0026 bNumber.nonEmpty \u0026\u0026 !aNumber.sameContent(bNumber)\u0060 appears character-identically in 2 files \u2014 hearth-micro-fp/src/main/scala-2/hearth/fp/NaturalLanguageOrdering.scala, hearth-micro-fp/src/main/scala-3/hearth/fp/NaturalLanguageOrdering.scala. 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":"hearth-micro-fp/src/main/scala-2/hearth/fp/NaturalLanguageOrdering.scala"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7e9a547f04517ab06e79976f48cb614be4f4ce08cab2bbdeb32acdfe1ccb26"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060args.nonEmpty \u0026\u0026 hasOverrideInTree(args, overrideFn)\u0060 appears character-identically in 2 files \u2014 hearth-better-printers/src/main/scala-2/hearth/treeprinter/RuntimeAwareTypePrinterScala2.scala, hearth-better-printers/src/main/scala-3/hearth/treeprinter/RuntimeAwareTypePrinterScala3.scala. 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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/RuntimeAwareTypePrinterScala2.scala"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"371e6b2ed2dc072f58420535394fec93777544615358df15c65f58811124aa92"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c.isDigit || c == \u0027.\u0027 || c == \u0027,\u0027 || c == \u0027:\u0027\u0060 appears character-identically in 2 files \u2014 hearth-micro-fp/src/main/scala-2/hearth/fp/NaturalLanguageOrdering.scala, hearth-micro-fp/src/main/scala-3/hearth/fp/NaturalLanguageOrdering.scala. 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":"hearth-micro-fp/src/main/scala-2/hearth/fp/NaturalLanguageOrdering.scala"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc656f2f0fb244e3f0c5dfba08ac3e5058abab99216d8a4a5f40d851afd9234b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060declared(s) \u0026\u0026 !methodsConsideredSynthetic(s)\u0060 appears character-identically in 2 files \u2014 hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala, hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala. 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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"eccccb16e9a974542cfd9ecbf9509874d52edc67efadf3e512365b6da1357381"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060fileMatches \u0026\u0026 lineMatches \u0026\u0026 columnMatches\u0060 appears character-identically in 2 files \u2014 hearth-cross-quotes/src/main/scala/hearth/cq/CrossQuotesSettings.scala, hearth/src/main/scala/hearth/Environments.scala. 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":"hearth-cross-quotes/src/main/scala/hearth/cq/CrossQuotesSettings.scala"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"2819762b20487fafdcf4437380de529602b8fc8780b8889e4f935ab08c1a6250"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isEnumerationObject || isEnumerationValue\u0060 appears character-identically in 2 files \u2014 hearth/src/main/scala-2/hearth/untyped/UntypedTypesScala2.scala, hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala. 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":"hearth/src/main/scala-2/hearth/untyped/UntypedTypesScala2.scala"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"effea1d26bfea4737fcf53250cd3704fafba2a59c97aaad54626ac0f547d435a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060isPublic || isPrivateButInTheSameClass || isProtectedButInTheSameClass || isPrivateWithinButInTheRightPlace\u0060 appears character-identically in 2 files \u2014 hearth/src/main/scala-2/hearth/untyped/UntypedTypesScala2.scala, hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala. 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":"hearth/src/main/scala-2/hearth/untyped/UntypedTypesScala2.scala"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7e2f898aafa256877656bc9c2c90cdffff084377de952bcd49d687d01888b76"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060lower == \u0022scala.Nothing\u0022 || lower.contains(\u0022@\u0022) || lower.startsWith(\u0022[\u0022)\u0060 appears character-identically in 2 files \u2014 hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala, hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala. 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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1931359d3c0ed96f46bbb985bdbdd079d35176eaf9f79da2c294e583e94c2fc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060m.name == \u0022valueOf\u0022 \u0026\u0026 m.isUnary \u0026\u0026 !m.isInstanceOf[Method.OnInstance] \u0026\u0026 m.parameters.flatten.headOption.exists\u0060 appears character-identically in 8 files \u2014 hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaBoolean.scala, hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaByte.scala, hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaCharacter.scala, hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaDouble.scala. 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":"hearth/src/main/scalajvm/hearth/std/extensions/IsValueTypeProviderForJavaBoolean.scala"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d8a5c522d0ca0bed0883b3644e4d8533a71e927eb06653befca137d0c524b8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060start != Log.Timestamp.empty \u0026\u0026 end != Log.Timestamp.empty\u0060 appears character-identically in 2 files \u2014 hearth-micro-fp/src/main/scala/hearth/fp/effect/FlameGraph.scala, hearth-micro-fp/src/main/scala/hearth/fp/effect/Log.scala. 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":"hearth-micro-fp/src/main/scala/hearth/fp/effect/FlameGraph.scala"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"391ec6e49290476511717223ccdbb97dc9197db3eec33dee5f9860eef45876a2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060sym.isType \u0026\u0026 sym.owner.isClass \u0026\u0026 !sym.owner.isPackageClass\u0060 appears character-identically in 2 files \u2014 hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala, hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala. 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":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":1188}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d38cb1941ac188b1bd8cd8564343a515b176bd5cbea4ece83f4f19981c7024"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060untyped.hasTypeParameters \u0026\u0026 !untyped.isConstructor\u0060 appears character-identically in 2 files \u2014 hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala, hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala. 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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":580}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c62490f04d6739be69992b9d50e065d5acbd827abacfda0f126d133358137e1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060upper == \u0022scala.Any\u0022 || upper.startsWith(\u0022scala.Any[\u0022) || upper.contains(\u0022@\u0022) || upper.startsWith(\u0022[\u0022)\u0060 appears character-identically in 2 files \u2014 hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala, hearth/src/main/scala-3/hearth/untyped/UntypedMethodsScala3.scala. 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":"hearth/src/main/scala-2/hearth/untyped/UntypedMethodsScala2.scala"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"970ca293f5c6c53c3f347ff828d452ad15298845e881abf3786038440e9009b5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba0a3e43e1c57a98eab8bc4cd869b4a018ce4499c06f8376793e31bc287dda0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"c95dcfa55cdc64dfa15766c22c74dd0683ddb5f8b56f56d2e72544dcf8746c17"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03d75bf14b1f38b7590925b4b29028ee2ade2e9b8c15354c3fefb690d0c1d6e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f9652afa3c536cb715df2701422cd6423d4bc6fbca45f161a56fe8822f0bf4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef6404d88a0b96716496d3ea5ca5a9b62b6bd70b665e47a9469f881e01e30b61"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: 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":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":1252}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaafda1e4268e4d200c9186b4749177f01d74faf8c7e6eb88ff8d9a1f3cc9eef"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"51af67becfba80e3755e4e5be39558fc4414df222832f95ea0584ea4d75d24d5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-better-printers/src/main/scala-3/hearth/treeprinter/ShowCodePrettyScala3.scala"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4040dbd2562f452762abf19de8e8ed69a2a013256f99ca51d94fd148e0c218f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-better-printers/src/main/scala-3/hearth/treeprinter/ShowCodePrettyScala3.scala"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"d07f13bcff4982cdcb1b534037f112b698e2c19eba92da34228b1c92dd92cf44"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-better-printers/src/main/scala-3/hearth/treeprinter/ShowCodePrettyScala3.scala"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a6f81ff8443751be0330524f2921650bbee92bf1719513202bd50b9f0714bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-better-printers/src/main/scala-2/hearth/treeprinter/ShowCodePrettyScala2.scala"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"bce10127887ac401e1df399e4f54fc2c4e26a554bbfceef9d06d6ce42eeffa51"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"00573b9d7123e4804f0921d8ed37be589aad2fd45745f98e0f348536cb316cd9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ec0243d4424a44c112be8d6babc1ce8e67b4caad328459d8abf2753a5efefc8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/untyped/UntypedTypesScala3.scala"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"549f0088b3ed59b3700de47669a43c2f3653015695bbea90234c567c6b71ae2f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"db314d1e6b6b3f7a0dad1a6a820f6036d0e851ac5787fcadfa709d6b404f8a10"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"62946b5344e01475b239b11887539ef924425e953ee8b5959c6d4288ebd029b4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"182a2a823c2e2ea5c694b8ba6f75e8e268e8020a570f82084601092f9a3fb28a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":681}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bff8b1fc6fdf66f7293b8025db24b11a66046029396358f7c367eb9e7c4795"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-3/hearth/typed/ExprsScala3.scala"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"71eaebed191da6a16627b83d52c9033a07be1089fd1bfbab9926b1f1ebd55e0e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/EnvironmentCrossQuotes.scala"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f079c30ce8fad5145105cc0d07d718661bef668ac17234728becd346de2141"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b75bb8b6b53e8a136915afd0ed396ed8c75dd6a953802ecbb74d7982faa331"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"b56e8d3062845f20d56f00d47591fbc5799b8a198cabcebed863f978f1a5442a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala-2/hearth/typed/ExprsScala2.scala"},"region":{"startLine":486}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1425d6ec26531edbce78e02f15bc6f2ed8a504534511049ac171c6c13399ea9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/versions.scala"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e1347e67b64bd0ebeb9836220a848c56c170b79694ecefa52984016862ac0f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/untyped/UntypedTypes.scala"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2a83e0a4dc8bf41e6a6be88540f14e881441696134be836240c8f02cbada8a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060case _: Throwable\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth/src/main/scala/hearth/typed/Types.scala"},"region":{"startLine":1083}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb95c63a759a3db1e61ca8be67082592c0753e5d3a2d679c829a2e51d9fa5719"}},{"ruleId":"X5","level":"note","message":{"text":"Scala\u0027s null is not held to the type system everywhere: No build over this repository\u0027s 150 Scala product file(s) passes \u0060-Yexplicit-nulls\u0060, enables WartRemover\u0027s \u0060Null\u0060 wart or runs Scalafix\u0027s \u0060DisableSyntax.noNulls\u0060, so every reference type admits null and nothing reports a \u0060null\u0060 written into the code or returned from a Java API \u2014 the first one to reach a method call is a \u0060NullPointerException\u0060. \u0060Option\u0060 by convention is a habit no tool here holds the code to."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"23e7c3c6da50151f07723c64ca4f881fd5903e713d143161a7c0594ad7ba29cc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060importedUnderlyingTypes\u0060 swallows every exception into \u0060Nil\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch case or in the Scaladoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cb5960b8c2899eda9371c72437571caa7ed13f82118296f7b804b83464672d3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060sameClassImplicitTypes\u0060 swallows every exception into \u0060Nil\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch case or in the Scaladoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":912}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffc53290c5afc8cc10c5608683d0db7116285baecd86d5dd928999abcac2d58"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060enclosingMethodImplicitTypes\u0060 swallows every exception into \u0060Nil\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch case or in the Scaladoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45c2f54d94334dfb6bdaac2d7c9a2787de4f1dfe13630dca19c5cc9a2107a2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060enclosingMethodCtorHKTTypes\u0060 swallows every exception into \u0060Nil\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch case or in the Scaladoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":1015}}}],"partialFingerprints":{"codehealthFindingId/v1":"6649621985e2efd8abc5d4f39fa04660ca0f183e251dec85c57b5fc3fc09318a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060outerEnclosingMethodImplicitTypes\u0060 swallows every exception into \u0060Nil\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch case or in the Scaladoc, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"hearth-cross-quotes/src/main/scala-2/hearth/cq/CrossQuotesMacros.scala"},"region":{"startLine":1064}}}],"partialFingerprints":{"codehealthFindingId/v1":"70fffab9ac57e5f4b1f5916774e50bf1822b7feb91e7d04f45bf86949adfd34f"}}],"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-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.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-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.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-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.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-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":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"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/"}]},{"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-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":28,"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."]}]}