{"$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":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"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":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"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":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"AXR1","name":"Runtime accessibility","shortDescription":{"text":"Runtime accessibility"},"helpUri":"https://codehealth.canine.dev/dimensions/AXR1"},{"id":"C2","name":"Access Controls","shortDescription":{"text":"Access Controls"},"helpUri":"https://codehealth.canine.dev/dimensions/C2"},{"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":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"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":"PF1","name":"Benchmark discipline","shortDescription":{"text":"Benchmark discipline"},"helpUri":"https://codehealth.canine.dev/dimensions/PF1"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"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":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"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":"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":"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":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"Dispatcher.dispatch (cyclomatic 188): Dispatcher.dispatch has cyclomatic complexity 188 (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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"d387246da9e4841afe7807306790af472e727c0a849687790b60d414ec4313c8"}},{"ruleId":"D1","level":"warning","message":{"text":"Parser.parse_infix (cyclomatic 34): Parser.parse_infix has cyclomatic complexity 34 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/parser.ex"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"57ee37dc1b14cee02fba1c201aa2fbf79a79107b267b3b2cb62d17d53d621a60"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 18): (anonymous) has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".agents/workflows/ship-issue-batch.mjs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"9da8a62803bcfd124e0602dca778b1657fe69e2ab14f72a8b02aace89c6f5d76"}},{"ruleId":"D1","level":"warning","message":{"text":"Executor.do_execute (cyclomatic 17): Executor.do_execute has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a9c9bab928baa4f55d637892e93fcc4d28e45af41e095224ebbc4ec4681340"}},{"ruleId":"D1","level":"warning","message":{"text":"Executor.do_execute (cyclomatic 16): Executor.do_execute has cyclomatic complexity 16 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"531daf278e002ef1dc934c26ecc8fbe4372684db24d69ad013288890c6d9aa50"}},{"ruleId":"D2","level":"warning","message":{"text":"Dispatcher.dispatch (cognitive 260): Dispatcher.dispatch has cognitive complexity 260 (threshold 15). Drivers by points: if/else 94 (134 pts), match/switch 50 (115 pts), boolean chains 11 (nesting depth added 105). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"beac37461d2267133886ef99076a98791de09b6006dd29bd8e67c547102848f2"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parse_infix (cognitive 46): Parser.parse_infix has cognitive complexity 46 (threshold 15). Drivers by points: match/switch 13 (36 pts), if/else 8 (10 pts) (nesting depth added 25). 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":"lib/lua/parser.ex"},"region":{"startLine":836}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ef597effb04aa164bf0ed3de7c474c6289d731370f01fd594209a4fbbe62e0d"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parse_local (cognitive 32): Parser.parse_local has cognitive complexity 32 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 6 (15 pts) (nesting depth added 19). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/parser.ex"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6e2081ded8badb887cfaad3ad1e8fac7b973539347956deea0ab3e7c7e8e906"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parse_for (cognitive 28): Parser.parse_for has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (22 pts), match/switch 3 (6 pts) (nesting depth added 17). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/parser.ex"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89ecbdaf28920ee93b14a025feb6334fdc1c6588eabec04b5007ed85a47e866"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser.parse_table_field (cognitive 23): Parser.parse_table_field has cognitive complexity 23 (threshold 15). Drivers by points: match/switch 6 (13 pts), if/else 6 (10 pts) (nesting depth added 11). 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":"lib/lua/parser.ex"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e258a87d54665b0e729c574260528fd6c869b981f7ae07a708f85f09d5071e"}},{"ruleId":"D2","level":"warning","message":{"text":"Codegen.gen_expr (cognitive 22): Codegen.gen_expr has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (19 pts), match/switch 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d2dd27b9db6713cc03b9a45d9dd0e7c8410be2fe49c54d96f8f1ddfc6d6298"}},{"ruleId":"D2","level":"warning","message":{"text":"Codegen.gen_statement (cognitive 21): Codegen.gen_statement has cognitive complexity 21 (threshold 15). Drivers by points: match/switch 5 (11 pts), if/else 8 (10 pts) (nesting depth added 8). 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":"lib/lua/compiler/codegen.ex"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"c33cbd4b2c65dd2d3214f50af23ef9e6361245a2eef1840af2886c7d3092b6a9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 21): (anonymous) has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (7 pts), ternaries 4 (7 pts), boolean chains 6, loops 1 (nesting depth added 6). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".agents/workflows/ship-issue-batch.mjs"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9df862b2cde19d43f9fd6d9dfc884967b93a645f97579ac4fca394e41e4497e"}},{"ruleId":"D2","level":"warning","message":{"text":"Pattern.gsub_from (cognitive 20): Pattern.gsub_from has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, match/switch 1 (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/stdlib/pattern.ex"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfef06ce4c250177bde18cac6b6710eb3f48b40cd425e46e9c2e4354f8c16304"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.do_execute (cognitive 18): Executor.do_execute has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 2 (3 pts) (nesting depth added 6). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2722ab4299865ff392c8012d9b3596d57e220439ea0ea8e89a5ba7c360b84c4"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.do_execute (cognitive 18): Executor.do_execute has cognitive complexity 18 (threshold 15). Drivers by points: match/switch 5 (10 pts), if/else 5 (6 pts), error handling 1 (2 pts) (nesting depth added 7). 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":"lib/lua/vm/executor.ex"},"region":{"startLine":1366}}}],"partialFingerprints":{"codehealthFindingId/v1":"837a583b038e182139813aa7ff59c3adeee9300895347a6e31b6dfadd35abd15"}},{"ruleId":"D2","level":"warning","message":{"text":"Codegen.gen_statement (cognitive 17): Codegen.gen_statement has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), match/switch 4 (6 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e8ed13e057c63f9640099f69a61b7f715b8ae32c032aa4244856589f4811965"}},{"ruleId":"D2","level":"warning","message":{"text":"String.string_find (cognitive 17): String.string_find has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), match/switch 3 (8 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/stdlib/string.ex"},"region":{"startLine":1013}}}],"partialFingerprints":{"codehealthFindingId/v1":"579843493bd40236abbf910b093400612e7c162c8dd427a4b875fbb8d5fcd1e0"}},{"ruleId":"D2","level":"warning","message":{"text":"Codegen.gen_statement (cognitive 16): Codegen.gen_statement has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 2 (3 pts) (nesting depth added 7). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"56706e49d5746e9cade16ee649bc27548b8f65ac0df9a1109972ca619c5893ca"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.do_execute (cognitive 16): Executor.do_execute has cognitive complexity 16 (threshold 15). Drivers by points: match/switch 5 (11 pts), if/else 5 (nesting depth added 6). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"918d294bdc1a0066276ca2511fc2b2538b341a1fd2837d900f83dd4cf425726c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vm/executor.ex: FileTooLong \u2014 2905 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 89 functions. The bar is 500 significant lines; this is 2405 over it, 5.81\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee209115ab0c29caa25f68bd41c8f6a297fdae7a3e3c57fb5a9dfc97ff0cb6e7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vm/dispatcher.ex: FileTooLong \u2014 2044 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 48 functions. The bar is 500 significant lines; this is 1544 over it, 4.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ffa06e4ebe4393d32004bdbb261473269aa7ed4d0368e9616297958733df55"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Bytecode: TooManyFunctions \u2014 89 functions. The bar is 30 functions; this is 59 over it, 2.97\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. 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 single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/bytecode.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba370033a6da1b23fe223f92ec351ef9945ae5cac3906fbd3e4bf9c494630e1b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: website/lua_sandbox.ex: FileTooLong \u2014 1454 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 954 over it, 2.91\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/lib/website/lua_sandbox.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"97aa20298d78a124184d1e6d89f5b4046ac1470ad3295fedd07f5fdb30ddc230"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: compiler/codegen.ex: FileTooLong \u2014 1124 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 624 over it, 2.25\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"33aee71e3d4673ff07dbd668eb90452f4657774699ebf8a6e88c4af2607801ac"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lua/parser.ex: FileTooLong \u2014 1093 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 68 functions. The bar is 500 significant lines; this is 593 over it, 2.19\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/parser.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ef7c757bdb18c0337a4e6bc5ca0b9eb17f285100ea5730fecb1cc50c52dded"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Instruction: TooManyFunctions \u2014 63 functions. The bar is 30 functions; this is 33 over it, 2.10\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. 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 single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/instruction.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5454f625f5204ad02214b38729125feb09d2c5fb8ec807a0d108ae0a6f37a2ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: stdlib/string.ex: FileTooLong \u2014 819 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 73 functions. The bar is 500 significant lines; this is 319 over it, 1.64\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/stdlib/string.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5cb251a27ebdde1f05be4a8ed00b9e7f07056c39ffb4aa3551a53530207c5fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lua/lexer.ex: FileTooLong \u2014 702 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 44 functions. The bar is 500 significant lines; this is 202 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/lexer.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a3e9170f38252ef960c6db08d9316ea2728fcb4a24d3a719e7dc4a3b2a949f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: compiler/peephole.ex: FileTooLong \u2014 697 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 56 functions. The bar is 500 significant lines; this is 197 over it, 1.39\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/peephole.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa1046f71414ed067b943ecd0828a8d776d904cf78b2dd3f61668f8098d84f1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/lua.ex: FileTooLong \u2014 672 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 49 functions. The bar is 500 significant lines; this is 172 over it, 1.34\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"94eb6d3691b47da386a780e9417e3ee8f2085d5b70d6eba527a2e19fc98710ac"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Pack: TooManyFunctions \u2014 37 functions. The bar is 30 functions; this is 7 over it, 1.23\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. 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 single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/stdlib/string/pack.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ea49a31a422d0d6dff052470142e63281d5b86ff08932c98a862e6c9cf9b477"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Table: TooManyFunctions \u2014 37 functions. The bar is 30 functions; this is 7 over it, 1.23\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. 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 single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/table.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3915f2c0ba165f806eef8a36309b3e4d657343e904ba70a421b1f641173d2827"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: vm/stdlib.ex: FileTooLong \u2014 562 significant lines (blank, comment-only and punctuation-only lines excluded), declaring 47 functions. The bar is 500 significant lines; this is 62 over it, 1.12\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/stdlib.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bec569cb785a156126c98e231ffb05c91c442589489ec92b3cfba5d05733504"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFunctions: Builder: TooManyFunctions \u2014 31 functions. The bar is 30 functions; this is 1 over it, 1.03\u00D7 the bar. The counted members are a module\u0027s functions \u2014 a module holds no instance state, so there is no shared data to group them by and no type to move them onto. 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 single module carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/ast/builder.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef866c685a6111607765cd4830bf451f76e8127e3c79e14296d2e02919dad73"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: live/tour_live.ex: FileTooLong \u2014 503 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 3 over it, 1.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/lib/website_web/live/tour_live.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bd77f06d4ca02ad1e98826d190f23929b6cf4c8bf719aa081c47a6337e90c4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 25 shared lines): lib/lua/vm/executor.ex:2639-2691 | lib/lua/vm/executor.ex:2734-2767 | lib/lua/vm/executor.ex:2788-2817 \u2014 These 3 members are variants of one another: a block of 25 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 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 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":2639}}}],"partialFingerprints":{"codehealthFindingId/v1":"263924d933e99013f8bf736ad0fec42f6062696858f2ece3974099f64fe583f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (73 shared lines): lib/lua/compiler/codegen.ex:1208-1342 | lib/lua/compiler/codegen.ex:1515-1628 \u2014 These two members are variants of one another: 73 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":1208}}}],"partialFingerprints":{"codehealthFindingId/v1":"90204be5d35646eeb37545181695b1ca2885e99bc8628d131529190589700d9e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): lib/lua/vm/executor.ex:599-627 | lib/lua/vm/executor.ex:1377-1606 \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":"lib/lua/vm/executor.ex"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1135e5a7ed0543f739d7d9f64876818def661588fabd78dfedba0e86a50b396"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): lib/lua/vm/stdlib/debug.ex:35-50 | lib/lua/vm/stdlib/math.ex:52-83 | lib/lua/vm/stdlib/os.ex:39-55 | lib/lua/vm/stdlib/string.ex:47-77 | lib/lua/vm/stdlib/table.ex:48-59 | lib/lua/vm/stdlib/utf8.ex:40-50 \u2014 These 6 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 6 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 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/stdlib/debug.ex"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6420ce8c179904d691c84c005c772e0034d0e2e9d2d7d88da856567bc136c177"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (90 corresponding lines): lib/lua/compiler/codegen.ex:344-457 | lib/lua/compiler/codegen.ex:462-551 \u2014 These two members are one piece of code written twice and then edited apart: 90 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":"lib/lua/compiler/codegen.ex"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"3085d3649e89c1faa4c54c194faa918f9b3158a8023b41970d948a0ea18aed2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): lib/lua/vm/executor.ex:2978-3086 | lib/lua/vm/executor.ex:3105-3143 \u2014 These two members are one piece of code written twice and then edited apart: 39 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":"lib/lua/vm/executor.ex"},"region":{"startLine":2978}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a43801200a14ca8a880f7ab69f6744a2a5adafb16974d0a65bc361123fc3f4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): lib/lua/vm/dispatcher.ex:2312-2345 | lib/lua/vm/dispatcher.ex:2357-2386 \u2014 These two members are one piece of code written twice and then edited apart: 30 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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":2312}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d346609c17a732f4dd44ba62eab1d2d55f39b17ce1165d3ebe1b9bcaeb79f1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): lib/lua/compiler/scope.ex:253-279 | lib/lua/compiler/scope.ex:353-378 \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":"lib/lua/compiler/scope.ex"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"237f79c83175e0c17d03a7b4f55066fcbf3fcdb68bb2c588983bf5ceb2b37c4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/lua/vm/executor.ex:2335-2355 | lib/lua/vm/executor.ex:2416-2435 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":2335}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdaa2044e4a29b8adf2155236dd5676dbab86eca49c4696e0849f2f03de0f54e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/lua/compiler/scope.ex:290-322 | lib/lua/compiler/scope.ex:462-481 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/scope.ex"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d79412133516ce3d03508c60ca55836aaadb83e8c891eeb6d64912cfbd03f2c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): lib/lua/vm/executor.ex:2479-2500 | lib/lua/vm/executor.ex:2514-2532 | lib/lua/vm/executor.ex:2536-2554 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 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":"lib/lua/vm/executor.ex"},"region":{"startLine":2479}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9eda9fe1c373ff49c91505f7a5420f73492d5d25070f0991fb015e15959e1cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/lua/vm/executor.ex:2359-2376 | lib/lua/vm/executor.ex:2449-2465 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"lib/lua/vm/executor.ex"},"region":{"startLine":2359}}}],"partialFingerprints":{"codehealthFindingId/v1":"670960621e3f6023da302cf64b590d38a15ea418d3bf076e3529b316f9706949"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): lib/lua/compiler/codegen.ex:919-938 | lib/lua/compiler/codegen.ex:1173-1199 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6da5100bc8233efcd8025bacc7b07b4989319243e85412e7a1d8c9aa5dec409"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/lua/compiler/bytecode.ex:644-656 | lib/lua/compiler/goto_resolution.ex:192-209 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"lib/lua/compiler/bytecode.ex"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c660448389a219001e11b10a5ec220c6f996f1694fe5a976934f1938e17203"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 16\u002B corresponding lines): lib/lua/vm/executor.ex:1756-1772 | lib/lua/vm/executor.ex:1803-1819 | lib/lua/vm/executor.ex:1850-1866 | lib/lua/vm/executor.ex:2197-2212 | lib/lua/vm/executor.ex:2243-2258 | lib/lua/vm/executor.ex:2289-2304 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 16 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":1756}}}],"partialFingerprints":{"codehealthFindingId/v1":"abdda8c7b5c18b67c8c3deb9d9d73ce4ba0caaabf8ea21868e3223a8349cae0a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): lib/lua/parser/error.ex:215-233 | lib/lua/vm/error_formatter.ex:167-183 \u2014 These two members are one piece of code written twice and then edited apart: 17 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":"lib/lua/parser/error.ex"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3b208f6a43a5e24239be8d42f893cff804b47adedbc907b9194f8251ff99d36"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): lib/lua/vm/executor.ex:3784-3803 | lib/lua/vm/executor.ex:3811-3826 \u2014 These two members are one piece of code written twice and then edited apart: 16 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":"lib/lua/vm/executor.ex"},"region":{"startLine":3784}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e3e1a8e961bc25422636000286b19f30e38e9703d2a39ccf509b19715b8755b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/lua/vm/stdlib/utf8.ex:110-131 | lib/lua/vm/stdlib/utf8.ex:162-183 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"lib/lua/vm/stdlib/utf8.ex"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da36478ab62a69dc6352c00720dbf51a318c9f2000f0baa5c636af3f814852a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/lua/parser.ex:488-507 | lib/lua/parser.ex:1149-1155 \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":"lib/lua/parser.ex"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"6313bc92d1d58120ddf796059005a3fa65ccac13c6e0e6f9bb7311eefb27a49f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/lua/ast/ids.ex:142-156 | lib/lua/ast/ids.ex:172-179 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"lib/lua/ast/ids.ex"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"892e7aa67c1f10a0538b0f4460ea578f676e4ee567d9c420357975d58158dd89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): lib/lua/vm/dispatcher.ex:2469-2482 | lib/lua/vm/dispatcher.ex:2530-2544 \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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":2469}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2fd94eba315f5fceac8e33e424a684672b42cba091809d072d5fc995d927291"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): lib/lua/vm/executor.ex:224-246 | lib/lua/vm/executor.ex:3268-3296 \u2014 These two members are one piece of code written twice and then edited apart: 23 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":"lib/lua/vm/executor.ex"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"157b8948ff02788952260da71d53a10163fd9fb9f2c54ea5ffeda35079c067b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/lua/parser.ex:1395-1409 | lib/lua/parser.ex:1414-1432 \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":"lib/lua/parser.ex"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa2a1ea59964cfdf32e68669d42372a5f9c729d844b74d9283022643db0d32ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): lib/lua.ex:369-383 | lib/lua.ex:392-409 \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":"lib/lua.ex"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"4106e769bc7aba07266098174a5a0b345dbd31e19913a5e1898bc65299c2b175"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/lua/compiler/codegen.ex:1051-1072 | lib/lua/compiler/codegen.ex:1078-1099 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"lib/lua/compiler/codegen.ex"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"41fda4722b6dd265212b19cbd6cd2555ba72fffb97bc77a552e873a40a9963ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/lua.ex:452-463 | lib/lua.ex:472-485 \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":"lib/lua.ex"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee4b9ddfc140caf2161d97a2d201cf524d9c074d505f2f9651cf71d2d4b6c10"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): lib/lua/vm/dispatcher.ex:2075-2096 | lib/lua/vm/dispatcher.ex:2186-2208 \u2014 These two members are one piece of code written twice and then edited apart: 22 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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":2075}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4812a030004e99b14f31bf6cc5515aa54b4f797623c88e0a7e6aa28c8ac3f18"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 11\u002B corresponding lines): lib/lua/vm/executor.ex:1880-1890 | lib/lua/vm/executor.ex:1904-1914 | lib/lua/vm/executor.ex:1928-1938 | lib/lua/vm/executor.ex:1952-1962 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 11 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 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":1880}}}],"partialFingerprints":{"codehealthFindingId/v1":"3feac7998db0cf64c2684f1a2932bdb7443fa98843cbf4be50c855fb60003288"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/lua/vm/stdlib/math.ex:392-403 | lib/lua/vm/stdlib/math.ex:412-423 \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":"lib/lua/vm/stdlib/math.ex"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5153603aee7445cc0cad13bd363847abc6291ef988914a3620a0be170a9f6b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): lib/lua/vm/assertion_error.ex:26-34 | lib/lua/vm/runtime_error.ex:38-47 | lib/lua/vm/type_error.ex:30-40 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 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":"lib/lua/vm/assertion_error.ex"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfb640829263e96a4df0e157d912b91055aecf9b42c1f150f1ca106b9106b465"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/lua/lexer.ex:393-401 | lib/lua/lexer.ex:701-708 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"lib/lua/lexer.ex"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2cb6801bf81201a748fea1828a439e4914204f322a2b61bf1ab7163f52ea12"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/lua/parser.ex:571-583 | lib/lua/parser.ex:1029-1041 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"lib/lua/parser.ex"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2545558b4c2bdd7dd07cd92514580d53b0154f248d75afa090dc31778b3a805"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): lib/lua/vm/executor.ex:2707-2718 | lib/lua/vm/executor.ex:2835-2846 | lib/lua/vm/executor.ex:2862-2872 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 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":"lib/lua/vm/executor.ex"},"region":{"startLine":2707}}}],"partialFingerprints":{"codehealthFindingId/v1":"d086dad0f1d3b44aa4bacfb8841d45f23fcd4b13762279951196f642029d8385"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 10\u002B corresponding lines): lib/lua/vm/executor.ex:2023-2035 | lib/lua/vm/executor.ex:2049-2061 | lib/lua/vm/executor.ex:2075-2087 | lib/lua/vm/executor.ex:2101-2111 | lib/lua/vm/executor.ex:2125-2135 | lib/lua/vm/executor.ex:2149-2158 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 10 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 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":2023}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b33a68a9d6ed3838afbc99e7fc23462b73c793c73887f2e3082c669baddee24"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): lib/lua/vm/executor.ex:2888-2896 | lib/lua/vm/executor.ex:2912-2920 \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":"lib/lua/vm/executor.ex"},"region":{"startLine":2888}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffd7776c7588f1d2d495dc381ca39914d6607d7e1f4afcca840ed8eb4ac7e6a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (2 corresponding lines): lib/lua/lexer.ex:625-626 | lib/lua/lexer.ex:630-631 \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":"lib/lua/lexer.ex"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf404987fdcaf10bc4fc903639e4cc4a0a07b6708bddc8150ce237d78807af4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): lib/lua/parser.ex:383-388 | lib/lua/parser.ex:392-396 \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":"lib/lua/parser.ex"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc603e544e5c644c7f532c50b31c58102a1233feb9fabbdc259cf035f0b934a5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/lua/vm/dispatcher.ex:2503-2508 | lib/lua/vm/dispatcher.ex:2566-2572 \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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":2503}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3aa8fb7a71411fa45e7fe5306edb0d6993879838ce2d7cd6c6a88fb56a0afb0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): lib/lua/parser.ex:1004-1016 | lib/lua/parser.ex:1195-1207 \u2014 These two members are one piece of code written twice and then edited apart: 13 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":"lib/lua/parser.ex"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"55545b6e4a5d32ba60ba0245c569b176bfce10a9a53dde583f01c83ca604d882"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): website/lib/website_web/live/playground_live.ex:111-121 | website/lib/website_web/live/playground_live.ex:141-154 \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":"website/lib/website_web/live/playground_live.ex"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8bce7163a1f09776d246342e21c31f8bb756a94275eddbfc28805f8c9948884"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 3\u002B corresponding lines): lib/lua/vm/executor.ex:1740-1742 | lib/lua/vm/executor.ex:1787-1789 | lib/lua/vm/executor.ex:1834-1836 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 3 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":"lib/lua/vm/executor.ex"},"region":{"startLine":1740}}}],"partialFingerprints":{"codehealthFindingId/v1":"16c44686ab4f000a856e564eb0fa47cb1fcc0b20e393fd7c3d65a43ab27913eb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/lua/vm/executor.ex:1111-1118 | lib/lua/vm/executor.ex:1134-1141 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"lib/lua/vm/executor.ex"},"region":{"startLine":1111}}}],"partialFingerprints":{"codehealthFindingId/v1":"453ee8688e1c376260cae830beadd6fdec184be148ca725afc2c7bfede30a2c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): lib/lua/vm/stdlib.ex:170-178 | lib/lua/vm/value.ex:318-324 \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":"lib/lua/vm/stdlib.ex"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"beb3630382913006fea478ff15cf1208ee36c4639a3396d53a61f0b7217041ac"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/lua/lexer.ex:620-621 | lib/lua/vm/stdlib/utf8.ex:90-90 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"lib/lua/lexer.ex"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"39b321ca5a14a4a50295f4273a326fa94d00fdadaccdbb00139f03bb679683df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): lib/lua/vm/stdlib/pattern.ex:518-525 | lib/lua/vm/stdlib/pattern.ex:579-590 \u2014 These two members are one piece of code written twice and then edited apart: 8 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":"lib/lua/vm/stdlib/pattern.ex"},"region":{"startLine":518}}}],"partialFingerprints":{"codehealthFindingId/v1":"126fe0ee0f95ceb966397b7333b772a277e0df76ab4acccf9cdd59728f392c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): lib/lua/vm/stdlib.ex:720-731 | lib/lua/vm/stdlib.ex:890-901 \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":"lib/lua/vm/stdlib.ex"},"region":{"startLine":720}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60ec78e89b9cfbfdc1de572a05981844a8e7c0f191fb6e22c5f283c296cae87"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/lua/compiler/bytecode.ex:631-636 | lib/lua/compiler/goto_resolution.ex:178-183 \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":"lib/lua/compiler/bytecode.ex"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"332def2ad470f8da4e4bb2ecd3ef869d23e60e3f764acdd3378c3cc7440933dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 5\u002B corresponding lines): lib/lua/compiler/codegen.ex:985-991 | lib/lua/compiler/codegen.ex:1495-1499 | lib/lua/compiler/codegen.ex:1503-1509 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 5 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":"lib/lua/compiler/codegen.ex"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b43531288402069f0d89d6bebfd8a7542100453ce7b95725af399c259de292"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/lua/compiler/bytecode.ex:622-625 | lib/lua/compiler/goto_resolution.ex:169-172 \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":"lib/lua/compiler/bytecode.ex"},"region":{"startLine":622}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3ee4ce6b6ac4dffb936c89c47e7dec67f05a417ae2f3bdfac334e74565a03dc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/lua/lexer.ex:616-616 | lib/lua/vm/stdlib/utf8.ex:86-86 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"lib/lua/lexer.ex"},"region":{"startLine":616}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c82a04a8977b94d1e64fc1ff19875b58dce9ffa8a6dd9e47e36c323c2f68f14"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (6 corresponding lines): lib/lua/vm/argument_error.ex:98-103 | lib/lua/vm/type_error.ex:74-81 \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":"lib/lua/vm/argument_error.ex"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fcaf1b5766661f754fbfc6918ec8a98fc8842224ce9e5bbf2aced0e74fc125"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (3 corresponding lines): website/lib/website/lua_sandbox.ex:465-467 | website/lib/website_web/bytecode.ex:131-133 \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":"website/lib/website/lua_sandbox.ex"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d87d29ac4504285dc3ab13bab8c0880c841bfd8891abd1dd42bc4a338e424f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): lib/lua/vm/stdlib.ex:635-638 | lib/lua/vm/stdlib/debug.ex:204-207 \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":"lib/lua/vm/stdlib.ex"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"db6b6e842adfd85ffabe7002dcf0ad3597033d974007bebd86f62a2d1d20d826"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): website/lib/website_web/live/playground_live.ex:200-204 | website/lib/website_web/live/tour_live.ex:111-116 \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":"website/lib/website_web/live/playground_live.ex"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"586063787070c17d18fe3a07f23bdee5e85ef53babd46a1d62a74d9d42a33c6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): lib/lua/lexer.ex:598-598 | lib/lua/vm/stdlib/pattern.ex:689-689 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"lib/lua/lexer.ex"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"45e970932ce7a030daf5c6ed2f9b073f676a10f0326c12083e30766be1a52f6e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (1 corresponding lines): website/lib/website/lua_sandbox.ex:492-492 | website/lib/website_web/bytecode.ex:158-158 \u2014 These two members are one piece of code written twice and then edited apart: 1 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":"website/lib/website/lua_sandbox.ex"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcd98c3da9d7627d0f818a19f78b22b618718e89a71886445fd46b1d0a9a365"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201391 lines \u00D7 2): lib/lua/vm/executor.ex:2996-3086 | lib/lua/vm/executor.ex:3105-3143 \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 \u0060lib/lua/vm/executor.ex:2996\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":"lib/lua/vm/executor.ex"},"region":{"startLine":2996}}}],"partialFingerprints":{"codehealthFindingId/v1":"4721cd99cc9d05088d17be045c1b5cc665140a027f0687016f12d1b5d01fe307"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (62\u201363 lines \u00D7 2): website/lib/website/lua_sandbox.ex:1010-1071 | website/lib/website/lua_sandbox.ex:1166-1228 \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 \u0060website/lib/website/lua_sandbox.ex:1010\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":"website/lib/website/lua_sandbox.ex"},"region":{"startLine":1010}}}],"partialFingerprints":{"codehealthFindingId/v1":"6328c123d1abfc70ec085b92fe9749730d4785ec61e9af035099b5f8bc5f0717"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2): website/lib/website/lua_sandbox.ex:1202-1252 | website/lib/website/lua_sandbox.ex:1256-1311 \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 \u0060website/lib/website/lua_sandbox.ex:1202\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/lib/website/lua_sandbox.ex"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c15d4889c3fbd5535c49e29d5e6e53c09cf183a047ab14510730833dd09c890"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (42\u201347 lines \u00D7 2): lib/lua/vm/executor.ex:139-185 | lib/lua/vm/executor.ex:3180-3221 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c449fd1b61d384f480e1d7b45df41c867621f0bfe5688c8cf74a929c04d413b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201337 lines \u00D7 2): lib/lua/vm/dispatcher.ex:1363-1395 | lib/lua/vm/dispatcher.ex:1850-1886 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1363}}}],"partialFingerprints":{"codehealthFindingId/v1":"da6301378866fdd31b3f5f5e79ac23eda5fa1bc51357faacf90dc5900fcd545e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (32\u201335 lines \u00D7 2): lib/lua/compiler/codegen.ex:367-398 | lib/lua/compiler/codegen.ex:479-513 \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 \u0060lib/lua/compiler/codegen.ex:479\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/lua/compiler/codegen.ex:405\u0060 calls \u0060max\u0060 and \u0060lib/lua/compiler/codegen.ex:515\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a5d4e73874784c79c3ab11ebb66c80bed0c79e42380bb85eda9abc28117ce50"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201330 lines \u00D7 3): lib/lua/vm/executor.ex:2667-2691 | lib/lua/vm/executor.ex:2738-2767 | lib/lua/vm/executor.ex:2793-2817 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/vm/executor.ex:2789\u0060 calls \u0060get\u0060 and \u0060lib/lua/vm/executor.ex:2734\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":2667}}}],"partialFingerprints":{"codehealthFindingId/v1":"f68ef4005401c04bac1dc8d4955237353e085ffdee42734292db35ecdf6583cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201328 lines \u00D7 4): lib/lua/vm/dispatcher.ex:970-997 | lib/lua/vm/dispatcher.ex:1035-1059 | lib/lua/vm/dispatcher.ex:1088-1112 | lib/lua/vm/dispatcher.ex:1142-1166 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/lua/vm/dispatcher.ex:970\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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":970}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea8af3d212f95c8aad1954a95e962081db8b0a0472cc0be8caa90fe5c08786c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2): lib/lua/vm/dispatcher.ex:1243-1270 | lib/lua/vm/dispatcher.ex:1296-1323 \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 \u0060lib/lua/vm/dispatcher.ex:1243\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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1243}}}],"partialFingerprints":{"codehealthFindingId/v1":"09857931f9f2b4f0b0d0ce6c4693368d6b0aee3e9863fe0bbf7928b7d155340c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): lib/lua/parser.ex:839-865 | lib/lua/parser.ex:868-894 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/parser.ex"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef41cf45f315284516e9f1a67a67f8d4c03d42a62a75ea7848afdbc52eb97ae3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): lib/lua/vm/executor.ex:599-624 | lib/lua/vm/executor.ex:1559-1584 \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 \u0060lib/lua/vm/executor.ex:599\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":"lib/lua/vm/executor.ex"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d32f29deea35bb1579ff557328e5b7b5e18ee99bd7ef53d9e0850e8aea74034"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 4): lib/lua/vm/dispatcher.ex:919-943 | lib/lua/vm/dispatcher.ex:1194-1218 | lib/lua/vm/dispatcher.ex:1246-1270 | lib/lua/vm/dispatcher.ex:1299-1323 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/lua/vm/dispatcher.ex:919\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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"9751a9bef6a790228af31c268806438535dc66bcdf804fa5c955ceac797cf133"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201322 lines \u00D7 2): lib/lua/vm/stdlib/table.ex:194-215 | lib/lua/vm/stdlib/table.ex:461-477 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/vm/stdlib/table.ex:193\u0060 calls \u0060is_binary\u0060 and \u0060lib/lua/vm/stdlib/table.ex:461\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/stdlib/table.ex"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e279b2e9c64cd7a84595bf2e9af5e6a208a583beb4fb1eb4d79f4c5bfabc8e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201321 lines \u00D7 2): lib/lua/compiler/codegen.ex:920-936 | lib/lua/compiler/codegen.ex:1174-1194 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/lua/compiler/codegen.ex:1198\u0060 calls \u0060load_constant\u0060 and \u0060lib/lua/compiler/codegen.ex:937\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"daaa5398ff9913739e5da8c968c17acd3dd86ab4e6818411f0824f911acadf13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): lib/lua/vm/dispatcher.ex:392-411 | lib/lua/vm/dispatcher.ex:1498-1518 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/vm/dispatcher.ex:391\u0060 calls \u0060get\u0060 and \u0060lib/lua/vm/dispatcher.ex:1497\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b5a0dd379bbb269a2c82aafd52db99f99751c31a39d64a13c8d5ec0e2b5383"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): lib/lua/compiler/codegen.ex:1051-1069 | lib/lua/compiler/codegen.ex:1078-1096 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3414b72438a35764502bb83c3c346ac4ec263f2f95a52d953551433e209d1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): lib/lua/compiler/scope.ex:304-322 | lib/lua/compiler/scope.ex:543-560 \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 \u0060lib/lua/compiler/scope.ex:304\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":"lib/lua/compiler/scope.ex"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c5fdcf670fdf8be3ddb35323a402d1e42a19261967d3dcc237a897855f5c958"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 10): lib/lua/vm/dispatcher.ex:922-939 | lib/lua/vm/dispatcher.ex:976-993 | lib/lua/vm/dispatcher.ex:1038-1055 | lib/lua/vm/dispatcher.ex:1091-1108 | lib/lua/vm/dispatcher.ex:1145-1162 | lib/lua/vm/dispatcher.ex:1197-1214 | lib/lua/vm/dispatcher.ex:1249-1266 | lib/lua/vm/dispatcher.ex:1302-1319 | lib/lua/vm/dispatcher.ex:1378-1395 | lib/lua/vm/dispatcher.ex:1869-1886 \u2014 all 10 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":922}}}],"partialFingerprints":{"codehealthFindingId/v1":"82fe31ccf85961c4a061e4d7613506f5857f2b3bb049867a3cd68baaac4bffa4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): lib/lua/compiler/codegen.ex:255-272 | lib/lua/compiler/codegen.ex:287-303 | lib/lua/compiler/codegen.ex:319-336 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"238da6babb4f9b3e7f43b64601e49f0237774c7331b8e0d2935f4e2a580488be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 3): lib/lua/compiler/codegen.ex:1379-1396 | lib/lua/compiler/codegen.ex:1417-1434 | lib/lua/compiler/codegen.ex:1448-1465 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":1379}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffdf0a5c54c3f699dda15433b93ff2315e1f67d40deb0e3ba09caa9d4f695d31"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): lib/lua/compiler/codegen.ex:1231-1247 | lib/lua/compiler/codegen.ex:1530-1547 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c7b05df48b4d7500502f7421986292efa15593f129dddbce94093ac0a34285"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): lib/lua/vm/dispatcher.ex:326-343 | lib/lua/vm/dispatcher.ex:366-383 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"903cebb2596a35b2322b49ddbc764c7a3981286b32ffd7b22df0e203fe57c8cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): lib/lua/vm/executor.ex:2314-2331 | lib/lua/vm/executor.ex:2386-2402 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/vm/executor.ex:2313\u0060 calls \u0060elem\u0060 and \u0060lib/lua/vm/executor.ex:2385\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":2314}}}],"partialFingerprints":{"codehealthFindingId/v1":"453c90e962e5645c2df480c65f8cc082ccfb4f11aca0e2d0dce955afc2e4a4fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/lua/compiler/codegen.ex:293-308 | lib/lua/compiler/codegen.ex:1424-1439 \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 \u0060lib/lua/compiler/codegen.ex:293\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/compiler/codegen.ex:292\u0060 calls \u0060max\u0060 and \u0060lib/lua/compiler/codegen.ex:1423\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"08b672595375591eb07a215282d76c32f575c026bd1ff8726df3d87edf11abab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/lua/vm/executor.ex:477-492 | lib/lua/vm/executor.ex:2587-2602 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"158866c0947665ebaaf0db6706e7c03e8e54302d1ceabc7e87e2ec0c19c9becc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): lib/lua/vm/executor.ex:840-853 | lib/lua/vm/executor.ex:1253-1268 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":840}}}],"partialFingerprints":{"codehealthFindingId/v1":"96754f47e4d1010f05fa32a18424055fb6c1124c1ce88a8a749fcdae049ca866"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/lua/vm/executor.ex:2336-2350 | lib/lua/vm/executor.ex:2416-2430 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":2336}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93bceabe690f3a6ca624c840a2ee6fa0eb19496eda7690e0ba791464b642632"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): lib/lua/vm/executor.ex:2360-2374 | lib/lua/vm/executor.ex:2449-2463 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":2360}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbfe769e54f533c8e68c5a0f85865592592e77ad83d92689e17b0516415dba05"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/lua/compiler/codegen.ex:407-420 | lib/lua/compiler/codegen.ex:515-528 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/compiler/codegen.ex:405\u0060 calls \u0060max\u0060 and \u0060lib/lua/compiler/codegen.ex:513\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"d698b3d7e2aff4e3a41dd90808e62dbf16c61fdfb582ddb81a1486fd9381251f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): lib/lua/compiler/codegen.ex:1275-1298 | lib/lua/compiler/codegen.ex:1575-1597 \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 \u0060lib/lua/compiler/codegen.ex:1275\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":"lib/lua/compiler/codegen.ex"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba6aada82ba8af91093f79f3ee3d7d3f9f2ce247844fadabd33c35bf0f35e7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/lua/vm/dispatcher.ex:316-328 | lib/lua/vm/dispatcher.ex:356-368 | lib/lua/vm/dispatcher.ex:1453-1465 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/vm/dispatcher.ex:352\u0060 calls \u0060get\u0060 and \u0060lib/lua/vm/dispatcher.ex:309\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa8bcc3ab1ed575f71afea09903186e09c42c21e86afa3f5752a2a1ad8a2f21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): lib/lua/vm/executor.ex:603-615 | lib/lua/vm/executor.ex:1563-1575 | lib/lua/vm/executor.ex:3272-3284 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b0e88b2af20a0db02997a8fd64feb14a982418afbe45be311b893efc96fc9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/lua/compiler/codegen.ex:559-571 | lib/lua/compiler/codegen.ex:1008-1020 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":559}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2148e24db99f341036d459a527432bbe1d34256893f706963784882606e8030"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): lib/lua/vm/dispatcher.ex:1651-1663 | lib/lua/vm/dispatcher.ex:2227-2239 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1651}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad36e07bcd95234c0e8a7ccb1b8784f9d3f8dc74c37940377a074eb596679ab4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 3): lib/lua/vm/executor.ex:2345-2355 | lib/lua/vm/executor.ex:2425-2435 | lib/lua/vm/executor.ex:2489-2500 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":2345}}}],"partialFingerprints":{"codehealthFindingId/v1":"d520ce0e14bb4413a6c955a392b5727dd5b31b1e69ebc4c258fb51427d6f423d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/lua.ex:535-546 | lib/lua.ex:580-591 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua.ex"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"d70fc453ba951db58b705204baf55997c4c0aca11914b4907aa9fc036bc36ebe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/lua/compiler/codegen.ex:684-695 | lib/lua/compiler/codegen.ex:748-759 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c16ccf8c3d6c3832c5ef05feffeafa4871bb0ff892ce457ea0d091e67d5698c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 2): lib/lua/compiler/codegen.ex:1250-1269 | lib/lua/compiler/codegen.ex:1549-1569 \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 \u0060lib/lua/compiler/codegen.ex:1250\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":"lib/lua/compiler/codegen.ex"},"region":{"startLine":1250}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead2df0c218f8665a3a066871217c4fe5212e358230bcda21b726e48d948377e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): lib/lua/parser.ex:135-146 | lib/lua/parser.ex:153-163 \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 \u0060lib/lua/parser.ex:135\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":"lib/lua/parser.ex"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"c689cc9dc222ceec559b583ca8686837e52e48c0c9bba8a9f7d23ce0434d0b90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/lua/parser/error.ex:215-226 | lib/lua/vm/error_formatter.ex:167-178 \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 \u0060lib/lua/parser/error.ex:215\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":"lib/lua/parser/error.ex"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"264fb2b3b96f549c4439fa27a9ac8d2eb9ea72676120a606e5b3aab9b9afb8b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/lua/vm/dispatcher.ex:1891-1902 | lib/lua/vm/dispatcher.ex:2531-2542 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1891}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9d83f367f3930b4326d9d594e052bedc37faadb9cb444c31d91593e4c180828"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201312 lines \u00D7 2): lib/lua/vm/dispatcher.ex:2312-2323 | lib/lua/vm/dispatcher.ex:2357-2366 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":2312}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3485e0f14bab868d38ad55dfa8a7066012103ef99a5fc080cfe369f2d4543cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): lib/lua/vm/executor.ex:827-838 | lib/lua/vm/executor.ex:1241-1252 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a26af8becff08fed1cc99a254d2551ad373b7ae762d52e03334bdf86d5265f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): lib/lua.ex:453-463 | lib/lua.ex:475-485 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua.ex"},"region":{"startLine":453}}}],"partialFingerprints":{"codehealthFindingId/v1":"527fbea0f4c412c0baf914a9403d73d277d043f64c4a2673127657f53589f44e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): lib/lua/vm/dispatcher.ex:554-563 | lib/lua/vm/dispatcher.ex:569-578 | lib/lua/vm/dispatcher.ex:584-593 | lib/lua/vm/dispatcher.ex:599-608 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/lua/vm/dispatcher.ex:554\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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2d289fab48f92a957d409bc81c8afd1a02f0b0ad587ce2ea55f359e052cdeb9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): lib/lua/vm/executor.ex:2649-2658 | lib/lua/vm/executor.ex:2675-2684 | lib/lua/vm/executor.ex:2751-2760 | lib/lua/vm/executor.ex:2801-2810 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/lua/vm/executor.ex:2649\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":"lib/lua/vm/executor.ex"},"region":{"startLine":2649}}}],"partialFingerprints":{"codehealthFindingId/v1":"e057f05d142f696957f13abb1870a124f861436ee83328957b3f00add2475669"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/lua/vm/dispatcher.ex:1840-1849 | lib/lua/vm/executor.ex:1385-1394 \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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1840}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bc733095457491601f2a1b211b669fdec244b4a7ac31bec5f51aa15a2a49fbb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/lua/vm/executor.ex:1757-1766 | lib/lua/vm/executor.ex:2197-2206 \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 \u0060lib/lua/vm/executor.ex:1757\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/vm/executor.ex:1756\u0060 calls \u0060elem\u0060 and \u0060lib/lua/vm/executor.ex:2196\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":1757}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c58646b8736a89ea90991006c20d7a5853a4a3580516e86f7758e66fb74d3ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/lua/vm/executor.ex:1804-1813 | lib/lua/vm/executor.ex:2243-2252 \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 \u0060lib/lua/vm/executor.ex:1804\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/vm/executor.ex:1803\u0060 calls \u0060elem\u0060 and \u0060lib/lua/vm/executor.ex:2242\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"86cf009608fa8b665d27376f76efab67518dea77a1755ac99fad9103b40dabcd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/lua/vm/executor.ex:1851-1860 | lib/lua/vm/executor.ex:2289-2298 \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 \u0060lib/lua/vm/executor.ex:1851\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/vm/executor.ex:1850\u0060 calls \u0060elem\u0060 and \u0060lib/lua/vm/executor.ex:2288\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":1851}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f7dc5fb8c3db06227a80e1cc9655df24403a371dffa636f006877b4aa3c4bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/lua/vm/stdlib/math.ex:394-403 | lib/lua/vm/stdlib/math.ex:414-423 \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 \u0060lib/lua/vm/stdlib/math.ex:394\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":"lib/lua/vm/stdlib/math.ex"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"c034421cf5038305133e92478c9939c5e41654f9e4c1353e7bff4953a92192a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 4): lib/lua/vm/stdlib/debug.ex:42-49 | lib/lua/vm/stdlib/os.ex:47-54 | lib/lua/vm/stdlib/string.ex:59-67 | lib/lua/vm/stdlib/table.ex:51-58 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/lua/vm/stdlib/debug.ex:42\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/stdlib/debug.ex"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdbed9172babf814dc8c74fcb636f1f908fdfca9ce8ac1df22b9f65e4f1eb07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): lib/lua/vm/executor.ex:2369-2376 | lib/lua/vm/executor.ex:2458-2465 | lib/lua/vm/executor.ex:2524-2532 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":2369}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9979ef3d738b4a0a3a6289a6d4f770faceac99f2211e2d42f7362893bc89a2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/lua/vm/dispatcher.ex:1080-1088 | lib/lua/vm/dispatcher.ex:1238-1246 \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 \u0060lib/lua/vm/dispatcher.ex:1080\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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1080}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5e8f0c7c6fbe14ea059cf1de59dc9938f39e1c5204c6d6b082f1911618c318"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/lua/vm/dispatcher.ex:1133-1142 | lib/lua/vm/dispatcher.ex:1290-1299 \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 \u0060lib/lua/vm/dispatcher.ex:1133\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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a758e40c7f50967e1ffa5e0273bb825dea0a68a75b4fc0ca2f871574616de672"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/lua/vm/dispatcher.ex:1435-1443 | lib/lua/vm/dispatcher.ex:1463-1471 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1435}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbf020bb41206b007d6260e011f697c41e8bc1466a16799e7bdc3f1584b48fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/lua/vm/executor.ex:2838-2846 | lib/lua/vm/executor.ex:2864-2872 \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 \u0060lib/lua/vm/executor.ex:2838\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/vm/executor.ex:2836\u0060 calls \u0060get\u0060 and \u0060lib/lua/vm/executor.ex:2862\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":2838}}}],"partialFingerprints":{"codehealthFindingId/v1":"1457996a83e71f730221d91735c7da7a6dbaf331f1b37038e2f516668e84d6b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/lua/vm/dispatcher.ex:911-919 | lib/lua/vm/dispatcher.ex:963-970 \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 \u0060lib/lua/vm/dispatcher.ex:911\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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf4402177e145ebcf8897a11ded7df4ee45aab8d2be56cd90d4b0f177aad4473"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/lua/vm/dispatcher.ex:1028-1035 | lib/lua/vm/dispatcher.ex:1187-1194 \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 \u0060lib/lua/vm/dispatcher.ex:1028\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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"671c1c9ba199c1fb6ae122a5d1bc691ebc58be16fadd590516f544d6ca7c7db5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/lua/vm/dispatcher.ex:1428-1435 | lib/lua/vm/executor.ex:2642-2650 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/lua/vm/dispatcher.ex:1428\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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1428}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6c33b0e3e3474290d62d612ffe17edee2796f1faf3e9137b02421d65870a04e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): lib/lua/vm/executor.ex:814-823 | lib/lua/vm/executor.ex:1216-1225 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"67fac51280439a21289e5038dc7fe7275903dbb2c48fecda78c14848b7e864e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): lib/lua/vm/executor.ex:3784-3791 | lib/lua/vm/executor.ex:3811-3818 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":3784}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b98ba6e7a7954ec4d020532c73e7d7881d1f161fc314fad65ecc2a60805ce34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): lib/lua/vm/dispatcher.ex:325-331 | lib/lua/vm/dispatcher.ex:365-371 | lib/lua/vm/dispatcher.ex:1434-1440 | lib/lua/vm/dispatcher.ex:1462-1468 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/lua/vm/dispatcher.ex:325\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":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"327dd185388f6e4acbe054626d491aee17edbb75d5b5511286bfe684cae9960b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): lib/lua/vm/dispatcher.ex:334-340 | lib/lua/vm/dispatcher.ex:374-380 | lib/lua/vm/dispatcher.ex:1471-1477 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f79da26bbaf20b2b360d387cab3254dce933c176644927370944e246bdeda78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): lib/lua/compiler/scope.ex:271-279 | lib/lua/compiler/scope.ex:370-378 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/scope.ex"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa472233f9b6845bd2e6f359d54415290b122780a7cbcc22f3c96ac6cfce23e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/lua/vm/assertion_error.ex:26-32 | lib/lua/vm/type_error.ex:30-36 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/lua/vm/assertion_error.ex:26\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/lua/vm/type_error.ex:37\u0060 calls \u0060get\u0060 and \u0060lib/lua/vm/assertion_error.ex:33\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/assertion_error.ex"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be731024660bd95069fcfdd3a53d9398cb4910fbcabbc1099795b1b58414d03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/lua/vm/dispatcher.ex:422-435 | lib/lua/vm/dispatcher.ex:491-504 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"16cf49c8c1e966dd28b3a4ed9664ee1d7d4e0732b73924c11171011ae959b9be"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/lua/vm/dispatcher.ex:443-456 | lib/lua/vm/dispatcher.ex:511-524 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f9b3fe9f1fbb314c97c2a0ca5cda506f89bcb4151a805be8e8dc6dfb652c74"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): lib/lua/vm/dispatcher.ex:464-477 | lib/lua/vm/dispatcher.ex:531-544 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"355d66be4ef61355d16e3daa6e19c55f289a51c6ffc7e87da6243ab093940cae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/lua/compiler/codegen.ex:1310-1316 | lib/lua/compiler/codegen.ex:1609-1614 \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 \u0060lib/lua/compiler/codegen.ex:1310\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":"lib/lua/compiler/codegen.ex"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fa97b8a93339f6797849b5b0baee41b9edc4c8e5b80939e219d57d257d832f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/lua/vm/error_formatter.ex:48-53 | lib/lua/vm/error_formatter.ex:96-101 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/error_formatter.ex"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf72a14cfd714913e0f7d4629080148ca5e819dd6241ce13a7363ba67d6168a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 6): lib/lua/compiler/codegen.ex:1254-1263 | lib/lua/compiler/codegen.ex:1279-1289 | lib/lua/compiler/codegen.ex:1312-1321 | lib/lua/compiler/codegen.ex:1553-1562 | lib/lua/compiler/codegen.ex:1579-1589 | lib/lua/compiler/codegen.ex:1610-1619 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/compiler/codegen.ex:1278\u0060 calls \u0060last\u0060 and \u0060lib/lua/compiler/codegen.ex:1253\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/codegen.ex"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e3fe9124c24f92b3fc80dd4e765ed9e86a5889a93de954417e00fe5ad68dfc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): lib/lua/vm/stdlib/debug.ex:35-39 | lib/lua/vm/stdlib/math.ex:52-56 | lib/lua/vm/stdlib/os.ex:41-45 | lib/lua/vm/stdlib/string.ex:47-51 | lib/lua/vm/stdlib/table.ex:48-52 | lib/lua/vm/stdlib/utf8.ex:40-44 \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 6 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/lua/vm/stdlib/debug.ex:35\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/vm/stdlib/os.ex:39\u0060 calls \u0060boot_offset\u0060 and \u0060lib/lua/vm/stdlib/debug.ex:34\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/stdlib/debug.ex"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7929889cdc2d0fbafc4b26a9e7ed804204f62ced5909cb670b288af61ccda5db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/lua/vm/dispatcher.ex:1439-1443 | lib/lua/vm/dispatcher.ex:1467-1471 | lib/lua/vm/dispatcher.ex:1476-1480 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1439}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f2bfb098cefd297f03ca090a35911b078d45524958f54e2552edbf2f701c1c1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): lib/lua/vm/executor.ex:2031-2035 | lib/lua/vm/executor.ex:2057-2061 | lib/lua/vm/executor.ex:2083-2087 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060lib/lua/vm/executor.ex:2031\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":"lib/lua/vm/executor.ex"},"region":{"startLine":2031}}}],"partialFingerprints":{"codehealthFindingId/v1":"84d429dc4067728c54cefd1bc1c0de5d0d552985a4a1649d967989f389aae35b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/lua/vm/dispatcher.ex:696-711 | lib/lua/vm/dispatcher.ex:816-831 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060lib/lua/vm/dispatcher.ex:715\u0060 calls \u0060element\u0060 and \u0060lib/lua/vm/dispatcher.ex:836\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":696}}}],"partialFingerprints":{"codehealthFindingId/v1":"84176e59228887204bb3ba8c4a4c8a1de0e2ac369ed528cf2b315211fc255f81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/lua/vm/dispatcher.ex:695-699 | lib/lua/vm/dispatcher.ex:714-718 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"045b1284f807ba23d3a601932683cd48fa5b8f174026807cd25f6edfad8a4f5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/lua/vm/dispatcher.ex:715-730 | lib/lua/vm/dispatcher.ex:834-849 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa6775e7c55692c1a4ff68b022c3b8868d24608486d874c841bb1ad643595caf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/lua/vm/dispatcher.ex:733-737 | lib/lua/vm/dispatcher.ex:752-756 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"084e7548a48c6cd602d8f672bf00ea40701e7b6b9e8fb54c0b4b69ad1f0d80b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): lib/lua/vm/dispatcher.ex:772-787 | lib/lua/vm/dispatcher.ex:852-867 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060lib/lua/vm/dispatcher.ex:771\u0060 calls \u0060element\u0060 and \u0060lib/lua/vm/dispatcher.ex:851\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"51e12bd89fd211e92bf65ebd34e8d4e14400aca23b122709691b28ad7bb6fc46"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/lua/vm/dispatcher.ex:1526-1531 | lib/lua/vm/dispatcher.ex:1541-1546 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"8436368cb854a47ded5e079db261ba6df5e8c1226de96f8b010e3bacf3c66a90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): website/lib/website_web/live/playground_live.ex:191-196 | website/lib/website_web/live/tour_live.ex:102-107 \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":"website/lib/website_web/live/playground_live.ex"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"96533ef0fe183768557bfd7348bddd7054941731cbbdc57f78a5b8b8003f8b45"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): website/lib/website_web/live/playground_live.ex:208-212 | website/lib/website_web/live/tour_live.ex:120-124 \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":"website/lib/website_web/live/playground_live.ex"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4b5c48a05b033270f7efd219a95997eaf46b5d253208aedbcfa2bc021bb2a38"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): website/lib/website_web/live/playground_live.ex:216-223 | website/lib/website_web/live/tour_live.ex:128-135 \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":"website/lib/website_web/live/playground_live.ex"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"830d35ce4824e6c05d31ba412b7f46a7551a6bc95cf21a97a6fdfa1b93b8ccad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/lua/vm/assertion_error.ex:50-54 | lib/lua/vm/runtime_error.ex:63-67 \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":"lib/lua/vm/assertion_error.ex"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecec8c741ab330da67618478dc6a0fd2d561c9dd2fdf3e30dfa57f3b4bdcc830"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/lua/vm/assertion_error.ex:65-70 | lib/lua/vm/runtime_error.ex:78-83 \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":"lib/lua/vm/assertion_error.ex"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"57b6e1596145dbadc3fddee0965ca43c09415dbc2dbef80b5764b07c927f3e15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): website/lib/website/lua_sandbox.ex:421-440 | website/lib/website_web/bytecode.ex:90-109 \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":"website/lib/website/lua_sandbox.ex"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dca1099a5471cbed9933d233a7f28ae1b4c760acb0ddde9d2a1c7a8b6ed1a57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): lib/lua/vm/dispatcher.ex:1561-1567 | lib/lua/vm/dispatcher.ex:1571-1577 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"417de50784d5e50b045c3503ab4b2287329cdbacb8ce3d1f91c3ab559bfdc038"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): lib/lua/vm/stdlib/pattern.ex:210-215 | lib/lua/vm/stdlib/pattern.ex:248-253 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/stdlib/pattern.ex"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"928dd434e7422ff7d007b57f723073872eb395be998540acebfda731078ffa84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): lib/lua/vm/stdlib/table.ex:368-372 | lib/lua/vm/stdlib/table.ex:498-502 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/stdlib/table.ex"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"811f34724e1b87afb2e56178bf44354f209f0fb44fdb2173244bb18b9918edd5"}},{"ruleId":"D5","level":"warning","message":{"text":"Off the main sequence: lua: lua: abstractness 0.02, instability 0.00, distance 0.98 \u2014 zone of pain \u2014 concrete and depended on by 1 project(s), so it\u0027s rigid to change."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0115ca0f102840d0356eb013912e25b80fe9506aec59e68b817907e70abb813e"}},{"ruleId":"D13","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":"3a15300263cc2c66adc0bcdbbda0b1230914be68c9765fac720fc49cff00923d"},"taxa":[{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/lua/vm/dispatcher.ex: lib/lua/vm/dispatcher.ex changed 19 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 188 in Dispatcher.dispatch at line 262. 2 of those changes were fix/bug commits, and the other 17 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-04-30..2026-07-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-30 08:18:39 -04:00\u0027 --until=\u00272026-07-29 08:18:39 -04:00\u0027 --full-history --no-merges -- lib/lua/vm/dispatcher.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/dispatcher.ex"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"47994dd9bac83875da0aed110f6c84fb0e9dfcb5b491f8b23d11d287817c87fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/lua/vm/executor.ex: lib/lua/vm/executor.ex changed 47 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Executor.do_execute at line 712. 19 of those changes were fix/bug commits, and the other 28 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-04-30..2026-07-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-30 08:18:39 -04:00\u0027 --until=\u00272026-07-29 08:18:39 -04:00\u0027 --full-history --no-merges -- lib/lua/vm/executor.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0971a99a9515c4476584a51a5764e34ee3bb2b8b2cd1af48d4b8e1812186909"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/lua/vm/value.ex: lib/lua/vm/value.ex changed 9 times in last 90 days and 7 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 10 (its worst body is Value.parse_number at line 82), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201CFix unbounded recursion on cyclic tables at the eval boundary (#407)\u201D; \u201Cfix(api): tighten public surface before the 1.0 freeze (#380)\u201D; \u201Cfix(lua): hand callbacks Lua.t regardless of entry point (#379)\u201D; \u201Cfix(stdlib): Lua 5.3 suite conformance for strings, sort, math (20/29) (#368)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-04-30..2026-07-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-30 08:18:39 -04:00\u0027 --until=\u00272026-07-29 08:18:39 -04:00\u0027 --full-history --no-merges -- lib/lua/vm/value.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/value.ex"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"35eab6d9f02a741a5d31fda6734fa02f7d43c153975cad7cf54bddd27929a2c4"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/lua/compiler/scope.ex: lib/lua/compiler/scope.ex changed 11 times in last 90 days and 6 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 6 (its worst body is Scope.resolve_statement at line 282), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(vm): close open upvalues at if/while/for/repeat block exit (#303)\u201D; \u201Cfix(vm): close open upvalues at do-block exit (#286)\u201D; \u201Cfix(parser): adjust parenthesised call/vararg to a single value (#278)\u201D; \u201Cfix(compiler): resolve FuncDecl head names at scope analysis (#274)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-04-30..2026-07-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-30 08:18:39 -04:00\u0027 --until=\u00272026-07-29 08:18:39 -04:00\u0027 --full-history --no-merges -- lib/lua/compiler/scope.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/compiler/scope.ex"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f8caa7e32f20c25eaa6c09aba1a2c24f5de18537437428011b9ed86e06127d"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/lua/lexer.ex: lib/lua/lexer.ex changed 8 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is Lexer.try_close_long_bracket at line 679), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(stdlib): Lua 5.3 suite conformance for strings, sort, math (20/29) (#368)\u201D; \u201Cfix(lexer): treat vertical tab and form feed as whitespace (#206)\u201D; \u201Cfix(vm): handle Lua 5.3 hex and string coercion for bitwise ops (#198)\u201D; \u201Cfix(pattern): unblock pm.lua through line 110 (#188)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-04-30..2026-07-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-30 08:18:39 -04:00\u0027 --until=\u00272026-07-29 08:18:39 -04:00\u0027 --full-history --no-merges -- lib/lua/lexer.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/lexer.ex"},"region":{"startLine":679}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a65604dee47db58f518b093b91ff7d4c076e573bd9e3febbd5deb0e02567c8"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/lua/vm/stdlib/pattern.ex: lib/lua/vm/stdlib/pattern.ex changed 6 times in last 90 days and 5 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 11 (its worst body is Pattern.gsub_from at line 205), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(pattern): honour ^ anchor in gsub and literal caret in gmatch (#406)\u201D; \u201Cfix(vm): keep heap effects across protected-call error unwinding (#333)\u201D; \u201Cfix(pattern): validate gsub replacement string and value (#291)\u201D; \u201Cfix(pattern): thread VM state through gsub callbacks and fix capture order (#190)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-04-30..2026-07-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-30 08:18:39 -04:00\u0027 --until=\u00272026-07-29 08:18:39 -04:00\u0027 --full-history --no-merges -- lib/lua/vm/stdlib/pattern.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/stdlib/pattern.ex"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"e486eedf68df35b4821c19b204a51b8e9f1b1463a57a9ea10ee67928c4900911"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: lib/lua/api.ex: lib/lua/api.ex changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 4 (its worst body is API.install at line 285), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(api): tighten public surface before the 1.0 freeze (#380)\u201D; \u201Cfix(api): deflua/2 preserves function name for guarded heads (#344)\u201D; \u201Cfix: docs variable name (#159)\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-04-30..2026-07-29, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-04-30 08:18:39 -04:00\u0027 --until=\u00272026-07-29 08:18:39 -04:00\u0027 --full-history --no-merges -- lib/lua/api.ex\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/api.ex"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"91d1a6b5697a67e8fccb18e228c1ab75296b5cce185f6cb503cc036697463d1f"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: # \\xXX hex escape: exactly two hex digits \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":"lib/lua/lexer.ex"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"6488ab93e72b38d5bd0bab8b2a0213afdcf4ab9e8667878daebbd821fc8f3163"}},{"ruleId":"D17","level":"warning","message":{"text":"XxxComment: # \\u{XXX} unicode escape (UTF-8 encoded codepoint)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/lexer.ex"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"902301550fd2d1867bac092f6b4201e45317318a3864bf98b92fe63a30648373"}},{"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 \u0060fly.toml\u0060 makes this repository a deployable product (line 1)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"fly.toml"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e29d63eda2a94d0fb2a3407ec7b67cf4587f5b83978499603e988c4023e55fa"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (27123 LoC, 108 module-visible types across 13 directories) overshoots its size bounds. 1 of 3 build unit(s) (Mix, npm) overshoot their size bounds, lowering Project Cohesion to 3.3/10. Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mix.exs"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0218a951ebda7d744e410378d17b70da7ff3d08935afb12edee966d33e32c26"}},{"ruleId":"D28","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":"38c1ebbcf035cd3e5cfcb0aad02436e82d69de6ed2745f29274239ebc126b70b"},"properties":{"commitSha":"6fbf49bdfb3d878107a17493ce3637e500db6dc2"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"703b990f6d9a60db46de372b4bc3713bc769740b61be7dfed2b23b523664ac12"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f3ff08085aa55f1343c0cb020a82b3e82f8e37e063a03f2d42ab75546b4622f8"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"774e84eaf65696bacc627959839c1af1927b88e5fcbe02a78f7a8b8671c240ba"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bc26593caf509b487cb3dff9d1a587737a02c72fc5e13e59c1a151f7d6412ad4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"311f2b1dd969a2ef73985fc36dd91e65e3d6a6cb49a0706cd68e381199f12c7c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6bc3b539f953f180f304780b633bbb65e6d2911ce57503f2f0e4a05dfd504060"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"28fb95c74cf7e51a3f6e58d6d5d9aaba698bdc10ef21fbd45c72dc90736c26c6"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6e22fa714af38036b109f9493501c28af262c3a9a1a2d30d80f7ec23c8ecb75e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"da03799fc3118d150d08138b70314aa440345b1d41b31bf8ec40bdf77dadcc32"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ca21defc57a603fb34a9f329c384f28abd8cfb3e148fbda379b84d07613a0277"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"693249723480b7d3690fbc9002e4acaa2fd5c4f5277d52948268b51530c89d1e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b1aa9fb90a2f1866629f2e7bc966e691393ec93a8a55331cde03fcee80230e31"},"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":"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":"0a7c3e2f9991192670965f93f54ecf7684041c7b9279264e21210709257d2508"},"properties":{"dependency":{"package":"mint","version":"1.8.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"96aa9295c02769d6390157d9d6edbbe1c9554f4f809e3a75c8a3c859ac8e9ec4"},"properties":{"dependency":{"package":"plug","version":"1.19.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"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":"1bb1c5a1cfd48a2cb68ac0b532e3831ff6ab0a004f870069344600e9ab90f8ca"},"properties":{"dependency":{"package":"req","version":"0.5.18","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","EEF-[CVE redacted]","EEF-[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"3efbc998b0611b7dcdf54ccc4a913ea17e4b7e66b848cbd89414feca5da183fc"},"properties":{"dependency":{"package":"hpax","version":"1.0.3","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"12192512338528ab229b69a82f3b5f1b5c2b67cd1c3402767296d0878121b0f2"},"properties":{"dependency":{"package":"plug_crypto","version":"2.1.1","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","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":"3c08773d5d0595b5e900fd7c92ecb3ca84370884c53dc9e51217461330ddf04a"},"properties":{"dependency":{"package":"usage_rules","version":"0.1.26","advisory":"EEF-[CVE redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D31","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":"c95beba6ed401bdcc537e6ccd3c0ea88926c27f2e87ad82982494c81c390b279"}},{"ruleId":"D31","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":"135122fe19eae2a629d55651d8e5b7b10a06c0fdb1bdecfafb4ced7e1108c3fc"},"taxa":[{"id":"CWE-345","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"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":"D31","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":"4839a12c3479816fd83e2ee1abfb0d79a2c2bb9dd2446e07356b0a359926dcfe"}},{"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":"47f6a6e10882f6cbd3d9b9d3c4cbc7d15cf8dd960e631affe0bd4430e33a698f"},"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":"9ff1ee9dd5615e2d512c1b5a7eb9a731208830cdc6ec1c07d8913d2a5c081e3c"}},{"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":"01b127cab01c4df9f596c105acc5f9f589ae7dc48b6ff5f7e594932c1c15eddd"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D35","level":"warning","message":{"text":"Change-coupling hub: executor.ex \u2192 codegen.ex, instruction.ex, scope.ex: \u0060lib/lua/vm/executor.ex\u0060 changes together with 3 other files \u2014 \u0060lib/lua/compiler/codegen.ex\u0060, \u0060lib/lua/compiler/instruction.ex\u0060, \u0060lib/lua/compiler/scope.ex\u0060 \u2014 none of which declares a dependency on it: one file is the hub of 3 separate couplings, not 3 unrelated pairs. Read the hub first: if the others each duplicate a part of what it does, the shared concern belongs in ONE unit and extracting it clears every edge at once; if the hub is a registry, dispatcher or barrel that must name each of them, the coupling is structural and the question is whether that list can be discovered instead of enumerated. Fixing the hub is one change; breaking the couplings one pair at a time is 3."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a727b67fac38f9bef693a06d2961fd1e720965f670c4c54dc686e2ad48057ac0"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"},"taxa":[{"id":"CICD-SEC-9","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"},"taxa":[{"id":"CICD-SEC-8","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"61d9c64c1de88e7edb9c757178d6ec3103868cef4ae7e825aeeac5d15e61fb7d"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7ad4701c91f7eaa24aa7b7536975da3068c18dd1ab098025ae5c285286432c8e"},"taxa":[{"id":"CICD-SEC-6","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/lib/website_web/live/opcodes_live.ex"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5341292c951e998fe1450261b16e91af1fda749b010022d28ea21921aeb54d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/lib/website_web/live/playground_live.ex"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7d681e5c1b591f560b2d19eefc1b1af4237a425f83914bc167d10609b0f455"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/lib/website_web/live/tour_live.ex"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b3f30e3b3a6180a7ee191aea8980e8a63b698ffe73b8f98187160d56496a23"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/lib/website_web/components/layouts/root.html.heex"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"3577c2a7bc592dbdadfcf659c8ae3e91ca914f9d5fc992204d67aa0e1c31e497"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Ctd\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/lib/website_web/components/core_components.ex"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"03dddd34b636d41e9e70f2efe7b8bbc8443eb895ed6b3cf19d863236de676405"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed inline: \u003Ctextarea\u003E takes keyboard focus, and its outline-none utility removes the focus ring with no focus-state ring, shadow, border or outline utility in its place. Add one (e.g. focus-visible:ring-2)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/lib/website_web/live/playground_live.ex"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee9672ae27c2a5ac8ec761d70ddc98f019ca8103985ea84f7359e3e2f17329d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.lua-mark\u0060 moves (\u0060transition: filter 120ms ease-out, transform 120ms ease-out\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/assets/css/app.css"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcd9c87e6ac1ec682bfe2a2931086155f54790ae9f98b9198ba3b38d572b4ca"}},{"ruleId":"C2","level":"warning","message":{"text":"No authorization: This repository serves requests \u2014 a server (use Phoenix.Endpoint) (website/lib/website_web/endpoint.ex:2) \u2014 and no route guard, auth-gate middleware, global guard or imperative check that refuses a caller (401/403, an Unauthorized/Forbidden error) was found: its endpoints may be unprotected."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/lib/website_web/endpoint.ex"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ec388631e26b9a9a641ba3fe83f48f20883c9a9eb27e4f56f5c93aca3681ff"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P12","level":"warning","message":{"text":"Test failure does not fail the CI gate: \u0060continue-on-error: true\u0060 lets the step or job that runs \u0060mix test --only lua53 2\u003E\u00261 | tee suite-output.txt\u0060 fail without failing the pipeline \u2014 the suite can go red and the change still merges. Remove it from the test step, or quarantine the specific failing tests instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/ci.yml"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0a0330f5c496e9759c1d4eaa52ab1810fcdceb83de53f0d8fb36304ec33ab7"}},{"ruleId":"P2","level":"warning","message":{"text":"No structured logging: No logging call was found in the 99 Elixir, JavaScript/TypeScript production file(s) this check read across 3 module(s). Each was searched for its ecosystem\u0027s logging libraries (JavaScript/TypeScript: pino, winston, bunyan, log4js, loglevel, consola, the NestJS Logger; Elixir: Logger) and for a call on a receiver named \u0060log\u0060/\u0060logger\u0060 (or ending in \u0060Logger\u0060/\u0060_logger\u0060) with a level verb. It cannot see logging through a repo-local wrapper named otherwise, or in source it did not read \u2014 this is \u0027no logging found by this walk\u0027, not a verdict that nothing here logs. If it is right, production issues will be hard to diagnose."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9f10d71351c6778ebe84e761f82a90d4f9ed6c64f5e01975ede8fda7e4e2ebc5"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060website/assets/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":"website/assets/package.json"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbfd8de1875d3872d39d7e2441bd763a2c776db0f76d2303f5f0f2c11e2a788e"}},{"ruleId":"P4","level":"note","message":{"text":"Irreversible deploy step: production deploy on every push: Job \u0060deploy\u0060 rolls out to production on every branch push, with no environment, no manual approval and no test it waits for \u2014 every push is a production release, and nothing stops a bad one before users get it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/deploy.yml"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bbc0e8bbf83bcbf8e1450458e9b206ba6e9b673ad6a4c7aad44140df370ee25"}},{"ruleId":"S1","level":"note","message":{"text":"Security headers incomplete: Set: Content-Security-Policy, Referrer-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Permitted-Cross-Domain-Policies. Missing: X-Frame-Options \u2014 the four headers that carry the points of this card\u0027s security-headers term (Content-Security-Policy, Strict-Transport-Security, X-Content-Type-Options, X-Frame-Options), 0.5 each.(\u22120.5 on this card.) The server: website/lib/website_web/endpoint.ex:2 \u2014 \u0060Phoenix.Endpoint\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e9931804dbad8b1657857c9b88c05b8faeff182b6e2bb88641bd59bac687876e"}},{"ruleId":"S1","level":"note","message":{"text":"No inbound request validation detected: No handler of this repository\u0027s Elixir server answers 400, 413 or 422 (\u0060put_status(conn, :bad_request)\u0060, \u0060:unprocessable_entity\u0060, \u0060send_resp(conn, 400, \u2026)\u0060), and nothing declares validation \u2014 no Ecto changeset \u0060validate_required\u0060/\u0060validate_length\u0060/\u0060validate_format\u0060, no OpenApiSpex \u0060CastAndValidate\u0060, ExJsonSchema or other schema validator, no \u0060Plug.Parsers\u0060 \u0060length:\u0060 cap \u2014 nothing shows inbound requests being checked, and refused, before a handler acts on them. A check that answers its failure with 200 and an error body is not seen. (\u22122.0 on this card.) The server: website/lib/website_web/endpoint.ex:2 \u2014 \u0060Phoenix.Endpoint\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0ffa303f3c9cef4b4c2cf028a78ce2f3c83f6078f80716eea7362fad047265eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060Keyword.get(opts, :source) || auto_source\u0060 appears character-identically in 4 files \u2014 lib/lua/vm/argument_error.ex, lib/lua/vm/assertion_error.ex, lib/lua/vm/runtime_error.ex, lib/lua/vm/type_error.ex. 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":"lib/lua/vm/argument_error.ex"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ee6c81fe491a2c63be1c5d34231ab0394a671418db04e0c212f3ec43389b32"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_binary(source_code) and is_integer(line)\u0060 appears character-identically in 2 files \u2014 lib/lua/parser/error.ex, lib/lua/vm/error_formatter.ex. 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":"lib/lua/parser/error.ex"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"526a62b580184cbca03f2999460e37d2923b5dab2617548b519fb97e85915655"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060is_integer(arg_count) and arg_count \u003E= 0\u0060 appears character-identically in 2 files \u2014 lib/lua/compiler/bytecode.ex, lib/lua/compiler/peephole.ex. 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":"lib/lua/compiler/bytecode.ex"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"4978b4391db94ca51240aa8b0c4a9e60e28eeb50d1978afd54898f61a8ce3513"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readOpcodeDocs\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"website/assets/js/app.js"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"efeb88a678e5b9a079017c479f2050b542fd0e15be10dc14a79aa6622b2ff2cf"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060available_workloads\u0060 matches \u0060{:error, _}\u0060 and answers \u0060[]\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/lua.bench.ex"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"30f44167d72a604f081c300ec7af08b558fce69c9165778f51c6ac8fee530db8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060run_with_ranges\u0060 matches \u0060_\u0060 and answers \u0060:timeout\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"tasks/lua.suite.ex"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"497638189873aeb8f64f1fbef251ea34be2f84c1437968c5b0c4417910b29589"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060loaded_md5\u0060 matches \u0060{:error, _reason}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/bootstrap.ex"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"623dab989f07ea12a266f2ea39d30aa6fe976ff553a4180b20e8518490bfd8b7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in rescue: \u0060pow_ieee\u0060 rescues \u0060ArithmeticError\u0060 and answers \u0060:nan\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the exception or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/executor.ex"},"region":{"startLine":3849}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc87696e28273e140232223f35520a84d585e2818c535536b1405ffce6422bb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060find_module_file\u0060 matches \u0060{:error, _}\u0060 and answers \u0060nil\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the reason or return the \u0060{:error, reason}\u0060 tuple. If that constant is the correct answer rather than a stand-in for a value that could not be produced, say so in a comment at the clause or in the \u0060@doc\u0060, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/lua/vm/stdlib.ex"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"3246f78ee68902b9c8a33c1436c2e3e8b3c8ce27e0de83c56ab9a9aa003aec63"}}],"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-345","guid":"d80d4b65-bbbe-b65d-958e-7ac466af18f9","name":"Insufficient Verification of Data Authenticity","shortDescription":{"text":"Insufficient Verification of Data Authenticity"},"helpUri":"https://cwe.mitre.org/data/definitions/345.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/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"},{"id":"CICD-SEC-6","guid":"f2ee2486-b260-2952-a41f-6b67fa713940","name":"Insufficient Credential Hygiene","shortDescription":{"text":"Insufficient Credential Hygiene"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-06-Insufficient-Credential-Hygiene"},{"id":"CICD-SEC-8","guid":"b6b2dacf-a168-4957-876e-a8c73ee00eb0","name":"Ungoverned Usage of 3rd Party Services","shortDescription":{"text":"Ungoverned Usage of 3rd Party Services"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-08-Ungoverned-Usage-of-3rd-Party-Services"},{"id":"CICD-SEC-9","guid":"b3d36727-0395-5b51-94c4-5e173d62eab3","name":"Improper Artifact Integrity Validation","shortDescription":{"text":"Improper Artifact Integrity Validation"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-09-Improper-Artifact-Integrity-Validation"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":34,"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."]}]}