{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"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":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"],"owasp":"A02:2025"}},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"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":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"ES1","name":"Fold determinism","shortDescription":{"text":"Fold determinism"},"helpUri":"https://codehealth.canine.dev/dimensions/ES1"},{"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":"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":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"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":"X31","name":"Test-only surface in a production module","shortDescription":{"text":"Test-only surface in a production module"},"helpUri":"https://codehealth.canine.dev/dimensions/X31"},{"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":"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":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"kafine_producer.handle_event (cyclomatic 23): kafine_producer.handle_event has cyclomatic complexity 23 (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":"src/producer/kafine_producer.erl"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8c1fc46a9feb1eb813b62eee0b3a0c4e123b071badc8af58d50eb793c692744"}},{"ruleId":"D2","level":"warning","message":{"text":"kafine_producer.handle_event (cognitive 28): kafine_producer.handle_event has cognitive complexity 28 (threshold 15). Drivers by points: match/switch 10 (16 pts), loops 5 (12 pts) (nesting depth added 13). 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":"src/producer/kafine_producer.erl"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b5871fe4813b4fb8fb1eff92876d40fe38fa9623e6118e53aa394e4de7b675b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: consumer/kafine_fetcher.erl: FileTooLong \u2014 745 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 245 over it, 1.49\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_fetcher.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1332d38d293c788e96e101f22fbeae31a88c02d7edd6b520772551e43cbebea9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: producer/kafine_producer.erl: FileTooLong \u2014 707 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 42 functions. The bar is 500 significant lines; this is 207 over it, 1.41\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/producer/kafine_producer.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4e7ee21c5214fa7b1c88f82fc6e4adaccd1b3030eeb8f89c1b9d1d61ed9ceee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: producer/kafine_produce_accumulator.erl: FileTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 170 over it, 1.34\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/producer/kafine_produce_accumulator.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed115e2e929628ec61b9e3309c4faa55ea764b75134a83baab8f9ead8ff310eb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: consumer/kafine_coordinator.erl: FileTooLong \u2014 654 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 154 over it, 1.31\u00D7 the bar. In this language a module is exactly one source file, so its length cannot be moved into sibling files of the same module. To reduce it, extract each cohesive family of functions into a new module of its own and have this one delegate to it, so no one module has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_coordinator.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"df81e809ff1e086bd2d3a63f3b2acf6b784e1ec1cd8670db0652844ba772f7a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (43 corresponding lines): src/consumer/kafine_consumer_sup.erl:58-104 | src/producer/kafine_producer_sup.erl:26-68 \u2014 These two members are one piece of code written twice and then edited apart: 43 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_consumer_sup.erl"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf43b04f90764e0f576e820e982c86da41031bb8878cba242cb8c34a1b81267c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): src/kafine.erl:250-295 | src/kafine.erl:325-365 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kafine.erl"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d770aacd5a1d97d3e1451fc74fb70361113c034bd445af552c0f77b0112ce69"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (44 corresponding lines): src/producer/kafine_produce_accumulator.erl:396-440 | src/producer/kafine_produce_accumulator.erl:591-634 \u2014 These two members are one piece of code written twice and then edited apart: 44 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/producer/kafine_produce_accumulator.erl"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db09e4fbff43ddfc1e018eefed6806636a57643a4fc65170f4e7becc2f5aa56"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): src/consumer/kafine_node_fetcher.erl:131-156 | src/producer/kafine_node_producer.erl:131-154 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_node_fetcher.erl"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3eb6dc073039bc7312d08fd437e78a5534c366ba5d0d0e76d7a1c2870da238c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): src/consumer/kafine_eager_rebalance.erl:121-149 | src/consumer/kafine_topic_subscriber.erl:73-93 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_eager_rebalance.erl"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"3301b2ac946ea2a01ab48827cc8a76eca892c03b66184e060d122548f28e11f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): src/consumer/kafine_eager_rebalance.erl:446-456 | src/consumer/kafine_eager_rebalance.erl:458-468 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_eager_rebalance.erl"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"924ace030c1945a4f92e9311b5add09c6c39443945889dabd05adcb1b4aa4625"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): src/consumer/kafine_fetcher.erl:774-802 | src/consumer/kafine_fetcher.erl:804-829 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_fetcher.erl"},"region":{"startLine":774}}}],"partialFingerprints":{"codehealthFindingId/v1":"600597c28cd5077ffdd5d5435439d06a3a7264efbdfcc1777f1d0efc407b5b18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/consumer/kafine_bootstrap.erl:129-140 | src/consumer/kafine_coordinator.erl:240-253 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_bootstrap.erl"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e277e0efc8644d90a34637163a8c1dc907edcba853d65d52d98b034d7e48394"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): src/consumer/kafine_node_fetcher_sup.erl:65-83 | src/producer/kafine_node_producer_sup.erl:60-84 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_node_fetcher_sup.erl"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f846fd0995ca6ee168f0f7ed406234e1ab8dace2498a109280d89904c33946f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): src/consumer/kafine_assignment.erl:15-34 | src/consumer/kafine_assignment.erl:37-51 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_assignment.erl"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"16ea01cc0fd40409de693465dafdc3085aeb241c5513053a0b8a5e9973cf80c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 17\u002B corresponding lines): src/kafine_topic_partition_data.erl:207-223 | src/kafine_topic_partition_data.erl:233-253 | src/kafine_topic_partition_data.erl:285-301 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 17 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kafine_topic_partition_data.erl"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"901faa8895ab7d5bed429619a84c0f0b837d051af2a0f72c5f9c3293cd9497d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/consumer/kafine_coordinator.erl:215-218 | src/producer/kafine_producer.erl:269-272 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_coordinator.erl"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da0f140146c37732dcba022780de40268dcb92601291ed7843a1536cb0ef264"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/consumer/kafine_node_fetcher_sup.erl:42-48 | src/producer/kafine_node_producer_sup.erl:37-43 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_node_fetcher_sup.erl"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1ee982435ba2bc183fc638961d91551cefaf5782999640ee9a4fd33a695d44"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/kafine_topic_partition_lists.erl:32-51 | src/kafine_topic_partition_data.erl:157-170 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kafine_topic_partition_lists.erl"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d8adeb2171ccf71943c70b344a7f8dc4da933c84af93fc1ff3dba5b63871d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/consumer/kafine_node_fetcher.erl:377-380 | src/producer/kafine_node_producer.erl:233-236 | src/producer/kafine_producer.erl:509-512 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_node_fetcher.erl"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fee4aaae96f7c9230785b3c8de73b2001b260a46777277cd5a459abfa46d3cc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): src/kafine_topic_partition_lists.erl:122-135 | src/kafine_topic_partitions.erl:153-166 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kafine_topic_partition_lists.erl"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec655ad30be210d83462c8ebb11be2f356f69a113cb56581f682e492bfca8bcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): src/consumer/kafine_coordinator.erl:72-79 | src/consumer/kafine_node_fetcher.erl:40-46 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_coordinator.erl"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c5c825b0c8240ec4f026d67943ca3b701aa83a5b827f40881d1b306216300a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): src/consumer/kafine_range_assignor.erl:31-36 | src/consumer/kafine_round_robin_assignor.erl:17-24 \u2014 These two members are one piece of code written twice and then edited apart: 6 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_range_assignor.erl"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"09c6e018a4de11e92c2daf0c21ee0c178cb415c10de1e101c7e761740dc42920"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): integration/src/fixtures/kafka_fixtures.erl:241-243 | src/producer/kafine_producer.erl:899-901 \u2014 These two members are one piece of code written twice and then edited apart: 3 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"integration/src/fixtures/kafka_fixtures.erl"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"342456b19b93a0e9361cee6b73714dd01c683ab7c6db406f0009d157bcd7cda0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): src/kafine_topic_partition_data.erl:263-274 | src/kafine_topic_partitions.erl:174-187 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/kafine_topic_partition_data.erl"},"region":{"startLine":263}}}],"partialFingerprints":{"codehealthFindingId/v1":"037e189f4aaeeff42f348f0ee106b35b883d09916948935804e92549021ecc14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/consumer/kafine_bootstrap.erl:107-110 | src/consumer/kafine_coordinator.erl:220-223 | src/producer/kafine_producer.erl:264-267 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_bootstrap.erl"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d4cb8c0b7905313c5ed85277b4b7c55df34685256942e375d748e1a177587f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/consumer/kafine_fetcher.erl:112-115 | src/consumer/kafine_parallel_subscription_impl.erl:99-102 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_fetcher.erl"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"99782ef75a518a2fe26ede147be1affd480c403da87d43f044b314908c2fdb60"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): src/consumer/kafine_coordinator.erl:792-796 | src/producer/kafine_node_producer.erl:225-231 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_coordinator.erl"},"region":{"startLine":792}}}],"partialFingerprints":{"codehealthFindingId/v1":"63209f78c94fa5ec33a97e678ee0013b0a541659246ba37124ace00393f3b2f5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/consumer/kafine_eager_rebalance.erl:40-46 | src/consumer/kafine_fetcher.erl:124-127 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_eager_rebalance.erl"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"b930d44d92ef2274967f704e6179fbabe599665fb5ba60bb820c31bf9dd127d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/consumer/kafine_eager_rebalance.erl:70-73 | src/consumer/kafine_topic_subscriber.erl:59-62 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_eager_rebalance.erl"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"12373a06b5e08ecb5db030bb9f0effd669f9075e235dd2fd41c7a6231b8bd26e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/consumer/kafine_bootstrap.erl:48-55 | src/consumer/kafine_parallel_subscription_impl.erl:58-59 \u2014 These two members are one piece of code written twice and then edited apart: 2 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_bootstrap.erl"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"1edc2ba84e84c1cc0e31b37cddee8f690bf9d407bc2ef851af2d269af7f8a982"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 4\u002B corresponding lines): src/consumer/kafine_bootstrap.erl:62-65 | src/consumer/kafine_coordinator.erl:86-89 | src/consumer/kafine_metadata_cache.erl:111-114 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 4 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_bootstrap.erl"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb14506fde0c0e51a8964ac9f372f4723735c36ea5fe43a6122f0220530710c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201317 lines \u00D7 2): src/consumer/kafine_consumer_sup.erl:62-78 | src/producer/kafine_producer_sup.erl:27-37 \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 \u0060src/consumer/kafine_consumer_sup.erl:62\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_consumer_sup.erl"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd87f958dfa1d19c5a8d6ae051f1fb2d43e66bf108f11cc3b60f4e243473ca4d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): src/consumer/kafine_fetcher.erl:282-292 | src/consumer/kafine_fetcher.erl:309-319 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/consumer/kafine_fetcher.erl:282\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":"src/consumer/kafine_fetcher.erl"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10e881bd3eb7ceca9f405f0be6234d52906db8bb8076fdb84772f18f222d699"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/consumer/kafine_consumer_sup.erl:106-111 | src/consumer/kafine_fetcher_sup.erl:47-52 | src/consumer/kafine_node_fetcher.erl:58-63 | src/consumer/kafine_parallel_subscription_impl.erl:64-69 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_consumer_sup.erl"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"f118bfcd0fa773d66789252243907d0554360262467f8dc609f2f64f3239e15f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): src/consumer/kafine_node_fetcher.erl:48-56 | src/consumer/kafine_parallel_handler.erl:51-59 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_node_fetcher.erl"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca65ba8b102c3e94555a46c0819b5d09688bd219c8f2e6d55a23d40a2079c43"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): src/consumer/kafine_node_fetcher_sup.erl:57-63 | src/producer/kafine_node_producer_sup.erl:52-58 \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":"src/consumer/kafine_node_fetcher_sup.erl"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"f142f2b6c094d2d959ab3d41bdf8aa633ab635a72c778e15b5e723f4d0a5dddb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): src/consumer/kafine_range_assignor.erl:52-59 | src/consumer/kafine_round_robin_assignor.erl:59-66 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/consumer/kafine_range_assignor.erl"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40805c3d9b70e4477550bc7cd202987f2c080047abbe4407626a08dcb00bfcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): src/diagnostics/kafine_trace_logger.erl:65-76 | src/diagnostics/kafine_trace_logger.erl:78-89 \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 \u0060src/diagnostics/kafine_trace_logger.erl:65\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diagnostics/kafine_trace_logger.erl"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"5243efe82e296d370749ea8110b4c79c6cfe7167a01dca57fb8a7b8495da82e6"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating source dependency: eqwalizer_support: Runtime dependency \u0060eqwalizer_support\u0060 is fetched from source in rebar.config and tracks branch \u0060main\u0060 \u2014 the declaration pins no immutable revision, so \u0060rebar3 upgrade\u0060 moves this dependency to code nobody reviewed. Pin it with \u0060{tag, \u0022v1.2.3\u0022}\u0060 or \u0060{ref, \u0022\u003Cfull commit SHA\u003E\u0022}\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e3ec5cc6e79243250560507614d0ba1cc5eff2a1c526aaac7fb2858f7d0c7583"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Single produce, multiple messages, tail 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":"test/kafine_consumer_fetch_tests.erl"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf8cdbd2b4a19c9d8459d5fd6315a4d571d6350f50fe9f2c6b3f87dc60879b7"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Produce, Fetch, Produce, Fetch, repeatedly. \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":"test/kafine_consumer_fetch_tests.erl"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0c6f3f6e6fa156f5e1946b8a013b2abb3b2a548447ed66aed4ab72c7ae9c53"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Multiple messages, returned over multiple Fetch (i.e. NextOffset and HighWatermark aren\u0027t the same until the \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":"test/kafine_consumer_fetch_tests.erl"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"79702537ddd9e576093acd693326cd13ad9577394126cef20ff0efe9cf05da9c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: At some point, we\u0027ll need to replicate a partition that _starts_ at a non-zero 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":"test/kafine_consumer_fetch_tests.erl"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"99c3598e38d02185abeb00e87dbb845c6d3b4fada8e79d38b4314e04fdfb668c"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: There\u0027s quite a lot of shared setup here; can we jump start to \u0027leader\u0027 somehow? \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":"test/kafine_eager_rebalance_tests.erl"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7215fbae069d0792b219ad289adcdb48d216a14b6b0a8b337296c1dac7fd638"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: not sure this test adds anything now that the skipping is in handle_partition_data \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":"test/kafine_fetch_response_tests.erl"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"27fece58f8fdc95bf50ca10e00644ab8a720d44ac5d6a6a273597e4e9bca08cf"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: not sure this test adds anything now that the skipping is in handle_partition_data \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":"test/kafine_fetch_response_tests.erl"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22b446871ad5acd15003bf6264a36152c6783070b378ee02fac67d71adaef51"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Some tests around subscribing to things you\u0027re _already_ subscribed to... \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":"test/kafine_fetcher_set_topic_partitions_tests.erl"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c99e6ce1a8d2de18b572df076c1cba01d91d5e8ffc3ba6944cefed1913c43e0"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: The partition doesn\u0027t exist. Should we expect an error here? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"test/kafine_fetcher_sup_tests.erl"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a97aaa8a7b4b2f8391c4e7900b4a75d82f3d86dcd938f1dd2e3858b08cfeb9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: backoff isn\u0027t actually used by kafine_connection. This should live somewhere else \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":"src/kafine.erl"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b8428678fe72a535a501cb59644f9d9539af3a15df8d5125f913c86bdc02521"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: fetch_options, instead? \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":"src/kafine.erl"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1b239ed836c30cc1d2c0183fee0fff5bf1f6fba358001f66e68959123c0251"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: These types should be in kafcod, maybe? \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":"src/kafine.erl"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"a294572b80b869559536bf2be0b95616e00b7d26dbe229cd7ae8fdfecf01ec2a"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: This isn\u0027t actually the correct type; it keeps eqalizer happy. \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":"src/kafine.erl"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e336f806256da7bd23f2914992e719d59ec5d746ab3049233dbed43899297f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Should we linger for other partitions which may have started a backoff at the same time? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/producer/kafine_producer.erl"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50894f7983fbb6b37476244fd5320c11cb64e88bca2ba380f2363585c82555d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: We\u0027d actually like to enforce this being \u003E max_batch_size_bytes \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":"src/producer/kafine_producer_options.erl"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"35e13f6e1fd3ebfd774cc3db01657aee77d97ac612d6ec01f41b2f8452b86c40"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: gen_server has {in, \u0027$gen_call\u0027, \u0027$gen_cast\u0027}, out, noreply \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":"src/diagnostics/kafine_trace_logger.erl"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"859fd3e591b6141b3527e27f26c1fd932b954f4af256cd908e766a10cfa077c3"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: module, state_timer, insert_timeout \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":"src/diagnostics/kafine_trace_logger.erl"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d0301f7e1c8b5a614b3b2ff7fc84f511be1845867eb6ce985721acba5f9d60"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: handle $gen_call, $gen_cast here...? \u2014 source code is not a task system: move the work to your tracker and leave a reference instead (e.g. \u0060% REF: #123\u0060), so the task is planned where tasks live and the ticket links back to the code."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/diagnostics/kafine_trace_logger.erl"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0d15bb4e2e80654b33203604a6492c53bfeb1abb39d1eeae4a8f7aa0621a4e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: preferred read replica. \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":"src/consumer/kafine_fetch.erl"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b6bbb5e4f521db217733848430361b8b4abbd32feff6f5d5d5e2cb1e75cc23"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: We don\u0027t care about the leader epoch. At some point we might. \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":"src/consumer/kafine_fetch.erl"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"78ac9f79990a49cbb6ebd3746d41afd756a33d96f9033ccc04ac67fb46097b06"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: not yet implemented \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":"src/consumer/kafine_parallel_subscription_impl.erl"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"db33bc3aeb370df50a3ffa8011f0f1c75f21e79bf168fba6755bb73b23c00150"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Do we need to handle missing offsets being in requests but not responses? \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":"src/consumer/kafine_parallel_subscription_impl.erl"},"region":{"startLine":397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5003fccfc666c3f4444bd0c5711dd7a576a91136d9cb8481f9d116e63ccf35f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Actually assert that the topic was created and placed where we asked. For now, manual inspection\u0027s fine, \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":"integration/test/direct_create_topic_SUITE.erl"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"80182dfcf3f03f8a605d578292febd1089152d7e5663537624bc55bcf667be6d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: There\u0027s a lot to be said for *not* cleaning up afterwards -- it\u0027s easier to debug. \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":"integration/test/direct_fetch_SUITE.erl"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"63dcff01d8bb9e906826ff4f1f377f052711e020b9ce3907e02be5927100516d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Loop until the message appears. \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":"integration/test/direct_fetch_SUITE.erl"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d43bb5e4cb1efbba48719a4c605f6ad5debd4d5beea503d987ecceac72f38f"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: DRY \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":"integration/test/group_consumer_SUITE.erl"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc4aeb5b5d52c12d22e2cbca119babaabc22dad4da3bed3a4e413c6179acdd9"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: DRY \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":"integration/test/group_consumer_SUITE.erl"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"961be26df640a48b2f2e1544f554e5f8db305267838ef3d8efa08c9739cb2f85"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: DRY \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":"integration/test/group_consumer_offset_SUITE.erl"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8c4fc94cd8d9a95e41ea01cff50616501a0ba1cf85ca5b8c09374ef703c3ed4"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: DRY \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":"integration/test/group_consumer_offset_SUITE.erl"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"78b4c49bcc78466e7b0f71ba6b49cd1a539320e7876fb00ac3321b25e4a76e9d"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: DRY \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":"integration/test/negative_initial_offset_SUITE.erl"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd595aaf6c8dbb98e7085dd0f5dc7d673df30cc15fe4698c090b0e4d86af9231"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: DRY \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":"integration/test/negative_initial_offset_SUITE.erl"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"d287ae7b786ddba8d143cb4a02c33aba023feae8e8f5235e670c6af6d1c7451e"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: DRY \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":"integration/test/topic_consumer_SUITE.erl"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"39a8e20e2aaba9cca6d8538926399cb66d845cb0cbce573d1849e1c8a4d31fcc"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: DRY \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":"integration/test/topic_consumer_SUITE.erl"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed50b514c2447f4c6b6c36acd7fb2681c5874d8e8189b555b7dafad63f462a07"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO? Assert the consumer lag while we\u0027ve got some? \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":"integration/test/group_consumer_offset_SUITE.erl"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"483fc9fcb1975263e01898b00663309dae37b087868799139d102fa4706a3731"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: rename to \u0027ensure_topic_exists\u0027? \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":"integration/src/fixtures/kafka_fixtures.erl"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83b79102d96cc4b2c8f0be793cca8c359316b46364a80d4886d558427896724"}},{"ruleId":"D17","level":"warning","message":{"text":"TodoComment: % TODO: Invent \u0027using_connection\u0027 function. \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":"integration/src/fixtures/kafka_fixtures.erl"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b619fdd438a20280fed7e0ee6c6c1ea878b571031c1acf0a30a690c2a0e790"}},{"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":"083a088097c25e5edfc36cf6eda865b45f4d6fd6743051e11154ff4887b48f28"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","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":"ed16803bf9ddb7f48feeadaa86be6ae75b89d31c82799eacd1871e9a61245e89"},"properties":{"dependency":{"package":"handlebars","version":"4.7.9","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"docker/scripts/hbs.js","line":3}}}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"23eace91417f5a10ee6ebcd92c369f3e153370222d69c55314f39e4dbd251854"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c05dd276ec3828f395ecc889e9c70d3029a658cb96b7930332ab9b777c987d1b"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fc106d0d8d115f72ecc508f388a4a0b6ed0f42c17151284a9164408a2309adcc"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060docker/scripts/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docker/scripts/package.json"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce42c8f51048ee5aa0587ca561c5f8dc11bc343125c83cc1a4f65043bf8a72b"}},{"ruleId":"P4","level":"note","message":{"text":"No rollback/health safety: Deployment is orchestrated by compose, but no service declares a \u0060healthcheck:\u0060 and nothing pins a previous image to fall back to \u2014 the runtime can tell that the container is up, not that it is serving, so a bad release is harder to detect and reverse."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"db6bab8a28a2145f47e5a4e6683cda39d2ba0296c723238e8057da979ae1c706"}},{"ruleId":"P6","level":"note","message":{"text":"No changelog: No CHANGELOG/HISTORY/RELEASES file \u2014 what shipped when isn\u0027t easy to reconstruct for support or audit. (Versioning/tagging makes releases traceable, but a changelog records the what.)"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"dda5aa5aed8cbb292c3ef2b733bc138f614293ae6426c85e98bf31ef330d9415"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"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/"}]}],"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":5,"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."]}]}