{"$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":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D7","name":"Architectural Integrity","shortDescription":{"text":"Architectural Integrity"},"helpUri":"https://codehealth.canine.dev/dimensions/D7"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D25","name":"ADR Conformance","shortDescription":{"text":"ADR Conformance"},"helpUri":"https://codehealth.canine.dev/dimensions/D25"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"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"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"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"]}],"properties":{"cwe":["CWE-506"]}},{"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":"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":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"AbstractBackendStub.adjustResponseBody (cyclomatic 29): AbstractBackendStub.adjustResponseBody 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":"core/src/main/scala/sttp/client4/testing/AbstractBackendStub.scala"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd6aa34e6819c35a89bdc49b401fdd31d8a4164f486d39a898fc6a80a6f4d7c"}},{"ruleId":"D1","level":"warning","message":{"text":"BodyFromAkka.webSocketAndFlow (cyclomatic 16): BodyFromAkka.webSocketAndFlow has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d506cb1344e1e08f2afda5246de511a9aa8569064f0850a24db7bdff590dab3"}},{"ruleId":"D1","level":"warning","message":{"text":"Slf4jLogger.apply (cyclomatic 16): Slf4jLogger.apply has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"logging/slf4j/src/main/scala/sttp/client4/logging/slf4j/Slf4jLogger.scala"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c26428935807a0df5e60d0917aa0175876db249c0cdb127af3934c276d37cc"}},{"ruleId":"D1","level":"warning","message":{"text":"BodyFromPekko.webSocketAndFlow (cyclomatic 16): BodyFromPekko.webSocketAndFlow has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c4dc1a0e0493922ab6328920cba027699ce2bb4ea384895ea794833180956f"}},{"ruleId":"D2","level":"warning","message":{"text":"BodyFromAkka.webSocketAndFlow (cognitive 31): BodyFromAkka.webSocketAndFlow has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 5 (18 pts), if/else 4 (10 pts), loops 2 (3 pts) (nesting depth added 20). 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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"343287dd14bb0f480de824b22c49019e73cac8085e299c37a968461099d8882a"}},{"ruleId":"D2","level":"warning","message":{"text":"BodyFromPekko.webSocketAndFlow (cognitive 31): BodyFromPekko.webSocketAndFlow has cognitive complexity 31 (threshold 15). Drivers by points: match/switch 5 (18 pts), if/else 4 (10 pts), loops 2 (3 pts) (nesting depth added 20). 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":"pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"b43fb7dfdc239ed4b4864c32b07f2adfd172d5f395148b68d592e36f15bad093"}},{"ruleId":"D2","level":"warning","message":{"text":"ZioWebSockets.compilePipe (cognitive 27): ZioWebSockets.compilePipe has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 5 (15 pts), if/else 4 (6 pts), loops 3 (6 pts) (nesting depth added 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. 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":"effects/zio/src/main/scala/sttp/client4/impl/zio/ZioWebSockets.scala"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fda0243fdc90515fa5d625e07732cd85773d49b5d5eeed2f403d5fd77e4705c"}},{"ruleId":"D2","level":"warning","message":{"text":"ZioWebSockets.compilePipe (cognitive 27): ZioWebSockets.compilePipe has cognitive complexity 27 (threshold 15). Drivers by points: match/switch 5 (15 pts), if/else 4 (6 pts), loops 3 (6 pts) (nesting depth added 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. 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":"effects/zio1/src/main/scala/sttp/client4/impl/zio/ZioWebSockets.scala"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4c1a545dc2fd6aba13073bf6a3918d72222e5f839a8b9f45de4333a596c8b03"}},{"ruleId":"D2","level":"warning","message":{"text":"Otel4sMetricsBackend.metricsListener (cognitive 21): Otel4sMetricsBackend.metricsListener has cognitive complexity 21 (threshold 15). Drivers by points: loops 6 (21 pts) (nesting depth added 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. This shape REPEATS in the file: one other method here (MetricsRequestListener.captureResponseMetrics) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"observability/otel4s-metrics-backend/src/main/scala/sttp/client4/opentelemetry/otel4s/Otel4sMetricsBackend.scala"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4700711d5f01beaad5619b21ca4cdd32b13d65c3923dc849350d4bbf335fcb"}},{"ruleId":"D2","level":"warning","message":{"text":"MetricsRequestListener.captureResponseMetrics (cognitive 21): MetricsRequestListener.captureResponseMetrics has cognitive complexity 21 (threshold 15). Drivers by points: loops 6 (21 pts) (nesting depth added 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. This shape REPEATS in the file: one other method here (Otel4sMetricsBackend.metricsListener) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"observability/otel4s-metrics-backend/src/main/scala/sttp/client4/opentelemetry/otel4s/Otel4sMetricsBackend.scala"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dcfd07fd9736b50b619fb11ad778a06388940082c7528903d60cfdb6049e529"}},{"ruleId":"D2","level":"warning","message":{"text":"AbstractBackendStub.adjustResponseBody (cognitive 20): AbstractBackendStub.adjustResponseBody has cognitive complexity 20 (threshold 15). Drivers by points: match/switch 8 (14 pts), if/else 6 (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":"core/src/main/scala/sttp/client4/testing/AbstractBackendStub.scala"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"02e518d574b98c1b5a6e14c328d13c55611bb6a5912961f864b4cb36ccd3ca0c"}},{"ruleId":"D2","level":"warning","message":{"text":"GZIPCompressingInputStream.read (cognitive 19): GZIPCompressingInputStream.read has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 pts), match/switch 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":"core/src/main/scalajvm/sttp/client4/compression/GZIPCompressingInputStream.scala"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"caac25b1da9e5c65533c08f7b0e5fecb3df7353fe66a29daccae64b43747e7e3"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: HttpServer.paramsToString: MethodTooLong \u2014 paramsToString runs 319 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 219 over it, 3.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"testing/server/src/main/scala/sttp/client4/testing/server/HttpServer.scala"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2a150ba782849c8c6212639079e6d9ef171691b0845c6c3c38afb33e35af11d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: PartialRequestBuilder: TooManyMethods \u2014 63 methods. The bar is 30 methods; this is 33 over it, 2.10\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":"core/src/main/scala/sttp/client4/requestBuilder.scala"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8308a10c853763e6e7e9ba4119833a637ae70590e58fbd1eaa7d5c9885f731c1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: SttpApi: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.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":"core/src/main/scala/sttp/client4/SttpApi.scala"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6666aed24468961ca9e21a21d32c07cb3f4f97d0365fb42cff1f99841726539"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (59 shared lines): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:42-125 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:43-121 \u2014 These two members are variants of one another: 59 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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ae825a5192dc04853874c26714014a24cf30f19dfdf476d6167c693251cc94"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (38 shared lines): effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:28-68 | effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:27-67 \u2014 These two members are variants of one another: 38 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":"effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"98b8b0ce879b230d60b07893b01c974d5bc4c2a8925f553c75438ccebddbfeab"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (37 shared lines): effects/fs2-ce2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala:27-69 | effects/fs2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala:27-69 \u2014 These two members are variants of one another: 37 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":"effects/fs2-ce2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"513e51d8a0392c04a9ffbb051f597fe308efeef7c3e06163bc12485019b01150"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (36 shared lines): effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala:31-80 | effects/zio1/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala:33-105 \u2014 These two members are variants of one another: 36 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":"effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4600ac29cc8dd1eede3e0da05a06b46b48ab7f01292c243e66d6c54bb720a1f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (27 shared lines): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:230-272 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:225-267 \u2014 These two members are variants of one another: 27 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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e50946dab7020fa3987e15a304da96e787cd234773366a29e62c89d372f6704"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (24 shared lines): core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala:146-184 | core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala:238-359 \u2014 These two members are variants of one another: 24 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":"core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"c125bed80138b2909a14bf65eaa36626abef53ba103fe5aa416981ddf77dcda9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (23 shared lines): akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyToAkka.scala:27-81 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyToPekko.scala:28-82 \u2014 These two members are variants of one another: 23 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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyToAkka.scala"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ad44a0b0023f55d043acca72f407081c7b4b06d12a2d6c5102da984bfbdbf5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): json/play-json/src/main/scala/sttp/client4/playJson/SttpPlayJsonApi.scala:49-55 | json/upickle/src/main/scala/sttp/client4/upicklejson/SttpUpickleApi.scala:48-54 | json/zio-json/src/main/scala/sttp/client4/ziojson/SttpZioJsonApi.scala:51-57 | json/zio1-json/src/main/scala/sttp/client4/ziojson/SttpZioJsonApi.scala:51-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":"json/play-json/src/main/scala/sttp/client4/playJson/SttpPlayJsonApi.scala"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3800ae897b4e1ab9467cd4582d16f48cf319e884d7198cf7e19000ed901a530"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala:150-189 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala:151-190 \u2014 before extracting anything, compare \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala\u0060 and \u0060pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 102 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 \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala:150\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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"52497367c8ddbfa4528c46e341fc1b159552c74a8e165ee7cfcad40f8150a453"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201333 lines \u00D7 2): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:42-73 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:43-75 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 and \u0060http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 149 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 \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f87120cb3e2d3a1f5513fd715868894612a6f0e525a2f2918e9e07f65837f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpClient.scala:35-63 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/PekkoHttpClient.scala:36-64 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060Flow\u0060 names \u0060akka.stream.scaladsl.Flow\u0060 in one and \u0060pekko.stream.scaladsl.Flow\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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpClient.scala"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c14fb2e0efec9c2cd2b4069dee0ae69f99401c9c406850baf88dd0b45fec5a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): effects/fs2-ce2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala:45-69 | effects/fs2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala:45-69 \u2014 before extracting anything, compare \u0060effects/fs2-ce2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala\u0060 and \u0060effects/fs2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060effects/fs2-ce2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala:45\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":"effects/fs2-ce2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd57e38226d8c15b05b17d68de941743c84f89aebb8c276a0fb02ad5a3d5530a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala:93-110 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala:94-111 \u2014 before extracting anything, compare \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala\u0060 and \u0060pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 102 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 \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala:93\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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"047951f917224bac98829a7c5cc54befe19dd3fa217ee949d026c9af20212a95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/ToAkka.scala:20-37 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/ToPekko.scala:21-38 \u2014 before extracting anything, compare \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/ToAkka.scala\u0060 and \u0060pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/ToPekko.scala\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060ParsingResult\u0060 names \u0060akka.http.scaladsl.model.HttpHeader.ParsingResult\u0060 in one and \u0060pekko.http.scaladsl.model.HttpHeader.ParsingResult\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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/ToAkka.scala"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"66318282c07b481207107450338361f28d74a1a9ad8f9d764f430c21cbfda2c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala:131-147 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala:132-148 \u2014 before extracting anything, compare \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala\u0060 and \u0060pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 102 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 \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala:131\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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e5a0ac68b5f33306f3d9f6eb79fef57e1dfc7f56c7be81b3732695db1cf516"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:92-108 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:93-109 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 and \u0060http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 149 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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"a52198b450e7f30c942da09ade044cc9f1ca69e1863ae39bebbc9fd37b0c8883"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala:103-118 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/PekkoHttpBackend.scala:121-136 \u2014 before extracting anything, compare \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala\u0060 and \u0060pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/PekkoHttpBackend.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa39cf46b36dd9812d28d1f3e8b9094ff223f100b44ff527c0efc532089de0de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala:65-80 | effects/zio1/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala:90-105 \u2014 before extracting anything, compare \u0060effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala\u0060 and \u0060effects/zio1/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 \u0060effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala:65\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":"effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"4079c4cbab039bff805dcfe6ba802b4cfae3d7f8d27ec2f4af30c72cbc547509"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:54-68 | effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:53-67 \u2014 before extracting anything, compare \u0060effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala\u0060 and \u0060effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 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 \u0060effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:54\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":"effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d460b4f4f3658c9ce6dba1a48e1e95accbc5d9f0d8b31a015ad4eec8310665"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201315 lines \u00D7 2): effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala:43-54 | effects/zio1/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala:50-64 \u2014 before extracting anything, compare \u0060effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala\u0060 and \u0060effects/zio1/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 \u0060effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala:43\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":"effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"382b564ec8f7e5fb3801c57b12251dbc3ab18fd66f70ab6258c36822c4344eea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:258-272 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:253-267 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 and \u0060http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 149 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 \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:258\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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bb21cd2aeb156781c09a93960fe498b56756a4e829aa5e77b12b90615146085"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala:112-125 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala:113-126 \u2014 before extracting anything, compare \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala\u0060 and \u0060pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 102 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 \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala:112\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b46ef535771c9ffabfd7ae48747f0c5165fff773b075d7942c6fb444a73e14"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 2): core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala:172-184 | core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala:332-343 \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 \u0060core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala:172\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":"core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bfa5f72b892f0046af9b10cb956775b1e2d29368fb1c46bd5540203a86e5b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:76-88 | effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:75-87 \u2014 before extracting anything, compare \u0060effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala\u0060 and \u0060effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 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":"effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb619d71beeb8dec96e1879625b84b4c8870f609dd6096dee12b61acca0f62d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:173-185 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:168-180 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 and \u0060http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 149 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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f38a0884c5b3b735a7bd0d8641467f96db4cf134bd4647a4d35d13aa839e6a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/ToAkka.scala:40-51 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/ToPekko.scala:41-52 \u2014 before extracting anything, compare \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/ToAkka.scala\u0060 and \u0060pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/ToPekko.scala\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/ToAkka.scala"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7525da7bfd0b5ff1b7ced8ed7f76dab3211640e2409cefc51d0c7e2cbf6cbec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:128-139 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:124-135 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 and \u0060http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 149 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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a2ddfd06ddcc41724d9a03fd2649e0b0a13a4c8986c01844807b6b958266ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:152-162 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:147-157 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 and \u0060http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 149 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 \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:152\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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"443406270cba31b7fbf7e9474afd5fdb18a7a09549f41d74582f5afd6584131b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala:155-164 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/PekkoHttpBackend.scala:173-182 \u2014 before extracting anything, compare \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala\u0060 and \u0060pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/PekkoHttpBackend.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 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. Note first that the copies are not typed on the same thing: \u0060ByteString\u0060 names \u0060akka.util.ByteString\u0060 in one and \u0060org.apache.pekko.util.ByteString\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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c98d5d8bcf47e44efcb2ab407ddfda2e1a3c2f08833f454ad25bc73649696de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpClient.scala:67-76 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/PekkoHttpClient.scala:68-77 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit. Note first that the copies are not typed on the same thing: \u0060Flow\u0060 names \u0060akka.stream.scaladsl.Flow\u0060 in one and \u0060pekko.stream.scaladsl.Flow\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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpClient.scala"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"702cc28c2750aa3f2e580fcea13443d1cdf4a232cd248b863f81d354d5300b57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): effects/zio/src/main/scala/sttp/client4/impl/zio/ZioWebSockets.scala:58-67 | effects/zio1/src/main/scala/sttp/client4/impl/zio/ZioWebSockets.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 \u0060effects/zio/src/main/scala/sttp/client4/impl/zio/ZioWebSockets.scala:58\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"effects/zio/src/main/scala/sttp/client4/impl/zio/ZioWebSockets.scala"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d0578ca2cd7b3f3add7adeaee1a2e177834933947bdfda70e05a6aaa5b74b55"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:78-87 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:80-89 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 and \u0060http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 149 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 \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:78\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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"d17be79705d11330130b2598015a06a4251102d7201ecaf3fe5ddf0f4c81247f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): core/src/main/scalajs/sttp/client4/WebSocketImpl.scala:25-31 | core/src/main/scalajvm/sttp/client4/internal/httpclient/WebSocketImpl.scala:27-35 \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 \u0060core/src/main/scalajs/sttp/client4/WebSocketImpl.scala:25\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":"core/src/main/scalajs/sttp/client4/WebSocketImpl.scala"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb85fab85c1cc0144187ee0749c32fe3fdc4060fb7695ec348cfdbc9a5639f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/fs2Decompressors.scala:25-33 | effects/fs2/src/main/scala/sttp/client4/impl/fs2/fs2Decompressors.scala:22-30 \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 \u0060effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/fs2Decompressors.scala:25\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":"effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/fs2Decompressors.scala"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"a795dcd960af7e2db019ede7058412331b9731a2db9a39a87dc3d45e852e7d5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): effects/zio/src/main/scala/sttp/client4/impl/zio/ExtendedEnvBackend.scala:20-28 | effects/zio1/src/main/scala/sttp/client4/impl/zio/ExtendedEnvBackend.scala:20-28 \u2014 before extracting anything, compare \u0060effects/zio/src/main/scala/sttp/client4/impl/zio/ExtendedEnvBackend.scala\u0060 and \u0060effects/zio1/src/main/scala/sttp/client4/impl/zio/ExtendedEnvBackend.scala\u0060 as WHOLE FILES: 96% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060effects/zio/src/main/scala/sttp/client4/impl/zio/ExtendedEnvBackend.scala:20\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":"effects/zio/src/main/scala/sttp/client4/impl/zio/ExtendedEnvBackend.scala"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1561bcb56ef391525f95a4080c19a345d044c57c4dcf4b297197480b986ab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:191-199 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:186-194 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 and \u0060http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 149 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 \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:191\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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"de9c45e0c0e38a17cd331100741e42e36cc49c582377045f0914f1803806a671"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyToAkka.scala:38-45 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyToPekko.scala:39-46 \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 \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyToAkka.scala:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyToAkka.scala"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7cccde7013620affbe2247bd795ec3c95d1b22b3eb6d10c04d43b872f19e64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyToAkka.scala:60-67 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyToPekko.scala:61-68 \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 \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyToAkka.scala:60\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyToAkka.scala"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ea827ff62b7084b9d965a8b55ef696cc7a05fa29e26a4f07dcb7d413365813"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:28-35 | effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:27-34 \u2014 before extracting anything, compare \u0060effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala\u0060 and \u0060effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 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 \u0060effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:28\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":"effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f8b1699277cf2c3c6675e1f01958b7336250aaee29dbb84bd9d76894958828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:37-44 | effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:36-43 \u2014 before extracting anything, compare \u0060effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala\u0060 and \u0060effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 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 \u0060effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:37\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":"effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d284a977d5437249b36a311e0e45db27b8c704146de4afddb84d42c21e0fbe40"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala:31-38 | effects/zio1/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala:33-40 \u2014 before extracting anything, compare \u0060effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala\u0060 and \u0060effects/zio1/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 39 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 \u0060effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala:31\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":"effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/ZioBodyFromHttpClient.scala"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a7cc95ab1aa917635e5f021a5cbddc763e1bcbf814ec67c304b27984692cc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyToAkka.scala:28-34 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyToPekko.scala:29-35 \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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyToAkka.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc41d61dfb26d850004a55a23281660dbd60c4f364daf6c1325be146c60d076a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): armeria-backend/fs2-ce2/src/main/scala/sttp/client4/armeria/fs2/ArmeriaFs2Backend.scala:24-30 | armeria-backend/fs2/src/main/scala/sttp/client4/armeria/fs2/ArmeriaFs2Backend.scala:27-33 \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 \u0060armeria-backend/fs2-ce2/src/main/scala/sttp/client4/armeria/fs2/ArmeriaFs2Backend.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":"armeria-backend/fs2-ce2/src/main/scala/sttp/client4/armeria/fs2/ArmeriaFs2Backend.scala"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"10e10818dc9f88a9cab535733e2a1203f3b5b73d869b44d9974e451cd67955fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala:147-153 | core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala:239-245 \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":"core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"34e7e97419c7da37b87602cd85716e178e62d0a98be5db1e57e912e718dee873"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20137 lines \u00D7 3): core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala:160-163 | core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala:322-328 | core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala:347-353 \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":"core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d150f4be5ebd14e58b67a4ac5cf6d72234eb2e1e2b0cf7fcee9448e6a9a1665"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:47-53 | effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:46-52 \u2014 before extracting anything, compare \u0060effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala\u0060 and \u0060effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 51 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 \u0060effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala:47\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2WebSockets.scala"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df329ec7463495e240934e6270e8d08d179a27a834280312e16669bdfa6cf60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): effects/zio/src/main/scalajs/sttp/client4/impl/zio/FetchZioBackend.scala:58-64 | effects/zio1/src/main/scalajs/sttp/client4/impl/zio/FetchZioBackend.scala:63-69 \u2014 before extracting anything, compare \u0060effects/zio/src/main/scalajs/sttp/client4/impl/zio/FetchZioBackend.scala\u0060 and \u0060effects/zio1/src/main/scalajs/sttp/client4/impl/zio/FetchZioBackend.scala\u0060 as WHOLE FILES: 86% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060effects/zio/src/main/scalajs/sttp/client4/impl/zio/FetchZioBackend.scala:58\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"effects/zio/src/main/scalajs/sttp/client4/impl/zio/FetchZioBackend.scala"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f19865087e899c89a885617557a7066ce33533839a57aa179db06642ba95565"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): observability/otel4s-metrics-backend/src/main/scala/sttp/client4/opentelemetry/otel4s/Otel4sMetricsBackend.scala:174-180 | observability/otel4s-metrics-backend/src/main/scala/sttp/client4/opentelemetry/otel4s/Otel4sMetricsBackend.scala:199-205 \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, \u0060observability/otel4s-metrics-backend/src/main/scala/sttp/client4/opentelemetry/otel4s/Otel4sMetricsBackend.scala:206\u0060 calls \u0060maybe\u0060 and \u0060observability/otel4s-metrics-backend/src/main/scala/sttp/client4/opentelemetry/otel4s/Otel4sMetricsBackend.scala:181\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":"observability/otel4s-metrics-backend/src/main/scala/sttp/client4/opentelemetry/otel4s/Otel4sMetricsBackend.scala"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d188d9998ae62c8db0f4e6c0d100a4433f510be5f6ef142baa80c55edd48966"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): json/play-json/src/main/scala/sttp/client4/playJson/SttpPlayJsonApi.scala:50-55 | json/upickle/src/main/scala/sttp/client4/upicklejson/SttpUpickleApi.scala:49-54 | json/zio-json/src/main/scala/sttp/client4/ziojson/SttpZioJsonApi.scala:52-57 | json/zio1-json/src/main/scala/sttp/client4/ziojson/SttpZioJsonApi.scala:52-57 \u2014 before extracting anything, compare \u0060json/zio-json/src/main/scala/sttp/client4/ziojson/SttpZioJsonApi.scala\u0060 and \u0060json/zio1-json/src/main/scala/sttp/client4/ziojson/SttpZioJsonApi.scala\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060json/play-json/src/main/scala/sttp/client4/playJson/SttpPlayJsonApi.scala:50\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":"json/play-json/src/main/scala/sttp/client4/playJson/SttpPlayJsonApi.scala"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cc8483d03f3a1e5a998c8b4414eb88afef8381b313e834c4d0d09e59238a6f2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/scalajvm/sttp/client4/compression/defaultCompressors.scala:16-21 | core/src/main/scalajvm/sttp/client4/compression/defaultCompressors.scala:45-50 \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 \u0060core/src/main/scalajvm/sttp/client4/compression/defaultCompressors.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":"core/src/main/scalajvm/sttp/client4/compression/defaultCompressors.scala"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"10090061c4d37e7a73ede1bd90bf839cbfae0c5cfc527bb05c9b03ff0a6bfe5b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): effects/zio1/src/main/scala/sttp/client4/impl/zio/SttpClientStubbingBase.scala:97-102 | effects/zio1/src/main/scala/sttp/client4/impl/zio/SttpClientStubbingBase.scala:116-121 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060effects/zio1/src/main/scala/sttp/client4/impl/zio/SttpClientStubbingBase.scala:97\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":"effects/zio1/src/main/scala/sttp/client4/impl/zio/SttpClientStubbingBase.scala"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"637b5b4c85b1eeada14b532374b131f0418d722cf2b2b5633547ae63a2ef51ab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:230-235 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:225-230 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 and \u0060http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 149 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 \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:230\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"e026de2b27ccbe4e1c7cc51133d8798a7c52f21398c086f257d5beb3ebd0add1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:247-252 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:242-247 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 and \u0060http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 149 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 \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:247\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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"951646e345301816a714324659adba3e0a69bd873edfbe6bbd8b926226b58974"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): core/src/main/scalajs/sttp/client4/SttpClientExceptionExtensions.scala:20-24 | core/src/main/scalajvm/sttp/client4/SttpClientExceptionExtensions.scala:30-34 | core/src/main/scalanative/sttp/client4/SttpClientExceptionExtensions.scala:26-30 \u2014 before extracting anything, compare \u0060core/src/main/scalajs/sttp/client4/SttpClientExceptionExtensions.scala\u0060 and \u0060core/src/main/scalajvm/sttp/client4/SttpClientExceptionExtensions.scala\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060core/src/main/scalajs/sttp/client4/SttpClientExceptionExtensions.scala:20\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, \u0060core/src/main/scalajvm/sttp/client4/SttpClientExceptionExtensions.scala:27\u0060 calls \u0060Some\u0060, \u0060ReadException\u0060 and \u0060core/src/main/scalanative/sttp/client4/SttpClientExceptionExtensions.scala:23\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":"core/src/main/scalajs/sttp/client4/SttpClientExceptionExtensions.scala"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"f65ca0afbc8c3963c9fc5b77b6a3c4a2780fd2896b18728ddb2376b1cd52bb5e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/FromAkka.scala:13-17 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/FromPekko.scala:14-18 \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 \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/FromAkka.scala:13\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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/FromAkka.scala"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea3d8885ff4e542d0b24afdd1595e9244f3b104113fd31d4a784eac54112b9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/Util.scala:16-20 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/Util.scala:17-21 \u2014 before extracting anything, compare \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/Util.scala\u0060 and \u0060pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/Util.scala\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/Util.scala:16\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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/Util.scala"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"92e59541a809509d076bf7705a9d0c7a49a1521fffa345f4e5c99ac45a9ce302"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): core/src/main/scalajvm/sttp/client4/httpclient/HttpClientAsyncBackend.scala:180-187 | core/src/main/scalajvm/sttp/client4/httpclient/HttpClientSyncBackend.scala:118-122 \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 \u0060core/src/main/scalajvm/sttp/client4/httpclient/HttpClientAsyncBackend.scala:180\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":"core/src/main/scalajvm/sttp/client4/httpclient/HttpClientAsyncBackend.scala"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"754a40411f251b7197d74462b7cd41f67489ce94e089c62dc57a500a6be7731e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): effects/fs2-ce2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala:28-32 | effects/fs2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala:28-32 \u2014 before extracting anything, compare \u0060effects/fs2-ce2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala\u0060 and \u0060effects/fs2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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 \u0060effects/fs2-ce2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala:28\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":"effects/fs2-ce2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"4da98bb475ef754e01ec168668755d36e2147cfa62f80bc7d51ca99ddda1c950"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): effects/zio/src/main/scala/sttp/client4/impl/zio/ExtendedEnvBackend.scala:14-18 | effects/zio1/src/main/scala/sttp/client4/impl/zio/ExtendedEnvBackend.scala:14-18 \u2014 before extracting anything, compare \u0060effects/zio/src/main/scala/sttp/client4/impl/zio/ExtendedEnvBackend.scala\u0060 and \u0060effects/zio1/src/main/scala/sttp/client4/impl/zio/ExtendedEnvBackend.scala\u0060 as WHOLE FILES: 96% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060effects/zio/src/main/scala/sttp/client4/impl/zio/ExtendedEnvBackend.scala:14\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":"effects/zio/src/main/scala/sttp/client4/impl/zio/ExtendedEnvBackend.scala"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5302380d3e61aefe8745a827b9f1dcc04c49b32d89d9adc55b5e46710614dab0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): json/zio-json/src/main/scalajvm/sttp/client4/ziojson/SttpZioJsonApiExtensions.scala:22-26 | json/zio1-json/src/main/scalajvm/sttp/client4/ziojson/SttpZioJsonApiExtensions.scala:23-27 \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 \u0060json/zio-json/src/main/scalajvm/sttp/client4/ziojson/SttpZioJsonApiExtensions.scala:22\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":"json/zio-json/src/main/scalajvm/sttp/client4/ziojson/SttpZioJsonApiExtensions.scala"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"201a60b64be6035fd9cc9081f3f49f63bf09abb0673ba68f6f3a747d78524979"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3): armeria-backend/zio/src/main/scala/sttp/client4/armeria/zio/package.scala:25-51 | effects/zio/src/main/scalajs/sttp/client4/impl/zio/package.scala:12-107 | effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/package.scala:25-87 \u2014 before extracting anything, compare \u0060armeria-backend/zio/src/main/scala/sttp/client4/armeria/zio/package.scala\u0060 and \u0060effects/zio/src/main/scalajs/sttp/client4/impl/zio/package.scala\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060effects/zio/src/main/scalajs/sttp/client4/impl/zio/package.scala:12\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":"armeria-backend/zio/src/main/scala/sttp/client4/armeria/zio/package.scala"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee8ecf542c7d9c6a42a78e41b03f683c8bbc9cf5f0b38657518fb79c5414f72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): armeria-backend/zio1/src/main/scala/sttp/client4/armeria/zio/zio.scala:38-65 | effects/zio1/src/main/scalajvm/sttp/client4/httpclient/zio/package.scala:36-63 \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 \u0060armeria-backend/zio1/src/main/scala/sttp/client4/armeria/zio/zio.scala:38\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"armeria-backend/zio1/src/main/scala/sttp/client4/armeria/zio/zio.scala"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a57942aefe475ea0ede943b55bc5b6fc4136eeb35010deea3d15e515e5c4283"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): core/src/main/scalajvm/sttp/client4/internal/SttpFileExtensions.scala:13-32 | core/src/main/scalanative/sttp/client4/internal/SttpFileExtensions.scala:12-31 \u2014 before extracting anything, compare \u0060core/src/main/scalajvm/sttp/client4/internal/SttpFileExtensions.scala\u0060 and \u0060core/src/main/scalanative/sttp/client4/internal/SttpFileExtensions.scala\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/scalajvm/sttp/client4/internal/SttpFileExtensions.scala:13\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":"core/src/main/scalajvm/sttp/client4/internal/SttpFileExtensions.scala"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f3ba1243dace0fb56e3968f7b32b2d22484b506f1c71a57ada80ee7f3bdebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2): effects/cats-ce2/src/main/scala/sttp/client4/impl/cats/implicits.scala:14-58 | effects/cats/src/main/scala/sttp/client4/impl/cats/implicits.scala:14-58 \u2014 before extracting anything, compare \u0060effects/cats-ce2/src/main/scala/sttp/client4/impl/cats/implicits.scala\u0060 and \u0060effects/cats/src/main/scala/sttp/client4/impl/cats/implicits.scala\u0060 as WHOLE FILES: 92% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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 \u0060effects/cats-ce2/src/main/scala/sttp/client4/impl/cats/implicits.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":"effects/cats-ce2/src/main/scala/sttp/client4/impl/cats/implicits.scala"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"006902f03cfabc49c2faed2496dbe2af3ec2fa6cc1b2aa96621a426acb7e2899"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): effects/cats/src/main/scalajvm/sttp/client4/httpclient/cats/CatsSimpleQueue.scala:13-22 | effects/fs2/src/main/scalajvm/sttp/client4/impl/fs2/Fs2SimpleQueue.scala:13-22 \u2014 before extracting anything, compare \u0060effects/cats/src/main/scalajvm/sttp/client4/httpclient/cats/CatsSimpleQueue.scala\u0060 and \u0060effects/fs2/src/main/scalajvm/sttp/client4/impl/fs2/Fs2SimpleQueue.scala\u0060 as WHOLE FILES: 88% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"effects/cats/src/main/scalajvm/sttp/client4/httpclient/cats/CatsSimpleQueue.scala"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"4438f880b7f72648de9bec3f78a27f69e684abf3879505e94e0cc5ce8dd15c95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2): effects/zio/src/main/scalajs/sttp/client4/impl/zio/package.scala:12-107 | effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/package.scala:25-87 \u2014 before extracting anything, compare \u0060effects/zio/src/main/scalajs/sttp/client4/impl/zio/package.scala\u0060 and \u0060effects/zio/src/main/scalajvm/sttp/client4/httpclient/zio/package.scala\u0060 as WHOLE FILES: 96% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060effects/zio/src/main/scalajs/sttp/client4/impl/zio/package.scala:12\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":"effects/zio/src/main/scalajs/sttp/client4/impl/zio/package.scala"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca0464ad8b0f6c3c9f677bb98572629db014274eb6a497d1b7d7d4afe1d914b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): effects/zio/src/main/scalajvm/sttp/client4/impl/zio/package.scala:10-25 | effects/zio1/src/main/scala/sttp/client4/impl/zio/package.scala:10-25 \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 \u0060effects/zio/src/main/scalajvm/sttp/client4/impl/zio/package.scala:10\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":"effects/zio/src/main/scalajvm/sttp/client4/impl/zio/package.scala"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc98241c2745d037162b193573702480bd38af6148e667e212d828e253e6637"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2): http4s-backend/src/main/scalajvm/sttp/client4/http4s/Http4sBackend.scala:23-82 | http4s-backend/src/main/scalanative/sttp/client4/http4s/Http4sBackend.scala:23-62 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scalajvm/sttp/client4/http4s/Http4sBackend.scala\u0060 and \u0060http4s-backend/src/main/scalanative/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: 90% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. 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":"http4s-backend/src/main/scalajvm/sttp/client4/http4s/Http4sBackend.scala"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4f25a28076954590b078a8c026da2af189bf6074d253719c61febaa2496c6c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala:92-98 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/PekkoHttpBackend.scala:110-116 \u2014 before extracting anything, compare \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala\u0060 and \u0060pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/PekkoHttpBackend.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e54257631bb6164602d638f6bde7a400a88306aabc7d4d01f9707fdb14ca07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala:306-317 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/PekkoHttpBackend.scala:324-335 \u2014 before extracting anything, compare \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala\u0060 and \u0060pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/PekkoHttpBackend.scala\u0060 as WHOLE FILES: this scan already matched 4 separate duplicated blocks between them, totalling at least 45 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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"9eafcea62b8f84e0fad924f915780275c2a1ea44c4f9024d9b19cb837a73d6d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): armeria-backend/cats-ce2/src/main/scala/sttp/client4/armeria/cats/ArmeriaCatsBackend.scala:23-31 | armeria-backend/cats/src/main/scala/sttp/client4/armeria/cats/ArmeriaCatsBackend.scala:22-30 \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":"armeria-backend/cats-ce2/src/main/scala/sttp/client4/armeria/cats/ArmeriaCatsBackend.scala"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca327e92c54772d0b568d5f7d0e79af9eb0a78c14fc2012d4f9a62e6befbf01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): effects/cats/src/main/scalajvm/sttp/client4/httpclient/cats/HttpClientCatsBackend.scala:140-144 | effects/fs2/src/main/scalajvm/sttp/client4/httpclient/fs2/HttpClientFs2Backend.scala:179-183 \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":"effects/cats/src/main/scalajvm/sttp/client4/httpclient/cats/HttpClientCatsBackend.scala"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73edc960ec084846bebf73d093c52b9999e04e808ebe58c025f94833362c494"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2ServerSentEvents.scala:7-15 | effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2ServerSentEvents.scala:7-15 \u2014 before extracting anything, compare \u0060effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2ServerSentEvents.scala\u0060 and \u0060effects/fs2/src/main/scala/sttp/client4/impl/fs2/Fs2ServerSentEvents.scala\u0060 as WHOLE FILES: 100% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"effects/fs2-ce2/src/main/scala/sttp/client4/impl/fs2/Fs2ServerSentEvents.scala"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe464bd1e2f291efa6fbec8afd11a2d41ea1cd2c6d803055d42aba3ca3fdef65"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:142-147 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:138-143 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 and \u0060http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 149 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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"36fa36ce98e4d719cf42a8541683e3deab392164d97cde609bf8fde145935540"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala:210-216 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala:211-217 \u2014 before extracting anything, compare \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala\u0060 and \u0060pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 102 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 first that the copies are not typed on the same thing: \u0060ByteString\u0060 names \u0060akka.util.ByteString\u0060 in one and \u0060pekko.util.ByteString\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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c484b20b50c6879073fb4a5467555b186d0313cc9b8a8223805ab55894b1f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala:202-207 | pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala:203-208 \u2014 before extracting anything, compare \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala\u0060 and \u0060pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala\u0060 as WHOLE FILES: this scan already matched 6 separate duplicated blocks between them, totalling at least 102 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 first that the copies are not typed on the same thing: \u0060ByteString\u0060 names \u0060akka.util.ByteString\u0060 in one and \u0060pekko.util.ByteString\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":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"419d05d4e205e9b15301072e01d5c6658b4aba74e5e552d24460ac768511ae3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): core/src/main/scalajvm/sttp/client4/SttpClientExceptionExtensions.scala:13-21 | core/src/main/scalanative/sttp/client4/SttpClientExceptionExtensions.scala:11-19 \u2014 before extracting anything, compare \u0060core/src/main/scalajvm/sttp/client4/SttpClientExceptionExtensions.scala\u0060 and \u0060core/src/main/scalanative/sttp/client4/SttpClientExceptionExtensions.scala\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/scalajvm/sttp/client4/SttpClientExceptionExtensions.scala:13\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, \u0060core/src/main/scalajvm/sttp/client4/SttpClientExceptionExtensions.scala:22\u0060 calls \u0060Some\u0060, \u0060TimeoutException\u0060 and \u0060core/src/main/scalanative/sttp/client4/SttpClientExceptionExtensions.scala:20\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":"core/src/main/scalajvm/sttp/client4/SttpClientExceptionExtensions.scala"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6f1944d63a5c659b737f1e03fb20f79e27ec77788a8d2f2c28cd015885279c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): core/src/main/scalajvm/sttp/client4/SttpClientExceptionExtensions.scala:23-28 | core/src/main/scalanative/sttp/client4/SttpClientExceptionExtensions.scala:20-25 \u2014 before extracting anything, compare \u0060core/src/main/scalajvm/sttp/client4/SttpClientExceptionExtensions.scala\u0060 and \u0060core/src/main/scalanative/sttp/client4/SttpClientExceptionExtensions.scala\u0060 as WHOLE FILES: 84% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 3 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060core/src/main/scalajvm/sttp/client4/SttpClientExceptionExtensions.scala:23\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":"core/src/main/scalajvm/sttp/client4/SttpClientExceptionExtensions.scala"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e751e67aa75538b9e3b6b7319b36de392fad1582c711e15498924be127ba15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): effects/fs2-ce2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala:37-43 | effects/fs2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala:37-43 \u2014 before extracting anything, compare \u0060effects/fs2-ce2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala\u0060 and \u0060effects/fs2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 37 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. 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":"effects/fs2-ce2/src/main/scalajvm/sttp/client4/httpclient/fs2/Fs2BodyFromHttpClient.scala"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"6743fe7e418d773642273f65b59495ea79e8b4a19eadae0e2bd99374c5ed1511"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:278-283 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:273-278 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 and \u0060http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 149 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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"664c8a99c0944a6414d3578996ac7238e745e929f3709270f49a604ec9ea1900"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:223-227 | http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala:218-222 \u2014 before extracting anything, compare \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 and \u0060http4s-ce2-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060 as WHOLE FILES: this scan already matched 13 separate duplicated blocks between them, totalling at least 149 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 \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala:223\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":"http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"a119edf2f3efc10a8e44a5ef60d3c5ad58fc066e44972e90e6954b943827abc5"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HttpClientBackend (LCOM4 4): HttpClientBackend\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scalajvm/sttp/client4/httpclient/HttpClientBackend.scala"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"714935d008a0856eee8c32c1dc45600cfb6bd5dfa0ef8144ac2e602fe68482ea"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: OpenTelemetryMetricsListener (LCOM4 4): OpenTelemetryMetricsListener\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"observability/opentelemetry-backend/src/main/scala/sttp/client4/opentelemetry/OpenTelemetryMetricsBackend.scala"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68214919d2541c1343d732963ef390e3bc08e6490d1e2f396ee17190a9e3798"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HttpServer (LCOM4 4): HttpServer\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"testing/server/src/main/scala/sttp/client4/testing/server/HttpServer.scala"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"77739e42441203a27ed1e00c90d1669d5fc67e11a51b758c937e62df626f9f57"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 4 significant file(s) lose their only recent owner: armeria-backend/monix/src/main/scala/sttp/client4/armeria/monix/ArmeriaMonixBackend.scala, armeria-backend/fs2-ce2/src/main/scala/sttp/client4/armeria/fs2/ArmeriaFs2Backend.scala, armeria-backend/cats-ce2/src/main/scala/sttp/client4/armeria/cats/ArmeriaCatsBackend.scala, armeria-backend/cats/src/main/scala/sttp/client4/armeria/cats/ArmeriaCatsBackend.scala. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"692b849f1ba898a2bcd556ae7a11c71ee8081fc5c5efb22f6aec7e55c2c2671f"}},{"ruleId":"D16","level":"note","message":{"text":"Further sole-owners (lower concentration): 3 other contributor(s) are each the sole owner of a small amount of code below the off-boarding threshold \u2014 folded into the bus-factor score and metrics (8 single-owned of 140 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated and example/demo trees and test files identified by path convention, largest first; 140 of the 322 production source files in this repository met that bar). They are anonymized user #2 (2 file(s)), anonymized user #3 (1 file(s)), anonymized user #4 (1 file(s)) \u2014 spread or document their files in the same way, at lower priority than the named off-boarding risks above."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6eac528f2429e724e1a97ed868f79eefbcf1888dab4af9a9e673429369bb5b2f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: Replace with HttpResponse#discardEntityBytes() once https://github.com/akka/akka-http/issues/1459 is resolved"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/BodyFromAkka.scala"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbced2b99c7e518d205aa83c5cfd51fb4adebb55ed50d617533e908f8f82a00"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: Replace with HttpResponse#discardEntityBytes() once https://github.com/akka/akka-http/issues/1459 is resolved"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pekko-http-backend/src/main/scala/sttp/client4/pekkohttp/BodyFromPekko.scala"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5802e85f6a05823a42111c8172fa57b63baf28d14c00982a1dc3449e9a7885"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: consider if viaFunction is what we want \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":"armeria-backend/zio/src/test/scala/sttp/client4/armeria/zio/ArmeriaZioStreamingTest.scala"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"474d070cb410628e34cb5185444cf3c74cc96f22d3b45109b26ac94e207a76e7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: an even more dumbed-down version of the slightly more type-safe version below, which is needed due to a \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":"core/src/main/scala/sttp/client4/monad/MapEffect.scala"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"206c082ffed69c9eabb976e8a115a1922ce4d416ccbfcdb8baa76d6b36ef395b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: bug in Dotty: https://github.com/lampepfl/dotty/issues/9533"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scala/sttp/client4/monad/MapEffect.scala"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb4c6ab2dd9408838f236c707a4f2ddee8b2e0fac8810f5f4b484c45a29d096e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // todo: assign to monad object \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":"core/src/main/scalanative/sttp/client4/curl/AbstractCurlBackend.scala"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"da1e00808f95c626d052b0f51db6414430c69d897204a663770c1838b61822f7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: for some reason these explicit types are needed in Dotty \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":"core/src/test/scala/sttp/client4/testing/streaming/StreamingTest.scala"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d12d403f1f77b069b946d0c85d613fba484bccbcc7764def1ab3353edc2cd2d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: for some reason these explicit types are needed in Dotty \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":"core/src/test/scala/sttp/client4/testing/streaming/StreamingTest.scala"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"86138471394fbfc491571cde9cf56388f260cd8e4e06cbe3d3363bf82cf5fd71"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: for some reason these explicit types are needed in Dotty \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":"core/src/test/scala/sttp/client4/testing/streaming/StreamingTest.scala"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e6cd3dfb37e91bd8043e4789794a4300b6db7006d214206d1fb01020a06248"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: for some reason these explicit types are needed in Dotty \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":"core/src/test/scala/sttp/client4/testing/streaming/StreamingTest.scala"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"154c17d3e4649d6a122341a317f354ed7dee5d14a52163fc0d159fde76c40eef"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: //   // TODO: for some reason these explicit types are needed in Dotty \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":"core/src/test/scala/sttp/client4/testing/streaming/StreamingTest.scala"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc3f7913f1d0f97f373d926ff40402ef5ece88251ab68e8676e095aef03a028"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: on GH Actions some tests sometimes timeout. For lack of a better solution, retrying them, but this needs proper fixing one 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":"core/src/test/scalajvm/sttp/client4/testing/AsyncRetries.scala"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3e866b33e411f1557bb663018731b4dff9ada92d575e34de80a4f4cd6af0ed5"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO: it will return empty value becasue there is a bug in scala native \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":"core/src/test/scalanative/sttp/client4/testing/SyncHttpTestExtensions.scala"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"18ae236459950bd547867934b73efeb1be823c42fa7911fd375b1aa626237ea6"}},{"ruleId":"D20","level":"warning","message":{"text":"No consequences/trade-offs section (e.g. loss of validation for unsafeApply) are present and the body is clipped: "},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docs/adr/0002-http-model-conventions.md"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b432afd7dda4ed41738788206698a98ef95d99eac5e7d05bb66505afea780f8d"}},{"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":"703b990f6d9a60db46de372b4bc3713bc769740b61be7dfed2b23b523664ac12"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"04cc6ef8b2713c5ae671a21c5adfc62ed3d32eec231bd27236ea49e066082d50"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"709c0e126fb9c330faf261a12c08f56d5e6134264c8ab1edf06d0a68665eb944"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc26593caf509b487cb3dff9d1a587737a02c72fc5e13e59c1a151f7d6412ad4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"baa151beff35ac46ee2536907cc918a207da07c42b004fec4c9aab8d58a6df6d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f8b72ba93b802dbde3870bd4e188d2f12cd284b55a68b3067f4b37948524f600"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b51a2f7dde20710a2b7e23d6f43643473bcc1d97e07f09b483d71b0f06980159"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a4d99d14f5d13a46bf5c921b65e94aa5c8cf1924337f9597abe209393000bd53"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"91ab08c4ba48802f7e21d19d0fbffda2e90f7c1c0eec4ee8be049e7838f52072"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"06a85016c6d2e9efe9315b247c53ea19e7593279e5a3449398109fb78bb8a18f"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9600bb898b62e2cc8b2443705b293b0310e938f92768f84366cbbdb110d4b56c"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-552","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7573696c7617026fe16fde62b4c3d666f9846a9cbab5bbbc29621c3cbeb85deb"},"taxa":[{"id":"CWE-1104","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-1329","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D35","level":"error","message":{"text":"Boundary-crossing change coupling: AkkaHttpBackend.scala \u2194 Http4sBackendBase.scala: \u0060akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala\u0060 (context akka-http-backend) and \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackendBase.scala\u0060 (context http4s-backend) sit in DIFFERENT parts of the tree yet change together 50% of the time (6 of the 12 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \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) \u2014 the bounded-context boundary may be in the wrong place, or one context is leaking into the other. This is the behavioural boundary violation a static scan can\u0027t see. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u0060371b40f0\u0060 Add an option to limit the response length for JVM backends (#2410) (at that commit the file was still \u0060http4s-backend/src/main/scala/sttp/client4/http4s/Http4sBackend.scala\u0060); \u006008bb1664\u0060 Used tags for auto decompresion disabling (at that commit the files were still \u0060akka-http-backend/src/main/scala/sttp/client3/akkahttp/AkkaHttpBackend.scala\u0060 and \u0060http4s-backend/src/main/scala/sttp/client3/http4s/Http4sBackend.scala\u0060); \u00602c5c5b55\u0060 Restore old version (at that commit the files were still \u0060akka-http-backend/src/main/scala/sttp/client3/akkahttp/AkkaHttpBackend.scala\u0060 and \u0060http4s-backend/src/main/scala/sttp/client3/http4s/Http4sBackend.scala\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka-http-backend/src/main/scala/sttp/client4/akkahttp/AkkaHttpBackend.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73e5a1ac8e743434fdc553d525670ad4e59e4e27f72f0556944cda7d52810a7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"35f64a0396611dfd8e0191313b0d7cdc759890497b52affaaa727cf6ce876cfd"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"}},{"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 6915 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"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"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1104","guid":"4c918cb5-b2a6-6c55-9963-a44ee464305e","name":"CWE-1104","shortDescription":{"text":"CWE-1104"},"helpUri":"https://cwe.mitre.org/data/definitions/1104.html"},{"id":"CWE-1329","guid":"f70f1c3f-4ccf-cb5e-bdd3-03ba4868d36d","name":"CWE-1329","shortDescription":{"text":"CWE-1329"},"helpUri":"https://cwe.mitre.org/data/definitions/1329.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-250","guid":"52ee12e8-390a-7351-b1e6-388afa694e54","name":"CWE-250","shortDescription":{"text":"CWE-250"},"helpUri":"https://cwe.mitre.org/data/definitions/250.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-552","guid":"3492436b-eca2-9c54-9ba3-5dade427c903","name":"CWE-552","shortDescription":{"text":"CWE-552"},"helpUri":"https://cwe.mitre.org/data/definitions/552.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-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":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":17,"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."]}]}