{"$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":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"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":"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":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"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":"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":"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":"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":"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":"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":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"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":"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":"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":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): src/emqx_plugin_kafka.erl:215-233 | src/emqx_plugin_kafka.erl:235-252 | src/emqx_plugin_kafka_conf.erl:192-210 | src/emqx_plugin_kafka_conf.erl:212-229 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka.erl"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cf01d5b994a58fa7c3d42dacf3e9386139502e0a501b5bc5e4381f2d0e6b815"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/emqx_plugin_kafka.erl:348-356 | src/emqx_plugin_kafka_conf.erl:319-327 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka.erl"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ff59a0641aab09e0b7ddb3e58cc2d40e68d91d4016c5b626705383c6899f66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): src/emqx_plugin_kafka.erl:365-373 | src/emqx_plugin_kafka_conf.erl:336-344 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka.erl"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4ed1016674f62ca510b23c3bc68ad43234f6a32e44ba5ff638e893656ff5aa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/emqx_plugin_kafka.erl:358-361 | src/emqx_plugin_kafka_conf.erl:329-332 \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/emqx_plugin_kafka.erl"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28dd21c4a09980a6c9d0131cc1ef6fd1c0eaaa3bc57261b4046f043ac77cd64"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/emqx_plugin_kafka.erl:132-134 | src/emqx_plugin_kafka_conf.erl:133-135 \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":"src/emqx_plugin_kafka.erl"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba6820f0c52f53610177b52abf4288c8e3d84f432a4110a1549bcdcb7310385"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): src/emqx_plugin_kafka.erl:89-92 | src/emqx_plugin_kafka_conf.erl:90-93 \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/emqx_plugin_kafka.erl"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca5d99bd9870f50d821c9d3c9b53cfa4aa8d689226123fd254c7313dee92ae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): src/emqx_plugin_kafka.erl:128-130 | src/emqx_plugin_kafka_conf.erl:129-131 \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":"src/emqx_plugin_kafka.erl"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a141f3e1b7f66197af099abbb2849ef1a9bacaea4bd52bd989d05c7cdfda723"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/emqx_plugin_kafka.erl:276-277 | src/emqx_plugin_kafka_conf.erl:253-254 \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/emqx_plugin_kafka.erl"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c04b8c09972989021b07376461918eaf793720daf53d5856f039586e714efb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/emqx_plugin_kafka.erl:261-262 | src/emqx_plugin_kafka_conf.erl:238-239 \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/emqx_plugin_kafka.erl"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"9341e30871914dc546f69b6a639655bb2f7f65abd49b67ebe36f27ae72576520"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): src/emqx_plugin_kafka.erl:264-265 | src/emqx_plugin_kafka_conf.erl:241-242 \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/emqx_plugin_kafka.erl"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d4afac03e404af199b61857be7d410f3a77d22c9bda04b5f56423e85a7d4ac3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): src/emqx_plugin_kafka.erl:300-323 | src/emqx_plugin_kafka_conf.erl:271-294 \u2014 before extracting anything, compare \u0060src/emqx_plugin_kafka.erl\u0060 and \u0060src/emqx_plugin_kafka_conf.erl\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/emqx_plugin_kafka.erl:300\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":"src/emqx_plugin_kafka.erl"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"26e1a1f8b41d969fd65a991f0ac7a0129c257d30687389601dcf4fec62fa7743"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): src/emqx_plugin_kafka.erl:94-111 | src/emqx_plugin_kafka_conf.erl:95-112 \u2014 before extracting anything, compare \u0060src/emqx_plugin_kafka.erl\u0060 and \u0060src/emqx_plugin_kafka_conf.erl\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka.erl"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a10abc9ed1de46d043d946d59987d3964b2c013145878ac8494b577760af7ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/emqx_plugin_kafka.erl:215-230 | src/emqx_plugin_kafka_conf.erl:192-207 \u2014 before extracting anything, compare \u0060src/emqx_plugin_kafka.erl\u0060 and \u0060src/emqx_plugin_kafka_conf.erl\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka.erl"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"61e94cd0513c6bf77711e850c210c8152fee1b75407b1ca259b0ee53c7181013"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): src/emqx_plugin_kafka.erl:235-250 | src/emqx_plugin_kafka_conf.erl:212-227 \u2014 before extracting anything, compare \u0060src/emqx_plugin_kafka.erl\u0060 and \u0060src/emqx_plugin_kafka_conf.erl\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka.erl"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f41795ec431c507df7cdfb6e035561ab7861a654c251884df8353e895175d90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/emqx_plugin_kafka.erl:113-126 | src/emqx_plugin_kafka_conf.erl:114-127 \u2014 before extracting anything, compare \u0060src/emqx_plugin_kafka.erl\u0060 and \u0060src/emqx_plugin_kafka_conf.erl\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka.erl"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"661b655b69b4c329c7409225a357a69a059bca5dd6e3950d17cc779f5a9dd268"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): src/emqx_plugin_kafka.erl:137-151 | src/emqx_plugin_kafka_conf.erl:138-152 \u2014 before extracting anything, compare \u0060src/emqx_plugin_kafka.erl\u0060 and \u0060src/emqx_plugin_kafka_conf.erl\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka.erl"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"300f0a6b8b40a50096d27767c1e5e046889d8687d4d2bfbb45469b293b53fc25"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): src/emqx_plugin_kafka.erl:154-167 | src/emqx_plugin_kafka_conf.erl:155-168 \u2014 before extracting anything, compare \u0060src/emqx_plugin_kafka.erl\u0060 and \u0060src/emqx_plugin_kafka_conf.erl\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka.erl"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ee742350a769768dbfed2c425836f0d9f5319aef7f93a525592bed4e2674c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 4): src/emqx_plugin_kafka.erl:216-221 | src/emqx_plugin_kafka.erl:236-241 | src/emqx_plugin_kafka_conf.erl:193-198 | src/emqx_plugin_kafka_conf.erl:213-218 \u2014 before extracting anything, compare \u0060src/emqx_plugin_kafka.erl\u0060 and \u0060src/emqx_plugin_kafka_conf.erl\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/emqx_plugin_kafka.erl:216\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":"src/emqx_plugin_kafka.erl"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6d7fa2cdd986bf927fc9c3a10343fc9daad1a52ca7fa7b9463d818729d0e73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): src/emqx_plugin_kafka.erl:60-81 | src/emqx_plugin_kafka_conf.erl:61-82 \u2014 before extracting anything, compare \u0060src/emqx_plugin_kafka.erl\u0060 and \u0060src/emqx_plugin_kafka_conf.erl\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka.erl"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"b889d8bbaf7be471222526dacb67c70dfe7238fd8402b20a28c610d381e23124"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): src/emqx_plugin_kafka.erl:327-346 | src/emqx_plugin_kafka_conf.erl:298-317 \u2014 before extracting anything, compare \u0060src/emqx_plugin_kafka.erl\u0060 and \u0060src/emqx_plugin_kafka_conf.erl\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka.erl"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"121648b40aff61fb255a382c37caeae7406a2333e561807b87fb19eb4cb3db5c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): src/emqx_plugin_kafka.erl:174-178 | src/emqx_plugin_kafka_conf.erl:175-179 \u2014 before extracting anything, compare \u0060src/emqx_plugin_kafka.erl\u0060 and \u0060src/emqx_plugin_kafka_conf.erl\u0060 as WHOLE FILES: this scan already matched 11 separate duplicated blocks between them, totalling at least 170 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060src/emqx_plugin_kafka.erl:174\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka.erl"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"3910af1b760c9de63897e05e24fae0ac65e218bcfc17762dd6658726e0247767"}},{"ruleId":"D8","level":"error","message":{"text":"No automated tests: No automated tests \u2014 no test code was found in this repository. Untested code is the largest single risk to changing it safely. Start with the code you change most often: add a suite in a framework a runner can collect (EUnit or Common Test), and run it in CI so the gap cannot reopen."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"3132564c6310e5d01a231f252a02d5d2f5a542c0a8fa29a14c89693f1e3df871"}},{"ruleId":"D12","level":"warning","message":{"text":"No dependency lockfile committed (rebar.config): rebar.config declares 6 dependencies but no lockfile (rebar.lock or mix.lock) is committed beside it, so \u0060rebar3 compile\u0060 resolves versions afresh on every machine and every CI run \u2014 two builds of this commit are not guaranteed to be the same build. Run \u0060rebar3 compile\u0060 and commit the resulting \u0060rebar.lock\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8167d684e70969326978dc347dd61843dfe24c2c826307dbb1edecc8ff726c1c"}},{"ruleId":"D16","level":"warning","message":{"text":"bus factor 1 \u2014 one contributor carries this repository: 2 contributor(s) have commits in this repository (automation and bot accounts excluded), but the commits of a single one of them cover most of its history \u2014 91% of the 76 commit(s) sampled \u2014 so the number of people who actually carry it is 1. This is not the ambient state of a solo project: there ARE other contributors, and if the one who carries the repository becomes unavailable, the knowledge behind most of its history goes with them. Spread the next changes deliberately \u2014 have a second contributor review or pair on them \u2014 and write down the parts only one person can currently change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a99f114ab4dfee37ae0bf0665b44c7468d85b809d361949e2b6258101fa1e5a2"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060rebar.config\u0060 makes this repository a deployable product (line 18)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"rebar.config"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7b016f0e8c2fc811d40df24f2d57a5b518b61eb8e3fa700b4b7aff08b91675f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned files with no living knowledge: 4 of 4 analysed file(s) have no living knowledge left \u2014 their last meaningful change has decayed away, so if one breaks, no one currently understands it (counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 4 of the 6 production source files in this repository met that bar). None is large enough to earn a read-through of its own, so this row stands in for the per-file rows rather than raising one each \u2014 most significant first: src/emqx_plugin_kafka.erl, src/emqx_plugin_kafka_conf.erl, src/emqx_plugin_kafka_app.erl, src/emqx_plugin_kafka_schema.erl. Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c029fabfe2646e9fd6fda9fa244d9f73003e207b5cd17e52a90e4ec33ee8606f"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka_conf.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"692965110c910d0c068a81f805f21599f0a8ba1d5c0c6b0b6443b91bcacd2842"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka_app.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acbacb32dd4a5123b7e803a510e6dab5e367a842c92f14629218b90045fc922"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/emqx_plugin_kafka_schema.erl"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9485bf4970cf6137857dcc2711efdb915e3033501d4f800891612594d5e80a2b"}},{"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":"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":"P10","level":"note","message":{"text":"No explicit versioning: No explicit version was found for the Hex library declared by \u0060brod.app.src\u0060. This check read a literal \u0060{vsn, \u0022x.y.z\u0022}\u0060 in the .app.src, or \u0060PROJECT_VERSION\u0060 in an erlang.mk Makefile, and a CHANGELOG/CHANGES/HISTORY/NEWS/RELEASES file with a semver heading, or release tooling (changesets, release-please, semantic-release, goreleaser, cargo-release, bump2version, standard-version, git-cliff) in the library\u0027s directory or at the repository root, or a semver release tag (or a Drupal \u00608.x-1.2\u0060 release tag) in the repository. A version computed where none of those can see is invisible here. A published library needs explicit semantic versioning so consumers can reason about breaking changes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod.app.src"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b2dc159f457e1cc7f3a4360c7c075b080179c1443b08ba6adda88453794432"}},{"ruleId":"P10","level":"note","message":{"text":"No explicit versioning: No explicit version was found for the Hex library declared by \u0060brod.app.src\u0060. This check read a literal \u0060{vsn, \u0022x.y.z\u0022}\u0060 in the .app.src, or \u0060PROJECT_VERSION\u0060 in an erlang.mk Makefile, and a CHANGELOG/CHANGES/HISTORY/NEWS/RELEASES file with a semver heading, or release tooling (changesets, release-please, semantic-release, goreleaser, cargo-release, bump2version, standard-version, git-cliff) in the library\u0027s directory or at the repository root, or a semver release tag (or a Drupal \u00608.x-1.2\u0060 release tag) in the repository. A version computed where none of those can see is invisible here. A published library needs explicit semantic versioning so consumers can reason about breaking changes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod.app.src"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0929d06630545cb6cb507f81825469231c04a82f9711d704546e5d3dd5fdc636"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add dialyzer or elvis \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 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":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(Arg =:= \u0022false\u0022) orelse (Arg =:= \u0022f\u0022) orelse (Arg =:= \u0022no\u0022) orelse (Arg =:= \u0022n\u0022) orelse (Arg =:= \u0022off\u0022) orelse (Arg =:= \u0022disabled\u0022) orelse \u2026\u0060 appears character-identically in 2 files \u2014 _build/default/lib/getopt/src/getopt.erl, _build/default/plugins/getopt/src/getopt.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/lib/getopt/src/getopt.erl"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"892aaa023431f2285e58c746514d2b361b6d8839cc6aadcafdc9d9263820e804"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(Arg =:= \u0022true\u0022) orelse (Arg =:= \u0022t\u0022) orelse (Arg =:= \u0022yes\u0022) orelse (Arg =:= \u0022y\u0022) orelse (Arg =:= \u0022on\u0022) orelse (Arg =:= \u0022enabled\u0022) orelse (A\u2026\u0060 appears character-identically in 2 files \u2014 _build/default/lib/getopt/src/getopt.erl, _build/default/plugins/getopt/src/getopt.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/lib/getopt/src/getopt.erl"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9afc1ef38380c1a9de4b5fb9d933e343320ce5e7352bcef3e5c72af8bafeb5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(Char) =:= $\\s orelse (Char) =:= $\\t orelse (Char) =:= $\\n orelse (Char) =:= $\\r\u0060 appears character-identically in 2 files \u2014 _build/default/lib/getopt/src/getopt.erl, _build/default/plugins/getopt/src/getopt.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/lib/getopt/src/getopt.erl"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0a3ba109beec214933cae41996e0746ce908d33e0f5c4815aef23a15d25950"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(Domain =:= inet) orelse (Domain =:= inet6)\u0060 appears character-identically in 2 files \u2014 _build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/gen_tcp_socket.erl, _build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/gen_udp_socket.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/gen_tcp_socket.erl"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"daa36ffb2615675de09832d4adcb40c475e9b423837eca150f106561093247c7"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(State =:= \u0027closed_read\u0027) orelse (State =:= \u0027closed_read_write\u0027)\u0060 appears character-identically in 2 files \u2014 _build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/gen_tcp_socket.erl, _build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/gen_udp_socket.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/gen_tcp_socket.erl"},"region":{"startLine":1520}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42c30b511dce1bbea3439c7eda398a3b55733b84b3542abac25d7124c7787cc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(T_ == infinity) orelse ?IS_VALID_TMO_INT(T_)\u0060 appears character-identically in 2 files \u2014 _build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/erpc.erl, _build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/rpc.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/erpc.erl"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fa8797ee3e84b38f5f54bfcc21e68968f84820a191f3a1dc78f87fd4a705831"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Acc =/= [] andalso BatchSize \u003E MaxBatchSize\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_producer_buffer.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_producer_buffer.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_producer_buffer.erl"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"5573d7d41f7586548fb3894abee8bce9c187e4ff153e1f9df03c4f6e19359f91"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060AckedOffset =/= LastOffset andalso LastOffset =/= ?undef\u0060 appears character-identically in 4 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_group_subscriber.erl, _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_topic_subscriber.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_group_subscriber.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_topic_subscriber.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_group_subscriber.erl"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3743df547d0a85c1e931f80e98c4f1bc6b1a9c8139c6b7959b70f6b6c1b0340"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Args =:= [] orelse is_implicit_arg(ArgSpecType, hd(Args))\u0060 appears character-identically in 2 files \u2014 _build/default/lib/getopt/src/getopt.erl, _build/default/plugins/getopt/src/getopt.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/lib/getopt/src/getopt.erl"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda683e4316e21de201e57c9ee9d16b65bcaa5429fc28d9b7499b798b35d55d9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060AttemptNo =:= 0 andalso Reason =/= ?illegal_generation andalso Reason =/= ?unknown_member_id\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_group_coordinator.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_group_coordinator.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_group_coordinator.erl"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b1495d861cf4bf2138f199c4f828e96128e3d9959b7ea8d2035af8a78edc40"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060C =:= compact_string orelse C =:= compact_nullable_string\u0060 appears character-identically in 3 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/src/kpro_lib.erl, _build/default/lib/kafka_protocol/src/kpro_lib.erl, _build/default/rel/emqx_plugin_kafka/lib/kafka_protocol-4.0.3/src/kpro_lib.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/src/kpro_lib.erl"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bcd79b2954d248d54c2259216d37be957f69d1c75c0ce743e0bbb0366120fb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060CountLimit \u003C 1 andalso error(bad_message_count)\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_utils.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b50ace31562d9cf3d9b9c823589dcf5a03dbf261a0a9bba644813d1b4416582"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ErrorCode =:= ?no_error orelse ErrorCode =:= ?replica_not_available\u0060 appears character-identically in 3 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/src/kpro_brokers.erl, _build/default/lib/kafka_protocol/src/kpro_brokers.erl, _build/default/rel/emqx_plugin_kafka/lib/kafka_protocol-4.0.3/src/kpro_brokers.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/src/kpro_brokers.erl"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"85c936cde537d5f2ab255840b639a603bc972b637334247c45dd531829bac377"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060IsLeader orelse log(State, info, \u0022Not elected\u0022, [])\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_cg_commits.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_cg_commits.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_cg_commits.erl"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"663e9ca4d97be4d2776997aa7d1b613d6011e7ee874232c6b159d8e7748f9dff"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060IsNormal orelse ?BROD_LOG_ERROR(\u0022Consumer ~s-~w terminate reason: ~p\u0022, [Topic, Partition, Reason])\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_consumer.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_consumer.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_consumer.erl"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf89efe0c3d1ec6b663a23b2809ffe12522c8aeec9c717a8ad820ba27c7c7f8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060IsShared andalso IsNormal andalso brod_client\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_consumer.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_consumer.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_consumer.erl"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4727258e3bbd7cdbffbae7c6eb9698002562ce79891dc8bed6f4b974c10d63b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060K =:= active orelse K =:= deliver orelse K =:= packet\u0060 appears character-identically in 2 files \u2014 _build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/inet_tcp_dist.erl, _build/default/rel/emqx_plugin_kafka/lib/ssl-10.7/src/inet_tls_dist.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/inet_tcp_dist.erl"},"region":{"startLine":556}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4aefca6bfed292a2aacc005fde9e474b68bb8ad209ef9ead731f9e81710ab5e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060LastOffset \u003C End andalso length(Msgs) \u003C Count\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_utils.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"137cf8866cdf185b459baef59e2690748025fa33bf2d9e2fb627a4885ac52476"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060MaxRetries \u003E= 0 andalso Failures \u003E= MaxRetries\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_producer_buffer.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_producer_buffer.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_producer_buffer.erl"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"884a53cdf9ed4e1ef5a8403239af9e7e17b87cb982235f88aac7c717c54c9bac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Mechanism =:= ?plain orelse ?IS_SCRAM(Mechanism)\u0060 appears character-identically in 3 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/include/kpro_private.hrl, _build/default/lib/kafka_protocol/include/kpro_private.hrl, _build/default/rel/emqx_plugin_kafka/lib/kafka_protocol-4.0.3/include/kpro_private.hrl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/include/kpro_private.hrl"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ffa6379626e3e290a13d356f29d9438c6e34775615a1b0513d1b761894e51b4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Mechanism =:= ?scram_sha_256 orelse Mechanism =:= ?scram_sha_512\u0060 appears character-identically in 3 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/include/kpro_private.hrl, _build/default/lib/kafka_protocol/include/kpro_private.hrl, _build/default/rel/emqx_plugin_kafka/lib/kafka_protocol-4.0.3/include/kpro_private.hrl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/include/kpro_private.hrl"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6210da7355479f5ffb47233444228543ad2ff6db1056517be2bcfcda1ea8778c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060O =:= ?OFFSET_EARLIEST orelse O =:= ?OFFSET_LATEST orelse O =:= -2 orelse O =:= -1\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/include/brod_int.hrl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/include/brod_int.hrl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/include/brod_int.hrl"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e90d3b9a6298b9f14c1868800a34f8398ab941f0d6e8fe0f8e9f366543b859f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Offset \u003C StableOffset andalso Msgs =:= []\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_utils.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d4ceffdcd8bf64736169b7c897ad1df0117b7a7c42a79f66dfffd76ecc82af2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Reason =/= ?undef andalso log(State0, info, \u0022re-joining group, reason:~p\u0022, [Reason])\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_group_coordinator.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_group_coordinator.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_group_coordinator.erl"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"6132002f8be26339d18bcef8c01deadd1e3d949b518682a905b2be28c5da6dc8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060T =:= boolean orelse T =:= int8 orelse T =:= int16 orelse T =:= int32 orelse T =:= int64 orelse T =:= string orelse T =:= nullable_string or\u2026\u0060 appears character-identically in 3 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/include/kpro_private.hrl, _build/default/lib/kafka_protocol/include/kpro_private.hrl, _build/default/rel/emqx_plugin_kafka/lib/kafka_protocol-4.0.3/include/kpro_private.hrl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/include/kpro_private.hrl"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"a03effa32f8cee373a7cda5e7aca2c0a76499dd2063ab20be7ecbc0e6e799f5f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Topic =:= ?undef orelse Topic =:= kf(topic, S)\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_cli.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_cli.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_cli.erl"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9c888cf558f2da67f32a8f1b20c5416dde51fce649fb8a2b999ab5153ad658"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060case (not brod_utils:is_pid_alive(Subscriber)) orelse Subscriber =:= Pid\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_consumer.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_consumer.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_consumer.erl"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"3294f47362bc3398c45bc8f68588445ef2ecc96417d3e9fd67e3ad0a4e6855e4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060iolist_to_binary(Host0) =:= iolist_to_binary(Host) andalso Port0 =:= Port\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_group_coordinator.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_group_coordinator.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_group_coordinator.erl"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f0a3abed070e951fb8b9215cb34598a7becf401d175705855e0fd39bef11dd"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_arg_true(LowerArg) orelse is_arg_false(LowerArg)\u0060 appears character-identically in 2 files \u2014 _build/default/lib/getopt/src/getopt.erl, _build/default/plugins/getopt/src/getopt.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/lib/getopt/src/getopt.erl"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"1959d1ec67a1b859c944343b13c5b93582d6031310ed3e79772b35b8c389b09f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(GroupId) andalso size(GroupId) \u003E 0\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_utils.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"42b404d6c15f9f137d63d6f7c4600fda3f0a9806bfa29332e2687c60d7616ad2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(Topic) andalso size(Topic) \u003E 0\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_utils.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"327df71552a927889eab99572125559980555de3482dd4aa6bd71ccd0f9c2295"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_integer(BeginOffset) andalso BeginOffset \u003E= 0\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_consumer.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_consumer.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_consumer.erl"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbd2d7dd7be283427d68ff9c705e87b41b03cf9905a052384bb06bd615946cc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_integer(N) andalso N \u003E= ?MIN_SUPERVISOR3_DELAY_SECS\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_producers_sup.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_producers_sup.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_producers_sup.erl"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d60ffabc7fb17976485d64c519146b57bf662aaa1bfd71bd68b88461b3c83c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_integer(ProducerId) andalso ProducerId \u003E= 0\u0060 appears character-identically in 3 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/src/kpro_batch.erl, _build/default/lib/kafka_protocol/src/kpro_batch.erl, _build/default/rel/emqx_plugin_kafka/lib/kafka_protocol-4.0.3/src/kpro_batch.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/src/kpro_batch.erl"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"327c28e9e25b32e6554375a7352f9bb2b5a4cc287954e07b180e07d317b07abe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_integer(TI_) andalso (0 =\u003C TI_) andalso (TI_ =\u003C ?MAX_INT_TIMEOUT)\u0060 appears character-identically in 2 files \u2014 _build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/erpc.erl, _build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/rpc.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/rel/emqx_plugin_kafka/lib/kernel-8.3/src/erpc.erl"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f8716ef3fc7a17690606244da6ee7ce797db1cf329408cee95f961e2f76eb11"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_integer(X) orelse is_atom(X) orelse is_binary(X) orelse X =:= []\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_cli.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_cli.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_cli.erl"},"region":{"startLine":731}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c70e4217935527550e174a35fa7f2f2e01f54279d1658bfbf768d90ae43f14"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_list(IoData) orelse is_binary(IoData)\u0060 appears character-identically in 3 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/src/kpro_compress.erl, _build/default/lib/kafka_protocol/src/kpro_compress.erl, _build/default/rel/emqx_plugin_kafka/lib/kafka_protocol-4.0.3/src/kpro_compress.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/src/kpro_compress.erl"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f53dcda7d1bc53a42b1752a963426f177d3bec3a0a9695299c8c81a305a6e5a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_list(L) andalso L =/= [] andalso is_tuple(hd(L))\u0060 appears character-identically in 3 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/src/kpro_req_lib.erl, _build/default/lib/kafka_protocol/src/kpro_req_lib.erl, _build/default/rel/emqx_plugin_kafka/lib/kafka_protocol-4.0.3/src/kpro_req_lib.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/src/kpro_req_lib.erl"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"800ba99dd61affc147a58416e138ee799fe79e55683ecc436e26f10ca0b0a35e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_list(Topics) andalso Topics =/= [] andalso lists\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_utils.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ac1a067cbbb5cfaba281974fc90dea676662feb8aa569051c814b980b1c316"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_map(S) orelse ?IS_NON_EMPTY_KV_LIST(S)\u0060 appears character-identically in 3 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/src/kpro_req_lib.erl, _build/default/lib/kafka_protocol/src/kpro_req_lib.erl, _build/default/rel/emqx_plugin_kafka/lib/kafka_protocol-4.0.3/src/kpro_req_lib.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/kafka_protocol-4.0.3/src/kpro_req_lib.erl"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"9312002607234b6f515f0ccdaf5fa1a3ab84bf5b517a99ceaf0dc04a9126fd78"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_pid(Pid) andalso is_process_alive(Pid)\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_utils.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_utils.erl"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"368befb335cff5224b44362f1dc6acd2b373c684338eeb3aea6a0bfd1f111745"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_pid_alive(Subscriber) andalso maybe_init_connection(State0)\u0060 appears character-identically in 2 files \u2014 _build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_consumer.erl, _build/default/rel/emqx_plugin_kafka/lib/brod-3.16.3/src/brod_consumer.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/emqx_plugrel/emqx_plugin_kafka-5.0.0/brod-3.16.3/src/brod_consumer.erl"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e00e980674912f45408bad8aa0eb13c18d8cbbe68d8e3e47448da0f7cdddbe"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_tuple(R) andalso tuple_size(R) == 2 andalso element(1, R) =:= permanent\u0060 appears character-identically in 2 files \u2014 _build/default/lib/supervisor3/src/supervisor3.erl, _build/default/rel/emqx_plugin_kafka/lib/supervisor3-1.1.11/src/supervisor3.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/lib/supervisor3/src/supervisor3.erl"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"22fd68e8aace59ccdfc9d6aac7ace22257c2af430e0362b01470eccbfb4d049f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060not is_tuple(Arg) andalso Arg =/= undefined\u0060 appears character-identically in 2 files \u2014 _build/default/lib/getopt/src/getopt.erl, _build/default/plugins/getopt/src/getopt.erl. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"_build/default/lib/getopt/src/getopt.erl"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"040c53b88f7896d556c57eb758301cf5194753d167b06efba0100ff906e5944c"}}],"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-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-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-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":"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/"}]}],"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":0,"secretScannerRunsExcluded":0}}}]}