{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D9","name":"Test Distribution","shortDescription":{"text":"Test Distribution"},"helpUri":"https://codehealth.canine.dev/dimensions/D9"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D16","name":"Bus Factor","shortDescription":{"text":"Bus Factor"},"helpUri":"https://codehealth.canine.dev/dimensions/D16"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX8","name":"Test isolation","shortDescription":{"text":"Test isolation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX8"},{"id":"AXB1","name":"Runtime evidence locked \u2014 no reproducible boot","shortDescription":{"text":"Runtime evidence locked \u2014 no reproducible boot"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB1"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P10","name":"Library API \u0026 versioning","shortDescription":{"text":"Library API \u0026 versioning"},"helpUri":"https://codehealth.canine.dev/dimensions/P10"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF2","name":"Allocation hygiene","shortDescription":{"text":"Allocation hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF2"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"DistributeJob.apply (cyclomatic 65): DistributeJob.apply has cyclomatic complexity 65 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/DistributeJob.scala"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"40eb8b258811c11123d8e076f4e1e734879da9667cbe3477dfeae719f240b0a9"}},{"ruleId":"D1","level":"warning","message":{"text":"ReplicatedCassandra.apply (cyclomatic 58): ReplicatedCassandra.apply has cyclomatic complexity 58 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/ReplicatedCassandra.scala"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"8171f93b6485835c81affee410ab811eeb5380b7f39fac8ca54c5f5e3fa7e395"}},{"ruleId":"D1","level":"warning","message":{"text":"PartitionCache.main (cyclomatic 34): PartitionCache.main has cyclomatic complexity 34 (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":"journal/src/main/scala/com/evolution/kafka/journal/PartitionCache.scala"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b877f6766410fa0c24de488200f9c85ff689966a7e6f65298ec382aed6d9006"}},{"ruleId":"D1","level":"warning","message":{"text":"Journals.apply (cyclomatic 32): Journals.apply has cyclomatic complexity 32 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/Journals.scala"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"808a7a54d7244d24b983ab3b70eafeb867a4a9c8bb8dd00129ebfe5d8caec59a"}},{"ruleId":"D1","level":"warning","message":{"text":"ReplicateRecords.apply (cyclomatic 30): ReplicateRecords.apply has cyclomatic complexity 30 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/ReplicateRecords.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"33951e0be4b36647c61decb126026f06bbb4491dc53cbe43ebc9213b43bfbb15"}},{"ruleId":"D1","level":"warning","message":{"text":"JournalOps.withMetrics (cyclomatic 29): JournalOps.withMetrics has cyclomatic complexity 29 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/Journal.scala"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e9e816b6f9af7d509cc2168256590112afb3d2719585f610925a672f83fd6b7"}},{"ruleId":"D1","level":"warning","message":{"text":"TopicReplicator.of (cyclomatic 29): TopicReplicator.of has cyclomatic complexity 29 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/TopicReplicator.scala"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"314958a08211bedd5e7d40910fb58ba0ac27c7cf5dea77baa1103c6ed76cdac2"}},{"ruleId":"D1","level":"warning","message":{"text":"JournalOps.withLog (cyclomatic 27): JournalOps.withLog has cyclomatic complexity 27 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/Journal.scala"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd94d66de34e1d467b9a8a3e634d2623fc5a129b74aec53b9287cb23b3c90d7"}},{"ruleId":"D1","level":"warning","message":{"text":"State.fold (cyclomatic 27): State.fold has cyclomatic complexity 27 (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":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/Batch.scala"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"57470429239f3f7f6f44c9efdb75e2b42c0454591b1d801e7ba229b16a4805b4"}},{"ruleId":"D1","level":"warning","message":{"text":"Damper.of (cyclomatic 26): Damper.of has cyclomatic complexity 26 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/Damper.scala"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"00fde572a786106235b2cf9510fa3651c621b93d3bfe33a4f883ed0a6cf68674"}},{"ruleId":"D1","level":"warning","message":{"text":"Group.make (cyclomatic 25): Group.make has cyclomatic complexity 25 (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":"journal/src/main/scala/com/evolution/kafka/journal/Group.scala"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"150ce9eee6e75ab49cfa046049a84fed3022733680389c08bbef915239c2ae3a"}},{"ruleId":"D1","level":"warning","message":{"text":"EventualCassandra.apply (cyclomatic 23): EventualCassandra.apply has cyclomatic complexity 23 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/EventualCassandra.scala"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"87fefb113d2349d72dc340429d78790fa854fe51e13d1164afe609596373f529"}},{"ruleId":"D1","level":"warning","message":{"text":"TopicCache.make (cyclomatic 20): TopicCache.make has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/TopicCache.scala"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a1b9c1c66acdc471efc9e36dbc1e146090b0e482df3e92f74e3dad2b09cd12"}},{"ruleId":"D1","level":"warning","message":{"text":"TopicReplicatorMetrics.make (cyclomatic 20): TopicReplicatorMetrics.make has cyclomatic complexity 20 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/TopicReplicatorMetrics.scala"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c578e1e2ecbfeee713a56b952fc1476530b8147d79433ca8c9bf6edfd92bc16"}},{"ruleId":"D1","level":"warning","message":{"text":"KafkaJournal.adapterIO (cyclomatic 19): KafkaJournal.adapterIO has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bf0e1a4d8ddeebc8fd0cb45a0656d74b6b5288bbd4d0198999b4992e5acce8d"}},{"ruleId":"D1","level":"warning","message":{"text":"EventualJournalOps.withMetrics (cyclomatic 19): EventualJournalOps.withMetrics has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/eventual/EventualJournal.scala"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"438f71727aa0a822a09af6af6b3d773c84bf9e8e70aa06a3dca3e7283c586a11"}},{"ruleId":"D1","level":"warning","message":{"text":"KafkaJournal.adapterIO (cyclomatic 19): KafkaJournal.adapterIO has cyclomatic complexity 19 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3156ebef566568d5db1301fe33d230b7bac41bbd112852660e81fdca4531536"}},{"ruleId":"D1","level":"warning","message":{"text":"JournalAdapter.apply (cyclomatic 17): JournalAdapter.apply has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccabda650c7c9c3edd048291ebd25fb2e3b47b342fe84511f4a4f96ca7f4d294"}},{"ruleId":"D1","level":"warning","message":{"text":"SettingsOps.withLog (cyclomatic 17): SettingsOps.withLog has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scala/com/evolution/kafka/journal/Settings.scala"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"0713609cbca6cd932c9e7efd63cb634f1c9875a620619027667278a58ef5395a"}},{"ruleId":"D1","level":"warning","message":{"text":"EventualJournalOps.withLog (cyclomatic 17): EventualJournalOps.withLog has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/eventual/EventualJournal.scala"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf25ed2f82b578710988ff21e3189268ceac0f703adda6bfce3b8d06908070a"}},{"ruleId":"D1","level":"warning","message":{"text":"JournalAdapter.apply (cyclomatic 17): JournalAdapter.apply has cyclomatic complexity 17 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/JournalAdapter.scala"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f83982fa0fd7a50b8abd76290ec29d6a2460ce7a094cfa02245d9c58eb757d0"}},{"ruleId":"D1","level":"warning","message":{"text":"TopicCacheOps.withMetrics (cyclomatic 16): TopicCacheOps.withMetrics has cyclomatic complexity 16 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/TopicCache.scala"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"26b7f7a44f8c18b5b144890a51bf297d35d5ece6b44134befc53adbbc139f2f7"}},{"ruleId":"D2","level":"warning","message":{"text":"DistributeJob.apply (cognitive 368): DistributeJob.apply has cognitive complexity 368 (threshold 15). Drivers by points: loops 27 (205 pts), match/switch 15 (124 pts), if/else 8 (39 pts) (nesting depth added 318). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/DistributeJob.scala"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"8267baab493b10bc9f476a1e917dbe1cc205d33456f38c8e9197d1f569e1cf20"}},{"ruleId":"D2","level":"warning","message":{"text":"TopicReplicator.of (cognitive 185): TopicReplicator.of has cognitive complexity 185 (threshold 15). Drivers by points: loops 27 (174 pts), if/else 2 (11 pts) (nesting depth added 156). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/TopicReplicator.scala"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03e2bdacf3242641b08b612160492031e7d47fc2133ac1bd07e851aa177006d"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicatedCassandra.apply (cognitive 159): ReplicatedCassandra.apply has cognitive complexity 159 (threshold 15). Drivers by points: loops 31 (100 pts), if/else 19 (39 pts), match/switch 7 (20 pts) (nesting depth added 102). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/ReplicatedCassandra.scala"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"867195084bfa4ec80d3b37047bd6a9266c85c569163a3bcd404a9ac493872bd9"}},{"ruleId":"D2","level":"warning","message":{"text":"TopicReplicatorMetrics.make (cognitive 159): TopicReplicatorMetrics.make has cognitive complexity 159 (threshold 15). Drivers by points: loops 19 (159 pts) (nesting depth added 140). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/TopicReplicatorMetrics.scala"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e590fcbb449f675c9500a0f552e53165fd2cb82ff6432c3519782d68c76a8f"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaJournal.adapterIO (cognitive 110): KafkaJournal.adapterIO has cognitive complexity 110 (threshold 15). Drivers by points: loops 16 (106 pts), match/switch 1 (4 pts) (nesting depth added 93). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9c30e362da752dacca2b8109106c0cb144058f15e978abcbb6c318fdbb0a34"}},{"ruleId":"D2","level":"warning","message":{"text":"KafkaJournal.adapterIO (cognitive 110): KafkaJournal.adapterIO has cognitive complexity 110 (threshold 15). Drivers by points: loops 16 (106 pts), match/switch 1 (4 pts) (nesting depth added 93). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"966e2798cfa137effee1d0ac66bee002767e23ea9858db440fd40b9452252d39"}},{"ruleId":"D2","level":"warning","message":{"text":"TopicCache.make (cognitive 94): TopicCache.make has cognitive complexity 94 (threshold 15). Drivers by points: loops 15 (83 pts), match/switch 2 (11 pts) (nesting depth added 77). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/TopicCache.scala"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e6f2452eacfccc4e85355bd16cfe9dddc35b17c0b03867002f31b9b18358b7a"}},{"ruleId":"D2","level":"warning","message":{"text":"Metrics.make (cognitive 74): Metrics.make has cognitive complexity 74 (threshold 15). Drivers by points: loops 12 (66 pts), if/else 2 (8 pts) (nesting depth added 60). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/HeadCache.scala"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaed178c066cc3a3b6d504cf2b97ce964045d0f11da14af00494b8e095bc9038"}},{"ruleId":"D2","level":"warning","message":{"text":"JournalOps.withLog (cognitive 67): JournalOps.withLog has cognitive complexity 67 (threshold 15). Drivers by points: loops 24 (60 pts), if/else 4 (7 pts) (nesting depth added 39). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/Journal.scala"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ea5ed235d8a8d7291442eed08a51db1947a63b5dbf6313e5b4531e61e09858"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumerPool.make (cognitive 66): ConsumerPool.make has cognitive complexity 66 (threshold 15). Drivers by points: loops 11 (66 pts) (nesting depth added 55). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/ConsumerPool.scala"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed8fd529e0cc2d25df50ec403feabb7f1ea1c6049d4f589fcc7b689c8eba3d2"}},{"ruleId":"D2","level":"warning","message":{"text":"JournalOps.withMetrics (cognitive 66): JournalOps.withMetrics has cognitive complexity 66 (threshold 15). Drivers by points: loops 28 (66 pts) (nesting depth added 38). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/Journal.scala"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"07e84b0efece89fd3bb9246351cf00f3e1c0c98f06c2db0220231528c6e440d4"}},{"ruleId":"D2","level":"warning","message":{"text":"PartitionCache.main (cognitive 63): PartitionCache.main has cognitive complexity 63 (threshold 15). Drivers by points: match/switch 12 (30 pts), loops 6 (17 pts), if/else 11 (16 pts) (nesting depth added 34). 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":"journal/src/main/scala/com/evolution/kafka/journal/PartitionCache.scala"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"88327b50eeb4203292f070bc55b92122dba022f476abe288d829830449664721"}},{"ruleId":"D2","level":"warning","message":{"text":"Journals.apply (cognitive 58): Journals.apply has cognitive complexity 58 (threshold 15). Drivers by points: loops 15 (42 pts), match/switch 5 (12 pts), if/else 2 (4 pts) (nesting depth added 36). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/Journals.scala"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"5096fe6a87bbc8a2231e10b5762503ae4710405ff67a65eca9415e338f9022b7"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicateRecords.apply (cognitive 53): ReplicateRecords.apply has cognitive complexity 53 (threshold 15). Drivers by points: loops 22 (40 pts), if/else 8 (12 pts), match/switch 1 (nesting depth added 22). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/ReplicateRecords.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27a729a8f12c839abea964d8ea96ee67e2b50568a790e8cfb8c7034d3c78e58"}},{"ruleId":"D2","level":"warning","message":{"text":"StreamActionRecords.apply (cognitive 48): StreamActionRecords.apply has cognitive complexity 48 (threshold 15). Drivers by points: if/else 10 (28 pts), loops 4 (14 pts), match/switch 1 (6 pts) (nesting depth added 33). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/StreamActionRecords.scala"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"0df04f60822969ffdc333cca41f1ca3690de338830b75a3b8e419ec54be41796"}},{"ruleId":"D2","level":"warning","message":{"text":"Damper.of (cognitive 47): Damper.of has cognitive complexity 47 (threshold 15). Drivers by points: if/else 12 (25 pts), match/switch 7 (12 pts), loops 4 (10 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/Damper.scala"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a213798f761a99f1169ef3bb096f3a6a05304e5fb338b82655a0cbf0533aeb0"}},{"ruleId":"D2","level":"warning","message":{"text":"MetaJournalStatements.of (cognitive 45): MetaJournalStatements.of has cognitive complexity 45 (threshold 15). Drivers by points: loops 9 (45 pts) (nesting depth added 36). 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 (Statements.of) 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":"eventual-cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/ReplicatedCassandra.scala"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"4874aa0e6b20aedcc64be2cfc3c51c1f4601eba3603105194a9bc85cd75c3487"}},{"ruleId":"D2","level":"warning","message":{"text":"Statements.of (cognitive 45): Statements.of has cognitive complexity 45 (threshold 15). Drivers by points: loops 9 (45 pts) (nesting depth added 36). 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 (MetaJournalStatements.of) 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":"eventual-cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/ReplicatedCassandra.scala"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a041414249d0f2bde2c3ed1fd2f227b814bea3b40c8de985e8f66a1c79cdc0"}},{"ruleId":"D2","level":"warning","message":{"text":"EventualJournalOps.withMetrics (cognitive 43): EventualJournalOps.withMetrics has cognitive complexity 43 (threshold 15). Drivers by points: loops 18 (43 pts) (nesting depth added 25). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/eventual/EventualJournal.scala"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"be82e488443c38df3da69edc563e1027d6d8ae11c6faf49ca58e8e584b9c447a"}},{"ruleId":"D2","level":"warning","message":{"text":"SettingsOps.withLog (cognitive 40): SettingsOps.withLog has cognitive complexity 40 (threshold 15). Drivers by points: loops 16 (40 pts) (nesting depth added 24). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scala/com/evolution/kafka/journal/Settings.scala"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f103f41cd9d026185efe5edcffa88b00af830a3d5e200c220ae387767cfdba7"}},{"ruleId":"D2","level":"warning","message":{"text":"EventualJournalOps.withLog (cognitive 40): EventualJournalOps.withLog has cognitive complexity 40 (threshold 15). Drivers by points: loops 16 (40 pts) (nesting depth added 24). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/eventual/EventualJournal.scala"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2566afe3263bc5e524fa7505f2f852a9bacc37717a60783464f3b01f9c4679"}},{"ruleId":"D2","level":"warning","message":{"text":"Replicator.start (cognitive 40): Replicator.start has cognitive complexity 40 (threshold 15). Drivers by points: loops 11 (35 pts), if/else 2 (5 pts) (nesting depth added 27). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/Replicator.scala"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b15eed36bca4b02db31e8c2d62b722a27e07a99e21b0fe98883f91fd2847bdf"}},{"ruleId":"D2","level":"warning","message":{"text":"Metrics.make (cognitive 36): Metrics.make has cognitive complexity 36 (threshold 15). Drivers by points: loops 8 (36 pts) (nesting depth added 28). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedJournal.scala"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"469c9090c925bf407dc2dd9aea0d2593e7fede5c207a771b9e8a85e06a0de97f"}},{"ruleId":"D2","level":"warning","message":{"text":"JournalAdapter.apply (cognitive 35): JournalAdapter.apply has cognitive complexity 35 (threshold 15). Drivers by points: loops 13 (27 pts), if/else 4 (7 pts), boolean chains 1 (nesting depth added 17). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"37d08a9929e249bd4343a35df5f4c837d01e70b406c3f5a7969a2e0946c1664e"}},{"ruleId":"D2","level":"warning","message":{"text":"JournalAdapter.apply (cognitive 35): JournalAdapter.apply has cognitive complexity 35 (threshold 15). Drivers by points: loops 13 (27 pts), if/else 4 (7 pts), boolean chains 1 (nesting depth added 17). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/JournalAdapter.scala"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a08081ae835576780d9a637edb6ab623e3cc417990a203614d9e7986898857"}},{"ruleId":"D2","level":"warning","message":{"text":"Replicator.make (cognitive 35): Replicator.make has cognitive complexity 35 (threshold 15). Drivers by points: loops 8 (28 pts), match/switch 1 (6 pts), if/else 1 (nesting depth added 25). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/Replicator.scala"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea7ee94c28e9ab38a32cd43ff249630dad11c606370106f66c6945fcf0247089"}},{"ruleId":"D2","level":"warning","message":{"text":"State.fold (cognitive 33): State.fold has cognitive complexity 33 (threshold 15). Drivers by points: match/switch 8 (19 pts), if/else 6 (14 pts) (nesting depth added 19). 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":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/Batch.scala"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7777f6cb695c1609f9fa1f4ad7a10bd7c6431bb452cf47ff008797c9b996be"}},{"ruleId":"D2","level":"warning","message":{"text":"EventualCassandra.apply (cognitive 31): EventualCassandra.apply has cognitive complexity 31 (threshold 15). Drivers by points: loops 8 (16 pts), if/else 6 (8 pts), match/switch 4 (7 pts) (nesting depth added 13). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/EventualCassandra.scala"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"773fe83b0e420f6955193614e120a85abd4769cb1b9e9629ccdf4f6d50ae4d3e"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicatedKeyJournalOps.withLog (cognitive 30): ReplicatedKeyJournalOps.withLog has cognitive complexity 30 (threshold 15). Drivers by points: loops 12 (30 pts) (nesting depth added 18). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (ReplicatedKeyJournalOps.withMetrics) 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":"journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedKeyJournal.scala"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c4fe7643dee45198a92515852ad4c93f61d282dd8b4fad690e5d5d3eb25767"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicatedKeyJournalOps.withMetrics (cognitive 30): ReplicatedKeyJournalOps.withMetrics has cognitive complexity 30 (threshold 15). Drivers by points: loops 12 (30 pts) (nesting depth added 18). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (ReplicatedKeyJournalOps.withLog) 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":"journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedKeyJournal.scala"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"4840d4d3222283046b667ee85475a221b6b4250222a98f377492863a0dd819e8"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicatedPartitionJournalOps.withLog (cognitive 30): ReplicatedPartitionJournalOps.withLog has cognitive complexity 30 (threshold 15). Drivers by points: loops 12 (30 pts) (nesting depth added 18). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (ReplicatedPartitionJournalOps.withMetrics) 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":"journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedPartitionJournal.scala"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f1e86748a483c60ae944cb4959b9212898d87dae3aa22f400e1ebfadc4e658"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicatedPartitionJournalOps.withMetrics (cognitive 30): ReplicatedPartitionJournalOps.withMetrics has cognitive complexity 30 (threshold 15). Drivers by points: loops 12 (30 pts) (nesting depth added 18). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline. This shape REPEATS in the file: one other method here (ReplicatedPartitionJournalOps.withLog) 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":"journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedPartitionJournal.scala"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ae2af817900d38340f37aa4671f93c21e17dcfec152dbcd613d02d795bca63"}},{"ruleId":"D2","level":"warning","message":{"text":"ReplicatedCassandra.of (cognitive 28): ReplicatedCassandra.of has cognitive complexity 28 (threshold 15). Drivers by points: loops 7 (28 pts) (nesting depth added 21). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/ReplicatedCassandra.scala"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fddb8db2cf735734d67630cec7f984ee2ae3cf1f7b233fd63f707e16c654dda4"}},{"ruleId":"D2","level":"warning","message":{"text":"HeadCacheConsumption.apply (cognitive 28): HeadCacheConsumption.apply has cognitive complexity 28 (threshold 15). Drivers by points: loops 11 (28 pts) (nesting depth added 17). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/HeadCacheConsumption.scala"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"63bb5f713bb53db4d2d95a2cdddae912205b07e4ebb3695c40953add9ed018a0"}},{"ruleId":"D2","level":"warning","message":{"text":"JournalMetrics.make (cognitive 24): JournalMetrics.make has cognitive complexity 24 (threshold 15). Drivers by points: loops 7 (24 pts) (nesting depth added 17). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/JournalMetrics.scala"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d68658d176227466526a257fc08cbf3368d6470b6d22a0b17f8eddc99c0274e"}},{"ruleId":"D2","level":"warning","message":{"text":"ExpiryServiceOps.withLog (cognitive 22): ExpiryServiceOps.withLog has cognitive complexity 22 (threshold 15). Drivers by points: loops 8 (20 pts), if/else 1, match/switch 1 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/ExpiryService.scala"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f42cc360421cfb88dd8c7e21ba74384432a49ec99748567a56754cd0db60d91"}},{"ruleId":"D2","level":"warning","message":{"text":"ConsumeActionRecords.apply (cognitive 22): ConsumeActionRecords.apply has cognitive complexity 22 (threshold 15). Drivers by points: loops 8 (22 pts) (nesting depth added 14). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/ConsumeActionRecords.scala"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eed912acea9e52de2b88c78cec1851f14ec4f39e63b47efa23be31381277f82"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateKeyspace.apply (cognitive 20): CreateKeyspace.apply has cognitive complexity 20 (threshold 15). Drivers by points: loops 6 (18 pts), if/else 2 (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cassandra/src/main/scala/com/evolution/kafka/journal/cassandra/CreateKeyspace.scala"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f91a8ab2fea527e85a3a37f633ebb10e158fe3cc84b0979247a732c34c5a0f3"}},{"ruleId":"D2","level":"warning","message":{"text":"CreateTables.apply (cognitive 20): CreateTables.apply has cognitive complexity 20 (threshold 15). Drivers by points: loops 9 (20 pts) (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cassandra/src/main/scala/com/evolution/kafka/journal/cassandra/CreateTables.scala"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1f4a6f07c8743cae5fd7edf8956dba37134c329ab66a19ddb37571bc1a86de"}},{"ruleId":"D2","level":"warning","message":{"text":"ResultSet.apply (cognitive 20): ResultSet.apply has cognitive complexity 20 (threshold 15). Drivers by points: loops 7 (13 pts), if/else 2 (4 pts), match/switch 1 (3 pts) (nesting depth added 10). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/ResultSet.scala"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffb50980f6be059c4a13f2a3f32f252714d31be607064c003e55c3140f3028c"}},{"ruleId":"D2","level":"warning","message":{"text":"TopicCacheOps.withMetrics (cognitive 20): TopicCacheOps.withMetrics has cognitive complexity 20 (threshold 15). Drivers by points: loops 6 (15 pts), match/switch 2 (5 pts) (nesting depth added 12). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/TopicCache.scala"},"region":{"startLine":512}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffbc5753fd5e6b0b36ad1771620f2f3b83554334141bf74ccdd51308e3d3fba"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Damper.of: MethodTooLong \u2014 of runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/Damper.scala"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e9c1a7f3a5991ed48bde0ba4b3f268c8c797e334d3a629e38e5f71a1b1ee7f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ReplicateRecords.apply: MethodTooLong \u2014 apply runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\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":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/ReplicateRecords.scala"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c52f6e617cedc35be07d1425b7648a2aba3fbb01a081c0ec246b073073c7442"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: cassandra/MetaJournalStatements.scala: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 13 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/MetaJournalStatements.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5306ff5eadb501df0c6ebfe8c267b061089e387a94fd27147515674493b1bc4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (70 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala:159-228 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/JournalAdapter.scala:159-228 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/JournalAdapter.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 185 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb49b770d1890e30530a5b8fc9fbcdff32fc4a453a8ff7bccc34feab30202bbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala:83-149 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/JournalAdapter.scala:83-149 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/JournalAdapter.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 185 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04c5507f2d4be49a1ec2ceaf79df1b5d79d289c5a90e677f509d940e2c715f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (61 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala:200-260 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala:200-260 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 145 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2ea05d143b08da2def230d889263cbc21bb7dacdcf163e0b60739d256be4ec1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (59 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala:214-272 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/EventSerializer.scala:214-272 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/EventSerializer.scala\u0060 as WHOLE FILES: this scan already matched 5 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 \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala:214\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060PersistentRepr\u0060 names \u0060akka.persistence.PersistentRepr\u0060 in one and \u0060org.apache.pekko.persistence.PersistentRepr\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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f66117b0763dc7d4fd13fc6978702ee15f6bc119f77fe36a856014da8118ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala:133-183 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/EventSerializer.scala:133-183 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/EventSerializer.scala\u0060 as WHOLE FILES: this scan already matched 5 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 \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala:133\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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f3869ed5dfc21dc25ef26eec4d558db64a9da70bb4a3461a8d378f4d2679df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): akka/persistence-circe/src/main/scala/com/evolution/kafka/journal/akka/persistence/circe/KafkaJournalCirce.scala:50-90 | pekko/persistence-circe/src/main/scala/com/evolution/kafka/journal/pekko/persistence/circe/KafkaJournalCirce.scala:50-90 \u2014 before extracting anything, compare \u0060akka/persistence-circe/src/main/scala/com/evolution/kafka/journal/akka/persistence/circe/KafkaJournalCirce.scala\u0060 and \u0060pekko/persistence-circe/src/main/scala/com/evolution/kafka/journal/pekko/persistence/circe/KafkaJournalCirce.scala\u0060 as WHOLE FILES: 93% 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. 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: \u0060PersistentRepresentation\u0060 names \u0060com.evolution.kafka.journal.akka.persistence.EventSerializer.PersistentRepresentation\u0060 in one and \u0060com.evolution.kafka.journal.pekko.persistence.EventSerializer.PersistentRepresentation\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/persistence-circe/src/main/scala/com/evolution/kafka/journal/akka/persistence/circe/KafkaJournalCirce.scala"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2444d3155395813fa0194c0c4c2d9b2dd071d8c403ff02671ab1106d53ba5cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/LogFromAkka.scala:10-50 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/LogFromPekko.scala:10-50 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/LogFromAkka.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/LogFromPekko.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. Note first that the copies are not typed on the same thing: \u0060LoggingAdapter\u0060 names \u0060_root_.akka.event.LoggingAdapter\u0060 in one and \u0060org.apache.pekko.event.LoggingAdapter\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/persistence/src/main/scala/com/evolution/kafka/journal/LogFromAkka.scala"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0316e0eedc1121c27357e3c8361e3516ba285a3ab34cf7c18eeacdfc5b59941"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/ToKey.scala:35-71 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/ToKey.scala:35-71 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/ToKey.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/ToKey.scala\u0060 as WHOLE FILES: 98% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/ToKey.scala"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5324d3d85180a70e794cf3761b2612e7749042d838a93fd2b5d425a5b11ecea4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 2): eventual-cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/MetaJournalStatements.scala:143-165 | eventual-cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/MetaJournalStatements.scala:184-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. Read the line range as the matched WINDOW rather than a finished unit: at \u0060eventual-cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/MetaJournalStatements.scala:143\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/main/scala/com/evolution/kafka/journal/eventual/cassandra/MetaJournalStatements.scala"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e764803b4095e4e75caea26a982631bf41ce77840b64e2437e210dcc2dab92b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala:250-271 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/JournalAdapter.scala:250-271 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/JournalAdapter.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 185 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala:250\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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b50632caa5e6559ee14cccee225afcff216b2bd90556510da3532f6e9ca8416"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala:184-204 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/EventSerializer.scala:184-204 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/EventSerializer.scala\u0060 as WHOLE FILES: this scan already matched 5 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 \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala:184\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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"489adebbf20c7142964feb3b2444f21d8f4aca969a6f7a2c99d6f72865dd4c21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/GroupByWeight.scala:11-26 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/GroupByWeight.scala:11-26 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/GroupByWeight.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/GroupByWeight.scala\u0060 as WHOLE FILES: 94% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/GroupByWeight.scala:11\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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/GroupByWeight.scala"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9a84753d8c966413e1654b4410c831ab3d1ab255a651145f73034979e8d34a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): journal/src/main/scala/com/evolution/kafka/journal/eventual/EventualJournal.scala:151-166 | journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedJournal.scala:234-249 \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 \u0060journal/src/main/scala/com/evolution/kafka/journal/eventual/EventualJournal.scala:151\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":"journal/src/main/scala/com/evolution/kafka/journal/eventual/EventualJournal.scala"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9efc90c81dab6490d7ebb0df1767191642e3b3a0fbc9f90279c715e23692593"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/SerializedMsgSerializer.scala:36-49 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/SerializedMsgSerializer.scala:36-49 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/SerializedMsgSerializer.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/SerializedMsgSerializer.scala\u0060 as WHOLE FILES: 91% 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/SerializedMsgSerializer.scala"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c46f6ca084ddd82ea00005f02fa93ce9267991c383a796db5dce8b016e152f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala:51-63 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/JournalAdapter.scala:51-63 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/JournalAdapter.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 185 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"1865f89af42757b5f4fb907c4157303f77b3a45ccecbf9fe8dce5d6067c73f3e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedKeyJournal.scala:133-145 | journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedKeyJournal.scala:187-199 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedKeyJournal.scala:133\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":"journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedKeyJournal.scala"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31e378cc9945e3af29172e6d119413bc0023071f08f158a97de7b4aafb87d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 3): journal/src/main/scala/com/evolution/kafka/journal/eventual/EventualJournal.scala:151-162 | journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedJournal.scala:234-245 | replicator/src/main/scala/com/evolution/kafka/journal/replicator/TopicReplicatorMetrics.scala:85-96 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060journal/src/main/scala/com/evolution/kafka/journal/eventual/EventualJournal.scala:151\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":"journal/src/main/scala/com/evolution/kafka/journal/eventual/EventualJournal.scala"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aba6791abfff8bd01b33ca6647bf9011053b5f31a81484b65a09c7a306c2e5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): replicator/src/main/scala/com/evolution/kafka/journal/replicator/ReplicateRecords.scala:120-131 | replicator/src/main/scala/com/evolution/kafka/journal/replicator/ReplicateRecords.scala:145-154 \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 \u0060replicator/src/main/scala/com/evolution/kafka/journal/replicator/ReplicateRecords.scala:120\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":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/ReplicateRecords.scala"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4710d8089b0b8916a3d127f4640d3c6ffb30ad40c864c01f36959274fb098596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/ToKey.scala:23-33 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/ToKey.scala:23-33 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/ToKey.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/ToKey.scala\u0060 as WHOLE FILES: 98% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 2 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/ToKey.scala"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5893c4de3e065ca5b59fc0af10d458868c3ccbfc93d9f1b1421b40f66b34156"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): core/src/main/scala/com/evolution/kafka/journal/Settings.scala:72-81 | journal/src/main/scala/com/evolution/kafka/journal/eventual/EventualJournal.scala:237-246 | journal/src/main/scala/com/evolution/kafka/journal/eventual/EventualJournal.scala:260-269 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scala/com/evolution/kafka/journal/Settings.scala"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"abef30e390b90ddf67bfa38f3d0a03983a46719191de7b2f73440502148d35ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala:276-285 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/EventSerializer.scala:276-285 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/EventSerializer.scala\u0060 as WHOLE FILES: this scan already matched 5 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. Note first that the copies are not typed on the same thing: \u0060PersistentRepr\u0060 names \u0060akka.persistence.PersistentRepr\u0060 in one and \u0060org.apache.pekko.persistence.PersistentRepr\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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0034feb88811164802a2d5c4656251b68a7bb8e8c827aa31c4f945e89fd80d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala:363-372 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala:363-372 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 145 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb74bd43779fd17415a34f89f36a518d296dc7c9de16fc9f05bdd15dbee9cdd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedKeyJournal.scala:115-124 | journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedKeyJournal.scala:176-185 \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 \u0060journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedKeyJournal.scala:115\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":"journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedKeyJournal.scala"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2cee570f4940dce243d5b71b26ad9797c42fa911f6d42ee14fb2c3d76392120"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala:351-358 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala:351-358 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 145 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90b49f40bc015a2f787abadf4b72c8216834d362fae4d850734619ff2afc0b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): journal/src/main/scala/com/evolution/kafka/journal/Journal.scala:145-151 | journal/src/main/scala/com/evolution/kafka/journal/Journal.scala:241-247 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060journal/src/main/scala/com/evolution/kafka/journal/Journal.scala:145\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/Journal.scala"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5ce5062f996f2352b09b851d553c8cebf59f9ef54546cac02f41f06e7ff615"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): replicator/src/main/scala/com/evolution/kafka/journal/replicator/PurgeExpired.scala:86-92 | replicator/src/main/scala/com/evolution/kafka/journal/replicator/PurgeExpired.scala:106-112 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060replicator/src/main/scala/com/evolution/kafka/journal/replicator/PurgeExpired.scala:86\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":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/PurgeExpired.scala"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66f3bc711516a77fcd9a8aa111d11ab79629f4f7587ffa68f0f761e1c7006a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/ActorSystemRef.scala:21-51 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/ActorSystemRef.scala:21-51 \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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/ActorSystemRef.scala:21\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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/ActorSystemRef.scala"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c542a0f510af63f7edde3393e81b1c916fccf2c4e5e45c8e8f2324e7da1454"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/AppendMetadataOf.scala:16-21 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/AppendMetadataOf.scala:16-21 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/AppendMetadataOf.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/AppendMetadataOf.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. Note first that the copies are not typed on the same thing: \u0060PersistentRepr\u0060 names \u0060akka.persistence.PersistentRepr\u0060 in one and \u0060org.apache.pekko.persistence.PersistentRepr\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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/AppendMetadataOf.scala"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b72db0e5a884062d6117445d1b9b859de99148acaf1fc1ab868638eda9434df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/Batching.scala:16-26 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/Batching.scala:16-26 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/Batching.scala:16\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: \u0060AtomicWrite\u0060 names \u0060akka.persistence.AtomicWrite\u0060 in one and \u0060org.apache.pekko.persistence.AtomicWrite\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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/Batching.scala"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e226e64426d30459b7d268704c383593fe8dfe3fd52228041d47fc3e9e270f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/PersistentBinary.scala:17-24 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/PersistentBinary.scala:17-24 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: \u0060PersistentRepr\u0060 names \u0060akka.persistence.PersistentRepr\u0060 in one and \u0060org.apache.pekko.persistence.PersistentRepr\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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/PersistentBinary.scala"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"89e98fd07f87065743d93e3df3949583d3080a8a0373aa984904e747d0817f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/OriginExtension.scala:20-27 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/OriginExtension.scala:20-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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/OriginExtension.scala"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"01888be74d15691de865c5ba9927e3f654b4079179759e76b02a325771105e7f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala:87-94 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/EventSerializer.scala:87-94 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/EventSerializer.scala\u0060 as WHOLE FILES: this scan already matched 5 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. Note first that the copies are not typed on the same thing: \u0060PersistentRepr\u0060 names \u0060akka.persistence.PersistentRepr\u0060 in one and \u0060org.apache.pekko.persistence.PersistentRepr\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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/EventSerializer.scala"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60dbd2fd21100ce520b173d904a8fea25418274202ae6043e57406a253eca56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala:132-140 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala:132-140 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 145 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf920deb81a806a15a1d7e88ddc3d7cbd73c421d67713a5fa68c628406b5d19"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala:167-174 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala:167-174 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 145 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"0754f7bb51a8fd6219213cf6c74808cdf34e15b5a3ff13984ca994e02bd20d1f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala:176-183 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala:176-183 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 145 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3989857ddcb98e51442ca7d2403400eb699db4cad9e00e4b5003b0fe0ba0e1c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala:278-292 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala:278-292 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 145 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala:278\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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"b339ee9245cc4b0cac83a609fe1e0c44f7dfe45e0df132af677558bd6d0dddbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala:310-324 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala:310-324 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 145 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala:310\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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec64912d95f107b90eee2792fdabb82d73256da415960b4b1f9542c18989dcad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala:326-330 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala:326-330 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 145 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"8da432d9505d81c8e18bea1240af8d1d59090611a516700c36754b91bcaa2f18"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala:336-341 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala:336-341 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/KafkaJournal.scala\u0060 as WHOLE FILES: this scan already matched 10 separate duplicated blocks between them, totalling at least 145 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/KafkaJournal.scala"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e11884314c4219c47e4b37219e104de5e4d120fe0c7e14288ab3992d0bb75ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/SerializedMsgSerializer.scala:53-58 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/SerializedMsgSerializer.scala:53-58 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/SerializedMsgSerializer.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/SerializedMsgSerializer.scala\u0060 as WHOLE FILES: 91% 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/SerializedMsgSerializer.scala"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac677bc7bc029eb2b3dea81ec8d7e04389a9301c20329ce2eb38ae58dcc5100"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala:232-244 | pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/JournalAdapter.scala:232-244 \u2014 before extracting anything, compare \u0060akka/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala\u0060 and \u0060pekko/persistence/src/main/scala/com/evolution/kafka/journal/pekko/persistence/JournalAdapter.scala\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 185 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/persistence/src/main/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapter.scala"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e915fa63660e96ed7f230fc2d4423d1197f9f502f798e1529871624e078f437a"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: core: core: abstractness 0.22, instability 0.00, distance 0.78 \u2014 zone of pain \u2014 concrete and depended on by 3 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"deda6fd6cb2c3d74f7dc0fecd76cc36d1d58966a5bcb861efc01f7e84f6f398d"}},{"ruleId":"D16","level":"note","message":{"text":"Off-boarding risk: anonymized user #1: If anonymized user #1 becomes unavailable, 2 significant file(s) lose their only recent owner: journal/src/main/scala/com/evolution/kafka/journal/eventual/ReplicatedJournal.scala, replicator/src/main/scala/com/evolution/kafka/journal/replicator/TopicReplicatorMetrics.scala. Pair on, review, or document these before any departure."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"fcba7239799b26a64d2a0b4ebeacba76007e500c4492257c6c1a5c78fb29018a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO expiry: implement actual expiration test \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":"akka/integration-tests/src/test/scala/com/evolution/kafka/journal/it/ReplicatorIntSpec.scala"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"6984b6a21151e19b1fd3fc3108ed4c70d9fe6d85a1b0acb467241f622d58b061"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO expiry: implement actual expiration test \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":"pekko/integration-tests/src/test/scala/com/evolution/kafka/journal/it/ReplicatorIntSpec.scala"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"600b38bc141b2a9e00551a579d169f12dc9ae0c4a202340058824f34a3b5ffca"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO expiry: replicator should handle random message and not fail, headcache as well \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":"akka/integration-tests/src/test/scala/com/evolution/kafka/journal/it/ReplicatorIntSpec.scala"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"b633baf54aa7e0e16899175bc98704365e99c42c0c1f42c8fbc3fbf2f98df29b"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO expiry: replicator should handle random message and not fail, headcache as well \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":"pekko/integration-tests/src/test/scala/com/evolution/kafka/journal/it/ReplicatorIntSpec.scala"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeeb6aa885f417cd2f6a7ed71b866bfe8eb80d199acadaceefa046cfdd1fe2e1"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO expiry: how to verify \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":"akka/integration-tests/src/test/scala/com/evolution/kafka/journal/it/ReplicatorIntSpec.scala"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec7310f24b1579db9ebbef0cf47a7518fae6df756e9c4ce7da52ca71ba82f371"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO expiry: how to verify \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":"pekko/integration-tests/src/test/scala/com/evolution/kafka/journal/it/ReplicatorIntSpec.scala"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82f3676436626ae14fbfb3c5ccabf0fa6f8eae404c820f01a4c3f4850599a02"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO add Instant as argument \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":"akka/persistence/src/test/scala/com/evolution/kafka/journal/akka/persistence/JournalAdapterSpec.scala"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd2610928f0f3858c68cd2ba5d2317163896833de4c35b8573a472c92378e5b0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO add Instant as argument \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":"pekko/persistence/src/test/scala/com/evolution/kafka/journal/pekko/persistence/JournalAdapterSpec.scala"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c7b0bf2b67e676779576ae17777d77e0556363eabe4fce6cd258c418662e14"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO MR here we expect that in \u0060metajournal\u0060 we save: highest \u0060seqNr\u0060 with first \u0060origin\u0060 - is it important? \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":"benchmark/src/test/scala/com/evolution/kafka/journal/replicator/Batch_4_1_0_Alternative_with_Vector.scala"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8292e963b9cabc3ddc3470f2e8f2f7ec1b60ab3b701f0a7976f95d3add994f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO not use \u0060as\u0060 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cassandra/src/main/scala/com/evolution/kafka/journal/cassandra/PlayJsonHelperExtension.scala"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"81bef3179496fa06c963a6b1861612f6bc83a67cb993e856190954f73dd96208"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO refactor the way SeqNr done \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/com/evolution/kafka/journal/SeqRange.scala"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e59184b5ade040120a465b8ce443a6b812985fe3f29e89b91db3ef04968ce3a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO move to skafka \u0026 scassandra \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":"eventual-cassandra/src/main/scala/com/evolution/kafka/journal/cassandra/SkafkaHelperExtension.scala"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"a864a9ac3762ab4eb3adc5ad857e810cbc8f410ecd6038fc851cec8108041f66"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO move to skafka \u0026 scassandra \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":"journal/src/main/scala/com/evolution/kafka/journal/util/SkafkaHelper.scala"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"87abcbb35315338695611abc6496a25e56d264d4fc573544ab668bd7c8e347ad"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO MR why not \u0060400\u0060?! \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/test/scala/com/evolution/kafka/journal/eventual/cassandra/ReplicatedCassandraTest.scala"},"region":{"startLine":1703}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f4010331f1830186d86a164db85c92127da53af860486d3c72ae05133fea77"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // 575 TODO MR should get fixed in #676"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/test/scala/com/evolution/kafka/journal/eventual/cassandra/ReplicatedCassandraTest.scala"},"region":{"startLine":1768}}}],"partialFingerprints":{"codehealthFindingId/v1":"67175983d2ba5ef31f5f73feacd3b9c8ea3af4a940b290c40a4fc4ac3df50293"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // 575 TODO MR should get fixed in #676"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/test/scala/com/evolution/kafka/journal/eventual/cassandra/ReplicatedCassandraTest.scala"},"region":{"startLine":1774}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98bee8549db0ed527decc41a4ec0ec37ad32988ec292c44cffcbcbe786b4573"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // 575 TODO MR should get fixed in #676"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/test/scala/com/evolution/kafka/journal/eventual/cassandra/ReplicatedCassandraTest.scala"},"region":{"startLine":1787}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf261712bdfc3cb407c549a76955b5245d1b9d5a8119d9efcecf52ae816ab353"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // 575 TODO MR should get fixed in #676"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/test/scala/com/evolution/kafka/journal/eventual/cassandra/ReplicatedCassandraTest.scala"},"region":{"startLine":1788}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3803ce4e9bf8e0633c962fb35ca10404eda8eb99fb608ecfa636aa8920ff118"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // 575 TODO MR should get fixed in #676"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"eventual-cassandra/src/test/scala/com/evolution/kafka/journal/eventual/cassandra/ReplicatedCassandraTest.scala"},"region":{"startLine":1810}}}],"partialFingerprints":{"codehealthFindingId/v1":"c340841ff962da4e63d92d402f81404353805e6cf6b68873081ed4b672d3eeb8"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO expiry: test purge \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":"eventual-cassandra/src/test/scala/com/evolution/kafka/journal/eventual/cassandra/EventualCassandraSpec.scala"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f667d9b357fd4b8452763de1f92cd6618e92c11035cfb57e3dd6f7bdf2527e2"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO add range argument \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":"journal/src/main/scala/com/evolution/kafka/journal/StreamActionRecords.scala"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7151ce8085cdfb2fd869cfce14135205fbe030a649758ac4659cde550f6e61f9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO compare partitions ! \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":"journal/src/main/scala/com/evolution/kafka/journal/StreamActionRecords.scala"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"7defbeeb650a4bfe67370630936725529387f7ccfc563d73f1928230f74449b7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO not used \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":"journal/src/main/scala/com/evolution/kafka/journal/PayloadAndType.scala"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b142c3bcc9a8003292b5ef39a80ad60ed73c3bb752a1f4b30c0de09ec78ccc4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO refactor this, pass from offset, rather than from - 1 \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":"journal/src/main/scala/com/evolution/kafka/journal/Journals.scala"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"87bdfb4c210f3737604f12e77823dd71394473e5bdd44aa5db3bafb7a8864fac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO refactor, we don\u0027t need to call \u0060eventual.pointer\u0060 without using it\u0027s offset \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":"journal/src/main/scala/com/evolution/kafka/journal/Journals.scala"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"087c0e98abe0cd9b23c77430e1bc337d2875c8793a37815eda13fc385bd3017d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO not delete already deleted, do not accept deleteTo=2 when already deleteTo=3 \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060// REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/main/scala/com/evolution/kafka/journal/Journals.scala"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b478ef0e5d84a6d6d8890fd3e1e1d836bd94d6737697fe45d81016cabc56b82"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO add test when Kafka missing it\u0027s tail comparing to eventual \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":"journal/src/test/scala/com/evolution/kafka/journal/JournalSpec.scala"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb9f3f445f26f58e038f91b69840c7595bfe987f438f062b6ff6dee05f0a179"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO implement via mocking EventualCassandra \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":"journal/src/test/scala/com/evolution/kafka/journal/JournalSpec.scala"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"8602307e20d8710fea4440eea6a5a3a5ba9ce6b6cc08a78c6119deca0e38f48d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO headcache: how to test? \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":"journal/src/test/scala/com/evolution/kafka/journal/HeadCacheSpec.scala"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3db396ac7281812c3e2b2c63984039b5f970f065f43be9134432f6466593aac"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO add test for custom offset \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":"journal/src/test/scala/com/evolution/kafka/journal/eventual/EventualJournalSpec.scala"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c0e5cf27f450f3962686dfc80c482b39d66da77143ea7cb830a44e7210cedda"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO expiry: define expireAfter and test \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":"journal/src/test/scala/com/evolution/kafka/journal/eventual/EventualJournalSpec.scala"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"1419832c136f53b434f5957a23ea87e99840222246a392e3be4b9cec7c4f05ea"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO TEST \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":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/Replicator.scala"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a7d4a5e768e520417de3fb2c596bd11b886dc737741063e6853e8f5e0d6e8b7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: // TODO \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":"replicator/src/main/scala/com/evolution/kafka/journal/replicator/Replicator.scala"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"239d32cd982c615ece3349674dce7d6cbe69d1fee37118d46e6c52c67b70fc9d"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (18680 LoC, 582 module-visible types across 26 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd34071f0a37397b22950926e6e7d533f19a1ab2e35c80a3ec230eef7195ce4c"},"taxa":[{"id":"CWE-250","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"aa2d3bca03a95a82d33af16b892b14edeecf5fa8edac9a7888f4dc777eaf7d2b"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"517d0564ecc6c8651cd749022e862b25e109c572c8c748c4c3b338338a5e4ce5"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"11c031cb4451118a47325756d2f5f84e3b3d9aba7b5362a2170ed22f4096fc49"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e6f21fc5a158668aa58329f79a2fdfc422b7fb05aafb8709b1a92f7975600197"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f955ab80cd0beda6b453222d0944aeb351d292ccb661a2976bf44f734b7f9970"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b6918dcd155e11253712c2c1388c320cc011716567b6e41544b26d98110d15e"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c0e9e1be4ca1df4c144524cf42cf51576194f84164aab335ef2717d747b6c2f"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f19ba8b2c0d2be73c9ea697198894bbf3dec66f39884739593a267a1ca148706"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"69907fb2399ab0bb3b2dad9bcd6133e456cd0fd752cc962c74c8d8ab1cfeb2b0"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"02926e58fba9841e65f9f9ce7acb85b9b7bb24b8dc4beac65c5ef3d73aacf674"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a1319f4524d554f7e9ae6ce9c5841f372e0fa39c590b8f21220b5dadf66a5d1a"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0d385f72f3ea716a2d1561c2ddc67dcc725f3c48016e7c1eb6d4624c22dc6605"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"59ccf5b32c6f8e26f8b009be271bc02989800e50285487c86164379c8fde085e"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e371e4a17907a20d04b62408f5e1b862423c3cdc1a13fc2e257e7271ed2773c6"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"62ebe523bc93175ac458728744aec48ce9d1f897c7ee110118037fcf046e14e5"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2f4d60461ee04f7133b58c5cb1d0633fa3cd1ab8f9a792850b95baf1f2d67c0d"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4ac80f4526b07283db2dbdd62eb1757c2acfecc70e6b3a87f3ad2d1d2b7754b0"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4b2e464c1d6658578c646193f4e44e3e0c84e5fb3cd500db6a976acd800b656a"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0c15852df13396b7281955fa5d7826d18622cf6f366489180c0caa7af9f5e7ab"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c5bd31b64960f5d2fbce536f458e3241ee008e8932b8e9fe67c25fa6dd00db4c"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"abe94968f46ad1116504a0fd53ff4eadc3faf5570b58299ce9ecad26cac41bed"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"195d34c4448061c70bdecdf17a4a6a6e63d2c2f7cf72c4f5e859e94650d6d2b1"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bd48724f0ddbfe32d4387677c81d81b662e0ff805bbb048b9b8303708c21b891"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"20a3f0e42ab8bcb594818fac90c6a7d964bf71a1f20c6b8058c7c8e47f6f0b1c"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e6a4e3b8cc1f2527d03ca01d86e61535b011ba2fb697109099b952fa7c1c6c18"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c11403049380f12eec64339e5cf6b2f290cb52431392cea93690759b430e6f89"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a167305c5deb3a4f7e93908a7d31068455838d6e6ccaebdcd708e13f9e8711e1"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"312158a4122162e8de705bd43a2f1fec2780b9c40dd33043badce00a0715448f"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5e64efa903c3bbe2d49a78021a30b3b11b0120e745ee6ac69f8e064ea03af055"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fb372341b65c14ab2b8ab5f1d1af2cf2f6ee273ef178a9e369fc377944788027"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f1aa6dabdd3611db36cc03e2aa468b764496707b62c2acd6b9f35086b31ecc05"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e426dbd393230a8eeb84625a9eb9a86f3c0fed78645deb73452e7ddd679e7f8"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc0fcea8c89d13976c48b2d8ab8b63346e6eafa6f9b6b3c7d2f2823e56d84981"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e2ee9b36967dfce70d69e1290339d2ea35b07fd921d366284affaefdc8f5b47e"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2dfa7fd2bb5fec41fac0da559d597ae91f1ba91b60a9788557da82968ae7135c"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9719de273afbe0de780fc86d475254756705ac9d73724d801978fd445ef9fd76"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e47ac821eba445a1364bdaa37ff6dc129543cf38ceeefc9ed726d1d3730a2927"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8a4640797630f896bd2d5d292ea6414c0d6b1ee7d8a6ca7e7e05d9aaefd2393b"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ff891bfcf2729a60d44773380919bd021a46ce9bef2a791180d707fcf2280066"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: PlayJsonHelper.scala \u2194 ScodecHelper.scala: \u0060core/src/main/scala/com/evolution/kafka/journal/util/PlayJsonHelper.scala\u0060 and \u0060core/src/main/scala/com/evolution/kafka/journal/util/ScodecHelper.scala\u0060 change together 73% of the time (8 of the 11 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). They sit in the same directory, and in this ecosystem sibling files there normally share one namespace/package \u2014 so a direct reference between them needs no import and this pass cannot see whether one exists. Read the pair before acting: if one file only DECLARES what the other consumes (a constants/types file beside its user), the co-change is definitional and the question is whether the split earns its keep; if they duplicate structure, extract the common part into a shared function or type they both call; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060d7e41242\u0060 Scala 3 support (#758) (at that commit the files were still \u0060core/src/main/scala/com/evolutiongaming/kafka/journal/util/PlayJsonHelper.scala\u0060 and \u0060core/src/main/scala/com/evolutiongaming/kafka/journal/util/ScodecHelper.scala\u0060); \u0060c305ee7e\u0060 Clean unused imports (at that commit the files were still \u0060journal/src/main/scala/com/evolutiongaming/kafka/journal/util/PlayJsonHelper.scala\u0060 and \u0060journal/src/main/scala/com/evolutiongaming/kafka/journal/util/ScodecHelper.scala\u0060); \u00604df37cc6\u0060 Configurable JsonCodec in Replicator (#136) (at that commit the files were still \u0060journal/src/main/scala/com/evolutiongaming/kafka/journal/util/PlayJsonHelper.scala\u0060 and \u0060journal/src/main/scala/com/evolutiongaming/kafka/journal/util/ScodecHelper.scala\u0060) \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"core/src/main/scala/com/evolution/kafka/journal/util/PlayJsonHelper.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98e186a468162b87552f777362461e703d2f300ded6a13dd1c67bd42652c67d1"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"akka/integration-tests/src/test/scala/com/evolution/kafka/journal/it/BaseJournalIntSpec.scala"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"c529762635bba4453a33d442606aa790d0e02413f906d1e096580b6c0c7dba67"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"journal/src/test/scala/com/evolution/kafka/journal/HeadCacheSpec.scala"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb28351b8ce77fc9912ac3cc345b5a44eca9d9fc1a113fcde1d0c0bf70a753e"}},{"ruleId":"IC1","level":"note","message":{"text":"Disabled test: A test is skipped/ignored \u2014 coverage that looks present but never runs. Re-enable it or delete it so the green run means something."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"pekko/integration-tests/src/test/scala/com/evolution/kafka/journal/it/BaseJournalIntSpec.scala"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"185d3b207f5970f1ec1c1e6ccc1175eb363a45f668e321783a41b28716c55890"}},{"ruleId":"M1","level":"warning","message":{"text":"README may be stale: 20 code files changed in the last 6 months but the README was not touched \u2014 it may no longer reflect the system."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e973e7a8d5d866995cbf78b120250fe7f132bf928812d48ca62e69aba11b9910"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README advertises Docker containerisation, but no Dockerfile/compose file exists \u2014 searched for: \u0060dockerfile\u0060, \u0060docker-compose\u0060, \u0060compose.yaml\u0060, \u0060compose.yml\u0060. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest and configuration files (package.json and other *.json, *.csproj, *.props, *.sln/*.slnx, *.yml, *.toml, *.config, tool configs such as eslint.config.js, Dockerfile); the README\u0027s own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read \u2014 a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"README.md"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"343bbbd51ceb8de7a9ff88d79f7c797abf9b5921f8727b67b4d0f4f8a22c5e49"}},{"ruleId":"P1","level":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"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 782 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}},{"ruleId":"PF1","level":"note","message":{"text":"Benchmarks don\u0027t track allocations: A JMH/Jetpack Benchmark suite exists but nothing turns on its allocation measurement \u2014 allocations (the main way hot code pressures a garbage collector or allocator) aren\u0027t being measured."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"benchmark/src/test/scala/com/evolution/kafka/journal/JournalReadBenchmark.scala"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f32f3d1b9036a5863bf0d8a6b7a6faec0468920f5b5031620cb0e7b2dadb410f"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060circe.convertPlayToCirce\u0060 is public, takes a document from its caller (line 10) and hands it to \u0060convert\u0060, which calls itself at line 20 with a piece of \u0060jsValue\u0060 (and at line 25), not as a tail call the compiler turns into a loop \u2014 and nowhere in \u0060convert\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. On the JVM\u0027s default 1 MB thread stack a walk like this one throws \u0060StackOverflowError\u0060 from about 500\u20132,000 levels on a cold first call and 6,000\u201317,000 once warmed up (OpenJDK 21 and 25), while \u0060ujson.read\u0060, Jackson\u0027s \u0060readTree\u0060 before 2.15 and circe before 0.14.16 accept any nesting (2,000,000 levels from 4 MB) and circe 0.14.16 accepts 4,096 \u2014 on a cold JVM even play-json\u0027s cap of 1,000 is past the point the walk fails. \u0060StackOverflowError\u0060 is not \u0060NonFatal\u0060: \u0060Try\u0060, \u0060case NonFatal(e)\u0060 and \u0060recover\u0060 do not stop it, and in a \u0060Future\u0060 on the global execution context it leaves the future forever incomplete. Thread a depth argument through \u0060convert\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"circe/src/main/scala/com/evolution/kafka/journal/circe/package.scala"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2034378184422edbb9438c67ed62b59a18eabb85acbebbe938476ad0988094"}},{"ruleId":"X17","level":"warning","message":{"text":"Recursive walk over a caller-supplied document has no depth cap: \u0060circe.convertCirceToPlay\u0060 is public, takes a document from its caller (line 31) and hands it to \u0060convert\u0060, which calls itself at line 42 with a piece of \u0060json\u0060 (and at line 50), not as a tail call the compiler turns into a loop \u2014 and nowhere in \u0060convert\u0060 is there a depth parameter, a descent counter, or any other cap. The walk therefore spends one stack frame per LEVEL of the value it is handed, so the nesting of the caller\u0027s document \u2014 not this code \u2014 decides how deep the stack goes. On the JVM\u0027s default 1 MB thread stack a walk like this one throws \u0060StackOverflowError\u0060 from about 500\u20132,000 levels on a cold first call and 6,000\u201317,000 once warmed up (OpenJDK 21 and 25), while \u0060ujson.read\u0060, Jackson\u0027s \u0060readTree\u0060 before 2.15 and circe before 0.14.16 accept any nesting (2,000,000 levels from 4 MB) and circe 0.14.16 accepts 4,096 \u2014 on a cold JVM even play-json\u0027s cap of 1,000 is past the point the walk fails. \u0060StackOverflowError\u0060 is not \u0060NonFatal\u0060: \u0060Try\u0060, \u0060case NonFatal(e)\u0060 and \u0060recover\u0060 do not stop it, and in a \u0060Future\u0060 on the global execution context it leaves the future forever incomplete. Thread a depth argument through \u0060convert\u0060 and reject the value past a fixed maximum, or rewrite the descent with an explicit stack."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"circe/src/main/scala/com/evolution/kafka/journal/circe/package.scala"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3db779881e32e502ce14fe5032e62a0f0f0bbd4618d11b06234024a0c5668a2a"}},{"ruleId":"X5","level":"note","message":{"text":"Scala\u0027s null is not held to the type system everywhere: No build over this repository\u0027s 226 Scala product file(s) passes \u0060-Yexplicit-nulls\u0060, enables WartRemover\u0027s \u0060Null\u0060 wart or runs Scalafix\u0027s \u0060DisableSyntax.noNulls\u0060, so every reference type admits null and nothing reports a \u0060null\u0060 written into the code or returned from a Java API \u2014 the first one to reach a method call is a \u0060NullPointerException\u0060. \u0060Option\u0060 by convention is a habit no tool here holds the code to."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"23e7c3c6da50151f07723c64ca4f881fd5903e713d143161a7c0594ad7ba29cc"}}],"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-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-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":43,"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."]}]}